You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, Im trying to cast video but no success the error is showing: No devices available
Make sure Local Network Access is on(But i gave access also in AppPrivacy->LNE is ON, also im in the same wi-fi network with TV
My code in Appdelegate.swift
let options = GCKCastOptions(discoveryCriteria: GCKDiscoveryCriteria(applicationID: kReceiverAppID))
options.physicalVolumeButtonsWillControlDeviceVolume = true
/** Following code enables CastConnect */
let launchOptions = GCKLaunchOptions()
launchOptions.androidReceiverCompatible = true
options.launchOptions = launchOptions
GCKCastContext.setSharedInstanceWith(options)
Also in ViewController.swift
castButton = GCKUICastButton(frame: CGRect(x: CGFloat(0), y: CGFloat(0),
width: CGFloat(24), height: CGFloat(24)))
// Overwrite the UIAppearance theme in the AppDelegate.
castButton.tintColor = UIColor.white
navigationItem.rightBarButtonItem = UIBarButtonItem(customView: castButton)
In info.plist i added:
NSBluetoothAlwaysUsageDescription
${PRODUCT_NAME} uses Bluetooth to discover nearby devices.
NSBonjourServices
_googlecast._tcp
_C0868879._googlecast._tcp
NSLocalNetworkUsageDescription
${PRODUCT_NAME} uses the local network to discover Cast-enabled devices on your WiFi network.
Can someone let me know if someone has the same issue and what can i do?
Thank you
The text was updated successfully, but these errors were encountered:
Hello, Im trying to cast video but no success the error is showing: No devices available
Make sure Local Network Access is on(But i gave access also in AppPrivacy->LNE is ON, also im in the same wi-fi network with TV
My code in Appdelegate.swift
let options = GCKCastOptions(discoveryCriteria: GCKDiscoveryCriteria(applicationID: kReceiverAppID))
options.physicalVolumeButtonsWillControlDeviceVolume = true
Also in ViewController.swift
castButton = GCKUICastButton(frame: CGRect(x: CGFloat(0), y: CGFloat(0),
width: CGFloat(24), height: CGFloat(24)))
// Overwrite the UIAppearance theme in the AppDelegate.
castButton.tintColor = UIColor.white
navigationItem.rightBarButtonItem = UIBarButtonItem(customView: castButton)
In info.plist i added:
NSBluetoothAlwaysUsageDescription
${PRODUCT_NAME} uses Bluetooth to discover nearby devices.
NSBonjourServices
_googlecast._tcp
_C0868879._googlecast._tcp
NSLocalNetworkUsageDescription
${PRODUCT_NAME} uses the local network to discover Cast-enabled devices on your WiFi network.
Can someone let me know if someone has the same issue and what can i do?
Thank you
The text was updated successfully, but these errors were encountered: