Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Check the last line</p> <pre><code>useApplicationAudioSession </code></pre> <p>A Boolean value that indicates whether the movie player should use the application’s audio session.</p> <pre><code>@property (nonatomic) BOOL useApplicationAudioSession </code></pre> <p><strong>Discussion</strong></p> <blockquote> <p>The default value of this property is YES. Setting this property to NO causes the movie player to use a system-supplied audio session with a nonmixable playback category.</p> <p><strong>Important: In iOS 3.1 and earlier, a movie player always uses a system-supplied audio session. To obtain that same behavior in iOS 3.2 and newer, you must set this property’s value to NO.</strong></p> <p>When this property is YES, the movie player shares the application’s audio session. This give you control over how the movie player content interacts with your audio and with audio from other applications, such as the iPod. For important guidance on using this feature, see “Working with Movies and iPod Music” in Audio Session Programming Guide.</p> <p><strong>Changing the value of this property does not affect the currently playing movie. For the new setting to take effect, you must stop playback and then start it again.</strong></p> </blockquote> <pre><code>[[MPMusicPlayerController applicationMusicPlayer] setVolume:(use a value between 0.0 and 1.0)] </code></pre> <p>If your <code>MPMoviePlayerController</code> uses the application audio session, this should adjust the volume. But be careful in using this.. It is a work around</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload