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
As a developer integrating Pillarbox I would like to be able to integrate custom volume controls.
Hints
MPVolumeView is the only API that makes it possible to change the system volume but offers limited customization. It can be almost be turned into a programmatic API with the following trick:
This lets the associated UI be freely customized, but of course there is a private slider access that might be risky.
Note that the initial volume returned by MPVolumeView might not be up to date. For this reason it is better to read the volume via AVAudioSession and to write it with MPVolumeView (since the outputVolume property is read-only).
Acceptance criteria
A way to create a custom volume control UI is provided.
The demo provides a corresponding slider somewhere.
Tasks
Provide component for volume tracking.
Extract custom slider construction.
Add volume slider with same look & feel as progress slider.
The text was updated successfully, but these errors were encountered:
As a developer integrating Pillarbox I would like to be able to integrate custom volume controls.
Hints
MPVolumeView
is the only API that makes it possible to change the system volume but offers limited customization. It can be almost be turned into a programmatic API with the following trick:This lets the associated UI be freely customized, but of course there is a private slider access that might be risky.
Note that the initial volume returned by
MPVolumeView
might not be up to date. For this reason it is better to read the volume viaAVAudioSession
and to write it withMPVolumeView
(since theoutputVolume
property is read-only).Acceptance criteria
Tasks
The text was updated successfully, but these errors were encountered: