2

I am trying to add Chromecast in my iOS app. I have installed google cast pod file and integrate the google cast developer console.Now when I tried with the GCKUICastButton in my screen, after tapping the button for first time the button is diss appearing and facing a error in console

"Message from Chromecast = Failed to search for net services with error dictionary {NSNetServicesErrorCode = "-72008";NSNetServicesErrorDomain = 10;}"

let discoveryCriteria = GCKDiscoveryCriteria(applicationID: appId) 
let castOptions = GCKCastOptions(discoveryCriteria: discoveryCriteria)
GCKCastContext.setSharedInstanceWith(castOptions)
GCKLogger.sharedInstance().delegate = self

Wrote this code in app delegate, still unable to solve the issue. any help much appreciated.

Dávid Pásztor
  • 51,403
  • 9
  • 85
  • 116
Gorib Developer
  • 587
  • 2
  • 13
  • 27

0 Answers0