mpmusicplayercontroller

How to enable iPod controls in the background to control non-iPod music in iOS 4?

大兔子大兔子 提交于 2019-11-26 12:24:35
问题 A good example of what I\'m trying to accomplish is implemented in the latest version of the Spotify iPhone application for (Pandora seems to have the same feature) . When Spotify is in the background, double tapping opens the \"multi-task dock\", where the ipod controls (play/pause, forward etc) allow to control the music playback of Spotify (not the ipod application). Also, when the iphone/ipod touch is locked, double tapping displays similar playback controls. If you don\'t know what I

applicationMusicPlayer volume notification

限于喜欢 提交于 2019-11-26 10:54:44
问题 I am using an applicationMusicPlayer and when i try to change the volume appear the visual notification, as shown in the picture. Here the code I am using: [MPMusicPlayerController applicationMusicPlayer] setVolume:newVolune]; Anyone knows how to hide this notification? 回答1: I don't know where the docs says so, but if you add a MPVolumeView view to your app the system volume overlay goes away. Even if it is not visible: - (void) viewDidLoad { [super viewDidLoad]; MPVolumeView *volumeView = [

iOS 7: MPMusicPlayerController volume deprecated. How to change device volume now?

若如初见. 提交于 2019-11-26 04:39:11
问题 MPMusicPlayerController setVolume is deprecated since iOS 7 Is there any other way to change system music volume? Preferably without user interaction. Its important feature: to increase volume automatically for any alarm clock from AppStore. 回答1: To answer you question exactly: Yes there is other way to change system volume without user interaction. Until recent times I used to think that changing volume using MPVolumeView programmatically is possible only using private API . But I have just