Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Chromecast 从未为DASH DRM资产调用updateLicenseRequestInfo_Chromecast_Google Cast - Fatal编程技术网

Chromecast 从未为DASH DRM资产调用updateLicenseRequestInfo

Chromecast 从未为DASH DRM资产调用updateLicenseRequestInfo,chromecast,google-cast,Chromecast,Google Cast,我看到调用了updateManifestRequestInfo和updateSegmentRequestInfo,但发送头时遇到问题。我从未看到调用过许可证URL,也从未调用过updateLicenseRequestInfo 是否有DASH DRM保护资产的代码示例?文件非常有限 host.licenseUrl = 'license URL' ... host.updateLicenseRequestInfo = function(requestInfo) { requestInfo.h

我看到调用了
updateManifestRequestInfo
updateSegmentRequestInfo
,但发送头时遇到问题。我从未看到调用过许可证URL,也从未调用过
updateLicenseRequestInfo

是否有DASH DRM保护资产的代码示例?文件非常有限

host.licenseUrl = 'license URL'

...

host.updateLicenseRequestInfo = function(requestInfo) {
  requestInfo.headers = {
    'X-TOKEN': this.token_,
  };
  requestInfo.withCredentials = true;
};

对于DRM,您需要一个自定义接收器,如果您使用的是Media Player库,则需要覆盖某些方法以提供必要的DRM信息:

基于此,您可能还需要在标题中设置一些内容或修改URL以启动该过程。如果您的清单也需要这些,请覆盖host.updateManifestRequestInfo。应用程序应重写
updateLicenseRequestInfo
方法以向url添加令牌,设置标头或withCredentials标志;我也覆盖了updateLicenseRequestInfo,但从未调用过它。