AxWindowsMediaPlayer URL是流式传输而不是下载 [英] AxWindowsMediaPlayer URL is streamed instead of downloaded

查看:76
本文介绍了AxWindowsMediaPlayer URL是流式传输而不是下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在网上寻找解决我问题的方法无济于事。

I have scoured the internet looking for a solution to my problem to no avail.

我正在维护一个使用AxWindowsMediaPlayer控件来播放的Windows窗体应用程序。来自URL的wav文件。它已经工作多年了。但是,最近搜索滑块停止工作。它只是在开始时停留,并且不能移动
。调试后,我能够确定currentMedia.duration字段为0,这使我相信AxWindowsMediaPlayer控件是流式传输而不是下载内容。如果我在IE11中打开完全相同的URL并下载
文件,一切正常。

I am maintaining a Windows Forms application that uses an AxWindowsMediaPlayer control to play back a .wav file from a URL. It has been working for years. However, recently the seek slider stopped working. It just remains stuck at the beginning and cannot be moved. After debugging, I was able to determine that the currentMedia.duration field is 0, which leads me to believe that the AxWindowsMediaPlayer control is streaming rather than downloading the content. If I open the exact same URL in IE11 and download the file, everything works just fine.

虽然托管文件的服务器没有对代码进行任何更改已发生变化,但一切都在变化后立即发挥作用。

There have been no changes to the code, although the server that hosts the files has changed, but everything was working immediately after that change.

哪些因素会影响WMP行为的这一方面?是否有可能表明文件可以流式传输的响应标头?

What factors influence that aspect of WMP behavior? Are there response headers that might indicate that the file can be streamed?

推荐答案

您好Daniel Arant,

Hi Daniel Arant,

我无法重现您的问题。为了更有效地解决您的问题,如果您能

I have not been able to reproduce your problem. In order to solve your problem more effectively, it would be better if you can

提供完整的代码会更好。

provide your complete code.

问候,

Kyle


这篇关于AxWindowsMediaPlayer URL是流式传输而不是下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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