Window Media Player issues two requests for the audio on web page

拥有回忆 提交于 2019-12-02 01:31:15

You have to examine the requests carefully. Sometimes, you'll see a media player make two requests because they are using HTTP Range requests (and not requesting the whole file). Look for a "Range" request header. Also check to make sure that neither of the requests uses the HEAD method, because that simply retrieves the server's response headers.

Also, if either of the sessions shows as aborted in the Fiddler Session List ("do not enter icon, red circle with a line through it") it means that the client closed the request in the middle. That might occur if the component starts the download, aborts it, and then restarts it. Why it might do that, I'm not sure.

You might try looking at other sites that use WMP and see whether you see two requests for them.

See bottom of this article which explains the first request is Windows Media Player "sniffing" to determine file type, while 2nd request is real request.

https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/226315f4-1271-4694-9a0d-68da9a1414cb/media-player-dlna-request-does-not-carry-authorization-header?forum=mediafoundationdevelopment

Still working on how to use this bit of info with generic handler that doesn't expose file name....

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!