ugg
2011年11月25日星期五
The operation of the WMP JS
[Web development] WMP-page common properties and methods
related references and explanations see above! how to play a music list? idea: play a music list, you need to achieve two purposes, first cycle,[url=http://www.inboots.in/]UGG Online[/url], the second is to determine whether the current song has finished playing and only the current song play only after completion of cycle. to achieve detection. var i = 0; playthis (firstmusic) / / real-time detection, the interval time of 1 second d = setInterval (function shwotimer () { if (WMP.playState == 1) { if (i> = SoundArray.length) { ; / / When finished playing all the empty cycle clearInterval (d); ;} ; else { ; / / when the next player after playing the first playthis (url); } } } , 1000); any other control needs, such as pause, you can set an identity, that is currently suspended, the next step to play, and vice versa var pauseflag = 0; function Command_Pause () ; { if (pauseflag == 0) { ; WMP.controls.Pause (); } else { WMP.controls.play ( ); } pauseflag = pauseflag == 1? 0:1; } Related articles:
http://uuggg.blogspot.com/2011/11/lot-kinds-of-new-moncler-clothing-are.html
没有评论:
发表评论
较新的博文
较早的博文
主页
订阅:
博文评论 (Atom)
没有评论:
发表评论