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
Development
General Development (no feature request here!)
Creating a playlist from a plugin
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="jameson_uk" data-source="post: 722407" data-attributes="member: 11220"><p>I think you need to specify the playlist you want to add the items to</p><p></p><p>You are obviously looking at video playlists but it should basically be the same as music</p><p></p><p>Try the AddItemsToPlaylist method in <a href="http://sources.team-mediaportal.com/websvn/filedetails.php?repname=MediaPortal&path=%2Ftrunk%2Fmediaportal%2FWindowPlugins%2FGUIMusic%2FGUIMusicBaseWindow.cs" target="_blank">WebSVN - MediaPortal - Rev 27491 - /trunk/mediaportal/WindowPlugins/GUIMusic/GUIMusicBaseWindow.cs</a></p><p></p><p>I think you just need to add</p><p>[code] playlistPlayer = PlayListPlayer.SingletonPlayer;</p><p>PlayList pl = playlistPlayer.GetPlaylist(PlayListType.Video);</p><p>playlistPlayer.CurrentPlaylistType = PlayListType.Video;[/code]</p><p></p><p>(I typed this manually so needs checking <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" />)</p></blockquote><p></p>
[QUOTE="jameson_uk, post: 722407, member: 11220"] I think you need to specify the playlist you want to add the items to You are obviously looking at video playlists but it should basically be the same as music Try the AddItemsToPlaylist method in [url=http://sources.team-mediaportal.com/websvn/filedetails.php?repname=MediaPortal&path=%2Ftrunk%2Fmediaportal%2FWindowPlugins%2FGUIMusic%2FGUIMusicBaseWindow.cs]WebSVN - MediaPortal - Rev 27491 - /trunk/mediaportal/WindowPlugins/GUIMusic/GUIMusicBaseWindow.cs[/url] I think you just need to add [code] playlistPlayer = PlayListPlayer.SingletonPlayer; PlayList pl = playlistPlayer.GetPlaylist(PlayListType.Video); playlistPlayer.CurrentPlaylistType = PlayListType.Video;[/code] (I typed this manually so needs checking ;)) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Creating a playlist from a plugin
Contact us
RSS
Top
Bottom