You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you try to init player with wrong id, it of course fails:
var p = new Vimeo.Player('my-player', { width: 300, id: 'abc' });
but after this you are unable to init it again with the correct ID, since it will still try to use "abc" as ID, no matter what you will try to pass. Also it is unable to just use .loadVideo(), since player wasn't created, and player var is only a promise, not player.
When you try to init player with wrong id, it of course fails:
but after this you are unable to init it again with the correct ID, since it will still try to use "abc" as ID, no matter what you will try to pass. Also it is unable to just use
.loadVideo()
, since player wasn't created, and player var is only a promise, not player.Here is working example: https://jsfiddle.net/Ls4hm4sk/
And the screen with console log:
The text was updated successfully, but these errors were encountered: