Python VLC MediaPlayer – Enabling Mouse Input Handling Last Updated : 25 Aug, 2021 Comments Improve Suggest changes Like Article Like Report In this article we will see how we can enable mouse input handling the MediaPlayer object in the python vlc module. VLC media player is a free and open-source portable cross-platform media player software and streaming media server developed by the VideoLAN project. MediPlyer object is the basic object in vlc module for playing the video. By input handling one can create event handler and can take mouse input to do actions. In order to do this we will use video_set_mouse_input method with the MediaPlayer objectSyntax : media_player.video_set_mouse_input(True)Argument : It takes bool as argumentReturn : It returns None Below is the implementation Python3 # importing vlc module import vlc # importing time module import time # creating vlc media player object media_player = vlc.MediaPlayer() # media object media = vlc.Media("death_note.mkv") # setting media to the media player media_player.set_media(media) # making mouse input enable media_player.video_set_mouse_input(True) # start playing video media_player.play() # wait so the video can be played for 5 seconds # irrespective for length of video time.sleep(5) Output : Another example Below is the implementation Python3 # importing vlc module import vlc # importing time module import time # creating vlc media player object media_player = vlc.MediaPlayer() # media object media = vlc.Media("1mp4.mkv") # setting media to the media player media_player.set_media(media) # making mouse input enable media_player.video_set_mouse_input(True) # start playing video media_player.play() # wait so the video can be played for 5 seconds # irrespective for length of video time.sleep(5) Output : Comment More infoAdvertise with us Next Article Python VLC MediaPlayer – Enabling Mouse Input Handling R rakshitarora Follow Improve Article Tags : Python Python vlc-library Practice Tags : python Similar Reads Python VLC MediaPlayer â Enabling Keyboard Input In this article, we will see how we can enable keyboard input handling the MediaPlayer object in the python vlc module. VLC media player is a free and open-source portable cross-platform media player software and streaming media server developed by the VideoLAN project. MediaPlayer object is the bas 2 min read Python VLC MediaPlayer - Checking if it can be paused In this article we will see how we can check if video is pausable in the MediaPlayer object in the python vlc module. VLC media player is a free and open-source portable cross-platform media player software and streaming media server developed by the VideoLAN project. MediPlyer object is the basic o 2 min read Python VLC MediaPlayer - Getting Size of it in Pixel In this article we will see how we can get the size of the MediaPlayer object in the python vlc module. VLC media player is a free and open-source portable cross-platform media player software and streaming media server developed by the VideoLAN project. MediPlyer object is the basic object in vlc m 2 min read Python VLC Instance - Creating MediaPlayer Instance In this article we will see how we can create a MediaPlayer instance from the Instance class in the python vlc module. VLC media player is a free and open-source portable cross-platform media player software and streaming media server developed by the VideoLAN project. Instance act as a main object 2 min read Python VLC MediaPlayer - Getting Event Manager object In this article we will see how we can get the event manager of the MediaPlayer object in the python vlc module. VLC media player is a free and open-source portable cross-platform media player software and streaming media server developed by the VideoLAN project. MediPlyer object is the basic object 2 min read Like