问题
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