Jump to track in playlist
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
Jump to track in playlist

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media on Web
Author Message
nwr
Guest





Posted: Fri Nov 25, 2005 1:30 pm    Post subject: Jump to track in playlist Reply with quote

I'm using Javascript to control an embedded wm9 player running serverside
playlists from a wm Server 2003. Is it possible to use Javascript to start
playing a track that is not the first in the playlist without resorting to
calling the next track function multiple times.

thanks
Nigel

Back to top
Imran Qureshi
Guest





Posted: Fri Dec 02, 2005 1:30 am    Post subject: Re: Jump to track in playlist Reply with quote

the following code will do it if you pass in the index of the playlist entry
in the playlist. note this assumes the id of the Player control is
"Player".

function JumpToItem( index)
{
Player.controls.stop();

var media = Player.currentPlaylist.item(index);

Player.controls.playItem(media);

}


--
-imran

"nwr" <nwr@discussions.microsoft.com> wrote in message
news:F455BC91-2969-4C55-9DD9-4E8A767CB522@microsoft.com...
Quote:
I'm using Javascript to control an embedded wm9 player running serverside
playlists from a wm Server 2003. Is it possible to use Javascript to start
playing a track that is not the first in the playlist without resorting to
calling the next track function multiple times.

thanks
Nigel
Back to top
nwr
Guest





Posted: Fri Dec 30, 2005 1:30 pm    Post subject: Re: Jump to track in playlist Reply with quote

Hi Imran,

Thanks for responding on this. I should have mentioned I'm using server side
playlists which seems and the function only works woth client side lists. Any
ideas on how to jump to an item in a server side list greatly appreciated.

Thanks
Nigel

"Imran Qureshi" wrote:

Quote:
the following code will do it if you pass in the index of the playlist entry
in the playlist. note this assumes the id of the Player control is
"Player".

function JumpToItem( index)
{
Player.controls.stop();

var media = Player.currentPlaylist.item(index);

Player.controls.playItem(media);

}


--
-imran

"nwr" <nwr@discussions.microsoft.com> wrote in message
news:F455BC91-2969-4C55-9DD9-4E8A767CB522@microsoft.com...
I'm using Javascript to control an embedded wm9 player running serverside
playlists from a wm Server 2003. Is it possible to use Javascript to start
playing a track that is not the first in the playlist without resorting to
calling the next track function multiple times.

thanks
Nigel





Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media on Web All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB