func audioPlayerDidFinishPlaying(_ player: AVAudioPlayer,
successfully flag: Bool){
do {
try
session.setActive(false, options:
[.notifyOthersOnDeactivation])
}catch let err{
}
}
Topic:
Media Technologies
SubTopic:
Audio
Tags: