esposito Posted November 20, 2003 Posted November 20, 2003 Hello, what tool should I use to play an MPEG movie clip under VB.NET without having to call the Windows API? TIA Quote Pasquale Esposito Perugia - Italy http://www.geocities.com/espositosoftware
Moderators Robby Posted November 20, 2003 Moderators Posted November 20, 2003 you can use Microsoft.DirectX.AudioVideoPlayback, though I'm not sure if you need to download the DirectX SDK first. Quote Visit...Bassic Software
esposito Posted November 20, 2003 Author Posted November 20, 2003 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? you can use Microsoft.DirectX.AudioVideoPlayback, though I'm not sure if you need to download the DirectX SDK first. Quote Pasquale Esposito Perugia - Italy http://www.geocities.com/espositosoftware
Moderators Robby Posted November 20, 2003 Moderators Posted November 20, 2003 I'm trying to find the words "standalone executable" in your thread but can't seem to. Quote Visit...Bassic Software
esposito Posted November 22, 2003 Author Posted November 22, 2003 I'm sorry, I don't 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. I'm trying to find the words "standalone executable" in your thread but can't seem to. Quote Pasquale Esposito Perugia - Italy http://www.geocities.com/espositosoftware
*Experts* mutant Posted November 22, 2003 *Experts* Posted November 22, 2003 As far as I know, .NET framework does not contain any classes for playing video files right now. Quote
esposito Posted November 22, 2003 Author Posted November 22, 2003 This is bad news. Why didn't 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 don't know if that code is portable to VB.NET and, besides, I don't know how to convert the API calls. As far as I know, .NET framework does not contain any classes for playing video files right now. Quote Pasquale Esposito Perugia - Italy http://www.geocities.com/espositosoftware
Camaro Z28 Posted November 23, 2003 Posted November 23, 2003 Hi, Just use the mciSendString command interface. It is completely compatible with Windows 95 and Above. You won't 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 Quote Visual Basic Code Source FREE Visual Basic Source Code
*Experts* Volte Posted November 23, 2003 *Experts* Posted November 23, 2003 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. Quote
Moderators Robby Posted November 23, 2003 Moderators Posted November 23, 2003 Here's a sample from Derek http://www.xtremedotnettalk.com/t74522.html Quote Visit...Bassic Software
esposito Posted November 25, 2003 Author Posted November 25, 2003 Don't 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. 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. Quote Pasquale Esposito Perugia - Italy http://www.geocities.com/espositosoftware
esposito Posted November 25, 2003 Author Posted November 25, 2003 Thanks, the link you gave me has been extremely useful to me. Here's a sample from Derek http://www.xtremedotnettalk.com/t74522.html Quote Pasquale Esposito Perugia - Italy http://www.geocities.com/espositosoftware
esposito Posted November 25, 2003 Author Posted November 25, 2003 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. Hi, Just use the mciSendString command interface. It is completely compatible with Windows 95 and Above. You won't 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 Quote Pasquale Esposito Perugia - Italy http://www.geocities.com/espositosoftware
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.