mpmusicplayercontroller Questions
12
Solved
I have to change the volume on iPad and using this code:
[[MPMusicPlayerController applicationMusicPlayer] setVolume:0];
But this changing volume and showing system volume bar on iPad. How to ch...
Nocuous asked 16/10, 2015 at 10:41
2
I have a music app written in swift, I am using MPMusicPlayerController.systemMusicPlayer, also tried applicationMusicPlayer.
Music plays fine in the background as expected.
When my app is in th...
Hinder asked 14/10, 2014 at 22:8
4
I have an application that requires the iPhone screen to remain active (or not, depending on user choice). I've done this by disabling the application idle timer, which works fine and dandy until I...
Isometropia asked 8/2, 2010 at 13:33
2
in my iOS app, I'm trying to implement "ducking": while my app plays a short "command-like" sound, any background music should be lowered in volume. Having finished playing the sound, the music vol...
Margaret asked 24/8, 2013 at 13:46
1
Solved
All of the threads on this topic are really old (5+ yo), and I can't seem to form a clear MODERN approach, so hopefully this can be summarized for 2020 (Swift 5, Xcode 11).
If you were to build an ...
Diaconate asked 10/4, 2020 at 20:15
1
I'm trying to play an album, using the following code…
let predicate = MPMediaPropertyPredicate(value: "1459938538", forProperty: MPMediaItemPropertyAlbumPersistentID)
let iCloudPredicate...
Whooper asked 20/6, 2019 at 15:23
5
Solved
New to iOS development, so here goes. I have an app that is playing audio - I'm using AVAudioPlayer to load single files by name in the app's assets. I don't want to query the user's library, only ...
Vindicate asked 9/1, 2016 at 0:5
0
let cloudServiceController = SKCloudServiceController()
let musicPlayer = MPMusicPlayerController.systemMusicPlayer
self.cloudServiceController.requestCapabilities { capabilities, error in
guard ...
Olindaolinde asked 14/2, 2019 at 7:16
2
Solved
I have the following situation in my application:
I have a music system in my application and I used MPMusicPlayerController to play music; every thing is working fine until now.
My problem: When a...
Gameto asked 3/6, 2015 at 11:58
2
Solved
So you want to record a video and play music from the user's library at the same time? Look no further. Below is the answer.
Woodcut asked 23/4, 2016 at 19:24
4
I have a music app that uses the MPMusicPlayerController.
I originally wrote it using the systemMusicPlayer option under iOS 9.
I had some trouble with the player not shutting down correctly under...
Verleneverlie asked 17/1, 2018 at 21:37
0
I am attempting to use Apple's Music Kit within my application to listen to music. My issue is that the first song that plays will continually repeat. The first song plays correctly by using the fo...
Hexateuch asked 20/6, 2018 at 18:8
4
Solved
I want to get programmatically queue currently played in native Music App. I can use MPMusicPlayerController to get currently playing item but I want to get not only the item but whole playing queu...
Sightless asked 10/4, 2012 at 16:23
1
Solved
I am having issue with Music player, most of the songs gives Error
Error Domain=MPErrorDomain Code=4
The testing device has Apple music subscription and the tracks gives error on the app they ...
Eldaelden asked 4/9, 2017 at 9:40
8
Solved
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 aut...
Basra asked 7/10, 2013 at 6:58
6
Solved
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 applicationMusi...
Corrugate asked 23/10, 2011 at 19:8
1
Solved
Upon launch on an iOS10 device, I get the following output:
[MC] Reading from public effective user settings.
[SDKPlayback] MPMusicPlayerController] MPMusicPlayerController: Server is not running...
Luau asked 20/11, 2016 at 21:3
3
I am building a music player app, and everything is working fine. I have been using the system music player so far, but now want to switch over to use an application music player instead, and that'...
Familiarity asked 21/1, 2016 at 13:51
2
MPRemoteCommandCenter calls the handler block multiple times and causes unnecessary calls to selector methods.
Here is code snippet:
MPRemoteCommandCenter *commandCenter = [MPRemoteCommandCenter ...
Chef asked 19/3, 2016 at 7:9
1
I am playing Apple Music from my application , the apple music player code is as -
-(void) submitAppleMusicTrackWithProductID: (NSString *) productID // productID in US is the last numbers after i...
Fantastic asked 25/4, 2016 at 7:16
0
I'm trying to integrate Apple Music to my app, I managed to get it working flawlessly until this morning.
After updating to iOS 9.3.2 nothing is the same:
The permission system works the same (SK...
Maddis asked 17/5, 2016 at 16:16
1
I can get information (artist, album, title) of the song that is currently playing with:
let t = MPMusicPlayerController().nowPlayingItem?.title
It works fine when the music is streaming from th...
Pillsbury asked 16/10, 2015 at 5:41
2
Solved
I'm making an app that will play audiobooks synced with iTunes. Is there a way my player can remember the playback position? Or do I need to implement this myself with some sort of database?
I'm t...
Verada asked 11/7, 2015 at 17:33
2
Solved
I added the Spotify player to my app which also plays music using the MPMusicPlayerController. When music is playing from Spotify and the screen is locked, the remote control events are not receive...
Forethought asked 15/4, 2015 at 15:58
0
I'm making a iPhone music app that handles music playing & pausing and maintains its own play list. This app does not provide next/prev song functions, so I don't want these button to display o...
Madsen asked 20/5, 2015 at 4:18
1 Next >
© 2022 - 2024 — McMap. All rights reserved.