Commit cea2b4c3 authored by anton's avatar anton

Fix exception on missing annotation and undefined videoPlayer ref

parent 0bdbe449
Pipeline #51003 passed with stage
in 1 minute and 32 seconds
......@@ -90,11 +90,11 @@
},
computed: {
player () {
return this.$refs.videoPlayer.player
return this.$refs.videoPlayer ? this.$refs.videoPlayer.player : undefined
},
classConfig () {
return {
'mp4': this.annotation.body.source.type === 'video/mp4',
'mp4': guessType(this.src || (this.annotation ? this.annotation.body.source.id : undefined)) === 'video/mp4',
'video-player': true,
'video-player-box': true,
'vjs-big-play-centered': true,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment