Skip to content

Commit

Permalink
fix(ios): volume event handling (#11227)
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaysingh-axway authored and keerthi1032 committed Sep 20, 2019
1 parent df39a91 commit 6d4e417
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions iphone/Classes/MediaModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,6 @@ - (void)setAudioSessionMode:(NSNumber *)mode
}
}

#if defined(USE_TI_MEDIAAUDIOPLAYER) || defined(USE_TI_MEDIAMUSICPLAYER) || defined(USE_TI_MEDIASOUND) || defined(USE_TI_MEDIAVIDEOPLAYER) || defined(USE_TI_MEDIAAUDIORECORDER)
- (void)setAudioSessionCategory:(NSString *)mode
{
[[TiMediaAudioSession sharedSession] setSessionMode:mode];
Expand Down Expand Up @@ -526,7 +525,6 @@ - (void)audioVolumeChanged:(NSNotification *)note
[self fireEvent:@"volume" withObject:event];
}
}
#endif

#if defined(USE_TI_MEDIAAVAILABLECAMERAMEDIATYPES) || defined(USE_TI_MEDIAISMEDIATYPESUPPORTED)
- (NSArray *)availableCameraMediaTypes
Expand Down
2 changes: 1 addition & 1 deletion iphone/Classes/TiMediaAudioSession.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#if defined(USE_TI_MEDIA) && (defined(USE_TI_MEDIAAUDIOPLAYER) || defined(USE_TI_MEDIAVIDEOPLAYER) || defined(USE_TI_MEDIASOUND) || defined(USE_TI_MEDIAAUDIORECORDER))
#if defined(USE_TI_MEDIA) || (defined(USE_TI_MEDIAAUDIOPLAYER) || defined(USE_TI_MEDIAVIDEOPLAYER) || defined(USE_TI_MEDIASOUND) || defined(USE_TI_MEDIAAUDIORECORDER))

extern NSString *const kTiMediaAudioSessionInterruptionBegin;
extern NSString *const kTiMediaAudioSessionInterruptionEnd;
Expand Down
2 changes: 1 addition & 1 deletion iphone/Classes/TiMediaAudioSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#if defined(USE_TI_MEDIA) && (defined(USE_TI_MEDIAAUDIOPLAYER) || defined(USE_TI_MEDIAVIDEOPLAYER) || defined(USE_TI_MEDIASOUND) || defined(USE_TI_MEDIAAUDIORECORDER))
#if defined(USE_TI_MEDIA) || (defined(USE_TI_MEDIAAUDIOPLAYER) || defined(USE_TI_MEDIAVIDEOPLAYER) || defined(USE_TI_MEDIASOUND) || defined(USE_TI_MEDIAAUDIORECORDER))

#import "TiMediaAudioSession.h"
#import <TitaniumKit/TiUtils.h>
Expand Down

0 comments on commit 6d4e417

Please sign in to comment.