Add onAudioBecomingNoisy for iOS

This commit is contained in:
Hampton Maxwell
2018-07-12 21:48:58 -07:00
parent 5178601edb
commit d003c87b57
4 changed files with 27 additions and 0 deletions

View File

@@ -239,6 +239,7 @@ var styles = StyleSheet.create({
* [volume](#volume)
### Event props
* [onAudioBecomingNoisy](#onaudiobecomingnoisy)
* [onLoad](#onload)
* [onLoadStart](#onloadstart)
* [onProgress](#onprogress)
@@ -452,6 +453,13 @@ Platforms: all
### Event props
#### onAudioBecomingNoisy
Callback function that is called when the audio is about to become 'noisy' due to a change in audio outputs. Typically this is called when audio output is being switched from an external source like headphones back to the internal speaker. It's a good idea to pause the media when this happens so the speaker doesn't start blasting sound.
Payload: none
Platforms: Android ExoPlayer, iOS
#### onLoad
Callback function that is called when the media is loaded and ready to play.