will1971 / google-cast-sdk

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

Google Cast Device capabilities isn't set when devices is detected using guestmode #743

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When an iOS application has it´s wifi disabled and is scanning devices all the 
tested capabilites is not set.

Running code like this:
NSArray *devices = self.deviceScanner.devices;
    NSLog(@"**********************");
    for (GCKDevice *device in devices) {
        NSLog(@"Scanned device: %@", device.friendlyName);
        NSLog(@"GCKDeviceCapabilityMultizoneGroup: %@", [device hasCapabilities:GCKDeviceCapabilityMultizoneGroup] ? @"YES" : @"NO");
        NSLog(@"GCKDeviceCapabilityAudioIn: %@", [device hasCapabilities:GCKDeviceCapabilityAudioIn] ? @"YES" : @"NO");
        NSLog(@"GCKDeviceCapabilityAudioOut: %@", [device hasCapabilities:GCKDeviceCapabilityAudioOut] ? @"YES" : @"NO");
        NSLog(@"GCKDeviceCapabilityVideoOut: %@", [device hasCapabilities:GCKDeviceCapabilityVideoOut] ? @"YES" : @"NO");
    }
    NSLog(@"**********************");

Will reproduce output like this when device is not on local network:
2016-01-27 11:05:52.702 Blockbuster[7057:3020578] **********************
2016-01-27 11:05:52.702 Blockbuster[7057:3020578] Scanned device: Blockbuster 
Chromecast Gen.2
2016-01-27 11:05:52.702 Blockbuster[7057:3020578] 
GCKDeviceCapabilityMultizoneGroup: NO
2016-01-27 11:05:52.702 Blockbuster[7057:3020578] GCKDeviceCapabilityAudioIn: NO
2016-01-27 11:05:52.704 Blockbuster[7057:3020578] GCKDeviceCapabilityAudioOut: 
NO
2016-01-27 11:05:52.704 Blockbuster[7057:3020578] GCKDeviceCapabilityVideoOut: 
NO
2016-01-27 11:05:52.704 Blockbuster[7057:3020578] Scanned device: Blockbuster 
AudioOnly
2016-01-27 11:05:52.705 Blockbuster[7057:3020578] 
GCKDeviceCapabilityMultizoneGroup: NO
2016-01-27 11:05:52.705 Blockbuster[7057:3020578] GCKDeviceCapabilityAudioIn: NO
2016-01-27 11:05:52.705 Blockbuster[7057:3020578] GCKDeviceCapabilityAudioOut: 
NO
2016-01-27 11:05:52.705 Blockbuster[7057:3020578] GCKDeviceCapabilityVideoOut: 
NO
2016-01-27 11:05:52.705 Blockbuster[7057:3020578] **********************

And output like this when the device is scanned on the local network:
2016-01-27 11:06:08.302 Blockbuster[7057:3020578] **********************
2016-01-27 11:06:08.302 Blockbuster[7057:3020578] Scanned device: Blockbuster 
AudioOnly
2016-01-27 11:06:08.303 Blockbuster[7057:3020578] 
GCKDeviceCapabilityMultizoneGroup: NO
2016-01-27 11:06:08.303 Blockbuster[7057:3020578] GCKDeviceCapabilityAudioIn: NO
2016-01-27 11:06:08.303 Blockbuster[7057:3020578] GCKDeviceCapabilityAudioOut: 
YES
2016-01-27 11:06:08.304 Blockbuster[7057:3020578] GCKDeviceCapabilityVideoOut: 
NO
2016-01-27 11:06:08.305 Blockbuster[7057:3020578] Scanned device: Blockbuster 
Chromecast Gen.2
2016-01-27 11:06:08.305 Blockbuster[7057:3020578] 
GCKDeviceCapabilityMultizoneGroup: NO
2016-01-27 11:06:08.305 Blockbuster[7057:3020578] GCKDeviceCapabilityAudioIn: NO
2016-01-27 11:06:08.306 Blockbuster[7057:3020578] GCKDeviceCapabilityAudioOut: 
YES
2016-01-27 11:06:08.306 Blockbuster[7057:3020578] GCKDeviceCapabilityVideoOut: 
YES
2016-01-27 11:06:08.306 Blockbuster[7057:3020578] **********************

What version of the product are you using? On what operating system?
running google-cast-ios 2.10.0
ios 9.1 (iphone 6s)

Please provide any additional information below.

Original issue reported on code.google.com by jacobvon...@gmail.com on 27 Jan 2016 at 10:23

GoogleCodeExporter commented 8 years ago
This prevents me from filtering audioonly devices as I do not know their 
capabilities in guest mode.

Original comment by jacobvon...@gmail.com on 27 Jan 2016 at 10:27

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Could you please confirm that you are using chromecast generation 2 device and 
also please share the firmware version.

Also, could you please clarify on "And output like this when the device is 
scanned on the local network". Does this mean device is scanned with local WiFi 
ON?

Original comment by vinot...@google.com on 11 Feb 2016 at 1:55

GoogleCodeExporter commented 8 years ago
The serial number of the Audio only device is: 5B02104Y7Z91. I do not know if 
this is produced in a 1. and 2. generation. But the physical design looks like 
the 2. generation chromecast devices - which also in my case is a 2. generation 
Chromecast: 5A16103Y8U5S.

So two devices is tested:
- Chromecast (2. gen)
- Audio only device (best guess is 2. gen)

The "And output like this when the device is scanned on the local network:" is 
when the devices is scanned on the local wifi network.

Original comment by jacobvon...@gmail.com on 11 Feb 2016 at 8:41

GoogleCodeExporter commented 8 years ago
Regarding comment#4, please let us know firmware version. (check 
https://support.google.com/chromecast/answer/3210071?hl=en on how to get 
firmware version of chromecast device). 

Also, for reference Generation 2 device will look like this 
(https://store.google.com/product/chromecast_2015). 

Original comment by vinot...@google.com on 11 Feb 2016 at 7:23

GoogleCodeExporter commented 8 years ago

Original comment by vinot...@google.com on 12 Feb 2016 at 6:52

GoogleCodeExporter commented 8 years ago
Reminder to reply with required information. 

Original comment by vinot...@google.com on 5 Mar 2016 at 12:28