wavefree / google-cast-sdk

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

MediaProtocolCommand.Listener onCompleted is not called when it fails to load a video #55

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Write an app like the cast sample app. I used most of the sender code and the 
exact receiver code (with my own appid).
2.Use the sender to tell the device to load a video which you know it will not 
be able to play.

What is the expected output? What do you see instead?

I expect (from the documentation) for onCompleted to be called, and hasError() 
to be true. Instead that never happens. On the chromecast console I see the 
following:

[ 8.188s] [cast.receiver.ChannelOverWebSocket] Sending message: 
["ramp",{"cmd_id":1,"type":"RESPONSE","status":{"event_sequence":10,"error":{"do
main":"ramp","code":-2}}}] from ws://localhost:8008/session?20

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

Chromecast firmware 12940. Sender is running on Android 4.2.2. 

Original issue reported on code.google.com by casol...@gmail.com on 29 Aug 2013 at 1:35

GoogleCodeExporter commented 9 years ago
On one of my many tests I noticed this on the Android logs. I think it is 
related.

08-30 16:26:14.686: ERROR/MediaProtocolMessageStream(5588): error parsing 
message: 
{"type":"RESPONSE","cmd_id":1,"status":{"error":{"domain":"ramp","code":-2},"eve
nt_sequence":1764}} org.json.JSONException: No value for state

Original comment by casol...@gmail.com on 30 Aug 2013 at 9:27

GoogleCodeExporter commented 9 years ago

Original comment by l...@google.com on 25 Sep 2013 at 11:26

GoogleCodeExporter commented 9 years ago
Thank you for your support of Chromecast.  We've just released a major update 
to the Google Cast SDK and will be closing your issue.

Take a look at http://googledevelopers.blogspot.com/ for more information.

Original comment by l...@google.com on 3 Feb 2014 at 11:36