ZeBobo5 / Vlc.DotNet

.NET control that hosts the audio/video capabilities of the VLC libraries
MIT License
948 stars 416 forks source link

Overlaying Vlc.DotNet.Forms.VlcControl or other option #679

Open mbgerozaga opened 3 years ago

mbgerozaga commented 3 years ago

I have a question about Vlc.DotNet.

Generic information

Summary

How do you do an overlay with mouse over events? I'm using this to stream a camera with PTZ controls. PTZ controls will be controlled using overlays in the video(Vlc.DotNet.Forms.VlcControl).

I have done a previous project by integrating the overlays into the frames. Will using Vlc.DotNet.Forms.VlcControl be an appropriate approach?

jeremyVignelles commented 3 years ago

Put your controls over the video as you would normally do with WinForms. you may have to set IsMouseEnabled and IsKeyboardEnabled (not really sure about the name) to false

mbgerozaga commented 3 years ago

Is there a way to use the Paint event of the control to do the overlay instead of external controls?

jeremyVignelles commented 3 years ago

That probably won't work since the drawing is done by VLC which doesn't know about WinForms. Create your own control for that