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

mouse event not working while playing video #107

Closed
jasver opened this issue Sep 24, 2015 · 18 comments
Closed

mouse event not working while playing video #107

jasver opened this issue Sep 24, 2015 · 18 comments

Comments

@jasver
Copy link

jasver commented Sep 24, 2015

VlcControl add on WinForm, There is no any mouse event fire while playing video

@sepehr1014
Copy link

You'll need to use: https://github.com/higankanshi/xZune.Vlc

@friman
Copy link

friman commented Oct 8, 2015

I notice that https://github.com/higankanshi/xZune.Vlc is only for wpf, no for WinForm. Any solution to this issue?

@AyraStark
Copy link

I have the same problem in a WinForm App .It seems that the released vlc lib has not throw the mouse event .You should modify the source code of vlc to make it response .

@paurail
Copy link

paurail commented Dec 4, 2016

+1

@krrrishh
Copy link

krrrishh commented May 18, 2017

Use this VLC control which i have created. It supports clicks, mouseclicks, mouse move, scroll etc and also it has auto cursor hide after 2 seconds just like how it does in actual VLC player. I am creating a video player with this VLC dot net, I will upload it soon. Cheers :)
VlcControlV2.zip

@jeremyVignelles
Copy link
Collaborator

Mouse events are automatically captured by the Vlc control. We probably could add a way to let events fall through by implementing libvlc_video_set_mouse_input

see https://github.com/videolan/vlc/blob/9dce7032797ed9ab54e46f944bb7f800bd69cee8/include/vlc/libvlc_media_player.h#L1098

@aap4ixx
Copy link

aap4ixx commented May 16, 2018

Hi,
Sorry for my inappropriate question,
Last update this issue have "28 Nov 2017". At this moment 16.05.2018.
Do you know ho fixing this issue or find a workaround?

@jeremyVignelles
Copy link
Collaborator

This still need to be implemented in Vlc.DotNet, either by me or by any volunteer.

As for a workaround, I suppose that you could show an invisible control on top of the Vlc control that would handle the right click. I agree, this is far from perfect.

@jeremyVignelles
Copy link
Collaborator

Help can be provided on gitter if you want to contribute to Vlc.DotNet

@aap4ixx
Copy link

aap4ixx commented May 18, 2018

Hi jeremyVignelles.
Sorry but i am very bad developer, and my english is also very bed.
But i found how to create "invisible control" and it is work. Link

@krrrishh
Copy link

krrrishh commented May 18, 2018

@jeremyVignelles
Copy link
Collaborator

jeremyVignelles commented May 18, 2018

@krrrishh : what is this? where does that come from? Your link is dead btw...

@krrrishh
Copy link

Hi @jeremyVignelles I have updated the link. This is a extended control which I created with hidden user control. It supports all mouse and key commands and also supports auto cursor hide during inactivity.

@aap4ixx
Copy link

aap4ixx commented May 18, 2018

Hi @krrrishh.
No i didn't use you code. Because i found normal code.
Thanks.

@semonpic
Copy link

@krrrishh I do use your control,but it don't work, Can you give us a full demo,thanks

@zandiarash
Copy link
Contributor

I've downloaded the new files but still mouse events doesn't work.
is it fixed for you ?

@jeremyVignelles
Copy link
Collaborator

Did you try the 3.0.0 prerelease?

@zandiarash
Copy link
Contributor

yes I use 3.0.0 prerelease,
according to dear @CrookedFingerGuy's guidence in this page
my mouse and keyboard event handlers are working right now.

 public Sample()
        {
            InitializeComponent();
            myVlcControl.Video.IsMouseInputEnabled = false;
            myVlcControl.Video.IsKeyInputEnabled = false;
        }

Thanks you all

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

No branches or pull requests

10 participants