Saturday, May 30, 2026
HomeiOS Developmentios - Why aren't bodily quantity controls affecting Chromecast?

ios – Why aren’t bodily quantity controls affecting Chromecast?

[ad_1]

From studying the SDK Docs, the boolean physicalVolumeButtonsWillControlDeviceVolume ought to permit the bodily quantity buttons on the iPhone management the chromecast quantity as seen right here:

The bodily quantity buttons on the sender machine can be utilized to alter the amount of the Forged session on the Internet Receiver utilizing the physicalVolumeButtonsWillControlDeviceVolume flag on the GCKCastOptions, which is about on the GCKCastContext.

I’ve carried out their instance precisely, however my quantity controls do not ahead something to chrome forged, it simply appears to disable them. If I alter the boolean to false, it returns management to iPhone quantity, however clearly does not ship it to the forged. This is my code:

discoveryCriteria = GCKDiscoveryCriteria(applicationID: applicationID)
let choices = GCKCastOptions(discoveryCriteria: discoveryCriteria!)
choices.physicalVolumeButtonsWillControlDeviceVolume = true
choices.disableDiscoveryAutostart = true
choices.startDiscoveryAfterFirstTapOnCastButton = false
GCKCastContext.setSharedInstanceWith(choices)

I have been in search of another requirement for bodily quantity management, however cannot discover something aside from this.

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments