【问题标题】:accessing m3u8 lists with url parameters in Chromecast在 Chromecast 中使用 url 参数访问 m3u8 列表
【发布时间】:2014-10-28 02:21:39
【问题描述】:

有没有办法保留发送到 chromecast 的 url 参数,即使在访问 m3u8 列表中的子项时也是如此?因为我们需要 url 参数来访问内容或媒体文件,但是 chromecast 在访问子文件时会截断我们发送的 url 参数。

示例 给定网址:http://domainname.com/1.m3u8?cp=%2FsFcurrent%2F70000871V%2F*&cf=1403&e=1493&h=cbc90

文件 1.m3u8 包含子文件,例如 1med.m3u8、1high.m3u8 1low.m3u8

当 chromecast 访问子文件时,它的访问方式类似于 http://domainname.com/1med.m3u8

如您所见,它删除了 url 参数,这导致子文件无法访问。

【问题讨论】:

    标签: chromecast google-cast


    【解决方案1】:

    您需要编写一个自定义接收器(使用 MPL)并使用主机覆盖 updateManifestRequestInfo / updateSegmentRequestInfo 来实现所需的行为。

    【讨论】:

    • developers.google.com/cast/docs/reference/player/… 中,有 content、content protection、headers、timeoutinterval、url 和 with credentials 作为类 cast.player.api.RequestInfo() 的属性,我们应该使用哪个属性发送我们的 url 参数以在访问子文件时保留。
    猜你喜欢
    • 2021-11-11
    • 2016-06-19
    • 2013-08-12
    • 1970-01-01
    • 2020-05-30
    • 1970-01-01
    • 2014-06-23
    • 2014-08-17
    • 1970-01-01
    相关资源
    最近更新 更多