Situation: here, where I pressed some video.
Problem: I try to stop the video by Javascript in the console of Firebug:
player.stopVideo(playerid):Void [1] [2]
Question: Why does not the command above work?
[1] Source for the part "player.stopVideo():Void"
[2] I looked playerid with Firebug from the source.
So this is quickest way to do it!
Open Developer Options
Hover over YouTube play button.
Press Control/Command + Shift + C
Select the Button
Add id to it.
Go to console and run the following
var x = document.getElementById('id'); x.click();
That's it!
The following works well, tested on wamp server. Just replace the 11-digit ID in the following line with that of the video you want to play.
Good luck.
Your video is requesting w/ the JSAPI enabled, so you are very close! All you need is a valid reference to the embedded player. Inspecting your page revealed that you are using the HTML DOM element id of "playerid" to identify your player.
Example:
To obtain a reference to the player and then stop the video use the following code: