mmeitine / google-cast-sdk

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

chromecast fails to decrypt playready content after successfully getting license #666

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. own M-GO movie or UV movie and link your UV account to your M-GO account
2. use M-GO android application and connect to your chromecast, play movie
3. see playback fail due to failure to decrypt content with play ready license

What is the expected output? What do you see instead?
movie should play

What version of the product are you using? On what operating system?
chrome cast current firmware

Please provide any additional information below.
 here are the log entries of getting license and it failing to decrypt content:  accessToken has been xxed out on purpose for this posting.

The player can load media chunks correctly but playback will eventually fail 
with the following error:

[260.350s] [cast.player.core.MediaKeySession] keyerror

[260.357s] [cast.player.api.Host] error: cast.player.api.ErrorCode.MEDIAKEYS

It appears that the request to the license server successful, but of course 
playback fails.

I captured the request body and response from the license server, I hope it is 
helpful:

Request:

<?xml version="1.0" encoding="utf-8"?><soap:Envelope 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><AcquireLicens
e 
xmlns="http://schemas.microsoft.com/DRM/2007/03/protocols"><challenge><Challenge
 xmlns="http://schemas.microsoft.com/DRM/2007/03/protocols/messages"><LA 
xmlns="http://schemas.microsoft.com/DRM/2007/03/protocols" Id="SignedData" 
xml:space="preserve"><Version>1</Version><ContentHeader><WRMHEADER 
xmlns="http://schemas.microsoft.com/DRM/2007/03/PlayReadyHeader" 
version="4.0.0.0"><DATA><PROTECTINFO><KEYLEN>16</KEYLEN><ALGID>AESCTR</ALGID></P
ROTECTINFO><KID>JBP/OUM2C0ez2oj6/yHiIA==</KID><CHECKSUM>r/MzpJqDGJk=</CHECKSUM><
LA_URL>https://www.mgo.com/license/smoothstreaming</LA_URL><CUSTOMATTRIBUTES><II
S_DRM_VERSION>7.1.1565.4</IIS_DRM_VERSION></CUSTOMATTRIBUTES></DATA></WRMHEADER>
</ContentHeader><CLIENTINFO><CLIENTVERSION>2.5.0.1788</CLIENTVERSION></CLIENTINF
O><RevocationLists><RevListInfo><ListID>ioydTlK2p0WXkWklprR5Hw==</ListID><Versio
n>10</Version></RevListInfo><RevListInfo><ListID>gC4IKKPHsUCCVhnlttibJw==</ListI
D><Version>11</Version></RevListInfo><RevListInfo><ListID>BOZ1zT1UnEqfCf5tJOi/kA
==</ListID><Version>12</Version></RevListInfo><RevListInfo><ListID>Ef/RUojT3U6Ct
2jqTCChbA==</ListID><Version>26</Version></RevListInfo></RevocationLists><Custom
Data>contentID=MMVF4795D2C06F1315D043FB7E4DB93A2558 
accessToken=6fcc88fc1edc47b7aXXXXX definition=HD 
delivery=STREAM</CustomData><LicenseNonce>lj7dFPgaPZd1tuXKOfUOAA==</LicenseNonce
><EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#" 
Type="http://www.w3.org/2001/04/xmlenc#Element"><EncryptionMethod 
Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"></EncryptionMethod><KeyI
nfo xmlns="http://www.w3.org/2000/09/xmldsig#"><EncryptedKey 
xmlns="http://www.w3.org/2001/04/xmlenc#"><EncryptionMethod 
Algorithm="http://schemas.microsoft.com/DRM/2007/03/protocols#ecc256"></Encrypti
onMethod><KeyInfo 
xmlns="http://www.w3.org/2000/09/xmldsig#"><KeyName>WMRMServer</KeyName></KeyInf
o><CipherData><CipherValue>TrI33EPlN0od88NhZgBAhWMG85DUb1PV4x7pBZDmwl0/vFIvl1Cck
uxAoRtVwNNVFlfiNiX6K1Q1nhX7DGXqOdA664CIK7/OwdlpBYb+9QXZMdgholjJMhLkxtjwLWQRW1wwA
1w2H+1QqEJXcFUt/VbbO1d4iAUsvkDz2pBGyOQ=</CipherValue></CipherData></EncryptedKey
></KeyInfo><CipherData><CipherValue>rcN5+sUBEl1p32JE+xaQ9Qbc4LxoZcu5umSI2hTTjzfq
r6h7uKJ/qbkvDWY/7sySI3MH9VMqieqKEy5aumh9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z2CwMwS2kZemcWgC0w5u3CXsiDirbIHkal4Dwg2We6CYmo/bGEnNYd/
cc6TskOpsuK9DOimJexlCAfkp4W5mdoxQIXcZ9JY8O0PggCED/VSPFQGQgDaQcCWl8bns4A/QcwDwAlu
7jeLVJs3bdSwA0VIpucBRxFj0lHiIktNXXMeJPQzg8wcWfVsErNsHFXW1PfCd44djU8eq2Z0LG4hox5r
a85sbw4rgLobQowo2NXKuIIBaNw4gKyp7cD9y3nttw0Dg0dZypuXM7AS1quAe5hHZhgFmY+6f4RrID69
lqRWzhZh/vnR9dIYRTXh2D+GWkHOuMdIb2St7I263hAHpXlveKVCbtPAc50x7ormW88ZJv62JLCuWir3
BvlJHlNhRgQmzAUg5nO3L+LXsp4Pq2Pp6bpH/6DV/sPHt/9DRZWcE17cPv3IP7b+FyqawhUYm6K9te84
TIMERjYoq0J95ll2G/cxm7NegyKhyJTth1ZO5Q1PTECr5Kq/Z59Vi+M+m/yo8K2fxjfYjkKZgsZBsQrt
q0GIGogwfcEZgBytoPCE76IhV8Et/MBU8K7Kj9MH0KqhxPcD9Xe8uu+DlYQSopu/Mgtfm8nkQQeBgYCG
kUNaikZNBN4dJdkbuAeF</CipherValue></CipherData></EncryptedData></LA><Signature 
xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo 
xmlns="http://www.w3.org/2000/09/xmldsig#"><CanonicalizationMethod 
Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></CanonicalizationMe
thod><SignatureMethod 
Algorithm="http://schemas.microsoft.com/DRM/2007/03/protocols#ecdsa-sha256"></Si
gnatureMethod><Reference URI="#SignedData"><DigestMethod 
Algorithm="http://schemas.microsoft.com/DRM/2007/03/protocols#sha256"></DigestMe
thod><DigestValue>jPaB+wZcRU8fQWJUrkd+wFqYFIwsx3DKYtamrThFwsY=</DigestValue></Re
ference></SignedInfo><SignatureValue>r8cshogs8x+4dxxTRuHeQ+pMgF8VnbSPXaEHf2la7dm
lpDN3sCZXP7dHHh9CwzyMxpgPcALdsH4Bkd8TGJAgPg==</SignatureValue><KeyInfo 
xmlns="http://www.w3.org/2000/09/xmldsig#"><KeyValue><ECCKeyValue><PublicKey>TtP
WJyQI9A3OhuC4dIDGhhAz59lNm9WdFQNsm0TYHqzmXfRR6cUSnQ3VoMIE8FF6s5b6MlgsaOwwnxz9mRs
hxA==</PublicKey></ECCKeyValue></KeyValue></KeyInfo></Signature></Challenge></ch
allenge></AcquireLicense></soap:Body></soap:Envelope>

Response

<?xml version="1.0" encoding="utf-8"?><soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><AcquireLicenseResponse 
xmlns="http://schemas.microsoft.com/DRM/2007/03/protocols"><AcquireLicenseResult
><Response 
xmlns="http://schemas.microsoft.com/DRM/2007/03/protocols/messages"><LicenseResp
onse xmlns="http://schemas.microsoft.com/DRM/2007/03/protocols" 
Id="SignedData"><Version>1</Version><Licenses><License>WE1SAAAAAANemQuPnpyxSb7H2
LeUtZAEAAMAAQAAAQYAAgAEAAAAKAACADYAAAAgAAAAOQAAABjYJ2Z4psK+RI+ICK4lWwGnAAMAAgAAA
FAAAQAwAAAADAAnjQAAAQASAAAAEAAAAABWRueTAAAAEwAAAAxWH0yDAAEAMgAAAAwAAAANAAEANAAAA
AoAlgAAADMAAAAKAAIAAwAJAAAAagABAAoAAAA+JBP/OUM2C0ez2oj6/yHiIAABAAIAIOqvPAGXtfLeU
SxBmu+KByD4EsoZIqgOAZVBp1D2J/37AAEAOwAAACRY2yKlkaUySK+xPuVpT4bhAAEACN66PyhKqsADA
AEACwAAABwAAQAQCuwAmIUq3SzDNYXLohjgOQ==</License><License>WE1SAAAAAANiLMjQyK46TK
MHDacmwe1kAAMAAQAAAVIAAgAEAAAACAADAAIAAAA0AAAAEwAAAAxWH0yDAAEAMgAAAAwAAAANAAEANA
AAAAoAlgAAADMAAAAKAAEAAwAJAAAA8gABAAoAAACeWNsipZGlMkivsT7laU+G4QADAAMAgPplKMUHqD
7q3ibvrj6EnsCGGQyY+msdTyY+rinyx4XXsUJliFic+Gz7reZ0OpfnSL64w6n0vjRlDTxLhfamc4LGLr
YsxrB5UC/nN/3romKUkHAWXf42CInIJx7qj1KhI5NZJRl6Fr2gxCF5nedid6JrbwfrTVcgAP54NieOBn
EeAAAAKgAAAEwAAQBA6ElP+O0yql/pzK2FcY4FCgjezNt5RWQpYlcjG+rG4Dhce+tg4KzqSeUfcXEhSY
Jzb9A2qubrdKo3vDQw5oDpkAABAAsAAAAcAAEAEJNf/rRYpEdcq8N1Ee8i9JQ=</License></Licens
es><CustomData>contentID=MMVF4795D2C06F1315D043FB7E4DB93A2558 
accessToken=6fcc88fc1edc47b7afe4ff6c4ebe86ed definition=HD 
delivery=STREAM</CustomData><LicenseNonce>lj7dFPgaPZd1tuXKOfUOAA==</LicenseNonce
><ResponseID>CRYFqe6V4tpm6IKfFgFIWNmY4WiU7NBrX269iSRsZJI=</ResponseID><SigningCe
rtificateChain>Q0hBSQAAAAEAAAOQAAAAAAAAAAJDRVJUAAAAAQAAAcwAAAE8AAEAAQAAAFg4fKUXR
sBZfyOKLWGnjERZAAAAAAAAAAAAAAALBUFfyjqkPgZM+1X00HK9sJZqAxITC69QC+cZa+j0jx5W1NuAA
AAAAAAAAAAAAAAAAAAAAAABAA8AAAAMAAAALQABAAUAAAAQAAAAAQAAAAwAAQAGAAAAYAAAAAEAAQIAA
AAAAM8GTuJNkV2tSvbiY52GW/XLCwrM/rsJurpMNTy9QbGVnGvQ768brlinUyJdb55HIGNzUUtVss5r7
MMITSVKn5YAAAACAAAAAQAAABQAAAAHAAAAWAAAAAAAAAAQTWVkaWFOYXZpQ28gTExDAAAAAChQbGF5U
mVhZHkgU2VydmVyIERlcGxveW1lbnQgQ2VydGlmaWNhdGUAAAAABjQyMDMxAAAAAAEACAAAAJAAAQBA0
D2TZ2MqoCvJAochT8nBPRjo8hRTX5rL7G1sF2qh5GtAzGHhJcEnjfGxlqoUtL7FCCgx9Sl9sVbqtt6Oz
jA+rAAAAgDNHddz+oiHRZKMm1Isw8y5uUHyJ1K/jzTaWU4vRKMhRXXtR1kr7zsmMQzhfLUrgo+JXj+DJ
/N1yZvDCwxGfEYmQ0VSVAAAAAEAAAGwAAABIAABAAEAAABYmgoLNjK7RTGjazONWZH0bwAAAAAAAAAAA
AAABPaIVPWtSmiciPW1MKsGlcQTqO0eMUvoBvB79BEnQbZ8/////wAAAAAAAAAAAAAAAAAAAAAAAQAFA
AAADAAAAAAAAQAGAAAAYAAAAAEAAQIAAAAAAM0d13P6iIdFkoybUizDzLm5QfInUr+PNNpZTi9EoyFFd
e1HWSvvOyYxDOF8tSuCj4leP4Mn83XJm8MLDEZ8RiYAAAACAAAAAQAAAA8AAAAHAAAATAAAAAAAAAAKT
Wljcm9zb2Z0AAAAAAAAHVBsYXlSZWFkeSBTTDAgU2VydmVyIFJvb3QgQ0EAAAAAAAAACDEuMC4wLjEAA
AEACAAAAJAAAQBAOjj5VWrMfYHeH+3Z2aEthKFrm6yhopLn5sdhw99G8nBbuad9WMOvWC1ZHklRdhhDt
f07US/Y7sNA9sBLQpff8wAAAgCGTWHP8iVuQixWizwoABz7PhUnZYWEugUht5sYKNk23h2Cao/D5uf6e
pDVyilG8fZKLvufXc/+fkNOtEKT+sWr</SigningCertificateChain></LicenseResponse><Sign
ature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo 
xmlns="http://www.w3.org/2000/09/xmldsig#"><CanonicalizationMethod 
Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></CanonicalizationMe
thod><SignatureMethod 
Algorithm="http://schemas.microsoft.com/DRM/2007/03/protocols#ecdsa-sha256"></Si
gnatureMethod><Reference URI="#SignedData"><DigestMethod 
Algorithm="http://schemas.microsoft.com/DRM/2007/03/protocols#sha256"></DigestMe
thod><DigestValue>u25x0G/Yo/x+xyB/x1Co1T874yCj2UAxLPJUp5sqYcg=</DigestValue></Re
ference></SignedInfo><SignatureValue>ep95wj7oYytX3bYfmNvQSQuyEE7FmKGS/O/zKsjQm+5
szSS6H+WARhWjSL3PPImb7CCW4ZEfwUkngmgWQwfkjA==</SignatureValue></Signature></Resp
onse></AcquireLicenseResult></AcquireLicenseResponse></soap:Body></soap:Envelope
>

Original issue reported on code.google.com by lee.shar...@mgo.com on 16 Oct 2015 at 6:58

GoogleCodeExporter commented 9 years ago
When did you start seeing this issue? Can you provide any videos for which 
you're seeing this behavior?

Original comment by jonathan...@google.com on 16 Oct 2015 at 8:59

GoogleCodeExporter commented 9 years ago
well it was also reported 
here:https://code.google.com/p/google-cast-sdk/issues/detail?id=669

1. Setup the CastMediaPlayerStreamingDRM example receiver and sender.
2. Enter the following media URL: 
http://playready.directtaps.net/smoothstreaming/SSWSS720H264PR/SuperSpeedway_720
.ism/Manifest
3. Click on "Load Media"

Or 

1. create an account on mgo.com
2. find free tv episode for Crazy Ex girlfriend
3. get it.
4. connect to chromecast
5. play episode.

Original comment by lee.shar...@mgo.com on 20 Oct 2015 at 6:47

GoogleCodeExporter commented 9 years ago
So are you seeing the issue on Chromecast firmware version 44433 and previously 
saw that it worked on 38401, as mentioned in 669?

Original comment by jonathan...@google.com on 20 Oct 2015 at 5:59

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
^ yes, firmware 44433 is where we are seeing the issue, and 38401 it was 
working fine.

Original comment by hans....@mgo.com on 20 Oct 2015 at 9:56