Play Video In DirectX (WPF)?

Apr 9, 2011

I have a WPF 4/VB.net 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?



ADVERTISEMENT

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 vb.net.

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

Then:

[CODE]...........

I execute the above subroutine and the video plays flawlessly

[CODE]............

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

[CODE]..............

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

[Code]....

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).

[Code]...

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 vb.net ?

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 vb.net.Is 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







Copyrights 2005-15 www.BigResource.com, All rights reserved