I have a YouTube's player in the webpage. I need to change the video played by this player dynamicaly.
This is (relatively) easy using YouTube's chromeless player. It has method loadVideoById()
which works perfectly. The problem is, that the chromeless player doesn't have any controls (play/pause, etc.). The regular YouTube player has all this, but it doesn't have the loadVideoById()
method.
Is there any way to include the controls of regular player into chromeless player, or to implement loadVideoById()
method in the regular player?
Thanks.