开发者

What is the best way to make the Yahoo media player autostart, jQuery?

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..

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜