this.videoPlayer.isFullscreen = true后 ,点击屏幕不能识别
event === cc.VideoPlayer.EventType.CLICKED
1.9.1
并且在ios端event === cc.VideoPlayer.EventType.COMPLETED 这个每次play 都会调用一次,浏览器正常
做了一个列表播放器,在浏览器都ok了,一移到ios就这样了,难道要泡汤了?
注意:在 iOS 平台上面,全屏模式下面点击视频无法发送 CLICKED 事件,如果需要让 iOS 全屏播放并正确接受 CLICKED 事件, 可以使用 Widget 组件把视频控件撑满,详情请参考引擎自带的 Example-cases 测试例。
研究中。。。。
全屏点击事件在ios还是不行加了weight了,哪路神仙来指点下~?
解决了 原来控制widget就好了。。。
if (!this.isFull) {
this.isFull = true;
// this.VideoPlayer.node.setContentSize(cc.size(1920,1080));
// this.videoPlayer.node.width = 1920;
// this.videoPlayer.node.height = 1080;
this.videoWidget.top=0;
this.videoWidget.bottom=0;
this.videoWidget.left=0;
this.videoWidget.right=0;
}
else {
this.isFull = false;
this.videoWidget.top=220;
this.videoWidget.bottom=260;
this.videoWidget.left=145;
this.videoWidget.right=485;
// this.videoPlayer.node.width = 1290;
// this.videoPlayer.node.height = 600;
}