【问题标题】:What is a stream-url?什么是流网址?
【发布时间】:2016-09-09 02:50:36
【问题描述】:

在 google chrome 中查看 pdf 时,DOM 的结构非常相似。总是有一个带有 'stream-url' 属性的嵌入元素,其值如下:'blob:chrome-extension://abunchofrandomnumbersandletterswithdashes'

例如:

摘自:http://www.mathworks.com/moler/random.pdf

<embed id="plugin" type="application/x-google-chrome-pdf" src="http://www.mathworks.com/moler/random.pdf" stream-url="blob:chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/95301F67-C250-4082-B5C0-6BDBB077B63C" headers="Accept-Ranges: bytes
Content-Length: 111906
Content-Type: application/pdf
Date: Fri, 13 May 2016 03:53:17 GMT
ETag: &quot;1b522-4e738e204e8c0&quot;
Last-Modified: Wed, 25 Sep 2013 17:50:03 GMT
Server: Apache/2.4.6 (CentOS)
" background-color="0xFF525659" top-toolbar-height="56" full-frame="">

我唯一注意到的是,如果您重新打开选项卡,值会发生变化。非常感谢!

【问题讨论】:

    标签: html google-chrome http dom google-chrome-extension


    【解决方案1】:

    在地址栏中输入chrome://plugins,你会发现有一个名为“Chrome PDF Viewer”的插件,它的id是mhjfbmdgcfjbbpaeojofohoefgiehjai,就是这样。

    【讨论】:

      【解决方案2】:

      什么是流网址?

      我认为 stream-url 的工作方式类似于 URL of a media stream 的概念。这是Chrome插件streams your pdf file的地方。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2013-07-16
        • 1970-01-01
        • 1970-01-01
        • 2011-09-09
        • 2012-12-24
        • 1970-01-01
        • 1970-01-01
        • 2015-09-17
        相关资源
        最近更新 更多