Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v-model:src #454

Open
funtionalcode opened this issue Oct 8, 2021 · 5 comments
Open

v-model:src #454

funtionalcode opened this issue Oct 8, 2021 · 5 comments

Comments

@funtionalcode
Copy link

funtionalcode commented Oct 8, 2021

hi all,

In vue3 <video ><source :src="myVideo"/></video> ,:src does not take effect, only the src effect of the first load

@tomatopickle
Copy link

tomatopickle commented Jan 9, 2022

Any updates on this?, I'm having the same issue

@vin-ni
Copy link

vin-ni commented Jan 20, 2022

+1

@ak3489
Copy link

ak3489 commented Apr 14, 2022

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;
}

@ocarlosapenas
Copy link

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 the nextTick should be placed?

@ak3489
Copy link

ak3489 commented Apr 26, 2022

after you change audioSrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants