Hi all, So ive been struggling lately with playing playlists. Ive had some programming issues which turned out to be actually a mis-installed MP. Anyways, my goal is to play a playlist file (.wpl) so i figured out how to load the (.wpl) playlist into the "Current playlist" and this is done as follows:
It is very important to note that if you just say g_player.Play("playlist.wpl") it will play it, but as 1 object, MP will not load any items and you wont be able to click"Next"
So far so good, now here is the problem. How do you play the "Current Playlist"? Ive tried:
but that didnt work! no responce from MP because the playlist should already be playing when you say .Play(1).
I also tried:
and that didnt work either. Now what I concluded from a little experimenting is that you need to move the "Current Playlist" to "Now Playing" and then play, or at least play one track from the "Current Playlist"
I guess thats as far as i can go on my own, for now..hehe...Any Help?
Code:
MediaPortal.Playlists.PlayList p = new MediaPortal.Playlists.PlayList();
p = MediaPortal.Playlists.PlayListPlayer.SingletonPlayer.GetPlaylist(MediaPortal.Playlists.PlayListType.PLAYLIST_MUSIC);
MediaPortal.Playlists.PlayListWPLIO wpl = new MediaPortal.Playlists.PlayListWPLIO();
wpl.Load(p, "myplaylist.wpl");
MediaPortal.Playlists.PlayListPlayer.SingletonPlayer.Init();
p.Shuffle();
So far so good, now here is the problem. How do you play the "Current Playlist"? Ive tried:
Code:
MediaPortal.Playlists.PlayListPlayer.SingletonPlayer.Play(1);
I also tried:
Code:
MediaPortal.Playlists.PlayListPlayer.SingletonPlayer.PlayNext();
I guess thats as far as i can go on my own, for now..hehe...Any Help?