At one point or another, we all come in contact with a project where we need (or want) to play media files. There are 2 main ways you can go about this, you can either use the MS MediaPlayer control and deal with interop and alot of issues. Or you can implement mci using the API. This project is an implementation of the mciSendString API, so you can just include the class into your project and use it on your form, no need to reference Media Player. This plays all know formats (mp3, mpeg, avi, wmv, divx,...) except midi files and cda (audio cd's). (the play statement, and maybe other statements as well, use arguments not supported by the midi and cda devices) The code is well documented and very clear, even a beginner will find it's way in it.
Download Source Code
![]() | ||
No comments:
Post a Comment