User guide
If you have configured a movie player to use its own audio session, there’s some cleanup to perform. To restore
the movie player’s ability to play audio after a movie finishes, or the user dismisses it:
1.
Dispose of the movie player—even if you intend to play the same movie again later.
2.
Reactivate your audio session.
For a description of the movie player class, see MPMoviePlayerController Class Reference .
Using the Media Player Framework Exclusively
If your app is using a movie player only, or a music player only—and you are not playing your own sounds—then
you should not configure an audio session.
If you are using a movie player exclusively, you must tell it to use its own audio session, as follows:
myMoviePlayer.useappAudioSession = NO
If you are using a movie player and a music player, then you probably want to configure how the two interact;
for this, you must configure an audio session, even though you are not playing app audio per se. Use the
guidance in Table 6-1 (page 41).
Fine-Tuning an Audio Session for Players
Using the Media Player Framework Exclusively
2014-09-17 | Copyright © 2014 Apple Inc. All Rights Reserved.
42