Play Video In DirectX (WPF)?

Apr 9, 2011

I have a WPF 4/ project, and I'm trying to play video in it. I've been using a mediaelement, much to the chagrin of the program's overall performance. Thus, I'm looking into the only other viable alternative that I can find for my project...directx.

Which brings me to my question. Is it possible to play video (either Theora [.ogv] or Flash Video [.flv]) in DirectX?


Using The DirectX 11 SDK, Load A Video (with Sound) And Play It?

Nov 2, 2010

I am having problems locating any documentation or examples for rendering video on a form using DirectX. I need to use DirectX because I will be putting overlay's on the video loaded dynamically. I will also want to perform transitions between 2 video instances.

I can not find any documentation on Google or Microsoft's site, Such as render the video on a 3d object as a texture, maybe... IDK?

This is for Visual Studio 2010, .net framework 4.0, using

View 1 Replies View Related

It Open A Bunch Of Tabs That All Go To A Link With A Video, And Then Have It Automatically Play That Video?

Jul 7, 2009

I was wondering if it was possible to have a program open Firefox, and have it open a bunch of tabs that all go to a link with a video, and then have it automatically play that video?

View 4 Replies View Related

Playing Video Using DirectX ?

Sep 18, 2009

I have scoured just about every code sample on the web, and am still having trouble. Basically my code follows the following structure:

I installed the DirectX SDK, and imported AudioVideoPlayback Imports Microsoft.Directx.AudioVideoPlayback '''

Then I create my VideoPlayer Public WithEvents VideoPlayer as Video So far so good, I have event handlers and a video object



I execute the above subroutine and the video plays flawlessly


The above code works perfectly as well

Then I try to execute the PlayVideo sub to play another file and I get a generic "Object reference not set to an instance of an object" error, that does not point to any particular line of code.  It took me forever to find out exactly what line of code was causing this.  So I came up with a workaround:

In the PlayVideo sub I changed the code to this


And there it is, the second video played without error.  but then I noticed something, after the second video ended the .Ending event handler did not fire, actually all the event handlers basically died. So someone told me to use a timer to monitor when the video ends, and I basically laughed it off since we know that's an amateur move. After being frustrated for a while, I caved in and used the timer to do my dirty work, which I really don't like.

Now there's another problem, after I play a video in my project, DirectX is not screwed up for other programs until I restart my computer.  Particularly I have a visualization plugin for Windows Media Player called Gforce.  After I play a video, Gforce will not work, it gives me an "Error=18" which means that my computer does not have sufficient hardware to use it.  The only way to be able to clear it up is to restart my computer.

Here are my specs:
Intel 3.0ghz Dual Core processor
Nvidia Geforce 9800GT with 1GB ram
4 GM Ram
Windows 7 64-bit version (build 7100)
Programming in Visual Studio 2008 Professional (using Visual Basic code)

I originally attempted to use the AxWindowsMediaPlayer control, but I am unable to.  According to Microsoft there is a bug that prevents me from using it.  When I pull up the choose items dialog box it does not show up, if I browse to wmp.dll to manually add it, I get an error ("self-registration for c:windowssystem32wmp.dll failed").  I also read that you should try to add the wmp.ocx instead of wmp.dll, but I am at a loss on this since I am pretty sure that file does not exist.  I am trying to put together a new media player program for my theater pc and this video thing is putting me to a standstill.  I am a highly experienced vb programmer (over 20 years), but I am not very experienced in DirectX.  I have read a lot of code samples on video playback but they all give me tons of problems, so I hate to say it but i think that most of these samples were written by people who don't know what they are doing.

View 2 Replies View Related

Make Audio / Video Player Using DirectX

Sep 16, 2009

i need Help to make Audio or Video Player With Using DirectX. how many Different b/w DirectX and Windows Media Player???

View 8 Replies View Related

Can Play A SWF Video But Not A Flash Video?

Jan 23, 2008

can play a SWF video but not a Flash Video?

View 14 Replies View Related

Play Video With MCI

Dec 8, 2009

does someone knows how to play video like avi files with the MCI in specific form in .net.
i want to play the video in my win form application in specific form for example open form called f_Video and play the avi file in that form

View 2 Replies View Related

How To Play Video Clip

Jan 26, 2010

i just wanna ask how to play a video clip using .net

View 2 Replies View Related

Play A Video With Controls?

May 1, 2009

I have played .swf file in VB.Net using Shockwave Flash Object. But i need it with controls(mute,volume control.. )

I tried with using Windows MediaPlayer, i can play only .mp3 cannot play .swf or .avi..

View 2 Replies View Related

Play Video In Vlc Player?

Nov 1, 2010

how to start a video on vlc player embedded in a form?I add the VideoLAN VLC ActiveX Plugin v1 and v2 to toolbox, and place both to my form.What is the code to start a video playing on VLC embedded to forms?

View 2 Replies View Related

Play Video On VB 6 But No Success

Feb 1, 2011

I'm trying to play video on Visual Basic 6 but no success.

View 2 Replies View Related

Randomly Play A Video Cli?

Jun 11, 2010

I want to randomly play a video clip "possible different format" on a continues loop. Can I get how long the video will run or when the video has finished so the program knows when to select the next video.

View 4 Replies View Related

Specifying Which Monitor For Video To Play On?

Jan 14, 2010

I have an application I am working on and have a projector connected and working as the second monitor.I would like to setup my application to play, in fullscreen mode (using Windows Media Player) on the second monitor.I would like the application to then close WMP after the end of the one minute video clip? I am using Visual Basic 2008.

View 1 Replies View Related

.net - Play Video From A Byte Array?

Sep 24, 2011

I am using visual basic .NET and I want to play a video from a byte array that I have, but without saving it first at the disk. Directly from that array. I tried the directshow lib for a while but didn't managed to find a way to play it. WMP didn't worked either.

View 1 Replies View Related

Forms :: Play A Video On Form?

Nov 2, 2009

Does anyone know how to play a video on a windows form in a window like using a picturebox with a JPG?

View 4 Replies View Related

How Do I Play Audio/video Files

Apr 10, 2009

How do I play audio/video files in VB.NET?

remember to mark the replies as answers.

View 1 Replies View Related

Interface And Graphics :: Play Video In VB

Jan 18, 2010

Anybody have some resources on how to play video in Visual Basic. net

View 1 Replies View Related

Pause While One Video Is Playing, And Later Play A Second One?

Mar 18, 2011

I'm playing videos in a form with an embedded media player, I want to play one, and later another one, how I can programm a pause for the first video to play, and later to play a second one. system.thread seems is not the solution for me.

View 4 Replies View Related

Play A Video As A Splash Screen?

May 10, 2011

I have a splash screen set as Form9. When Form9 loads, I want it to play a video automatically. I have the video in MPEG format. I'm just not sure what tool to use, and what code would go with it.

View 3 Replies View Related

Play A Video Clip In Program?

Feb 9, 2011

can i play a video clip in my program?

View 9 Replies View Related

Play A Video On Background Of Form?

Feb 15, 2012

how to play a video on the background of the form please guide i am really confused

View 7 Replies View Related

Play A Video On Form Start Up?

Nov 4, 2011

when form Loads i want a video to play in a picture box or panel how do i do that? This is what i have so far. 

Imports Microsoft.DirectX.AudioVideoPlayback
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load


View 7 Replies View Related

Play A Video WITH CONTROLS In Program?

May 3, 2009

I have played .swf file in VB.Net using Shockwave Flash Object. But i need it with controls(mute,volume control.. )

I tried with using Windows MediaPlayer, i can play only .mp3 cannot play .swf or .avi.

View 2 Replies View Related

Play Video From Memory Stream?

May 5, 2010

I have an application that sends Bytes of data through UDP, these bytes are read from an AVI file when the client receives the bytes it builds the AVI file on another computer perfectly but I want to be able to use the received bytes to play the video from the stream. Does anyone know how I can play the video from a stream? I tried using DirectShow but I don't know how to use a stream as video let alone having AVI files play with DirectShow.

My main goal is to have the application slowly "buffer" the movie for the client as they watch.

View 5 Replies View Related

Selecting Which Monitor To Play Video On

Jan 1, 2010

I am doing a robotic project and want to programmatically play a video clip to my second monitor. I have a projector inside my robot that the netbook sees as Display 2. I would like the assign my game pad a button click to launch the video on that second display (the lcd projector).


View 1 Replies View Related

Using AxWindowsMediaPlayer To Play A Short Video?

Sep 1, 2011

I have a form using AxWindowsMediaPlayer to play a short video. How can I load another form and close this form when the video is finished?

View 6 Replies View Related

Play A Video From Web Server Without Downloading It To The Host PC?

Apr 14, 2012

I have a file on an FTP and would like to stream it to Windows Media Player or some sort of media player without having to download it first. Is this possible in VB .NET?

View 2 Replies View Related

Winforms - Play A Video File In A Form?

Apr 27, 2011

How to play a video file in ?

I need the video to automatically start playing on form load.

View 1 Replies View Related

How To Open And Play Video Files In Windows Form

Jun 8, 2011

how to open and play video files in windows form? also save videos in a specific folder inside the project.

View 2 Replies View Related

Play Video Files (atleast Wmv, Avi) From A Byte Stream?

Mar 1, 2009

I am trying to play video files (atleast wmv, avi) from a byte stream in it possible to direct this data at a wmp control?I have done this successfully with images & picture boxes, just need help with the video.

View 1 Replies View Related

VS 2008 Play Media File Video Or Audio?

Jul 7, 2011

how to play video or audio in a application but have come up with not a lot.

I want to create a program that accessing a web server (no problem on that) and will pick up audio and video that is stored on that server.

Or, maybe do a live broadcast where I can play my guitar and sing a song. (Promise if I get this done through here I will give you a live performance) on that note I am sure you will all hold back.

This is a little open and wide, but what I would like to know via a webserver is this possible

3.Live broadcast

View 11 Replies View Related

Create A Software Where Video Files Play Continuously Using A Timeline?

Sep 5, 2011

I am trying to create a software where video files play continuously using a timeline like Windows Movie maker or Pinacle Studio. So i have no idea how to maintain the time line. Will i use Timer Control for that or any other methods are available.

View 6 Replies View Related

VS 2010 Windows Media Control - Play The Second Intro Video

Feb 4, 2011

I'm kinda new to this. Done it a bit a while back, completed a simple conversation program, and started a text game..but decided to take it back up and make a new interaction fiction game with videos.. the thing I'm having a problem with right now is the windows media player control. I make my first intro movie play by placing it's location in the URL property...I'm wondering how you would code it to play the second intro video I have once that one comes to an end.. I may just put the two videos together to make this easier.

View 10 Replies View Related

Get A Video To Play In Windows Media Player In Visual Studio 08 Professional?

Jul 18, 2009

So I found the Windows Media player and added it on my form. I have a sample wmv called bear.wmv file in my solution explorer. How do I get the video to play? I was hoping for a smart tag and just connect the player to the wmv file,

View 1 Replies View Related

Windows Mobile Appication - Have A Media Player To Play Video On The Application?

May 1, 2009

how have a media player to play video on the application??? is there a drag and drop media box?

View 1 Replies View Related

Play Specific Portion Of A Video File Using Windows Media Player Control?

Sep 18, 2009

I'm using the windows media player (wmp.dll) in 2008 and would like to know if it's possible to play a specific portion of the video.  For example, I would like to start to play the video X minutes from the start and for Y amount of time.

View 1 Replies View Related

Play Specific Portion Of A Video File Using Windows Media Player Control In Program?

Sep 18, 2009

I'm using the windows media player (wmp.dll) in 2008 and would like to know if it's possible to play a specific portion of the video.  For example, I would like to start to play the video X minutes from the start and for Y amount of time.

View 1 Replies View Related

Music Studio - Real Music Video Where Can Play Many Sound At Any Time

Nov 1, 2011

Hey guys, I'm a new guy in VB.NET. I am proposing my final year project a title called music studio. My version of music studio is like real music video where we can play many sound at any time. For example, the application that I want to build can create many button and also add an audio along with it. And then, when we hit the 1st button, it play 1st audio. while 1st audio play, we also can hit 2nd button and 2nd audio is playing. for example, 1st audio is sound of man walking, and then 2nd audio is the sound of glass break. lastly 3rd sound sound of police siren play. Is it cool? so, my question is, is it possible the I can build an application by using VB.NET?

View 6 Replies View Related

Play Swf File In Media Player Current Video File?

Dec 13, 2011

I m trying to create media player .i want to add an swf file in current running video file at the top of my video player or bottom of my video.

View 2 Replies View Related

VB - Put The Player On The Webpage And Put The Webpage On The Sever It Cant Play The Video ?

Jan 13, 2009

I making a webpage with the help visual basic. I wanted to put a flv video in it and i used flash control for [URL]. I made the player in flash told it to download the video from the sever. Now when i put the player on the webpage and put the webpage on the sever it cant play the video. But when i just pres the the player which is in swf format it works. It can download the video. But when i put the player on my webpage it cant.

View 5 Replies View Related

Click The The Song To Play, Even The Play Song Finish But Does't Play Automatically?

May 8, 2010

I want to the song can auto start one by one when import the song to list box. But it doesn't work that I need to select one by one. Besides, the program can repeat all the song or individual song when checkbox enable.

If AxWindowsMediaPlayer1.playState = WMPLib.WMPPlayState.wmppsMediaEnded Then
If playlistbox.SelectedIndex < playlistbox.Items.Count - 1 Then


View 4 Replies View Related

Shell - Media Player Play File Error - Refuses To Play

Sep 16, 2010

Im trying to open media player (full screen) and play a movie. When i create the file path like so: Dim MoviePathVTS As String = String.Concat("""" + tempMoviePath, " \VIDEO_TS\VTS_01_1.VOB" + """")

It wont play the file but if i do it like this: Dim video1 = """F:\Movies\DvD\Angels and Deamons\VIDEO_TS\VTS_01_1.VOB"""

It plays fine? the file paths are the same including the extra "" but it just refuses to play. I need the top one because i have many movies in a treeview.

Heres my code

Private Sub watchNow_Click(ByVal sender As Object, ByVal e As EventArgs)

'get the position of the selected node
Dim i = movieTreeView.SelectedNode.Index


View 2 Replies View Related

Make A Play Button Play/stop Toggle?

Feb 9, 2010

How can you make a play button play/stop toggle? Currently my button plays a file in WMP but when I click it again, it just restarts the file. I would like it to toggle on and off, play and stop, not play and pause.

View 8 Replies View Related

Inserte Pictures And Video - Can't Move The Program To Another Computer Because The Pathname For The Video Will Be Wrong

Jun 22, 2010

I have a project which i have inserted pictures and video. I inserted a video clip using the Windows Media Player control and it does work. The issue i have is that i can't move the program to another computer because the pathname for the video will be wrong. I know i could change the pathname when i move it but this is not practical because i need to present this program. Does anybody know how to make the video accessible no matter what location the program is at?

View 6 Replies View Related

Monitoring 12 Video Feeds From Video Cameras - NEXT Or FORWARD Button On My Monitor Form

Dec 24, 2009

I am monitoring 12 video feeds from video cameras. Now I have more than 12 cameras, I have 134.  But I will only monitor 12 cameras at a time.  By Monitoring I mean, I have 12 small video screens on the form that I can see the video. The way I know which cameras are active, so I can monitor them is by a boolean value in a sql database. I run a Store Procedure in my program, and spit out the results in a XML file.  I then read the XML file in a loop. This XML file will have a list of the camera names I need to monitor.

So that is for 12 video feeds. Now, I want to have a NEXT or FORWARD button on my monitor form. So when I click this it will give me the next group of cameras, 13 to 24.  Now if I only have15 cameras that are active, that means the first group is 1 to 12, then the second group is 13 to 15 cameras.  So I will only have 3 to monitor on the second grouping. One thought I had was to have another field in my table to mark as already as an active monitor, so when I run the SP, i will not select that row.  But I need to select 12 at a time.  Or I can make a number of xml files, one xml file for each grouping of 12, but I need to figure out how I can select the next group without re-selecting the first group. I have no code at the moment, I'm on my non-programming computer.

View 4 Replies View Related