Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


Media Player API


Media Player API

Author
Message
kazamamakoto
kazamamakoto
Forum God
Forum God (4.2K reputation)Forum God (4.2K reputation)Forum God (4.2K reputation)Forum God (4.2K reputation)Forum God (4.2K reputation)Forum God (4.2K reputation)Forum God (4.2K reputation)Forum God (4.2K reputation)Forum God (4.2K reputation)

Group: Forum Members
Posts: 41, Visits: 43
Well basically im getting sick of using the standard Media Player control and I want to take 1 more step ahead and make my media player using API. So if anyone can tell me the API i need to open and play .mp3 files then I'd greatly appreciate it (^_^)

"Hard work can eventually surpass genius"
omni100
omni100
Supreme Being
Supreme Being (231 reputation)Supreme Being (231 reputation)Supreme Being (231 reputation)Supreme Being (231 reputation)Supreme Being (231 reputation)Supreme Being (231 reputation)Supreme Being (231 reputation)Supreme Being (231 reputation)Supreme Being (231 reputation)

Group: Forum Members
Posts: 1, Visits: 1
You can use the mci functions in winmm.dll

You need to look at the Platform SDK Multimedia documentation. I did exactly what you describe in C# 2.0. I built a BasePlayer class and then subclassed WavePlayer, CDPlayer etc.

I don't have code handy but it just boils down to doing a DllImport of the mciSendString function and sending the appropriate string (command) to open, play, pause, seek, etc.

You can control audio files, avi's, CDs, DVD, VCR, etc. mci has been around a long time but once you build your classes it all works very well.

Ray

www.opmdforum.com

Mark
Mark
Forum God
Forum God (75K reputation)

Group: Moderators
Posts: 1.1K, Visits: 11K
Attached is a project I played with a while back. It plays various sound and video file formats. I uses the mciSendString API to do most of the work. It should get you started.
Attachments
Multimedia Project.zip (1.6K views, 4.00 KB)
GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search