Created
January 23, 2020 03:18
-
-
Save gergardiol/d2002e5a861b1896e38ead991c0d46c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <GoogleCast/GoogleCast.h> | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
// ADD THIS CODE SNIPPET -> | |
GCKDiscoveryCriteria *criteria = [[GCKDiscoveryCriteria alloc] initWithApplicationID:kGCKDefaultMediaReceiverApplicationID]; | |
GCKCastOptions* options = [[GCKCastOptions alloc] initWithDiscoveryCriteria:criteria]; | |
[GCKCastContext setSharedInstanceWithOptions:options]; | |
// - | |
return YES; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment