home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Loading Current playlist, then Playing it
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="hbe02" data-source="post: 254575" data-attributes="member: 71499"><p>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:</p><p>[CODE]MediaPortal.Playlists.PlayList p = new MediaPortal.Playlists.PlayList();</p><p> p = MediaPortal.Playlists.PlayListPlayer.SingletonPlayer.GetPlaylist(MediaPortal.Playlists.PlayListType.PLAYLIST_MUSIC);</p><p> MediaPortal.Playlists.PlayListWPLIO wpl = new MediaPortal.Playlists.PlayListWPLIO();</p><p> wpl.Load(p, "myplaylist.wpl");</p><p> MediaPortal.Playlists.PlayListPlayer.SingletonPlayer.Init();</p><p> p.Shuffle();[/CODE]</p><p>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"</p><p></p><p>So far so good, now here is the problem. How do you play the "Current Playlist"? Ive tried:</p><p>[CODE]MediaPortal.Playlists.PlayListPlayer.SingletonPlayer.Play(1);[/CODE]</p><p>but that didnt work! no responce from MP because the playlist should already be playing when you say .Play(1).</p><p>I also tried:</p><p>[CODE]MediaPortal.Playlists.PlayListPlayer.SingletonPlayer.PlayNext();[/CODE]</p><p>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"</p><p></p><p>I guess thats as far as i can go on my own, for now..hehe...Any Help?</p></blockquote><p></p>
[QUOTE="hbe02, post: 254575, member: 71499"] 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: [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();[/CODE] 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: [CODE]MediaPortal.Playlists.PlayListPlayer.SingletonPlayer.Play(1);[/CODE] but that didnt work! no responce from MP because the playlist should already be playing when you say .Play(1). I also tried: [CODE]MediaPortal.Playlists.PlayListPlayer.SingletonPlayer.PlayNext();[/CODE] 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? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Loading Current playlist, then Playing it
Contact us
RSS
Top
Bottom