Hi
I want to use DirectX 9.0c with VB.net 2006 to load a video mpeg and have it displayed in a regular window.
I have code that will play any mp3. And it does play the sound from a video mpeg. But I haven't figured out how to create (?) a video window to display the video.
VB Code:
Imports microsoft.directx.AudioVideoPlayback Imports Microsoft.DirectX Public Class Form1 Dim carrot As Audio = Nothing Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load carrot = Audio.FromFile("c:\funny.mpeg") carrot.play() End Sub End Class
The newest version claims to have integrated directx.directshow.dll into the platform. But I have to have the AudioVideoPlayback.dll referenced.
I suspect that I need to do something like
Dim display as IVideoWindow
But I am not using it correctly...![]()




Reply With Quote