Project

General

Profile

Live video streaming with WMediaPlayer

Added by Karl B. almost 7 years ago

Hi,

I read several years-old messages on the forum related to this topic, and I wonder if there were any improvements on this part since then.

Is it possible to use WMediaPlayer or WVideo to display some kind of live stream? I'm very interested in this capability.

Can anyone share details on how one should proceed to accomplish this?

Let's discuss a more concrete example: imagine audio+video are being streamed via RTP on the command-line (with GStreamer), can any Wt widgets connect to it and display the stream?

If there is no easy way to do it, what would be the hardest way?

By the way, here is how you could broadcast an RTP stream with GStreamer:

gst-launch-1.0 -v uridecodebin name=uridec uri=file:///C:\\video.mp4 ! videoconvert ! x264enc noise-reduction=10000 tune=zerolatency byte-stream=true threads=4 key-int-max=15 intra-refresh=true ! mpegtsmux alignment=7 name=mux ! rtpmp2tpay ! queue ! udpsink host=127.0.0.1 port=5000 sync=true uridec. ! audioconvert ! voaacenc ! audio/mpeg ! queue ! mux.

And receive the RTP stream:

gst-launch-1.0 -v udpsrc port=5000 ! tsparse ! decodebin name=dec ! videoconvert ! autovideosink sync=true dec. ! queue ! audioconvert ! audioresample ! autoaudiosink sync=true

Or even receive the stream on VLC:

vlc rtp://@:5000


Replies (4)

RE: Live video streaming with WMediaPlayer - Added by Wim Dumon almost 7 years ago

Karl,

To my knowledge browsers are still largely lacking the capability to stream live video (like RTP streams). With WebRTC, this is probably possible, but Wt doesn't have specific support for this. If you could point us to a technology stack that can provide the video input required for webRTC, I'd be interested to take a look at it on how we can integrate it in Wt.

Best regards,

Wim.

RE: Live video streaming with WMediaPlayer - Added by Karl B. almost 7 years ago

Thanks! It would be a major leap for Wt to support streaming videos. I'm evaluating a solution that involves GStreamer and WebRTC.

I'll let you know how things turn out.

By the way, I would love to see some good looking UI's designed with Wt. Is there any place we can find screenshots of such things?

Cheers,

Karl.

RE: Live video streaming with WMediaPlayer - Added by Mark Petryk almost 7 years ago

Karl, here are some sample UI's:

Wt has a 'widget gallery' where you can see what the widgets look like and interact with them:

https://www.webtoolkit.eu/widgets

I have some sample screens I've put here:

https://static.lorimarksolutions.com/wtx/sampleui.html

RE: Live video streaming with WMediaPlayer - Added by Karl B. almost 7 years ago

That's pretty cool, thanks!

    (1-4/4)