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

Revert "更新video示例"

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