Open MrAngrez opened 2 years ago
Video sound stops when you move to silent mode but the change the volume to up
This is an AVKit thing. Just add the following code somewhere in your app, e.g. AppDelegate do { try AVAudioSession.sharedInstance().setCategory(.playback) } catch(let error) { print(error.localizedDescription) }
do { try AVAudioSession.sharedInstance().setCategory(.playback) } catch(let error) { print(error.localizedDescription) }
Video sound stops when you move to silent mode but the change the volume to up