简体   繁体   English

是否可以通过HTML5 / jQuery从视频获取HTTP标头?

[英]Is it possible via HTML5/jQuery to get HTTP Headers from a video?

We're playing around with jPlayer, and we want to be able to inspect the http headers (even from a remote user so wireshark is not possible) from the video file as it is getting parsed -- you can assume we're just going to use the video tag. 我们正在使用jPlayer,我们希望能够在解析视频文件时检查其视频文件中的http标头(即使是来自远程用户,因此也无法进行wireshark)-您可以假设我们正在使用使用视频标签。 You can get headers from an AJAX call in jQuery, so I was wondering if it's possible to get the headers from any resource, be it an image, video, css file, etc? 您可以从jQuery中的AJAX调用中获取标头,因此我想知道是否有可能从任何资源(例如图像,视频,css文件等)中获取标头?

within the browser you cannot today, it would need to be via an external tool. 在您今天无法使用的浏览器中,则需要通过外部工具。

I would suggest piling on this request - https://www.w3.org/Bugs/Public/show_bug.cgi?id=14310 - with your use-case 我建议根据您的用例将此请求堆积-https://www.w3.org/Bugs/Public/show_bug.cgi?id =14310

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM