Ranjan Sahu
Ranjan Sahu

Reputation: 300

Apple tv audio to stop

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

Answers (1)

Daniel Storm
Daniel Storm

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

Related Questions