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 2
Plugin Development
Get MediaItem object from a MediaItemId (Guid)
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="Albert" data-source="post: 821119" data-attributes="member: 67886"><p><strong>AW: Get MediaItem object from a MediaItemId (Guid)</strong></p><p></p><p>Cool, a UPnP/AV MediaServer! <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>Ok, to achieve that, you can call the method I said above: <em>IList<MediaItem> IMediaLibrary.LoadCustomPlaylist(IList<Guid> mediaItemIds, IEnumerable<Guid> necessaryMIATypes, IEnumerable<Guid> optionalMIATypes)</em>. It would also be possible to write an extra method for that in the MediaLibrary, something like <em>MediaItem IMediaLibrary.LoadMediaItem(Guid mediaItemId, IEnumerable<Guid> necessaryMIATypes, IEnumerable<Guid> optionalMIATypes)</em>. We can decide that later, when you're finished. Until you're finished, you can use the LoadCustomPlaylist method. You could also write an extension method for the MediaLibrary with the new signature and we replace it later with the final method.</p></blockquote><p></p>
[QUOTE="Albert, post: 821119, member: 67886"] [b]AW: Get MediaItem object from a MediaItemId (Guid)[/b] Cool, a UPnP/AV MediaServer! :-) Ok, to achieve that, you can call the method I said above: [I]IList<MediaItem> IMediaLibrary.LoadCustomPlaylist(IList<Guid> mediaItemIds, IEnumerable<Guid> necessaryMIATypes, IEnumerable<Guid> optionalMIATypes)[/I]. It would also be possible to write an extra method for that in the MediaLibrary, something like [I]MediaItem IMediaLibrary.LoadMediaItem(Guid mediaItemId, IEnumerable<Guid> necessaryMIATypes, IEnumerable<Guid> optionalMIATypes)[/I]. We can decide that later, when you're finished. Until you're finished, you can use the LoadCustomPlaylist method. You could also write an extension method for the MediaLibrary with the new signature and we replace it later with the final method. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Get MediaItem object from a MediaItemId (Guid)
Contact us
RSS
Top
Bottom