Commit d1b3fd8c authored by 李维's avatar 李维

添加日志

parent 522bb8f2
......@@ -5,6 +5,8 @@
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
const { stat } = require("fs");
cc.Class({
extends: cc.Component,
......@@ -138,20 +140,26 @@ cc.Class({
addListener() {
this.node.on('video_play_end', () => {
console.log("video_play_end");
this.refreshVideoBtnState();
})
this.node.on('update_video_progress', (value)=>{
console.log("update_video_progress");
if(!this.userDragStart) {
this.setProgress(value);
} else {
console.log("用户没有拖动进度条")
}
})
this.node.on('update_video_status', (status)=>{
console.log("update_video_status", status);
this.refreshVideoBtnState(status);
})
this.node.on("set_mark_points", (data)=>{
console.log("set_mark_points")
const markPoint = cc.find("markPoint", this.node);
const markPointsContainer = cc.find("markNode", this.node);
for(let i=0; i<data.length; i++) {
......
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