|
非常感谢提醒,fixedOn默认没有配置,因为我的视频详情是打开的新窗口,出现这个问题的原因是因为我直接调用了videoPlayer.fullScreen()这个接口实现的全屏。
如果配合api.setScreenOrientation({orientation:'auto_landscape' });实现frame的播放器控制界面就会出现视频显示在中间的位置。
解决方式:
删除videoPlayer.fullScreen(),直接调用
videoPlayer.setRect({rect:{x:0,y:0,w:'auto',h:'auto'},fullscreen:true}); 然后在配合api.setScreenOrientation({orientation:'auto_landscape' });实现横屏,问题解决了,播放器控制界面与播放器同步显示。
|
|