
We will use Process class of System.Diagnostics namespace to launch an instance of mplayer to play files. Process object, Window handle control, Input and Output redirection. C++ examples that were found to control mplayer but it is more easy and reliable if we use VB.NET program.
#Mplayer net how to
There were no previous examples of how to use mplayer to play audio or video in VB.NET winform application. It can play audio or video file using several different output drivers. Mplayer is a command line audio & video player.

At first, we need mplayer.exe in our main application's start path.
#Mplayer net code
Downloaded source code is sample part of Veron Media Player 1.9.
#Mplayer net archive
Archive with bundled mplayer (~10 MB 7-zip file) is also hosted on github.This article will demonstrate how we can use mplayer to easily control in VB.NET WinForm application without using any COM/ActiveX control.

Path to mplayer should be put then in VideoPlayer.exe settings.
#Mplayer net windows
Note: mplayer for Windows has to be downloaded separately ( or e.g.


remembering last playlist selected on restart.delaying load of playlists until user switches to particular playlist.fixed issue with flickering at startup if multiple playlists are loaded.added function marking files that are possible duplicates - by size.'p' during playback: go to previous file (if position Ctrl+D: delete selected files (if stopped) or currently playing file.fluent fast forwarding - reading file length and current position.settings window: close with Esc, changed window position to main form center.Space pause/resume playback Enter stop playback O or mouse right button toggle OSD modes Esc quit F toggle fullscreen arrows seeking (left/right = -/+ 3s, top/down = -/+ 60s) mouse scroll volume control i show file name as OSD for 2 seconds N skip / play next file P go to start of the file / play previous file M minimize Downloads Application is controlled withĬontext menus associated with playlist tabs and file lists.ĭuring playback application has borderless, resizeable and draggable window and can be controlled by keyboard, mimicking mplayer itself but without console window.īasic key usage while playing (default configuration): When stopped this application presents playlist-oriented interface, somehow inspired by Foobar2000. This application is continuation of OperaVideoCachePlayer,īut it has removed Opera cache browser functionality (as Opera 12 is pretty much irrelevant now) and added some general purpose features. Making it easy to stop and resume playback when watching video series. Main feature is multiple playlists with last file and position inside last file saved for each playlist,
