I think is AVAudioSession issue. But I can find out where is. Can somebody help me?
do {
try AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryPlayback)
try AVAudioSession.sharedInstance().setActive(true, with: .notifyOthersOnDeactivation)
} catch { }
let theSession = AVAudioSession.sharedInstance()
NotificationCenter.default.addObserver(self,
selector:Selector(("playInterrupt:")),
name:NSNotification.Name.AVAudioSessionInterruption,
object: theSession)