Hello,
If there's a silent mode turned on on iOS, when video is playing, there's no sound for some reason. When I watch videos on other apps on iOS with silent mode turned on, it works just fine. Is there an available fix for this?
Package version: ^1.0.1
RN: 0.49.3
Ah, okay, sorry, found the fix in the documentation.
For those who arrived here:
Relevant docs section
And for SEO:
Open AppDelegate.m and add:
#import <AVFoundation/AVFoundation.h>
A bit lower in AppDelegate.m -- In the didFinishLaunchingWithOptions method add:
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error: nil];
Most helpful comment
For those who arrived here:
Relevant docs section
And for SEO:
Open AppDelegate.m and add:
#import <AVFoundation/AVFoundation.h>A bit lower in AppDelegate.m -- In the didFinishLaunchingWithOptions method add:
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error: nil];