【发布时间】:2019-12-31 09:09:26
【问题描述】:
我正在尝试使用 mpeg-dash 播放视频,确实,必须使用签名的查询字符串访问源视频,因此我将查询字符串附加到 <BaseURL> 标记,如下面的破折号文件,但效果不佳.
<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>
那么如何让播放器使用查询字符串t 和sign 访问1.mp4 呢?感谢您的帮助。
【问题讨论】: