muaz-khan / WebRTC-Experiment

WebRTC, WebRTC and WebRTC. Everything here is all about WebRTC!!
https://www.webrtc-experiment.com/
MIT License
11.72k stars 3.95k forks source link

HTML5 tag on the client and MP3 stream player #220

Open ghost opened 10 years ago

ghost commented 10 years ago

Oh, new questions! Is it possible to use a tag html5

Example: < audio >< source src="somelink" >< /audio >

somelink is the link generated by broadcast page!

muaz-khan commented 10 years ago

You can write native plugin for the browser otherwise you should always load a javascript snippet that can read the tag, setup connections and render remote stream in the tag.

Even if you're using shoutcast/licecast2 for listening radio stations, you need scripts that can PUT/GET data from nodejs.

However, I think it should be possible to write media stacks that can capture DTLS/SRTP packets and relay using HTTP-live streaming so that you can simply insert link in the audio tag and it should work.

P.S. I didn't myself try to transcode, mux and relay as live-http streaming yet. Also, I don't know any RTCWeb compatible working solution. You'll find many flash-based solutions, though.

ghost commented 10 years ago

@muaz-khan Which pieces of code I need to let the CLIENT* player working in internet explorer? is possible ?

*only the client, not the broadcasting