Skip to content

Commit

Permalink
Merge pull request #113 from fankw1/sig
Browse files Browse the repository at this point in the history
fix: 修复视频正常播放会触发onError 事件
  • Loading branch information
GreatQin1 authored Dec 31, 2024
2 parents 86ab9db + 78f7369 commit 4847543
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions harmony/rn_video/src/main/ets/RNCVideo.ets
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ export struct RNCVideo {
this.isUserPaused = this.descriptor.rawProps.paused
this.controls = this.descriptor.rawProps.controls
this.resizeMode = this.descriptor.rawProps.resizeMode
this.repeat = this.descriptor.rawProps.repeat
this.volume = this.descriptor.rawProps.volume
this.repeat = this.descriptor.rawProps.repeat !== undefined?this.descriptor.rawProps.repeat:false;
this.volume = this.descriptor.rawProps.volume !== undefined?this.descriptor.rawProps.volume:0.0;
this.srcParam = this.descriptor.rawProps.src.uri
this.disableFocus = this.descriptor.rawProps.disableFocus
this.preventsDisplaySleepDuringVideoPlayback = this.descriptor.rawProps.preventsDisplaySleepDuringVideoPlayback
Expand Down

0 comments on commit 4847543

Please sign in to comment.