Commit 77e66307 authored by liujiangnan's avatar liujiangnan

debug

parent 1e9bd298
...@@ -114,7 +114,10 @@ export default class NewClass extends MyCocosSceneComponent { ...@@ -114,7 +114,10 @@ export default class NewClass extends MyCocosSceneComponent {
}); });
this.videoplayer.node.on('ready-to-play', () => { this.videoplayer.node.on('ready-to-play', () => {
this.showTips(this.videoplayer.remoteURL);
if (this.videoplayer.isValid) {
this.videoplayer.play(); this.videoplayer.play();
}
}); });
this.videoplayer.node.on('playing', (evt) => { this.videoplayer.node.on('playing', (evt) => {
this.playBtn.active = false; this.playBtn.active = false;
...@@ -153,4 +156,13 @@ export default class NewClass extends MyCocosSceneComponent { ...@@ -153,4 +156,13 @@ export default class NewClass extends MyCocosSceneComponent {
this.updateVideoStrip(); this.updateVideoStrip();
this.listenTimePlayRecorder(); this.listenTimePlayRecorder();
} }
showTips(tips) {
const middleLayer = cc.find('middleLayer')?.getComponent('middleLayer');
if (middleLayer) {
middleLayer.showTips(tips);
} else {
console.log(tips);
}
}
} }
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