Playing MPEGs in VB.NET

you can use Microsoft.DirectX.AudioVideoPlayback, though Im not sure if you need to download the DirectX SDK first.
 
That would defeat the aim of creating a standalone executable.

By "standalone executable" I mean an application that only needs the .NET framework to run.

And what if I use AVI files instead of MPEGs? Are they supported natively by VB.NET?

Originally posted by Robby
you can use Microsoft.DirectX.AudioVideoPlayback, though Im not sure if you need to download the DirectX SDK first.
 
Im sorry, I dont understand what you mean. Anyway, what I would like to know is if it is possible to execute AVI files in VB.NET natively, i.e. without resorting to external applications.

This way all you have to do in order to make your application work on the destination computer is copy your exe from your computer to the other.

This is what I mean by "standalone executable", that is a self-sufficient exe file created with VB.NET which could run on any operating systems supporting the .NET framework.

Originally posted by Robby
Im trying to find the words "standalone executable" in your thread but cant seem to.
 
This is bad news. Why didnt Microsoft think about it?

Do you know if it is possible to play an AVI file in a Picturebox making some calls to the Windows API?

This is something I can do in VB6 but I dont know if that code is portable to VB.NET and, besides, I dont know how to convert the API calls.

Originally posted by mutant
As far as I know, .NET framework does not contain any classes for playing video files right now.
 
Hi, Just use the mciSendString command interface. It is completely compatible with Windows 95 and Above. You wont need to include anything extra in your setup file for your program either. The only thing you could run into is, the user may not have a certain codec installed to play certain formats ( eg: quicktime movies) But for the most part. You should not have any problems at all. I have a few things on my website that will help you. MCI tutorial, ect.. Take care.



Jason
 
As far as I know, the reason that the .NET framework does not contain any multimedia functionality is because MS is trying to make the framework compatible with other platforms. The way multimedia works between the different operating systems is just too different to make it work reliably.
 
Dont you think Microsoft should have engineered some new multimedia technology for the .NET framework to manage video files?

If the framework does nor rely on any OS for its functionalities, as they say, nothing should prevent them from creating new multimedia devices.

P.S. I know this is not the right place for linguistic questions, but I would like to know if in English you say "Microsoft is" or "Microsoft are". Thanks.

Originally posted by VolteFace
As far as I know, the reason that the .NET framework does not contain any multimedia functionality is because MS is trying to make the framework compatible with other platforms. The way multimedia works between the different operating systems is just too different to make it work reliably.
 
Thanks. The more I go on with VB.NET, the more I realize that managing the Win32 API under this new programming language is not that different from the way we used to make API calls under VB6.

Originally posted by Camaro Z28
Hi, Just use the mciSendString command interface. It is completely compatible with Windows 95 and Above. You wont need to include anything extra in your setup file for your program either. The only thing you could run into is, the user may not have a certain codec installed to play certain formats ( eg: quicktime movies) But for the most part. You should not have any problems at all. I have a few things on my website that will help you. MCI tutorial, ect.. Take care.



Jason
 
Back
Top