ithlony / google-cast-sdk

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

Cast visibility events are inconsistent #629

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Listen to visibility changed events in a custom receiver app
2. Cast the app to a TV.
3. Turn the TV off and then back on Note: the Chromecast is attached to a wall 
charger so it does not lose power

What is the expected output? What do you see instead?
In the developer console, I logged to the visibility changed events. I get the 
following when I do the step above:
Turn TV off
Turn TV on
[1362.485s] [cast.receiver.IpcChannel] Received message: 
{"data":"{\"type\":\"visibilitychanged\",\"visible\":false}","namespace":"urn:x-
cast:com.google.cast.system","senderId":"SystemSender"}
[1362.490s] [cast.receiver.CastMessageBus] Dispatching CastMessageBus message
[1362.493s] [cast.receiver.CastReceiverManager] Dispatching visibility changed 
event false
Visibility event received (visibility is now: notvisible)
[1375.236s] [cast.receiver.IpcChannel] Received message: 
{"data":"{\"type\":\"visibilitychanged\"}","namespace":"urn:x-cast:com.google.ca
st.system","senderId":"SystemSender"}
[1375.242s] [cast.receiver.CastMessageBus] Dispatching CastMessageBus message
[1375.245s] [cast.receiver.CastReceiverManager] Dispatching visibility changed 
event null
Visibility event received (visibility is now: unknown)

Please provide any additional information below.
I'm not sure if this has to do with how the TV reports changes to the 
Chromecast or not. It's seems strange that the events come sequentially like 
that.

Original issue reported on code.google.com by DanWKenn...@gmail.com on 10 Aug 2015 at 3:51

GoogleCodeExporter commented 8 years ago
Note: I would expect the visibility change to notvisible to happen when I 
turned the TV off

Original comment by DanWKenn...@gmail.com on 10 Aug 2015 at 3:53

GoogleCodeExporter commented 8 years ago
As I was debugging this problem, it seems the visibility events get dropped 
when the TV gets turned off but they happen correctly when you change the input 
on the TV. i.e. The NOT_VISIBLE event gets triggered when you switch input away 
from the Chromecast and the VISIBLE event gets triggered when the input is 
switched back to the Chromecast.

Original comment by DanWKenn...@gmail.com on 10 Aug 2015 at 6:34

GoogleCodeExporter commented 8 years ago
What's the make and model of the TV for which you're seeing this inconsistency? 
Have you seen this occur on any other TVs? 
What's your Chromecast's firmware version number?

Original comment by jonathan...@google.com on 11 Aug 2015 at 6:28

GoogleCodeExporter commented 8 years ago
We're testing on two TV's and Chromecasts.

The first set up is:
TV: Insignia NS-50D550NA15
Chromecast Firmware: 38401

The second set up is:
TV: LG 42LF5600
Chromecast Firmware: 38401

The issue happens as described with both TV's

Thanks for the quick reply.

Original comment by DanWKenn...@gmail.com on 11 Aug 2015 at 7:05

GoogleCodeExporter commented 8 years ago
Thanks for the information, we'll look into it.

Original comment by jonathan...@google.com on 11 Aug 2015 at 10:07