Answered by:
play mp3 with c# code

Question
-
Use the System.Diagnostics.Process class (the Start method) to launch your MP3 player to play a mp3 file.
But I need use my code to close the media player after it finished the playing.
How to code it?
Thank you.
Friday, March 7, 2008 4:35 PM
Answers
-
Hello Billqu,
As of version 3.5 of the Compact Framework, you could use the new SoundPlayer class:
For pre 3.5 versions, you could look into the following links:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2947629&SiteID=1
http://msdn2.microsoft.com/en-us/library/aa454909.aspx#working_with_multimedia_topic6
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2164798&SiteID=1
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=5992&SiteID=1
http://www.opennetcf.com/CompactFramework/Products/Controls/MediaPlayerControls/tabid/264/Default.aspx (Commercial!)
Remember, the Forum search and Google are your friend!
Monday, March 10, 2008 3:40 PM
All replies
-
Monday, March 10, 2008 2:29 PM
-
Hello Billqu,
As of version 3.5 of the Compact Framework, you could use the new SoundPlayer class:
For pre 3.5 versions, you could look into the following links:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2947629&SiteID=1
http://msdn2.microsoft.com/en-us/library/aa454909.aspx#working_with_multimedia_topic6
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2164798&SiteID=1
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=5992&SiteID=1
http://www.opennetcf.com/CompactFramework/Products/Controls/MediaPlayerControls/tabid/264/Default.aspx (Commercial!)
Remember, the Forum search and Google are your friend!
Monday, March 10, 2008 3:40 PM -
Dear Peter:
Does OpenNETCF Media Player Controls need to buy?
I do not understand the OpenNetCF clearly,
Is it free to use by the developer?
Please tell me.
Thank you very much.
Bill
Tuesday, March 11, 2008 9:48 AM -
Hello Bill,
as far as i know, the OpenNETCF Smart Device Framework (SDF) Community Edition is free, but the OpenNETCF Media Player Controls need to be bought.
You really should read the Terms of Use for the SDF for a more specific license agreement.
Greetings.
Tuesday, March 11, 2008 10:01 AM