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
A Dummy takes a lot of help
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: 1011934" data-attributes="member: 48495"><p>We already have different kind of players that support either audio only or video. In your case a "audio only" directshow player would be best, I think.</p><p> </p><p>We did the same in the MediaSite plugin, so take a look there as reference:</p><ul> <li data-xf-list-type="ul">Created an own ResourceProvider (that is able to access streams)</li> <li data-xf-list-type="ul">Created a player that uses LAV splitter source</li> <li data-xf-list-type="ul">For playback we create a MediaItem using a MimeType that the player knows.</li> </ul><p><a href="https://github.com/VicDemented/MediaPortal-2/tree/FEAT_MediaSite/MediaPortal/Incubator/MediasitePlugin/ResourceProvider" target="_blank">https://github.com/VicDemented/MediaPortal-2/tree/FEAT_MediaSite/MediaPortal/Incubator/MediasitePlugin/ResourceProvider</a></p><p><a href="https://github.com/VicDemented/MediaPortal-2/blob/FEAT_MediaSite/MediaPortal/Incubator/MediasitePlugin/Models/MediasitePlugin.cs" target="_blank">https://github.com/VicDemented/MediaPortal-2/blob/FEAT_MediaSite/MediaPortal/Incubator/MediasitePlugin/Models/MediasitePlugin.cs</a> #355ff</p><p> </p><p>Generally spoken, the MediaSite plugin does in fact nearly the same and can guide you through the different classes.</p><p> </p><p>To the player: as we aim for "audio only", your player should derive from <a href="https://github.com/MediaPortal/MediaPortal-2/blob/master/MediaPortal/Source/UI/Players/VideoPlayer/BaseDXPlayer.cs" target="_blank">https://github.com/MediaPortal/MediaPortal-2/blob/master/MediaPortal/Source/UI/Players/VideoPlayer/BaseDXPlayer.cs</a>.</p><p> </p><p>An example is my "LiveRadioPlayer": <a href="https://github.com/MediaPortal/MediaPortal-2/blob/master/MediaPortal/Incubator/SlimTvClient/Player/LiveRadioPlayer.cs" target="_blank">https://github.com/MediaPortal/MediaPortal-2/blob/master/MediaPortal/Incubator/SlimTvClient/Player/LiveRadioPlayer.cs</a></p><p> </p><p>A note: if you copy classes from MediaSite, always check for defined Guids, you must replace them by your own (VS->Extras->Create Guid). Same is valid for PluginId, WorkflowStates i.e.</p></blockquote><p></p>
[QUOTE="morpheus_xx, post: 1011934, member: 48495"] We already have different kind of players that support either audio only or video. In your case a "audio only" directshow player would be best, I think. We did the same in the MediaSite plugin, so take a look there as reference: [LIST] [*]Created an own ResourceProvider (that is able to access streams) [*]Created a player that uses LAV splitter source [*]For playback we create a MediaItem using a MimeType that the player knows. [/LIST] [url]https://github.com/VicDemented/MediaPortal-2/tree/FEAT_MediaSite/MediaPortal/Incubator/MediasitePlugin/ResourceProvider[/url] [url]https://github.com/VicDemented/MediaPortal-2/blob/FEAT_MediaSite/MediaPortal/Incubator/MediasitePlugin/Models/MediasitePlugin.cs[/url] #355ff Generally spoken, the MediaSite plugin does in fact nearly the same and can guide you through the different classes. To the player: as we aim for "audio only", your player should derive from [url]https://github.com/MediaPortal/MediaPortal-2/blob/master/MediaPortal/Source/UI/Players/VideoPlayer/BaseDXPlayer.cs[/url]. An example is my "LiveRadioPlayer": [url]https://github.com/MediaPortal/MediaPortal-2/blob/master/MediaPortal/Incubator/SlimTvClient/Player/LiveRadioPlayer.cs[/url] A note: if you copy classes from MediaSite, always check for defined Guids, you must replace them by your own (VS->Extras->Create Guid). Same is valid for PluginId, WorkflowStates i.e. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
A Dummy takes a lot of help
Contact us
RSS
Top
Bottom