Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to reload the player ? #1072

Unanswered
KM55EN5EI asked this question in Q&A
Discussion options

When I click on a button, I want to be able to change the currently playing video and load the player with another video. I cannot use the nextvideo function as the video I want to load is not from a playlist. So, how can I reload the video player with a new video?

You must be logged in to vote

Replies: 1 comment

Comment options

You can store the player in a global variable and reuse it to play a new video, using the cue/load video methods. You can see examples in the sample app.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /