1

I created my IOS application based on CastHelloText example, I can connect perfectly to chromecast but when launching the app, nothing happens

Sometimes I see a message on my TV saying "brain freeze"

in the app, the delegate method:

- (void)deviceManager:(GCKDeviceManager *)deviceManager
didConnectToCastApplication:(GCKApplicationMetadata *)applicationMetadata
                  sessionID:(NSString *)sessionID
        launchedApplication:(BOOL)launchedApplication

is never called!

I think I can be setting something wrong in the developer console, When I check the option IOS, there is a field that says App URL and not sure I should enter there!

Is there any option to call directly to a URL without using an app id?

1 Answer 1

2

I use the default Media Player AppID for my test kGCKMediaDefaultReceiverApplicationID until I figured out how to make my application work.

Maybe this would help.

3
  • 1
    As a side note, please do not use these "hardcoded" app ids since that can change at any time without any notice; instead you can use app ids that are available through each SDK: For Android apps: CastMediaControlIntent.DEFAULT_MEDIA_RECEIVER_APPLICATION_ID, For Chrome apps: chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID, For iOS apps: kGCKMediaDefaultReceiverApplicationID
    – Ali Naddaf
    Commented Feb 8, 2014 at 1:17
  • Thanks, but maybe it should be great to have it set by default on the iOS demo app like on CastVideos-chrome sample app ?
    – jmackomstv
    Commented Feb 8, 2014 at 1:34
  • Open a feature request for that project on Github please.
    – Ali Naddaf
    Commented Feb 8, 2014 at 1:39

Not the answer you're looking for? Browse other questions tagged or ask your own question.