views:

111

answers:

0

Hi all,

I am trying to play videos from the url with activeX window media player in my windows mobile application. Previously i was using the code below in which i was passing the url. Few days ago the code worked fine but now it doesn't seem to work at all for any files for any extensions. It always gives the following error..

"Can not play the file.The file is either corrupted or the player does not support the format you are playing."

It has left me totally helpless. Anybody having the idea abt this plz help me to come out of this problem.

I want to add one thing the same url when opened with windows media player of system plays the song.

     using System.Diagonostics;
     Process objProcess;
     ProcessStartInfo mediaStartInfo;

     objProcess = new Process();
     mediaStartInfo = new ProcessStartInfo(@"windows\wmplayer.exe", url);
     objProcess.StartInfo = mediaStartInfo;
     try
     {
          objProcess.Start();
     }
     catch (Exception e) { }