Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

Ios videoplayer 触摸消息后 坐标是错的,导致触摸视频其他按钮可以收到消息

$
0
0

@caolei7299 写道:

videoplayer ios 有bug 触摸的时候,坐标映射是错的 会导致其他的按钮控件 会收到消息。。。。。 怎么解决?

playVideoPlayer:function(){

		if(MainLayer.video == null){
        var video = new ccui.VideoPlayer("res/HalloweenLadyDee.mp4");
        video.setContentSize(MainLayer.videow, MainLayer.videoh);
        video.setPosition(MainLayer.videox,MainLayer.videoy);
        video.setScale(1);
        video.setTouchEnabled(false);
        video.setAnchorPoint(cc.p(0,0));
        window.video = video;
        this.addChild(video);

        MainLayer.video = video;
        video.setURL("res/HalloweenLadyDee.mp4");
        video.addEventListener(this.videoState);
		}

}

帖子: 4

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>