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:
  1. Imports microsoft.directx.AudioVideoPlayback
  2. Imports Microsoft.DirectX
  3. Public Class Form1
  4.   Dim carrot As Audio = Nothing
  5.  
  6.   Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  7.     carrot = Audio.FromFile("c:\funny.mpeg")
  8.  carrot.play()
  9.   End Sub  
  10. 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...