Windows应用程序中的Windows Media Player中的Seek无效 [英] Seek didn't work in windows media player in windows application

查看:106
本文介绍了Windows应用程序中的Windows Media Player中的Seek无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows应用程序C#中嵌入了Windows Media Player.为此,我编写了以下代码,

I embedded windows media player in windows application C#. For that i wrote the following code,

form load()
{
 axwindowsmediaplayer1.URL=@"D://video.wav";
}


上面的代码有效,但是搜索没有用,例如,如果我们只想移动光标就想转发视频,那就是在视频仪式的位置搜索....但是我的问题在我的Windows Media控件中搜寻无效.如果有人知道,我不知道出什么问题了,请让我知道.

根据OP问题更改了代码,代码块设置了[/Edit]


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.

Changed Tag''s as per OP question, Code block setting [/Edit]

推荐答案

wav中可能有错误,或者它使用了编解码器实现不佳-这通常是导致这种行为的原因.
问候
Espen Harlinn
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


您的身边没有回应.然而,寻求可用几乎没有延迟.一旦媒体开始播放/缓冲区加载,则搜索将可用.也许您可以尝试设置axWindowsMediaPlayer1.Ctlenabled = true;
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;


我相信我在过去遇到过此问题,请尝试暂停当前播放的音频文件.查找并继续播放音频文件.
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.


这篇关于Windows应用程序中的Windows Media Player中的Seek无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆