BasicVLC is an video player sample with added needed controls that are neccessary in any player. It is an sample of VLC.Dotnet (Wonderfull project). It is specially developed for developers with comments but windows users can also use it to test using releases. BasicVLC uses VLC.Dotnet that is wrapper around Libvlc (Library provided by Videolan ~ THANKS)
git clone https://github.com/graysuit/BasicVLC.git
Don't need to code,
Don't build anything,
We already build it for you,
Just test and try it now.
windows binaries
- form1_shown Plays video from CommandLineArgs (Can be associate videos with player)
- VlcControl1_VlcLibDirectoryNeeded Generate logs LibVlcLogs.log and set libvlc dir
- form1_load refresh volume status
- pictureBox2_Click is playbutton
- PlayNow() plays video according to situation
- TrackBar3_Scroll is for changing volume status
- VlcControl1_EndReached sets relaod image in play button and progressbar value to maximum
- PictureBox6_Click for Fullscreen/normal screen
- Fullscreen() for Fullscreen/normal screen
- PlayFile(filename) plays from both URL and filename
- VlcControl1_Playing with set total ms of video in label2 after seekbar
- PictureBox7_Click will stop and dispose video
- ChangeProgress(),ProgressBar1_MouseMove,ProgressBar1_MouseDown changes progress using mouse moves
- timer1_Tick sets current video time status in Label1 after every 1 second
- timer2_Tick will run in fullscreen mode,used for hiding controls and cursor after 3 seconds no activity
- VlcControl1_DoubleClick to fullscreen
- VlcControl1_Click to pause,play,reload
- VlcControl1_SizeChanged for setting aspect ratio,Good for removing Blackshadow around sides
- pictureBox8_Click to mute/unmute video
- OpenToolStripMenuItem1_Click for opeing file path and play
- StreamToolStripMenuItem_Click for opeing stream and play
- AboutToolStripMenuItem1_Click for opeing about form2
- ExitToolStripMenuItem1_Click for exiting
- VlcControl1_DragDrop for playing dragged video
- VlcControl1_DragEnter for preparing DragDrop event
- User32Interop.GetLastInput() returns time of last mouse/keyboard move