[RESOLVED] Directx 9.0 w/VB.NET video mpeg in window
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... :confused:
Directx 9.0 w/VB.NET video mpeg in window [RESOLVED]
Sorry you could have had easy points.
I missed the obvious. The documentation is just about zero. In fact it lead me to believe that the audio method was correct as its help talked of opening a video window. But I should have looked more clearly. USE VIDEO
VB Code:
Imports microsoft.directx.AudioVideoPlayback
Imports Microsoft.DirectX
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim carrot As Video
carrot = Video.FromFile("c:\funny.mpeg")
carrot.Owner = Me
carrot.Play()
End Sub
End Class
:wave: