diff --git a/harmony/rn_video.har b/harmony/rn_video.har index b5cf46b765..17dca836ee 100644 Binary files a/harmony/rn_video.har and b/harmony/rn_video.har differ diff --git a/harmony/rn_video/oh-package.json5 b/harmony/rn_video/oh-package.json5 index 1dd349c638..50a23b05cb 100644 --- a/harmony/rn_video/oh-package.json5 +++ b/harmony/rn_video/oh-package.json5 @@ -5,8 +5,8 @@ "name": "@react-native-oh-tpl/react-native-video", "description": "main cpai architecture", "main": "index.ets", - "version": "5.2.2", + "version": "5.2.3-rc.1", "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony.har" } -} +} \ No newline at end of file diff --git a/harmony/rn_video/src/main/ets/controller/VideoController.ets b/harmony/rn_video/src/main/ets/controller/VideoController.ets index d710f80346..ee826a33ef 100644 --- a/harmony/rn_video/src/main/ets/controller/VideoController.ets +++ b/harmony/rn_video/src/main/ets/controller/VideoController.ets @@ -362,7 +362,7 @@ export class VideoController { this.status === CommonConstants.STATUS_PAUSE || this.status === CommonConstants.STATUS_COMPLETED ) { - this.avPlayer.setVolume(handleBoundaryVolume(currentVolume)); + this.avPlayer.setVolume(this.handleBoundaryVolume(currentVolume)); Logger.debug(TAG, `switchMuted2,currentVolume= ${JSON.stringify(currentVolume)}`); } @@ -429,7 +429,7 @@ export class VideoController { currentVolume = 0 } Logger.debug(TAG, `updateProp volume, ${JSON.stringify(this.playerThis.volume)}`); - this.avPlayer.setVolume(handleBoundaryVolume(this.playerThis.volume)); /* 更新音量 */ + this.avPlayer.setVolume(this.handleBoundaryVolume(this.playerThis.volume)); /* 更新音量 */ Logger.debug(TAG, `updateProp resizeMode, ${JSON.stringify(this.playerThis.resizeMode)}`); /* 更新 resizeMode */ this.convertResizeMode(this.playerThis.resizeMode); diff --git a/package.json b/package.json index 404f33b055..c800322e0a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-oh-tpl/react-native-video", - "version": "5.2.2", + "version": "5.2.3-rc.1", "description": "A