Commit c2d73f53 authored by 李维's avatar 李维

调整全屏尺寸

parent 350476a7
...@@ -444,13 +444,12 @@ export default class VideoPlayerComponent extends cc.Component { ...@@ -444,13 +444,12 @@ export default class VideoPlayerComponent extends cc.Component {
cc.find(`Canvas/btn_last`).y = -39.603; cc.find(`Canvas/btn_last`).y = -39.603;
cc.find(`Canvas/btn_next`).x = 734.101; cc.find(`Canvas/btn_next`).x = 734.101;
cc.find(`Canvas/btn_next`).y = -39.603; cc.find(`Canvas/btn_next`).y = -39.603;
cc.find(`Canvas/VideoNode`).scale = 1.47; cc.find(`Canvas/VideoNode`).scale = 1.439;
cc.find(`Canvas/Controls`).scale = 1.2; cc.find(`Canvas/Controls`).scale = 1.2;
cc.find(`Canvas/Controls`).y = -670; cc.find(`Canvas/Controls`).y = -670;
cc.find(`Canvas/Controls`).x += 50; cc.find(`Canvas/Controls`).x += 50;
this.videoPlayIndex = 0; this.videoPlayIndex = 0;
this.videoItemList[0].emit('my_item_click'); this.videoItemList[0].emit('my_item_click');
} }
}); });
...@@ -581,6 +580,8 @@ export default class VideoPlayerComponent extends cc.Component { ...@@ -581,6 +580,8 @@ export default class VideoPlayerComponent extends cc.Component {
const videoContainer = cc.find('Canvas/video_node'); const videoContainer = cc.find('Canvas/video_node');
this.tempPos.videoPos = { x: videoContainer.x, y: videoContainer.y, width: videoContainer.width, height: videoContainer.height }; this.tempPos.videoPos = { x: videoContainer.x, y: videoContainer.y, width: videoContainer.width, height: videoContainer.height };
this.tempPos.videoPos.width *= videoContainer.scale;
this.tempPos.videoPos.height *= videoContainer.scale;
videoContainer.width = this.node.width; videoContainer.width = this.node.width;
videoContainer.height = this.node.height; videoContainer.height = this.node.height;
videoContainer.x = 0; videoContainer.x = 0;
......
...@@ -5,7 +5,7 @@ export const defaultData = { ...@@ -5,7 +5,7 @@ export const defaultData = {
{ {
"title": "The Old Man", "title": "The Old Man",
"cover": "http://staging-teach.cdn.ireadabc.com/c8abf7383d65bcbdba8f390785cece60.png", "cover": "http://staging-teach.cdn.ireadabc.com/c8abf7383d65bcbdba8f390785cece60.png",
"video_url": "http://staging-teach.cdn.ireadabc.com/c37a3945121274a1f7d95717327539ec.mp4" "video_url": "http://teach.cdn.ireadabc.com/1217ce2df743a07f5c52d04f5e029504.mp4"
} }
] ]
}; };
\ No newline at end of file
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