We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b573c05 + b217efd commit 6390425Copy full SHA for 6390425
player.vue
@@ -238,6 +238,16 @@
238
_this.$emit && _this.$emit(customEventName, { currentTime: this.currentTime() })
239
_this.$dispatch && _this.$dispatch(customEventName, { currentTime: this.currentTime() })
240
})
241
+
242
+ this.on('canplay', function() {
243
+ _this.$emit && _this.$emit(customEventName, { canplay: true })
244
+ _this.$dispatch && _this.$dispatch(customEventName, { canplay: true })
245
+ })
246
247
+ this.on('canplaythrough', function() {
248
+ _this.$emit && _this.$emit(customEventName, { canplaythrough: true })
249
+ _this.$dispatch && _this.$dispatch(customEventName, { canplaythrough: true })
250
251
252
},
253
// 释放播放器
0 commit comments