[Gambas-user] Mediaview control

Steve simonlebon54 at yahoo.com
Thu Jun 16 23:03:52 CEST 2022


Currently the media view control is what's being used to see the camera. I located the media control but no idea how to link the two or change to use the media control to display the camera. Or perhaps I just asked the wrong question.

Thanks for helping


Le 16/06/2022 ? 22:17, Steve via User a ?crit?:

Hopefully this is a simple question. I am using mediaview control to 
watch an IP camera. Is there an easy way to save still shots and or 
video from that control?


It's one hundred lines of code in C to do that. Hopefully, I have 
already done it for you. :-)

Use the 'MediaControl.LastImage' property to retrieve the last image 
generated by the GStreamer control.

The code is for "video" media controls. I didn't tested for other 
control that generate images. I think it will work too.

If you want to save the video, I think you have to link controls to do 
that (it's the GStreamer's goal after all), but I didn't do it for you!

Regards,

-- 
Beno?t Minisini.

⁣Get TypeApp for Android ​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220616/2d5379a2/attachment.htm>


More information about the User mailing list