Changing to another song from a 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
Changing to another song from a playlist

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





Posted: Thu Aug 04, 2005 6:59 am    Post subject: Changing to another song from a playlist Reply with quote

Hello, thanks for the useful reply to my earlier question.

Im outputting my playlist to the screen, and basically i want users to be
able to click on that and have the media player switch to that song within
the playlist.

function changeSong(i)
{
var a = mediaPlayer1.currentPlaylist.item(i).sourceURL;
mediaPlayer1.URL = a;
}

where "i" is the number of the song in the playlist.

Back to top
Neil Smith [MVP Digital M
Guest





Posted: Thu Aug 04, 2005 12:30 pm    Post subject: Re: Changing to another song from a playlist Reply with quote

On Wed, 3 Aug 2005 18:59:08 -0700, "SSilver2k2"
<SSilver2k2@discussions.microsoft.com> wrote:

Quote:
Hello, thanks for the useful reply to my earlier question.

You're welcome.

Quote:
Im outputting my playlist to the screen, and basically i want users to be
able to click on that and have the media player switch to that song within
the playlist.

Is there a question in here ? I can't see it if there is...

Quote:
function changeSong(i)
{
var a = mediaPlayer1.currentPlaylist.item(i).sourceURL;
mediaPlayer1.URL = a;
}

where "i" is the number of the song in the playlist.
Back to top
SSilver2k2
Guest





Posted: Thu Aug 04, 2005 4:30 pm    Post subject: Re: Changing to another song from a playlist Reply with quote

heh, sorry, the question is, i dont know how to. i dont think my cocde below
is right, since it doesnt work. maybe i need to use
mediaplayer1.currentPlaylist.count. im trying to make links that change to
different songs in the currently loaded playlist

"Neil Smith [MVP Digital Media]" wrote:

Quote:
On Wed, 3 Aug 2005 18:59:08 -0700, "SSilver2k2"
SSilver2k2@discussions.microsoft.com> wrote:

Hello, thanks for the useful reply to my earlier question.

You're welcome.

Im outputting my playlist to the screen, and basically i want users to be
able to click on that and have the media player switch to that song within
the playlist.

Is there a question in here ? I can't see it if there is...

function changeSong(i)
{
var a = mediaPlayer1.currentPlaylist.item(i).sourceURL;
mediaPlayer1.URL = a;
}

where "i" is the number of the song in the playlist.



Back to top
Neil Smith [MVP Digital M
Guest





Posted: Thu Aug 04, 2005 4:30 pm    Post subject: Re: Changing to another song from a playlist Reply with quote

On Thu, 4 Aug 2005 07:36:04 -0700, "SSilver2k2"
<SSilver2k2@discussions.microsoft.com> wrote:

Quote:
sourceURL

Shouldn't that be just URL ?

Cheers - Neil
Back to top
Jim Travis [ms]
Guest





Posted: Fri Aug 05, 2005 8:30 am    Post subject: Re: Changing to another song from a playlist Reply with quote

I think you want to use this:

http://msdn.microsoft.com/library/en-us/wmplay10/mmp_sdk/controlsplayitem.asp


--
Jim Travis
Microsoft Corp.
Windows Media Player SDK

Download:
http://msdn.microsoft.com/library/default.asp?url=/downloads/list/winmedia.asp

Latest online:
http://msdn.microsoft.com/library/en-us/wmplay10/mmp_sdk/windowsmediaplayer10sdk.asp

Please do not send email directly to this alias as this alias is for
newsgroup purposes only. This posting is provided "AS IS" with no
warranties, and confers no rights. You assume all risk for your use. © 2005
Microsoft Corporation. All rights reserved.

"SSilver2k2" <SSilver2k2@discussions.microsoft.com> wrote in message
news:448CA158-5AA4-43D4-9572-15D8B4A44AC3@microsoft.com...
Quote:
Hello, thanks for the useful reply to my earlier question.

Im outputting my playlist to the screen, and basically i want users to be
able to click on that and have the media player switch to that song within
the playlist.

function changeSong(i)
{
var a = mediaPlayer1.currentPlaylist.item(i).sourceURL;
mediaPlayer1.URL = a;
}

where "i" is the number of the song in the playlist.
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