Jump to content
  • Advertisement
Sign in to follow this  
Super Llama

How do I play an AVI file in DirectX 9 (VB.NET)?

This topic is 3713 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I think it has something to do with DirectShow, but I'm not sure. If someone could explain it or at least point me in the direction of a good tutorial, I would be grateful. :)

Share this post


Link to post
Share on other sites
Advertisement
DirectShow can work natively with Direct3D surfaces, however I'm not sure what its availability is for managed apps. I don't think an official managed interface exists for it, but I'm not sure.

EDIT: some searching on Google shows that people have made or are working on managed wrappers for DirectShow.

Share this post


Link to post
Share on other sites
I'm not sure if I'm using managed DX, I'd have to check... I can't remember the difference between managed and unmanaged... I don't use D3DX at all. I'm using VertexBuffers instead of meshes. I'm going to check DirectShow now =D

Share this post


Link to post
Share on other sites
VB.NET is .NET-only (hence the name), which means it can only produce managed code.

Share this post


Link to post
Share on other sites
You could use something like this (C# code):

Video v = null;

.......

//the constructor takes a string witch is the path to the filename
v = new Video(pathtofile);
//owner window; if null then the video class will create a new window
v.Owner = this;
//true for fullscreen
v.Fullscreen = true;
//begin playback
v.Play();

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!