Skip to content

Commit 4943f97

Browse files
authored
avoid error "VIDEOJS: ERROR: Unable to find plugin: __ob__"
avoid error "VIDEOJS: ERROR: Unable to find plugin: __ob__" options.plugins 参数从vue传入时会加上 __ob__,videojs以为是个插件,尝试加载该插件失败会报错
1 parent ba8bd35 commit 4943f97

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

player.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@
6161
}
6262
},
6363
techOrder: ['html5', 'flash'],
64-
playbackRates: []
64+
playbackRates: [],
65+
plugins:{}
6566
}, this.options)
6667
6768
// check sources
@@ -98,6 +99,8 @@
9899
// videoOptions
99100
// console.log(videoOptions)
100101
102+
// avoid error "VIDEOJS: ERROR: Unable to find plugin: __ob__"
103+
delete videoOptions.plugins.__ob__;
101104
this.player = videojs(this.$el.children[0], videoOptions, function() {
102105
103106
// player readied

0 commit comments

Comments
 (0)