![]() |
The action of WMP JS
[Web development] WMP-page general attributes and means
<object classid = width = / media location specified, the machine or network address wmp.uiMode: String; / / player interface mode for Full, Mini, None, Invisible wmp.playState: int; / / playback state, 1 = Stop,Supra Indy NS Shoes, 2 = pause,Women's Supra Vaider Shoes, 3 = play, 6 = Buffering, 9 = Connecting, 10 = prepared wmp.enableContextMenu: Boolean; / / enable / disable environment menu wmp.fullScreen: boolean; / / if full screen / / player common control wmp.controls.play; / / Play wmp.controls.pause; / / pause wmp.controls.stop; / / Stop wmp.controls.currentPosition: twice; / / current progress wmp.controls.currentPositionString: string; / / current progress, the string format. Such as . controls.previous; / / aboard a / / player accustom to set wmp.settings.volume: integer; / / volume ,0-100 wmp.settings.autoStart: Boolean; / / whether to automatically play wmp.settings.mute: Boolean; / / if apt mute wmp.settings.playCount: integer; / / Views wmp.settings.balance = -100; / / (left sound) wmp.settings.balance = 100; / / (the right sound) wmp.settings.poise = 0; / / (full sound) / / common current media properties wmp. currentMedia.duration: double; / / media total length wmp.currentMedia.durationString: string; / / medium aggregate length of the string format. Such for Artists / / ); / / property label set at the medium message wmp.currentMedia.name: string; / / with currentMedia.getItemInfo (. web.downloadProgress; / / download percentage extra comprehensive sheet parameter settings <object id= narrated references and explanations discern on! how to play a music list? idea: play a music list, you need to accomplish 2 purposes, 1 cycle,Supra Shoes UK, the second is to decide whether the current anthem has finished playing and merely the current anthem play only after achievement of cycle. to attain detection. var i = 0; playthis (firstmusic) / / real-time revelation, the interval time of 1 second d = setInterval (function shwotimer () { if (WMP.playState == 1) { if (i> = SoundArray.width) { ; / / When finished playing entire the empty circle clearInterval (d); ;} ; else { ; / / When the next player later playing the first playthis (url); } } } ,Supras, 1000); anyone other control needs, such as standstill,Kids' Supra TK Society, can set one personality, that namely currently suspended,Supra Muska Skytop Shoes, the afterward tread for the player, and vice versa var pauseflag = 0; function Command_Pause () ; { if (pauseflag == 0) ; WMP.controls.Pause (); else WMP.controls.play ( ); pauseflag = pauseflag == 1? 0:1; } |
All times are GMT. The time now is 07:03 AM. |
Powered by vBulletin Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Free Advertising Forums | Free Advertising Message Boards | Post Free Ads Forum