I downloaded the chromecast ios sample and when I connect the sample application to chromecast, it give the following error:
error domain=com.google.GCKError code=7 "The operation couldn't be completed. (com.google.GCKError error 7.)"
Do you know why?
I got the same error message while testing the "CastHelloText-ios" sample provided by Google on GitHub.
First I checked all the required steps described by Google were ok:
In your cast developer console: check your Chromecast has the status "Ready for Testing" otherwise register it.
host the receiver somewhere on the web and note the URL
in the cast developer console, declare a new app with a custom receiver and fill the URL of your receiver. Save it and note the application ID.
fill this application ID in the controller of your iOS app: static NSString *const kReceiverAppID = #"1234ABCD";
make sure that your chromecast has the option "Send this Chromecast's serial number to Google when checking for updates" is ticked (in the iOS app it's in the General section of your device)
Finally I solved the issue by rebooting the chromecast:
Run the Chromecast iOS app from Google, click on your chromecast device, click on General and click on the red button "Reboot".
For information, I've performed this reboot after reading the note of this Google documentation:
If you wish to verify that your published application is working properly, you can manually restart your Google Cast device to force a load of new configuration data.
PS:
- to reboot your chromecast you can use any chromecast app provided by Google (iOS, Android, MAC, etc.)
GCKErrorCodeApplicationNotFound - Typically this error will occur if either your device doesn't have [x] send my serial # to Google set, or your AppID is incorrect.
We'll try to get the docs updated shortly.
For test this app you will need to change this line
[self.deviceManager launchApplication:kReceiverAppID];
To use default applicationID:
[self.deviceManager launchApplication:kGCKMediaDefaultReceiverApplicationID];
Or you need to create a development account and to change kReceiverAppID with your AppID.
And if you have an another error, you can to check the GCKError.h class, there has all error codes possible with explanation
I had the same problem. In my case seems like the Chromecast still associated with the old Application ID. It worked fine after restarting the device.
Related
I'm new to Programming Business and making Broadcasting App Which is supposed to Handle Screen Broadcast Function(iPhone Control Center --> Broadcast. Like a Mobcrush).
So I try to implement Broadcast App Extension that was introduced at WWDC, but my Demo App Doesn't work well. My Demo App Just Doesn't Broadcast And Just Show Me an Error Alert Which Says "Live Broadcast to MYDemoApp has stopped due to: (null)"
Here Are The Things What I Did On Demo App
Implementing App Extension(BroadCast Extension. Which Makes SampleHandler, BroadcastSetupViewController)
Implementing App Group(Setting Capability, BundleIdentifier,
Setting App Groups And Provisioning Profile in Developer.Apple.com)
Pod Install And Copied The Codes That I Didn't Write From Other Developer's Demo App (HaishinKit)
(https://github.com/shogo4405/HaishinKit.swift)
Put RTMP URL String in userDidFinishSetup() in BroadcastSetupViewController
(This App is Demo, So i Just Put My Own RTMP Address And Stream Key. Like This : rtmp://bc.CompanyName.tv/app/VeryLongStreamKey)
Plus, I Think this is Not an RTMP URL Issue. because I already did Camera(Front, Rear) Broadcast Test With That URL(Not an App Extension. Just in the Simple ViewController).
Could you Tell Me A Hint? Any Feedback Would Be Appreciated!
Thank For You Reading My First Question About Coding.
This is an Alert That I Saw
I found there is many limitations on iOS broadcast extension.
- If extension started by container app via API, Network become off when app goes background.
- File access is not possible.
- Asset access is not possible.
- Swift print() do nothing. Use NSLog() and idevicesyslog.
- Xcode "Attach to process by PID or Name..." works.
If you get "due to (null)" error, debug on Xcode by attaching process.
Or put NSLog() and see by idevicesyslog.
Trying to use this sample app provided by Google: https://github.com/googlecast/CastHelloVideo-ios
It is not asking to connect with my Chromecast, or even scanning for receiver devices. There is only the "Cast Video" button that alerts "Not Connected - Please connect to Cast device" when clicked. I understand there is a whitelisting/registration process for styled and custom media receiver apps, but there is supposed to be a default media receiver app built into the Chromecast that I should be able to use right away. How can I make it scan for devices?
Did you follow the instructions for setting up that app? Unless you use your own App Id or you update the sample to use the default app id, it won't find any device; it is doing the scanning. In addition, please use the GitHub's issue tracker to ask questions about that and other cast samples if you run into any issues when trying to run them.
I have downloaded Hue-Emulator and after running the emulator by running this url http://localhost:8000/api/newdeveloper/ I am getting the config.
I am using Apple SDK to control the lights.
After following SDK steps 1 to 4 using following code to connect to the device.
I am using the IP address and mac address shown in config.
[self.phHueSDK setBridgeToUseWithIpAddress:#"192.168.2.13:8000" macAddress:#"00:00:81:10:ab:ee"];
And after using PUSHLink notification
I am getting No Connection error and
When I Use enable connection i am getting No Authentication error.
In NS Log I am getting this errors.
The code taking Username 1i71xQmdLjajcqAk but it should be newdeveloper according to the HUE emulator. please anyone suggest how can i recover from this error.
I have never used the Apple SDK with the Emulator, but creating new users in the Emulator is supported so it should work.
When you create your new user in your app, do you see a white message in the emulator console (saying link button not pressed)? if so, then mouse click the bridge image 'within 30 seconds' and this should authenticate. From your log file it appears this is what is missing.
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?
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.
Hello I am trying to cast the demo videos for iOS in the github reporitory.
When running CastHelloVideo-ios I see that the program finds the device, conects to the device but it never launches the page. I have the same issue with the other samples in the repository.
The only one that was able to run one time is CastHelloText with Application Id "588BF969". Then I tried to create another application ID "70138F0B" for the same project and it doesn't launch the page, this is the log.
2014-02-06 16:46:20.862 HelloTextGoogleCast[8798:60b] device found!! CVC Off
2014-02-06 16:46:20.866 HelloTextGoogleCast[8798:60b] device found!! JBcast
2014-02-06 16:46:22.873 HelloTextGoogleCast[8798:60b] Selecting device:JBcast
2014-02-06 16:46:24.348 HelloTextGoogleCast[8798:60b] connected!!
NO LOG LAUNCHING THE PAGE
PLEASE HELP, what can I be doing wrong if is the same URL for both Application ID's, from the same application. AND yes, I replace kReceiverAppID for each case!!
Thank you
Have you registered your device for your appId on the developer console? Since the 588BF969 app id works (that is a published app Id, meaning that it is allowed to run on all devices) and your app Id doesn't work, I suspect the issue is in your device registration. Please
(1) Double check the serial number of your device on the developer console to makes sure it matches your device's serial number
(2) Makes sure you have checked the box that sends the serial number to google (this is in the setup application for your chromecast). Also try to connect to http://:9222 from a chrome browser on your network to see if your device is whitelisted
(3) Reboot your chromecast to make sure it has picked up the new configuration.
To answer my own question and reply to previous reply, non of my applications in the developer console are published yet, and the serial number in the device is fine because it work for one but not for the other one. Also the box that sends the serial number to google was checked.
The problem seems to be some cache, and it is very easy to fix:
1) find device IP on the settings app and got to chrome browser, enter Device IP plus port 9222, and you would see a white page that says "Chromecast Home Screen"
2)Click on "Chromecast Home Screen" and you will see another screen, look for "console" at the top and click on it
3)Finally enter this command: window.location.reload();
Thats it, after doing this, all my apps start working and if I need to change one of the URL address I do this to refresh and load the new URL.
Thank you
The configuration of allowed apps is cached on the device. When I make changes in the Developer Portal I usually just reboot the device.