AVAudioSessionModeShortFormVideo

Static AVAudioSessionModeShortFormVideo 

Source
pub unsafe static AVAudioSessionModeShortFormVideo: Option<&'static AVAudioSessionMode>
Available on crate feature AVAudioSessionTypes only.
Expand description

Appropriate for applications playing short-form video content.

Only valid with AVAudioSessionCategoryPlayback. Not applicable with AVAudioSessionRouteSharingPolicy/AVAudioSessionRouteSharingPolicyLongFormAudio, or AVAudioSessionRouteSharingPolicy/AVAudioSessionRouteSharingPolicyLongFormVideo.

When this mode is set:

  • system will make informed decisions to automatically unmute the output of the media if the user shows intention of unmuting.
  • When auto-unmuted, AVAudioSessionUserIntentToUnmuteOutputNotification and AVAudioSessionOutputMuteStateChangeNotification will be sent.
  • if the session is output muted, system may prevent interrupting other active audio apps.

See also Apple’s documentation