Feonx
07-12-2012, 06:51 PM
Hello,
Thanks for reading! I would like to control a Youtube video by javascript on the Youtube website itself (not embedded). I know there is a Youtube API to control embedded video's but, its not working on the Youtube website it self.
If you wonder why I want this, its because I have a webbrowser control inside my C# application. When a user uses my application and visites the website Youtube I would like the user to be able to control the play/stop/pause from my application rather then the webbrowser flash.
I tried to use the Youtube API like this:
window.getElementById("movie_player").playVideo();
But it only works with embedded versions. Also I've looked at Greasemonkey scripts but I can't get it to work.
Can someone please help me? Thanks
Kind reguards,
Mike
Thanks for reading! I would like to control a Youtube video by javascript on the Youtube website itself (not embedded). I know there is a Youtube API to control embedded video's but, its not working on the Youtube website it self.
If you wonder why I want this, its because I have a webbrowser control inside my C# application. When a user uses my application and visites the website Youtube I would like the user to be able to control the play/stop/pause from my application rather then the webbrowser flash.
I tried to use the Youtube API like this:
window.getElementById("movie_player").playVideo();
But it only works with embedded versions. Also I've looked at Greasemonkey scripts but I can't get it to work.
Can someone please help me? Thanks
Kind reguards,
Mike