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
Improvement Suggestions
Generic Streaming Media Plugin or protocol system...
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="simex" data-source="post: 84569"><p><strong>Generic Streaming Music</strong></p><p></p><p>After having a look at the (to be honest, hackish) way that FTP is done in the MyMusic plugin, I thought I'd take the Music plugin, copy it, and heavily modify it to support URL Protocol handlers (which would be sub-plugins or process plugins (havn't decided)).</p><p></p><p></p><p>So there would be GSM (Generic Streaming Music - maybe add video at some later date...) and "protocol plugins" that would handle a particular protocol (eg. HTTP, FTP, FILE, DAAP, UPnP, etc.)</p><p>The GSM plugin would act very much like the existing music plugin except when you add a share (via the config) you would have to say what protocol it is first (which would be enumerated by the plugins - they would also provide a sub-window to allow configuration of the parameters eg. the FILE protocol plugin config would allow you to browse to a directory, the FTP might allow username and password, etc.</p><p>The share added to your playlist would then be a URI (eg <a href="http://server/e/example.mp3" target="_blank">http://server/e/example.mp3</a> or file://c:/music/example.mp3 or daap://server/0/184453 )</p><p></p><p>Once in MP, the GSM plugin would look very much like the MyMusic plugin - the only difference would be coming to browsing and playback.</p><p>If a plugin does not support directory enumeration (such as HTTP) then the share is played. If it does support directory enumeration (such as FILE or DAAP) then opening a share (that was not a specific file on the server) would call the protocol plugin and ask it to return a directory listing for the share.</p><p>When GSM is given a URI (for playback or directory enumeration) it looks at the protocol identifyer (the bit before the :// eg HTTP for <a href="http://server/e/example.mp3" target="_blank">http://server/e/example.mp3</a>) and using information that the protocol plugins provide, finds the protocol that can handle the request. It then asks the protocol to do something with it. The protocol then can return either a further directory (if the URI was a directory) or tell GSM that this is actually a file and it can give GSM a stream (or normal http URL) for playback of the file.</p><p></p><p>Do you all get it?</p><p>If you have any questions, please ask!</p><p></p><p>My hope is that eventually this will become the new music plugin because it is the more general case of the MyMusic plugin. Even if it does not become adopted I hope the music plugin developer makes the music plugin take URIs or allows browsing/playing of other protocols then http and files.</p><p></p><p></p><p>*work is looking for me, gotta run <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /> *</p><p></p><p></p><p>Simon</p><p><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="simex, post: 84569"] [b]Generic Streaming Music[/b] After having a look at the (to be honest, hackish) way that FTP is done in the MyMusic plugin, I thought I'd take the Music plugin, copy it, and heavily modify it to support URL Protocol handlers (which would be sub-plugins or process plugins (havn't decided)). So there would be GSM (Generic Streaming Music - maybe add video at some later date...) and "protocol plugins" that would handle a particular protocol (eg. HTTP, FTP, FILE, DAAP, UPnP, etc.) The GSM plugin would act very much like the existing music plugin except when you add a share (via the config) you would have to say what protocol it is first (which would be enumerated by the plugins - they would also provide a sub-window to allow configuration of the parameters eg. the FILE protocol plugin config would allow you to browse to a directory, the FTP might allow username and password, etc. The share added to your playlist would then be a URI (eg [url]http://server/e/example.mp3[/url] or file://c:/music/example.mp3 or daap://server/0/184453 ) Once in MP, the GSM plugin would look very much like the MyMusic plugin - the only difference would be coming to browsing and playback. If a plugin does not support directory enumeration (such as HTTP) then the share is played. If it does support directory enumeration (such as FILE or DAAP) then opening a share (that was not a specific file on the server) would call the protocol plugin and ask it to return a directory listing for the share. When GSM is given a URI (for playback or directory enumeration) it looks at the protocol identifyer (the bit before the :// eg HTTP for [url]http://server/e/example.mp3[/url]) and using information that the protocol plugins provide, finds the protocol that can handle the request. It then asks the protocol to do something with it. The protocol then can return either a further directory (if the URI was a directory) or tell GSM that this is actually a file and it can give GSM a stream (or normal http URL) for playback of the file. Do you all get it? If you have any questions, please ask! My hope is that eventually this will become the new music plugin because it is the more general case of the MyMusic plugin. Even if it does not become adopted I hope the music plugin developer makes the music plugin take URIs or allows browsing/playing of other protocols then http and files. *work is looking for me, gotta run ;) * Simon :-) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
Generic Streaming Media Plugin or protocol system...
Contact us
RSS
Top
Bottom