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 a9cb85c + 19534fe commit ef5b817Copy full SHA for ef5b817
src/player.vue
@@ -116,21 +116,21 @@
116
self.$emit('ready', self.player)
117
118
// events
119
- var events = ['loadeddata',
+ var events = ['loadeddata',
120
'canplay',
121
'canplaythrough',
122
'play',
123
'pause',
124
'waiting',
125
'playing',
126
'ended']
127
- for (var i = 0; i < events.length; i++) {
128
- (function(event) {
129
- _this.on(event, function() {
130
- emitPlayerState(event, true)
131
- })
132
- })(events[i])
133
- }
+ for (var i = 0; i < events.length; i++) {
+ (function(event) {
+ _this.on(event, function() {
+ emitPlayerState(event, true)
+ })
+ })(events[i])
+ }
134
135
this.on('timeupdate', function() {
136
emitPlayerState('timeupdate', this.currentTime())
0 commit comments