views:

77

answers:

1

Yahoo has a mediaplayer to play media on a webpage:

http://mediaplayer.yahoo.com/

but there is no option to make it auto start.

What is the best way to make it autostart, by hacking into the code, or it can also be using jQuery to "click" on one of the media to auto start it, although, how do you know the Yahoo code has finish initializing? We can use a setTimeout(function() { // click first one }, 3000) but it seems too much of a hack.

+2  A: 

There is an option for this.
Plz check at this page http://mediaplayer.yahoo.com/api/#example_usage
If u set autoplay:true, the first song will be started automatically..

Kai
Reading the API always helps ^^
Thqr
wow... how do you get to that page? I looked at the original page many times without seeing a link to this page.
動靜能量
@Jian Lin Mark the Answer correct as it clearly is. This is how SO works.
Thqr
Is Kai the same as Ozaki? You know sometimes in life, when you push, people will not want to do what you push for, because it may be action = reaction, like Newton's 3rd law.
動靜能量
@Jian Lin, HEYYY !!! What does "Is Kai the same as Ozaki?" mean..? r u insulting me???? I do NOT know who Ozaki and you are !!!!
Kai