Commit efda089f authored by 李维's avatar 李维

测试

parent f2bf3fe7
......@@ -1069,10 +1069,10 @@ cc.Class({
if (currentTime) {
video.currentTime = currentTime;
console.log("Set video current time-1:", video.currentTime);
console.log("Set video current time-1:", this.video.currentTime);
} else {
video.currentTime = Number(this.curQues.ques_start);
console.log("Set video current time-2:", video.currentTime);
console.log("Set video current time-2:", this.video.currentTime);
}
if (this.playTimes > 0) {
......@@ -1114,7 +1114,7 @@ cc.Class({
const video = this.video;
video.node.name = "wait_video";
video.currentTime = Number(this.curQues.wait_start);
console.log("Set video current time-3:", video.currentTime);
console.log("Set video current time-3:", this.video.currentTime);
this.curEndTime = Number(this.curQues.wait_end);
delayCall(0.01, () => {
video.play();
......@@ -1142,7 +1142,7 @@ cc.Class({
console.log(" in continueWaitVideo ");
this.video.currentTime = Number(this.curQues.wait_start);
console.log("Set video current time-4:", video.currentTime);
console.log("Set video current time-4:", this.video.currentTime);
this.curEndTime = Number(this.curQues.wait_end);
delayCall(0.01, () => {
......@@ -1165,7 +1165,7 @@ cc.Class({
const video = this.video;
video.node.name = "right_video";
video.currentTime = Number(this.curQues.right_start);
console.log("Set video current time-5:", video.currentTime);
console.log("Set video current time-5:", this.video.currentTime);
this.curEndTime = Number(this.curQues.right_end);
delayCall(0.01, () => {
......@@ -1190,11 +1190,11 @@ cc.Class({
if (this.wrongStartTime && this.wrongEndTime) {
video.currentTime = this.wrongStartTime;
console.log("Set video current time-6:", video.currentTime);
console.log("Set video current time-6:", this.video.currentTime);
this.curEndTime = this.wrongEndTime;
} else {
video.currentTime = Number(this.curQues.wrong_start);
console.log("Set video current time-7:", video.currentTime);
console.log("Set video current time-7:", this.video.currentTime);
this.curEndTime = Number(this.curQues.wrong_end);
}
......@@ -1223,7 +1223,7 @@ cc.Class({
const video = this.video;
video.node.name = "end_video";
video.currentTime = Number(this.curQues.end_start);
console.log("Set video current time-8:", video.currentTime);
console.log("Set video current time-8:", this.video.currentTime);
this.curEndTime = Number(this.curQues.end_end);
delayCall(0.01, () => {
video.play();
......@@ -1503,7 +1503,7 @@ cc.Class({
this.video.pause();
this.videoControlBar.emit("update_video_status", 0);
this.video.currentTime = this.curEndTime;
console.log("Set video current time-9:", video.currentTime);
console.log("Set video current time-9:", this.video.currentTime);
this.curEndTime = -1;
this.curVideoPlayEnd();
// this.videoControlBar.active = false;
......@@ -1540,7 +1540,7 @@ cc.Class({
this.curEndTime = -1;
}
this.video.currentTime = userDragTime;
console.log("Set video current time-10:", video.currentTime);
console.log("Set video current time-10:", this.video.currentTime);
},
// 是否正在拖动进度条
......@@ -1656,7 +1656,7 @@ cc.Class({
// 监听组件发来的拖动百分比
this.videoControlBar.on("on_drag_percent", (percent)=>{
this.video.currentTime = percent * this.videoDuration;
console.log("Set video current time-11:", video.currentTime);
console.log("Set video current time-11:", this.video.currentTime);
})
// 监听组件发来视频播放、暂停事件
......
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