Hi, as title says I'm trying to play some track by her ID or playlist number. For now I have just found a method play into SDBPlayer class but with that method I can't choose which track will be played.
Any solution for this?
How to play track by ID or playlist number?
Moderators: Gurus, Addon Administrators
Re: How to play track by ID or playlist number?
I manage to play track using playlist number by moving track next to currently playing track then playing next track and after that returning track to her previous position BUT this works only when shuffle is off.
New question!
How to turn on/off shuffle?
For now I just now how to check if shuffle is on/off but don't now how to change that status.
New question!
How to turn on/off shuffle?
For now I just now how to check if shuffle is on/off but don't now how to change that status.
Re: How to play track by ID or playlist number?
Assuming you're looking at the state usingkacso wrote:How to turn on/off shuffle?
For now I just now how to check if shuffle is on/off but don't now how to change that status.
Code: Select all
var shuffling = SDB.Player.isShuffle
Code: Select all
SDB.Player.isShuffle = 0
Re: How to play track by ID or playlist number?
Ok Not sure that I understand.
1. are you adding track to Now Playing and would like to start it automatically or ?
2. Can you give example where you use and need TrackID?
1. are you adding track to Now Playing and would like to start it automatically or ?
2. Can you give example where you use and need TrackID?
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
How to attach PICTURE/SCREENSHOTS to forum posts
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
How to attach PICTURE/SCREENSHOTS to forum posts
Re: How to play track by ID or playlist number?
@mcow
I already done that but thanks anyway...
@Peke
Well, I'm searching for some track (by track title, artist name etc.) that is in Now Playing and need to play that track and that track must finally be on the same position in Now Playing as it was before. When user get results of search he select track from list and press "Enter". From there I can get SongID and after that I can find playlist number, so for now I moving track from previous position to position right after currently playing track, then turn off shuffle (if is on) and play next track. After that I move track back to previous position.
EDIT: I now done this using: SDB.Player.CurrentSongIndex = songIndex
I already done that but thanks anyway...
@Peke
Well, I'm searching for some track (by track title, artist name etc.) that is in Now Playing and need to play that track and that track must finally be on the same position in Now Playing as it was before. When user get results of search he select track from list and press "Enter". From there I can get SongID and after that I can find playlist number, so for now I moving track from previous position to position right after currently playing track, then turn off shuffle (if is on) and play next track. After that I move track back to previous position.
EDIT: I now done this using: SDB.Player.CurrentSongIndex = songIndex
Re: How to play track by ID or playlist number?
That confused me as SDB.Player.CurrentSongIndex is the right way, also it should set next song or at least you will be able to use that to set correct index on OnPlay event.
Think that ZvezdanD Queue script have similar example.
Think that ZvezdanD Queue script have similar example.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
How to attach PICTURE/SCREENSHOTS to forum posts
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
How to attach PICTURE/SCREENSHOTS to forum posts