Chromecast的CAF与Widevine的DRM

问题描述 投票:0回答:1

我试图创建DASH +的Widevine兼容的Chromecast CAF接收器。

CAF文件:

const context = cast.framework.CastReceiverContext.getInstance();
const playbackConfig = new cast.framework.PlaybackConfig();
// Customize the license url for playback
playbackConfig.licenseUrl = 'http://widevine/yourLicenseServer';
playbackConfig.licenseRequestHandler = requestInfo => {
  requestInfo.withCredentials = true;
};
context.start({playbackConfig: playbackConfig});

// Update playback config licenseUrl according to provided value in load request.
context.getPlayerManager().setMediaPlaybackInfoHandler((loadRequest, playbackConfig) => {
  if (loadRequest.media.customData && loadRequest.media.customData.licenseUrl) {
    playbackConfig.licenseUrl = loadRequest.media.customData.licenseUrl;
  }
  return playbackConfig;
});

但是,我总是为DASH + WDV视频错误HLS_MANIFEST_MASTER 411.对于非DRM内容我没有问题。

有没有人有Chromecast接收机DASH + WDV工作?

非常感谢,

chromecast drm receiver widevine
1个回答
0
投票

HLS_MANIFEST_MASTER建议你给它一个HLS流,而不是MPEG-DASH流。因此,无论你给它一个.m3u8 URL,而不是.MPD URL或者你特别迫使演员SDK使用HLS作为分析方法,而不是MPEG-DASH。

请注意,这些是各自的MIME类型:

  • HLS:application/x-mpegurlapplication/vnd.apple.mpegurl
  • DASH:application/dash+xml
© www.soinside.com 2019 - 2024. All rights reserved.