Play video formats inside a vb.net application

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am curious about ways to play a vido inside a vb.net application. Are
there controls for this purpose or some classes in Net which allow this. I
am not talking about creating a video, just something that can take the file
and play it inside my application.

Thanks,
Fred Herring
 
I am curious about ways to play a vido inside a vb.net application. Are
there controls for this purpose or some classes in Net which allow this. I
am not talking about creating a video, just something that can take the file
and play it inside my application.

The easiest way is to simply embed Windows Media Player, Real One Player or
Quicktime in your application. In less than 10 seconds, you've got a full
blown media player with all the features you may expect from it. Of course,
this requires the user to have the appropriate player installed on their
system.

If you don't want to rely on third party players, then you'll have to
tackle DirstShow and it may be more complicated. I've never played with it
so i can't tell you what it can do exactly but you'll surely find all you
want to know about DirectShow and the WMP SDK here:
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwmt/html/cplusvbappdevs.asp>
 
In addition to embedding media player you can also embed the web browser
control. As well as video's it'll play SWF, Powerpoint presentations, in
fact just about anything.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
In addition to embedding media player you can also embed the web browser
control. As well as video's it'll play SWF, Powerpoint presentations, in
fact just about anything.

Yep, although embeding the Media Player or Flash ActiveX control direclty
in your application will provide you more control over it.

Bob, as you mentionned PowerPoint, do you know if there is an ActiveX
control out there that would allow playing powerpoint presentations within
an application even if the user doesn't have power point installed? I
couldn't find anything like that in the VS COM box. I know that power point
can create presentations that don't requires PP to be installed. I don't
known if IE can play a PP presentation without PP installed though (i don't
have access to any computer without PP to try:-). If it can, then there
must be a way to do it within a .NET application.

Thanks
 
AFAIK playing PowerPoint requires PP to be installed. You might be better
off asking in the PPT forum though.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Back
Top