Hide Volume Level Pop Up MPMusicPlayerController Xcode -



Hide Volume Level Pop Up MPMusicPlayerController Xcode -

i'm using mpmusicplayercontroller play list of mp3 in app.

the problem when set volume level, according app configuration, appears volume level pop up.

i tried find property in order hide it, didn't find.

the code i'm using is:

if (audioplayer) if ([audioplayer isplaying]) [audioplayer stop]; self.musicplayer = [mpmusicplayercontroller applicationmusicplayer]; [[nsnotificationcenter defaultcenter] addobserver:self selector:@selector(handleplaybackstatechanged:) name:mpmusicplayercontrollerplaybackstatedidchangenotification object:self.musicplayer]; [self.musicplayer begingeneratingplaybacknotifications]; [self.musicplayer setaccessibilityelementshidden:yes]; self.musicplayer.volume = volume; [self.musicplayer setqueuewithitemcollection:mediaitemcollection]; self.musicplayer.repeatmode = mpmusicrepeatmodeall; [self.musicplayer play];

my question is, way avoid pop up?

thanks.

i found workaround problem in other post

but, there not direct way perform without using mpvolumeview "invisible"?

sorry :)

xcode volume mpmusicplayercontroller

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -