Skip to content

Commit 7755c52

Browse files
author
surmon
committed
fix bug
1 parent 1d7b308 commit 7755c52

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

dist/vue-video-player.js

Lines changed: 5 additions & 3 deletions
Large diffs are not rendered by default.

dist/vue-video-player.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-video-player.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-video-player",
3-
"version": "4.0.4",
3+
"version": "4.0.6",
44
"description": "Video Player component for Vue",
55
"main": "index.js",
66
"scripts": {

src/player.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
},
141141
dispose: function() {
142142
if (this.player && videojs) {
143-
if(this.player.techName_ !== 'Flash') {
143+
if (this.player.techName_ !== 'Flash') {
144144
this.player.pause && this.player.pause()
145145
}
146146
videojs(this.$el.children[0]).dispose()

ssr.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ var videoPlayer = {
126126
var instanceName = customInstanceName || 'player'
127127
var player = _this[instanceName]
128128
if (player && videojs) {
129-
player.pause && player.pause()
129+
if (player.techName_ !== 'Flash') {
130+
player.pause && player.pause()
131+
}
130132
videojs(el.children[0]).dispose()
131133
if (!el.children.length) {
132134
var video = document.createElement('video')

0 commit comments

Comments
 (0)