Closed shashigupta751 closed 3 years ago
I found the solution for this
you need to add below code
do { try AVAudioSession.sharedInstance().setCategory(.playback) } catch(let error) { print(error.localizedDescription) }
in ASVideoPlayerController line number after line number 116 in function name func playVideo(withLayer layer: AVPlayerLayer, url: String) {
I want to still play audio on iPhone mute button is pressed. Does can you help me how can we achieve it.