

A warning, though: what follows is a little complicated, and might not be worth the. Through them we’ll be able to play and pause the video and also to skip forward and backwards. where the datepicker was throwing an error and could not be opened again. Net controls items generically (MenuStrip, ToolStrip, StatusStrip).

Now we need to create a function for the shortcuts to control the player. These 3 lines are necessary to setup the VLC library, the last one connect the videoView1 mediaPlayer to the mediaplayer of the library. These 3 variables we’ll store the size of the form1 and the videoView1 components, we’ll use them when we’ll comeback to the windowed mode from the fullscreen. This.KeyPreview = true this and this.KeyDown += new KeyEventHandler(ShortcutEvent) allow us to make the shortcuts. MediaPlayer = _mp Ĭore.Initialize() will initialize the VLC library. Location 7 //VLC stuffĨ _libVLC = new LibVLC () 9 _mp = new MediaPlayer ( _libVLC ) 10 videoView1. KeyDown += new KeyEventHandler ( ShortcutEvent ) 4 oldVideoSize = videoView1. hovers over the tool strip item if the ToolStrip.ShowItemToolTips. Now right click on the Form1 and choose “view code”.ġ Core. Events are raised by controls in response to changes in application conditions or user. Then add a new menu item, call it “Tools” and inside it add: Set a size that you like for the videoView, then from the “Proprieties” menu set it anchor from each side, this will autoimaticaly resize the videoView based on the form size.įrom the menuStrip add a File menu, then inside it add these options: In this one drag a “videoView” component from the toolbox, you can find it inside the “LibVLCSharp.WinForms” group, then drag a “menuStrip” component.

The first formīy opening a new project, visual studio will create a windows form. Once you’ve installed all this you can go on.
MENUSTRIP ITEM VISIBLE CANNOT BE CHANGED INSTALL
You need to install Visual Studio 2017(or later), and create a new “App Windows Form” project. Open any video files from the computer.Some features that we’re going to make are:
MENUSTRIP ITEM VISIBLE CANNOT BE CHANGED SOFTWARE
We’re going to make a software that plays video files from the computer or from internet, to do that we’re going to use “LibVLCSharp” that is a C# wrapper of the VideoLAN’s LibVLC Library.
