Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

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

Open
mbgerozaga opened this issue Jan 15, 2021 · 3 comments
Open

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

mbgerozaga opened this issue Jan 15, 2021 · 3 comments

Comments

@mbgerozaga
Copy link

I have a question about Vlc.DotNet.

Generic information

  • Vlc.DotNet version : 3.4.9.0
  • Vlc.DotNet project used : Winforms
  • libvlc version : x86 + official Website
  • .net version : 4.8
  • Project language : C#
  • Project build architecture : AnyCPU
  • Operating system : Windows 10 x64

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
Copy link
Collaborator

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
Copy link
Author

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

@jeremyVignelles
Copy link
Collaborator

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants