|
|
@@ -159,13 +159,6 @@ export default {
|
|
|
console.log('onVideoPause')
|
|
|
this.paused = true
|
|
|
},
|
|
|
- onTimeUpdate () {
|
|
|
- console.log('onTimeUpdate')
|
|
|
- if (this.loading) {
|
|
|
- this.loading = false
|
|
|
- clearTimeout(this.$timer)
|
|
|
- }
|
|
|
- },
|
|
|
onVideoWaiting () {
|
|
|
console.log('onVideoWaiting')
|
|
|
if (!this.loading) {
|
|
|
@@ -182,6 +175,13 @@ export default {
|
|
|
}
|
|
|
}, 10000)
|
|
|
},
|
|
|
+ onVideoPlaying () {
|
|
|
+ console.log('onVideoPlaying')
|
|
|
+ if (this.loading) {
|
|
|
+ this.loading = false
|
|
|
+ clearTimeout(this.$timer)
|
|
|
+ }
|
|
|
+ },
|
|
|
onVideoError (e) {
|
|
|
console.log('onVideoError', e)
|
|
|
this.destroyPlayer()
|