如何在谷歌演员表中获得widevine有效载荷挑战?

问题描述

我正在开发我自己的自定义接收器应用程序,我想播放的流受 Widevine 保护,我需要从我自己的服务器获取我的许可证,我需要传递 content_id 和有效负载。这是我的代码

playbackConfig.protectionSystem = cast.framework.ContentProtection.WIDEVINE;

playbackConfig.licenseRequestHandler = requestInfo => {

    requestInfo.headers["Authorization"] = token;
    requestInfo.headers["Content-Type"] = "application/json";

    requestInfo.content = JSON.stringify({ 
        type: "widevine",type_request: "license",content_id: content_id,payload: <<missing_data>>
    });

    return requestInfo
};

我在 Android 上实现了我自己的 MediaDrmCallback,KeyRequest 类包含所需的信息,但对象 requestInfo 的参数内容不提供该信息

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)