jucrouzet / icecast.js

Pure JavaScript Icecast-based Webradio player.
MIT License
15 stars 3 forks source link

Documentation greatly appreciated... #2

Open amavarick opened 7 years ago

amavarick commented 7 years ago

The instructions state

Just include the .js file and set your Icecast stream url in the src attribute of your

Which js to include? What are the minimum files necessary for player install on webserver? How do you annotate

Thank you so much for your time!

jucrouzet commented 7 years ago

Sorry, this project is still a WIP, it's not really ready for publishing ...

I think I'll finish it by March or April ... If you want I'll keep this Issue open to ping you when it's ready

amavarick commented 7 years ago

Sounds great, thank you! Please do not overlook that people can have TLS encrypted websites AND TLS encrypted streams. So please use relative links instead of static AND ensure that your capture of metadata and music stream use the proper protocol.

Example, the following URLs are for the same Icecast stream:

http://stream.baptistradio.net:8005/music_autodj

https://stream.baptistradio.net:8006/music_autodjhttps://stream.baptistradio.net:8006/music_autodjhttp://stream.baptistradio.net:8005/music_autodj.m3u

https://stream.baptistradio.net:8006/music_autodjhttp://stream.baptistradio.net:8005/music_autodj.m3u

If you are capturing metadata on icecast, remember that the commands will be slightly different. for https it would be fsockopen('ssl:// whereas http would just be an fopen. Also for icecast the destination files are different based on the version... status.xsl or status-json.xsl.

The best solution is to parse the stream rather than fopen or fsockopen an xsl file.

Thank you so much for your time...


From: Julien CROUZET notifications@github.com Sent: Saturday, January 7, 2017 3:46 PM To: jucrouzet/icecast.js Cc: amavarick; Author Subject: Re: [jucrouzet/icecast.js] Documentation greatly appreciated... (#2)

Sorry, this project is still a WIP, it's not really ready for publishing ...

I think I'll finish it by March or April ... If you want I'll keep this Issue open to ping you when it's ready

- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jucrouzet/icecast.js/issues/2#issuecomment-271109089, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AT8yMCgLAJKDgNj4PmFtwMH5Vz4CxvSNks5rP_m5gaJpZM4LdhGv.

jucrouzet commented 7 years ago

I'm grabbing the metadata from the stream directly (Icy-MetaData) :

For older browsers (No FetchAPI or no MediaSource Extensions), an (invisible) Flash fallback will be provided.

hamav8tor commented 7 years ago

How does one display the metadata?

cgrozev commented 6 years ago

Hi Julien. Are you still working on this project? Is there a prototype implementation that I could experiment with? Extremely interested in this solution.

jucrouzet commented 6 years ago

Hi @cgrozev, no it's pending on https://github.com/xiph/Icecast-Server/pull/6 As soon as the new version of Icecast with CORS support is released, I'll publish a beta.

jduffas commented 4 years ago

Hello, I found finally the .js file and included it in my test page, but how to display metadata ? thank you.