【问题标题】:How to add query string to <BaseURL> in mpeg-dash?如何在 mpeg-dash 中向 <BaseURL> 添加查询字符串?
【发布时间】:2019-12-31 09:09:26
【问题描述】:

我正在尝试使用 mpeg-dash 播放视频,确实,必须使用签名的查询字符串访问源视频,因此我将查询字符串附加到 &lt;BaseURL&gt; 标记,如下面的破折号文件,但效果不佳.

<AdaptationSet id="1" contentType="video" maxWidth="1280" maxHeight="720" frameRate="90000/3750" subsegmentAlignment="true" par="16:9">
      <Representation id="1" bandwidth="1168165" codecs="avc1.64000d" mimeType="video/mp4" sar="1:1" width="320" height="180">
        <ContentProtection value="cenc" schemeIdUri="urn:mpeg:dash:mp4protection:2011" cenc:default_KID="41b2cf69-7a0e-46bb-9b56-45ac2e775a26"/>
        <ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed">
          <cenc:pssh>AAAANXBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABUiEzUyODU4OTA3OTMxMTczOTkzNDk=</cenc:pssh>
        </ContentProtection>
        <BaseURL>1.mp4?t=5d662215&sign=e2ec251dd73ac43afd377ddf849ba81d</BaseURL>
        <SegmentBase indexRange="1133-1944" timescale="90000">
          <Initialization range="0-1132"/>
        </SegmentBase>
      </Representation>
    </AdaptationSet>

那么如何让播放器使用查询字符串tsign 访问1.mp4 呢?感谢您的帮助。

【问题讨论】:

    标签: mpeg-dash drm


    【解决方案1】:

    您需要使用'&amp;amp;' 转义查询字符串中的'&amp;'

    那就试试吧:

    <BaseURL>1.mp4?t=5d662215&amp;sign=e2ec251dd73ac43afd377ddf849ba81d</BaseURL>
    

    实施指南:DASH-IF 互操作性点(4.3 版)

    举例说明查询参数的使用:

    5.3.3.2.1.2。示例 2:有状态提示翻译

    运营商分别针对男性和女性观众。因此,生成器从 它拥有的关于请求客户端的信息(参见 5.1.3.6),并插入一个 XLink URL ?gender=male 表示男性观众,?gender=female 表示女性观众。

    【讨论】:

    • 不客气 - 随时将我的答案标记为正确 - 谢谢。
    • 您的解决方案不起作用。我用 dash.js 对其进行了测试,播放器只会删除查询字符串。我认为这不是一个可靠的方法。规范对此并不清楚,因此将留给播放器实现。
    猜你喜欢
    • 1970-01-01
    • 2016-04-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-03
    • 2015-02-25
    • 2018-11-16
    相关资源
    最近更新 更多