how to run media player programmatically on a smartphone

Dear All,

i am executing
System.diagnostics.Process.Start("xxx.wmv","") statement to run .wmv file on my smartphone emulator in visual studio.net 2005.

It is giving some alert message,"Cannot play the file or the file format was not supported".

But it succesfully runs on emulator when i copied to shared folder.

I just could not run using
System.diagnostics.Process.Start("xxx.wmv","")

help me ,

Thanx


[484 byte] By [Amarender] at [2008-3-1]
# 1
1) Try:
System.Diagnostics.Process.Start(@"\Windows\wmplayer.exe","xxx.wmv");

2) Perhaps, .wmv are not associated with wmplayer or it does not supports them ?

best regards/
Eugene

EugeneDorofeyev at 2007-9-9 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 2

Thanx for the reply,

When i tried,
System.Diagnostics.Process.Start(@"\windows\wmplayer.exe","xxx.wmv")

It just could not open Media Player itself as the path "windows\wmplayer.exe" is not recognized.But when i use "wmplayer.exe" it opens but could not play the file.

Let me know if there ia nay other way to make emulator to recognize my file path.
I also have tried by passing whole path.

Help me,
thanx

Amarender at 2007-9-9 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 3
hai Eugene,

When i try,
"System.Diagnostics.Process.Start(@"\Windows\wmplayer.exe","xxx.wmv")"

It opens player but could not play.
I have send some incorrect information in my last reply.

Its giving error message as,

"Can not play the file,Either file is corrupted or insupported format"

But this file is running when i copied it to the shared folder and played it manually.

Help me,

Thanx

Amarender at 2007-9-9 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 4
Specify the full path to the .wmv file
AlexFeinman at 2007-9-9 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...