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

Unable to change video #15

Closed
kwnovi opened this issue Feb 2, 2017 · 3 comments
Closed

Unable to change video #15

kwnovi opened this issue Feb 2, 2017 · 3 comments

Comments

@kwnovi
Copy link

kwnovi commented Feb 2, 2017

Hi, thanks for the composant !

I don't know if it's a bug or a bad use but I can't manage to change the video on the player.

div#player youtube(:video-id="current_song.id" player-width="0" @ready="isReady" @playing="isPlaying")
Vuejs data :
current_song : { "title" : "Tierney Terrace", "artist" : "Loyle Carner", "id" : "2WQSAkYL70I", "new" : false, "isActive" : false }

And triggering a function changing the current_data object (with a new ID) doesn't update the player. Is it possible to change the videoId of the player while the video is playing ? (meaning, stop it and start it on a new video)

@kaorun343
Copy link
Owner

kaorun343 commented Feb 2, 2017

If you'd like to start playing a new video automatically, please give :player-vars="{autoplay: 1}" to <youtube> component.
If what you'd like to do is not what I explained, could you provide me a live example, or code in markdown?

@kaorun343
Copy link
Owner

@kwnovi
Copy link
Author

kwnovi commented Feb 2, 2017

Indeed I was missing this options, thanks you very much for the quick and detailed answer !

@kwnovi kwnovi closed this as completed Feb 2, 2017
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

2 participants