Commit c8f35419 authored by liujiangnan's avatar liujiangnan

fix: 视频被切的问题

parent fde4fa1e
...@@ -507,8 +507,12 @@ cc.Class({ ...@@ -507,8 +507,12 @@ cc.Class({
cc.find(`Canvas/bg_empty`).width = this.node.width; cc.find(`Canvas/bg_empty`).width = this.node.width;
cc.find(`Canvas/bg_empty`).height = this.node.height; cc.find(`Canvas/bg_empty`).height = this.node.height;
this.videoPlayer.node.width = this.node.width;
this.videoPlayer.node.height = this.node.height; this.videoPlayer.node.height = this.node.height;
this.videoPlayer.node.width = this.node.width;
setTimeout(() => {
// IOS下视频的全屏适配比例有问题,所以做一个计算
this.videoPlayer.node.width = Math.min(this.node.width, this.node.height*16/9);
}, 100);
this.time1 = setTimeout(() => { this.time1 = setTimeout(() => {
this.videoPlayer.stayOnBottom = false; this.videoPlayer.stayOnBottom = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment