Jump to content

windows mobile 5 smartphone Application


Guest kuntal_m69

Recommended Posts

Guest kuntal_m69

Hello Team,

I am developing an apps based on windows mobile 5 smartphone.

I have to embed a music system in the application.

1. my problem is that how can i embed that in the application

2. how should i set the path from where it will get the song like

obj.url="c:/music/love.mp3

i have done this, but it is not taking from that particular location

Please help me.

Thanking You

Kuntal Mazumder

Link to comment
Share on other sites

well i do not think there is an API or something where you can tell WMP10 in the background to play the file given.

For the PC this is easily done as .NET 2.0 has a new class called media but you can also use the WMP 10 SDK and embed that object in your application and use it however this will NOT work for the mobile platform.

but the path would be:

"\folder\morefolders\themp3file.mp3"

there is a way to play sound through the system speaker however that requires you to go low level and use p/invoke and only allows you to play short wave files - it may be long wave files but takes along time for it to play.

What you can do is this, I just tried it and works perfect ;)

in your code, import the System.Diagnostics namespace)

then:

ProcessStartInfo playAudioProcess = new ProcessStartInfo(thePathToAudioFile, "");

Process.Start(playAudioProcess);

That is C# code

hope it helps

Edited by Tech
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.