vue-plyr
vue-plyr copied to clipboard
v-model:src
hi all,
In vue3 <video ><source :src="myVideo"/></video>
,:src
does not take effect, only the src effect of the first load
Any updates on this?, I'm having the same issue
+1
try this
<vue-plyr v-if="audioSrc" ref="plyr" :options="options" > <audio controls playsinline ref="audio"> <source :src=audioSrc type="audio/mp3" /> </audio> </vue-plyr>
this.$nextTick(()=>{
this.$refs.audio.src = this.audioSrc;
}
try this
<vue-plyr v-if="audioSrc" ref="plyr" :options="options" > <audio controls playsinline ref="audio"> <source :src=audioSrc type="audio/mp3" /> </audio> </vue-plyr>
this.$nextTick(()=>{ this.$refs.audio.src = this.audioSrc; } Tks, I'm new with vue (only using 7 days) where thenextTick
should be placed?
after you change audioSrc