Skip to content

Commit 1d7b308

Browse files
authored
Merge pull request surmon-china#109 from wrrwrr111/patch-1
fix a bug
2 parents 58b40b1 + 69b150e commit 1d7b308

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/player.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@
140140
},
141141
dispose: function() {
142142
if (this.player && videojs) {
143-
this.player.pause && this.player.pause()
143+
if(this.player.techName_ !== 'Flash') {
144+
this.player.pause && this.player.pause()
145+
}
144146
videojs(this.$el.children[0]).dispose()
145147
if (!this.$el.children.length) {
146148
var video = document.createElement('video')

0 commit comments

Comments
 (0)