Merge pull request #44 from tmickel/bugfix/ios-sound

Set AVAudioSession category on viewDidLoad #35
This commit is contained in:
chrisgarrity 2016-03-24 14:59:21 -04:00
commit aaec2743ae

View file

@ -36,6 +36,8 @@ JSContext *js;
[self showSplash];
[IO init: self];
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:NO];
AVAudioSession *audioSession = [AVAudioSession sharedInstance];
[audioSession setCategory:AVAudioSessionCategoryPlayAndRecord error:nil];
}
- (void) showSplash {