react-native-theoplayer
Version:
A THEOplayer video component for react-native.
37 lines (33 loc) • 813 B
text/typescript
/**
* Describes the configuration of the background audio feature.
*
* @public
*/
export interface BackgroundAudioConfiguration {
/**
* Whether background audio should be enabled when transitioning to background.
*
* @defaultValue `false`
*/
readonly enabled?: boolean;
/**
* Whether background audio should be resumed after an interruption on iOS (e.g. incoming call).
*
* @defaultValue `false`
*
* @platform ios
*/
readonly shouldResumeAfterInterruption?: boolean;
/**
* Specify the mode for the native iOS AVAudioSession.
*
* @defaultValue `AudioSessionMode.MOVIE_PLAYBACK`
*
* @platform ios
*/
readonly audioSessionMode?: AudioSessionMode;
}
export enum AudioSessionMode {
MOVIE_PLAYBACK = 'moviePlayback',
SPOKEN_AUDIO = 'spokenAudio'
}