提交 195ff382 编写于 作者: taohebin@dcloud.io's avatar taohebin@dcloud.io

Revert "更新video示例"

This reverts commit e5fc6e13.
上级 ffb996f6
......@@ -288,7 +288,7 @@
this.pageGesture = !this.pageGesture;
console.log("pageGesture -> " + this.pageGesture)
},
setDirection: function (direction : number) {
setDirection: function (direction: number) {
this.direction = direction;
console.log("direction -> " + this.direction)
},
......@@ -361,40 +361,40 @@
console.log("header -> " + this.header)
},
// 事件
onPlay: function (res : Event) {
console.log(res.type);
onPlay: function (res : any) {
console.log(JSON.stringify(res));
this.isPlaying = true;
this.isPause = false;
},
onPause: function (res : Event) {
console.log(res.type);
onPause: function (res : any) {
console.log(JSON.stringify(res));
this.isPlaying = false;
this.isPause = true;
},
onEnded: function (res : Event) {
console.log(res.type);
onEnded: function (res : any) {
console.log(JSON.stringify(res));
},
onTimeUpdate: function (res : VideoTimeUpdateEvent) {
console.log(res.type + " -> " + JSON.stringify(res.detail));
onTimeUpdate: function (_ : any) {
// console.log(JSON.stringify(res));
},
onFullScreenChange: function (res : VideoFullScreenChangeEvent) {
console.log(res.type + " -> " + JSON.stringify(res.detail));
onFullScreenChange: function (res : any) {
console.log(JSON.stringify(res));
this.isFullScreen = !this.isFullScreen;
},
onWaiting: function (res : Event) {
console.log(res.type);
onWaiting: function (res : any) {
console.log(JSON.stringify(res));
},
onError: function (res : VideoErrorEvent) {
console.log(res.type + " -> " + JSON.stringify(res.detail));
onError: function (res : any) {
console.log(JSON.stringify(res));
},
onProgress: function (res : VideoProgressChangeEvent) {
console.log(res.type + " -> " + JSON.stringify(res.detail));
onProgress: function (res : any) {
console.log(JSON.stringify(res));
},
onFullScreenClick: function (res : VideoFullScreenClickEvent) {
console.log(res.type + " -> " + JSON.stringify(res.detail));
onFullScreenClick: function (res : any) {
console.log(JSON.stringify(res));
},
onControlsToggle: function (res : VideoControlsToggleEvent) {
console.log(res.type + " -> " + JSON.stringify(res.detail));
onControlsToggle: function (res : any) {
console.log(JSON.stringify(res));
},
// 自动化测试
playTest: function () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册