Chromecast playready encryption

我的未来我决定 提交于 2019-12-12 01:03:54

问题


When i try to play encrypted SmoothStreaming URL http://playready.directtaps.net/smoothstreaming/SSWSS720H264PR/SuperSpeedway_720.ism/Manifest on my CastVideos-android sample with cast-custom-receiver, in console (:9222) i get

[  8.788s] [cast.player.core.MediaKeysManager] onNeedKey
 media_player.js:24
 [  8.798s] [cast.player.core.MediaKeysManager] onNeedKey_: 1
 media_player.js:24
 [  8.803s] [cast.player.core.MediaKeySession] createSession
 media_player.js:24
 [  8.808s] [cast.player.core.MediaKeysManager] onNeedKey
 media_player.js:24
 [  8.811s] [cast.player.core.MediaKeysManager] onNeedKey_: 2.

How to pass a function from here (example 9.2.1. Clear Key) https://dvcs.w3.org/hg/html-media/raw-file/tip/encrypted-media/encrypted-media.html#examples and feed media_player with data? Something like this does not work

<video src="foo.webm" autoplay onneedkey="handleKeyNeeded(event)"></video>.

Also, what to pass here xmlhttp.open("POST", "[url]"); as url in order to play content from abovementioned URL?

来源:https://stackoverflow.com/questions/22040027/chromecast-playready-encryption

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!