ithlony / google-cast-sdk

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

- (instancetype)initWithFilterCriteria:(GCKFilterCriteria *)filterCriteria; #623

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

Initialising scanner wit this method causes the scanner will never find my 
Chromecast device.

GCKFilterCriteria * filterCriteria = [GCKFilterCriteria 
criteriaForAvailableApplicationWithID:@"MY-APP-ID-HERE"];
_scanner = [[GCKDeviceScanner alloc] initWithFilterCriteria:filterCriteria];

string @"MY-APP-ID-HERE" is replaced to my application ID.

Our cast device has been published and it's working good with Android SDK.

And it's working good with this method:
_scanner = [[GCKDeviceScanner alloc] init];

but -(instancetype)init; has been deprecated.

Original issue reported on code.google.com by zaychenk...@gmail.com on 4 Aug 2015 at 11:21

GoogleCodeExporter commented 8 years ago

Original comment by jonathan...@google.com on 4 Aug 2015 at 6:05