Notice: The only version that is being updated is the Visual Studio 2012 version. For all who thought they were downloading a video player and got a MP3 player instead, OOPs, SORRY. The rspPlayer is not what you thought. please download the middle link for the video player. Once again....Sorry!

2012 AVI Player

Intro to the 2012 version

The 2012 version looks similar to the VLC Media Player. You can scroll forward and back from 30 seconds to 5 minutes. It has fullscreen and a message to return to normal view while in fullscreen. It works really nice.

Stuff Needed to work!

You will need the Latest version DirectX SDK for .Net 3.5. Visual Studio 2012, VB.NET. The player use .NET Framework 3.5 to be compatible with the Microsoft.DirectX.AudioVideoPlayBack.dll library. The 2012 version now plays *.avi, *.flv, *.wmv, *.divX, *.xvid, *.mpeg, *.mpg as long as you have the codecs installed.

Introduction and Background

I started dabbling in DirectX a few months ago to play AVI files and in my searching, I came across Mike Gold's C# version which can be found here. This serves as an excellent starting point that you can build on. I converted his code to VB which took me a while to do. I could have used some conversion program or used the website that does this, but I decided to do this on my own. It's good practice.

After a few builds and a couple of updates I came up with the 2012 version. I used a panel to display the video in fullscreen. When you are in fullscreen mode, it is not really fullscreen mode. I set the panels height and width to the Screen.PrimaryScreen.WorkingArea.Height and the Screen.PrimaryScreen.WorkingArea.Width and set the toolbars( top and bottom ) visible property to "False". This imitates the fullscreen mode. I added a label to show to the user the hot keys to exit the fullscreen mode. The hot-key label is displayed by use of a timer at 2, 12, and 25 minute intervals. By right-clicking the fast_forward and rewind buttons, a context menu appears so you can skip forwards or backwards from 30 seconds to 5 minutes. I removed the volume and balance trackbars. I replaced the labels with a few new ones to display just the full length and the current time before and after the progress bar ( in pic above ). I kept the progressbar to handle the current video position. This just pertains to the VS 2012 version.

Added Save and OpenSavedFrom Subs via the Menustrip

The mnuFSave and mnuFOpenSavedFile Menu Click events were added in case you needed to leave in a hurry. All you have to do is press Pause, Press Save, Press Stop and close the app. When you return to the app, you can play from where you left off by pressing the mnuFOpenSavedFile menu item. Here is the code I used to do this...

Obstacles

I came across a few problems like getting the cursor to display while the video is playing, formatting the length in time to a label, formatting the current play time in a label, displaying the context menu in full-screen mode, and playing the video in the panel.

Let's start with getting the video to play in the panel. As I said earlier, I removed a lot of Mike's code and it just so happens that this was part of it. So here is my version of this:

The length of the file in MB size was quite simple to implement. I created a variable myFile and set it to FileInfo. I then initialized it to FileInfo(fName) which is declared in the top variables. I then created another variable named length and set it to myFile.Length. All that was left was to format it to MBs. Here's the code:

This program is not loaded with a lot of useless stuff. All it does is play AVI files, displays a few labels with some data, adjusts the volume, and balances or uses the Fullscreen and back to Normal views. That's it.

Screensaver control

I added Kurt Shultz' screensaver control, which can be viewed here on CodeProject. I changed the forms' look to accommodate my program. I also converted his C# code to VB. This took me quite a while. About 5 hours.

Updates

Added newly designed video player 09/24/2012

Added a save routine if you need to leave in a hurry. 04/06/2013

Added a OpenSaveFile() Sub when you want to resume playing. 04/06/2013

Here is a list of all updates that I performed on the player. Added menu checking, FastForward/Rewind, Kurts Shultz' screensaver control which takes care of the full-screen reverting back to Normal view. I also added an input box when you exit to check if the screensaver function was reactivated. Hope you enjoy this program.

The RCA female inputs are for plugging in a video cam or a DVD player or a VCR player that has video and audio out RCA jacks on them.

As for the coding part, I would write a message or letter to the company that made the card and ask them if there is any sample code for doing what you want todo. A lot of video cards will let you do what you want to code.

Sorry for such a late response. I am building a wood working shed for my wifes little projects she wants done and I 'm going to use it for practicing the bass again. I haven't played in 8 years. This is gonna be fun.

You cant boost the volume using the DxAudioVideoPlayback.dll file, Why?, because a lot of programmers think that the dll file is not a completed work and I think this also. I have switched over to using MCI (winmm.dll). Everybody has it on there computers and its a lot easier to work with. Here is a link for the player I created using MCI[^].

It is a MP3, wma, wav player. But you can get the basic Idea from this.

The program was created using Visual Studio 2012(VB.net 11) and .Net Framework 4.5. The MciWrapper.dll file that I created was also done in VS 2012 Pro Edition

I am creating a Video MciWrapper for a Video player using the same MCI dll file. If you would like a copy of it, just leave me a message here or email me.

What I meant by FF/RW was using your mouse and scroll the trackbar control.
You can add a couple of buttons and use the trackbar.smallchange event
inside a timer.tick event. I have created a new AudioVideoPlayer for
personal use, you can download it here

Hope this helps.

rspercy
If "You wash your feet and find a pair of socks " Then
"You ARE a Redneck"
End If

That sounds wierd. I have no problems with it. I can make an exe and publish it with no problems and it runs just fine. I did post a fix for one bug that I found, but that was just a math problem. I am currently working on the memory leakage problem that is always present when you use AudioVideoPlayback.dll and also doing a video search (FF and RW).
If you have Option Explicit ON, please turn it off, this could be the problem. Option Explicit does not allow conversions of particular types and I have those types in this program more than once.
Please let me know of the bugs and (type of) that you are having the problems with so I can post fixes for them. THNX for the Heads-Up on the bugs.

What files are missing and references. I had to remove the About box because of personal info was in it. As far as references, there was Microsoft.DirectX.AudioVideoPlayback which you will have to reference where you have it installed at.