Commit 683ddab7 authored by 李维's avatar 李维

修复切换视频时中间会有空白的问题

parent 028a89ab
...@@ -387,8 +387,7 @@ export default class VideoPlayerComponent extends cc.Component { ...@@ -387,8 +387,7 @@ export default class VideoPlayerComponent extends cc.Component {
// cc.find(`Canvas/loading`).active = true; // cc.find(`Canvas/loading`).active = true;
cc.find(`Canvas/bg`).active = true; cc.find(`Canvas/bg`).active = true;
cc.find(`Canvas/bgwhite`).active = true; cc.find(`Canvas/bgwhite`).active = true;
// this.videoPlayer.node.x = -5000; this.noPlayCover.active = true;
// this.videoPlayer.node.y = -5000;
cc.find(`Canvas/videolist/view/content`).children.forEach(row => { cc.find(`Canvas/videolist/view/content`).children.forEach(row => {
cc.find(`item_active`, row).active = false; cc.find(`item_active`, row).active = false;
......
...@@ -6,6 +6,11 @@ export const defaultData = { ...@@ -6,6 +6,11 @@ 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://teach.cdn.ireadabc.com/1217ce2df743a07f5c52d04f5e029504.mp4" "video_url": "http://teach.cdn.ireadabc.com/1217ce2df743a07f5c52d04f5e029504.mp4"
},
{
"title": "The Old Man",
"cover": "http://staging-teach.cdn.ireadabc.com/c8abf7383d65bcbdba8f390785cece60.png",
"video_url": "http://teach.cdn.ireadabc.com/3712df6d4bbe5590c26e8080214e703f.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