gingerbeur / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
0 stars 0 forks source link

HLS AES-128 Encrypted Streams Failing To Load (MEDIAKEYS) #426

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Setup the CastMediaPlayerStreamingDRM example receiver and sender
2. Enter the following custom media URL: 
http://demo.unified-streaming.com/video/oceans/oceans_aes.ism/oceans_aes.m3u8
3. Hit "Load Custom Media"

What is the expected output? What do you see instead?
Expected: Stream should play
Actual: The cast.player.api.Host throws a cast.player.api.ErrorCode.MEDIAKEYS 
error right after successfully downloading an encryption key file. Stream stops.

What version of the product are you using? On what operating system?
1. Current CastMediaPlayerStreamingDRM example receiver and sender (as of 
commit 5914983)
2. Chromecast firmware version 22062

Please provide any additional information below.
Some additional remarks:
1. Call me crazy but encrypted streams were working 2 days ago... has there 
been an update? I've started developing on Chromecast a few days ago, therefore 
I might missed the update.
2. This problem is not related to CORS, the manifest, segments and key file are 
downloaded fine as can be seen in the debugger's network view. Console log 
shows all XHR requests as successful too.
3. I've tested this problem with several encrypted streams, all are working 
fine in other players (e.g. VLC)

Original issue reported on code.google.com by hugotheg...@gmail.com on 10 Nov 2014 at 1:26

GoogleCodeExporter commented 9 years ago
I'm able to play this stream with my test player without issues. Could you 
please turn on media player library logging using

cast.player.api.setLoggerLevel(cast.player.api.LoggerLevel.DEBUG);

and attach a console log?

Original comment by vadi...@chromium.org on 10 Nov 2014 at 6:05

GoogleCodeExporter commented 9 years ago
Thank you for your quick reply.

I've attached a log file following a click on "Load custom media" in the 
CastMediaPlayerStreamingDRM example.

Original comment by hugotheg...@gmail.com on 10 Nov 2014 at 6:16

Attachments:

GoogleCodeExporter commented 9 years ago
Forgot to mention that I`ve already tried restarting and a factory reset.

Original comment by hugotheg...@gmail.com on 10 Nov 2014 at 6:30

GoogleCodeExporter commented 9 years ago
Are you hosting your receiver on http or https?  Please be sure it's https.  
It's the most likely cause of this error.  The use of WebCrypto by media player 
library for decrypting HLS segments requires the receiver app page to be https. 
 You will also need to be using https for a production app.

Original comment by vadi...@chromium.org on 10 Nov 2014 at 7:16

GoogleCodeExporter commented 9 years ago

Original comment by and...@google.com on 10 Nov 2014 at 9:50

GoogleCodeExporter commented 9 years ago
Thanks for the explanation, that's the problems cause!
I've switched to a different dev server at some point in development - plain 
http - never recognized the link. If I may suggest there could be a remark on 
this at https://developers.google.com/cast/docs/player. Or is there any way to 
improve the error message?

Thank you for your help!

Original comment by hugotheg...@gmail.com on 10 Nov 2014 at 10:07

GoogleCodeExporter commented 9 years ago

Original comment by jonathan...@google.com on 11 Nov 2014 at 1:37