Reputation: 300
I am using AVPlayer for playing video url coming from server in TVOS SDK . For getting meta data of video I swipe down in video player screen . In metadata screen there are two buttons Info and Audio out of them click on Info button subtitles. After that clicking on Menu button of Apple TV remote I quit the player screen but audio is still playing in the background .
Upvotes: 0
Views: 148
Reputation: 18898
You should set the appropriate AVAudioSession
for your application and stop all audio in your viewWillDisappear
, viewDidDisappear
, or applicationDidEnterBackground
.
AVAudioSession Class Reference
Upvotes: 0