Commit 84c54d2f authored by liujiangnan's avatar liujiangnan

debug

parent a85f11af
...@@ -176,6 +176,8 @@ cc.Class({ ...@@ -176,6 +176,8 @@ cc.Class({
}); });
this.videoPlayer.node.on('clicked', () => { this.videoPlayer.node.on('clicked', () => {
console.log('clicked'); console.log('clicked');
});
this.videoPlayer.node.on('touchstart', () => {
if (this.isVideoFull) { if (this.isVideoFull) {
this.videoPlayer.stayOnBottom = true; this.videoPlayer.stayOnBottom = true;
cc.find(`Canvas/Controls`).active = true; cc.find(`Canvas/Controls`).active = true;
...@@ -187,7 +189,7 @@ cc.Class({ ...@@ -187,7 +189,7 @@ cc.Class({
cc.find(`Canvas/Controls`).active = false; cc.find(`Canvas/Controls`).active = false;
}, 6000); }, 6000);
} }
}); })
this.videoPlayer.node.on('playing', () => { this.videoPlayer.node.on('playing', () => {
console.log('playing'); console.log('playing');
this.durationLabel.string = this.formatTime(this.videoPlayer.getDuration()); this.durationLabel.string = this.formatTime(this.videoPlayer.getDuration());
...@@ -277,11 +279,11 @@ cc.Class({ ...@@ -277,11 +279,11 @@ cc.Class({
this.updateBarByPos(newX); this.updateBarByPos(newX);
// console.log("ProgressBar TOUCH_START", newX); // console.log("ProgressBar TOUCH_START", newX);
}); });
this.videoPlayer.node.off(cc.Node.EventType.TOUCH_START); // this.videoPlayer.node.off(cc.Node.EventType.TOUCH_START);
this.videoPlayer.node.on(cc.Node.EventType.TOUCH_START, (e) => { // this.videoPlayer.node.on(cc.Node.EventType.TOUCH_START, (e) => {
console.log("screen TOUCH_START"); // console.log("screen TOUCH_START");
this.triggerInteractive() // this.triggerInteractive()
}); // });
const pgBar = this.ProgressBar; const pgBar = this.ProgressBar;
this.tw = new (function(){ this.tw = new (function(){
this._tw = cc.tween(pgBar).delay(3).to(.6, { this._tw = cc.tween(pgBar).delay(3).to(.6, {
......
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