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