Click here to Skip to main content
15,885,032 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I embedded windows media player in windows application C#. For that i wrote the following code,
form load()
{
 axwindowsmediaplayer1.URL=@"D://video.wav";
}

The above code work but seek didn't work that is for example if we want to forward the video simply we move the cursor, That is seek the position of the video rite....but my question is in my windows media control seek didn't work. I don't know what is the problem if anyone knows then please let me know.

[Edit] Changed Tag's as per OP question, Code block setting [/Edit]
Posted
Updated 16-Mar-11 20:20pm
v2
Comments
Albin Abel 17-Mar-11 2:09am    
I saw you question yesterday. Your title says windows application. But why the tag says ASP.Net.

There may be an error in the wav, or it uses a poorly implemented codec - this is often the cause for this kind of behaviour.

Regards
Espen Harlinn
 
Share this answer
 
Comments
Albin Abel 17-Mar-11 4:09am    
Should be a valid reason too. My 5
Espen Harlinn 17-Mar-11 4:21am    
Thanks AlbinAbel!
Manfred Rudolf Bihy 17-Mar-11 10:42am    
My 5!
No response from your side. However seek available with little delay. Once the media starting play/ buffer loaded then seek will be available. May be you can try setting axWindowsMediaPlayer1.Ctlenabled = true;
 
Share this answer
 
I believe I had this issue in the Past try to pause the currently playing audio file. seek and then resume play of the audio file.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900