![]() Registered Member ![]()
|
Hi Folks,
I'm wondering how the Amarok system identifies the content of a content-stream. Reason: I had writte a long time ago a web-based-mp3 streamer using PHP. Now - using WinAmp, iTunes etc. I can listen to my music from my website fine - however, as Amarok is my preferred player, I'd like to use that one. The way the data is passed to the application is as follow: The php-header function sends out informations on the type of the data that is submitted: M3u-List: Content-Type: audio/x-mpegurl Content-Disposition: filename=\"$m3u_Name\" Mp3-stream: Content-Type: video/x-mp3 Content-Disposition: filename=\"$display_name\" Content-Length $file_size Anyone dare explaining me what I'm doing wrong in this specific case ? I also tried sending the file as audio/x-mpegurl, audio/x-mp3 etc. but it didn't work. Here the error-message of Amarok: Error Loading Media No suitable demux plugin. This often means that the file format is not supported. http://stargate.solsys.org/mod.php?mod= ... VyZV9Eb21l Seems the other programs try to look inside the stream to identify what comes through... Any hints ? Thx. |
![]() KDE Developer ![]()
|
Currently, Amarok can only identify playlists by file extension. So it needs to be *.m3u
--
Mark Kretschmann - Amarok Developer |
![]() Registered Member ![]()
|
Hmmm. The playlist actually seems to work - but not the content ... You mean - I have to make sure all files will be displayed as: http://blabla.org/mp3/file.mp3 ? I think that identifying files using the header-information sent by the remote-system would make it easier for recognition - as the system would only need to check for the file-type. If it doesn't work out to, give an error back. I actually don't want to give the system a file-url directly - as the files are not located on the web-server's Document root - so I have to swipe them through the web-sever anyway ... and manipulating the output to append an mp3 at the end would be an option IMHO - but not very elegant... I'll give it a try - if I happen to have time for it... |
![]() KDE Developer ![]()
|
Are you aware of the m3u format? What you've pasted does not look like m3u.
See here: http://hanna.pyxidis.org/tech/m3u.html
--
Mark Kretschmann - Amarok Developer |
![]() Registered Member ![]()
|
You're right on that. Thx for the link. When I wrote this software 6 years ago - I took an example m3u from Winamp as reference - and it worked. probably the reason why it still works with Winamp. I'll Adapt the format and will check it out. I'll let you know if it works. Thanks for the pointer. |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]