智能客服
你问我答,随时在线为你解决问题
Video({ src: videoUrl, controller: this.controller }) .autoPlay(true) .onFullscreenChange((event) => { // 全屏时旋转窗口 if (event.fullscreen) { win.setPreferredOrientation(window.Orientation.LANDSCAPE_INVERTED) } else { win.setPreferredOrientation(window.Orientation.PORTRAIT) } }) .onVisibleAreaChange([0.0, 1.0], (isVisible: boolean, currentRatio: number) => { (!isVisible && currentRatio <= 0.0) { this.data.isPlaying = false this.controller.stop() // 导致视频被停止 } })
我要提问题