Skip to content

Commit c43a616

Browse files
committed
What: replace the 'videoOptions' to 'options' Why: debug How: coding
1 parent 9822eed commit c43a616

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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": "3.0.9",
3+
"version": "3.1.0",
44
"description": "Video Player component for Vue2",
55
"main": "index.js",
66
"scripts": {

ssr.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const videojs = window.videojs = require('video.js')
44
var videoPlayer = {
55
install: function(Vue) {
66
Vue.directive('video-player', {
7-
bind: function (el, binding, vnode) {
7+
bind: function(el, binding, vnode) {
88
if (!el.children.length) {
99
var video = document.createElement('video')
1010
video.className = 'video-js vjs-custom-skin'
@@ -89,8 +89,8 @@ var videoPlayer = {
8989

9090
this.on('loadeddata', function() {
9191
this.muted(options.muted)
92-
if (!!videoOptions.start) {
93-
this.currentTime(videoOptions.start)
92+
if (!!options.start) {
93+
this.currentTime(options.start)
9494
}
9595
emitPlayerState('loadeddata', true)
9696
})

0 commit comments

Comments
 (0)