You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using nuxt 2 and passing video metadata to data-setup as shown below:
<videoref="videoPlayer"class="video-js vjs-theme-forest" :data-setup=metaData></video>exportdefault{data(){
videos: [],// array of all the video objects with video optionsmetaData: null,player: null}mounted(){this.currentVideo=this.videos[0];this.metaData=JSON.stringify({"plugins": {"httpSourceSelector": {},"mux": {"data": {"env_key": this.$config.muxEnvKey,"video_title": "my great video",}}}})this.player=videojs(this.$refs.videoPlayer,this.videos[0])}}
I don't see any problem with the code. However, still, data-setup is not able to use the updated value of metaData.
The text was updated successfully, but these errors were encountered:
I am using nuxt 2 and passing video metadata to data-setup as shown below:
I don't see any problem with the code. However, still, data-setup is not able to use the updated value of metaData.
The text was updated successfully, but these errors were encountered: