imberezin / google-cast-sdk

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

Smoothstream / Playready : Media Player fails to request license #701

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Get smoothstream manifest and playready license url from: 
http://api.katsomo.fi/api/web/asset/261752/play
2. Try to play stream using CastMediaPlayerStreamingDRM receiver app

What is the expected output?

Stream should play. 

What do you see instead?

Stream fails to play.

What version of the product are you using? On what operating system?

Chromecast 1 & 2. MPL 1.0. Cast Receiver 2.0.

Please provide any additional information below.

Following error appears in the console:

[ 43.473s] [cast.player.api.Host] error: cast.player.api.ErrorCode.MEDIAKEYS
### HOST ERROR - Fatal Error: code = 2

There are no requests made to the licenseUrl in the network console.

Original issue reported on code.google.com by tuomas...@gmail.com on 9 Dec 2015 at 1:55

GoogleCodeExporter commented 8 years ago
It is required that DRM content have secured origin. Please load the content 
over https. 

Original comment by na...@google.com on 11 Dec 2015 at 2:38

GoogleCodeExporter commented 8 years ago
Hi, thanks for the reply. Protocol is not the issue here, it is changed to 
https before setting host's licenseUrl property.

Original comment by tuomas...@gmail.com on 11 Dec 2015 at 7:48

GoogleCodeExporter commented 8 years ago
Please share receiver logs. 

Original comment by na...@google.com on 12 Dec 2015 at 1:17

GoogleCodeExporter commented 8 years ago
Hi, logs are attached as a file. It looks like the player interprets stream url 
as a relative even it is an absolute.

GET 
https://www.katsomo.fi/multimedia/chromecast/%20http://mtvlive.katsomo.fi/s…ul
stream/DR49.isml/QualityLevels(500000)/Fragments(video=1696597230000000) 404 
(Not Found)

Original comment by tuomas...@gmail.com on 16 Dec 2015 at 1:49

Attachments:

GoogleCodeExporter commented 8 years ago
Can you please test this on the latest release of MPL - 1.0.0.25 
(https://developers.google.com/cast/docs/release-notes#december-2-2015). See if 
the upgrade resolves the issue. 

Original comment by na...@google.com on 17 Dec 2015 at 12:00

GoogleCodeExporter commented 8 years ago
Could you point out where I can find the latest version?

This returns 404 
http://www.gstatic.com/cast/sdk/libs/mediaplayer/1.0.0.25/media_player.js

Thanks.

Original comment by tuomas...@gmail.com on 18 Dec 2015 at 10:58

GoogleCodeExporter commented 8 years ago
In your receiver code add below:

<script type="text/javascript"
    src="//www.gstatic.com/cast/sdk/libs/mediaplayer/<version_number>/media_player.js">
</script>

See the full code here: 
https://developers.google.com/cast/docs/player#host-player-and-protocol

Original comment by na...@google.com on 19 Dec 2015 at 12:38

GoogleCodeExporter commented 8 years ago
The URL you provided works only with version number 1.0.0.

Original comment by tuomas...@gmail.com on 21 Dec 2015 at 7:38

GoogleCodeExporter commented 8 years ago
You seem to be using the latest version already according to the log provided. 
Can you please share your cast.player.api.Host implementation? 

Original comment by na...@google.com on 23 Dec 2015 at 12:48

GoogleCodeExporter commented 8 years ago
In the attached you can find loadMedia function with mediaHost implementation.

Original comment by tuomas...@gmail.com on 23 Dec 2015 at 11:35

Attachments:

GoogleCodeExporter commented 8 years ago
There doesn't seem to be any issue with Cast SDK here. Please check the stream 
URL itself and/or the requirements at the origin for accessing it. 
404 is indicating that the stream wasn't found at the URL provided. It could be 
moved or deleted as well. 

Original comment by na...@google.com on 30 Dec 2015 at 7:59

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi, could you please explain why player interprets stream url as a relative url 
(player adds receiver url before stream url):

GET 
https://www.katsomo.fi/multimedia/chromecast/%20http://mtvlive.katsomo.fi/s…ul
stream/DR49.isml/QualityLevels(500000)/Fragments(video=1696597230000000) 404 
(Not Found)

This was the url in the manifest : 
http://mtvlive.katsomo.fi/simulstream/DR49.isml/QualityLevels(500000)/Fragments(
video=1696597230000000)

This is the receiver url: https://www.katsomo.fi/multimedia/chromecast/

Original comment by tuomas...@gmail.com on 31 Dec 2015 at 9:50