Skip to content

Commit

Permalink
Fix toggleLight
Browse files Browse the repository at this point in the history
  • Loading branch information
FoundTheWOUT committed Feb 26, 2024
1 parent e27f71a commit fc3369f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/video/player-agent/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ export abstract class PlayerAgent
}
// 关灯状态 && 要开灯 -> 开灯
if (on && isCurrentLightOff) {
this.nativeApi.setLightOff(true)
this.nativeApi.setLightOff(false)
return true
}
if (!on && !isCurrentLightOff) {
this.nativeApi.setLightOff(false)
this.nativeApi.setLightOff(true)
return false
}
return null
Expand Down

0 comments on commit fc3369f

Please sign in to comment.