We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97136c0 commit d0f0568Copy full SHA for d0f0568
RNSound/RNSound.m
@@ -18,11 +18,6 @@ - (void)audioSessionChangeObserver:(NSNotification *)notification{
18
AVAudioSessionRouteChangeReason audioSessionRouteChangeReason = [userInfo[@"AVAudioSessionRouteChangeReasonKey"] longValue];
19
AVAudioSessionInterruptionType audioSessionInterruptionType = [userInfo[@"AVAudioSessionInterruptionTypeKey"] longValue];
20
AVAudioPlayer* player = [self playerForKey:self._key];
21
- if (audioSessionRouteChangeReason == AVAudioSessionRouteChangeReasonNewDeviceAvailable){
22
- if (player) {
23
- [player play];
24
- }
25
26
if (audioSessionInterruptionType == AVAudioSessionInterruptionTypeEnded){
27
if (player && player.isPlaying) {
28
[player play];
0 commit comments