[2005]Make a VB 2005 Media Player?
I was just curious to ask if it was possible to make a VB 2005 Media Player. I am thinking it might be hard because you have to add codecs and what not, but has anyone ever seen one or made one made from VB 2005?
If there is a way to, where do I start?
Re: [2005]Make a VB 2005 Media Player?
I made a player that played an mp3 player at college the other day, this used WMP though. We added the component WMP to the project and a play button.
Then added this coding in the play button
VB Code:
Me.player.URL = "location of file"
.
Do not know if this is any help or interest, thought it was ok for one of my first projects.
I suppose you could use the openfiledialog instead of actually using one set file name.
Sam
Re: [2005]Make a VB 2005 Media Player?
If you don't want to put your own face on an existing component like WMP then you can interact with Windows Media Control Interface (MCI) directly via platform invoke (API calls).
http://msdn.microsoft.com/library/de...i_commands.asp
You could also use DirectX.
http://msdn.microsoft.com/library/de...ch_DirectX.asp
Re: [2005]Make a VB 2005 Media Player?
Ok, thanx, that is a good place to start. Thanks alot. But how do you add codecs, if I want to make something similar to VLC Media PLayer?
Re: [2005]Make a VB 2005 Media Player?
Quote:
Originally Posted by LaxNasty
Ok, thanx, that is a good place to start. Thanks alot. But how do you add codecs, if I want to make something similar to VLC Media PLayer?
I don't know, but maybe it's done through MCI and/or DirectX. You're not going to know until you've done some reading.
Re: [2005]Make a VB 2005 Media Player?
I definitely will do my research. Thanks for the links jmlchinney.
Re: [2005]Make a VB 2005 Media Player?
LaxNasty:
You might want to check this out:
Playing Digital Media in a Visual Basic .NET Application
by Jim Travis
Microsoft Corporation
Applies to:
Microsoft® Windows Media® Player 9 Series
Microsoft Visual Basic® .NET
Microsoft .NET Framework
Microsoft ActiveX® controls
You can find it here:
http://msdn.microsoft.com/library/de...pplication.asp
Good Luck