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

The demo do not allow to change video source #14

Open
onigetoc opened this issue Apr 11, 2017 · 1 comment
Open

The demo do not allow to change video source #14

onigetoc opened this issue Apr 11, 2017 · 1 comment

Comments

@onigetoc
Copy link

The demo do not allow to change video source, It never load the new video

@ewwink
Copy link

ewwink commented May 10, 2017

it is because we need to reinitialized window.YT (player data), it called from iframe_api, the solution is to set it null. it can be done by replacing:

value: function embedYoutubeApiScript() {
    var _this2 = this;

with

value: function embedYoutubeApiScript() {
    window.YT = null;
    var _this2 = this;

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