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
Mediasite Plugin For MediaPortal
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="morpheus_xx" data-source="post: 976653" data-attributes="member: 48495"><p>All MP2 players are working with so called MediaItems. A MediaItem can be created for file resources, or in our case for online streams.</p><p> </p><p>Playback of any MediaItem can be started with PlayItemsModel.PlayItem: <a href="https://github.com/MediaPortal/MediaPortal-2/blob/master/MediaPortal/Source/UI/UiComponents/Media/Models/PlayItemsModel.cs#L213" target="_blank">https://github.com/MediaPortal/MediaPortal-2/blob/master/MediaPortal/Source/UI/UiComponents/Media/Models/PlayItemsModel.cs#L213</a></p><p> </p><p>The creation of such a MediaItem is done by the MetadataExtractors (in case of file source) (see example in VideoBackgroundModel <a href="https://github.com/MediaPortal/MediaPortal-2/blob/master/MediaPortal/Incubator/BackgroundManager/Models/VideoBackgroundModel.cs#L131-L133" target="_blank">https://github.com/MediaPortal/MediaPortal-2/blob/master/MediaPortal/Incubator/BackgroundManager/Models/VideoBackgroundModel.cs#L131-L133</a>).</p><p> </p><p>For URL sources we need additionally a ResourceAccessor to load the stream. For the SlimTV (rtsp) part I have coded this already: <a href="https://github.com/MediaPortal/MediaPortal-2/blob/master/MediaPortal/Incubator/SlimTvInterfaces/ResourceProvider/SlimTvMediaItemBuilder.cs#L62" target="_blank">https://github.com/MediaPortal/MediaPortal-2/blob/master/MediaPortal/Incubator/SlimTvInterfaces/ResourceProvider/SlimTvMediaItemBuilder.cs#L62</a> (this solution is bound to TsReader.ax and RTSP sources only, including some special logic for PiP handling, so not generic enough).</p><p> </p><p>@<a href="https://forum.team-mediaportal.com/members/offbyone.73415/" target="_blank">offbyone</a>, can you post a link to your solution in OnlineVideos? I think a generic URL source player (and ResourceAccessor) could be good to have in standard MP2 configuration.</p><p> </p><p>@<a href="https://forum.team-mediaportal.com/members/vic-demented.137971/" target="_blank">Vic Demented</a> if you get a valid url source, tell me and I will look into possibilities how to start playback.</p><p> </p><p>Another question: what is the "master" of the playback? The video stream and its playback position? Or the Slides and their timecode? Or both can control each other?</p></blockquote><p></p>
[QUOTE="morpheus_xx, post: 976653, member: 48495"] All MP2 players are working with so called MediaItems. A MediaItem can be created for file resources, or in our case for online streams. Playback of any MediaItem can be started with PlayItemsModel.PlayItem: [url]https://github.com/MediaPortal/MediaPortal-2/blob/master/MediaPortal/Source/UI/UiComponents/Media/Models/PlayItemsModel.cs#L213[/url] The creation of such a MediaItem is done by the MetadataExtractors (in case of file source) (see example in VideoBackgroundModel [url]https://github.com/MediaPortal/MediaPortal-2/blob/master/MediaPortal/Incubator/BackgroundManager/Models/VideoBackgroundModel.cs#L131-L133[/url]). For URL sources we need additionally a ResourceAccessor to load the stream. For the SlimTV (rtsp) part I have coded this already: [url]https://github.com/MediaPortal/MediaPortal-2/blob/master/MediaPortal/Incubator/SlimTvInterfaces/ResourceProvider/SlimTvMediaItemBuilder.cs#L62[/url] (this solution is bound to TsReader.ax and RTSP sources only, including some special logic for PiP handling, so not generic enough). @[URL='https://forum.team-mediaportal.com/members/offbyone.73415/']offbyone[/URL], can you post a link to your solution in OnlineVideos? I think a generic URL source player (and ResourceAccessor) could be good to have in standard MP2 configuration. @[URL='https://forum.team-mediaportal.com/members/vic-demented.137971/']Vic Demented[/URL] if you get a valid url source, tell me and I will look into possibilities how to start playback. Another question: what is the "master" of the playback? The video stream and its playback position? Or the Slides and their timecode? Or both can control each other? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Mediasite Plugin For MediaPortal
Contact us
RSS
Top
Bottom