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
Post a Comment