Yahoo has a mediaplayer to play media on a web page:
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 开发者_如何学Goa setTimeout(function() { // click first one }, 3000)
but it seems too much of a hack.
There is an option for this.
Please check at this page http://mediaplayer.yahoo.com/api/#example_usage
If you set autoplay:true
, the first song will be started automatically..
精彩评论