Play gstreamer RTP audio stream in browser

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Play gstreamer RTP audio stream in browser

Michael Smith-2
Hello,

I'm receiving a RTP audio stream that can use different codecs like OPUS, G711, G722, etc. I can play the received audio in my alsa interface, but I also want to play it in a browser web player. Does anybody have an idea of what is the best way of doing it? I'm streaming only an audio with RTP packets.

I tried the code in this link (https://stackoverflow.com/questions/22296991/playing-audio-stream-using-html5), but it only worked with this playbin: 

gst-launch-1.0 autoaudiosrc ! audioresample ! vorbisenc ! oggmux max-delay=50 max-page-delay=50 ! tcpserversink host=192.168.1.147 port=8080

Any tip will be very helpful,

Thanks


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Play gstreamer RTP audio stream in browser

vasconce1o
You can also use a WebRTC Gateway and feed it with a Gstreamer pipeline. For example: https://janus.conf.meetecho.com/ or https://www.kurento.org/. The last have a GStreamder WebRTC plugin.

2017-09-18 10:33 GMT-04:00 Michael Smith <[hidden email]>:
Hello,

I'm receiving a RTP audio stream that can use different codecs like OPUS, G711, G722, etc. I can play the received audio in my alsa interface, but I also want to play it in a browser web player. Does anybody have an idea of what is the best way of doing it? I'm streaming only an audio with RTP packets.

I tried the code in this link (https://stackoverflow.com/questions/22296991/playing-audio-stream-using-html5), but it only worked with this playbin: 

gst-launch-1.0 autoaudiosrc ! audioresample ! vorbisenc ! oggmux max-delay=50 max-page-delay=50 ! tcpserversink host=192.168.1.147 port=8080

Any tip will be very helpful,

Thanks


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel