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 99ae28e + 2917ff9 commit 19534feCopy full SHA for 19534fe
src/player.vue
@@ -116,14 +116,15 @@
116
self.$emit('ready', self.player)
117
118
// events
119
- ['loadeddata',
+ var events = ['loadeddata',
120
'canplay',
121
'canplaythrough',
122
'play',
123
'pause',
124
'waiting',
125
'playing',
126
- 'ended'].forEach(function(event) {
+ 'ended']
127
+ events.forEach(function(event) {
128
_this.on(event, function() {
129
emitPlayerState(event, true)
130
})
0 commit comments