문제

How to play repeat , shuffle with MPMusicPlayerController ?

I have already set

[player setRepeatMode:MPMusicRepeatModeDefault];
도움이 되었습니까?

해결책

There are several repeatModes like

MPMusicRepeatModeOne, MPMusicRepeatModeAll

So instead of setting it to MPMusicRepeatModeDefault set it to other mode as you want. (See reference link for more ...).

Also, there are several shuffleModes like

 MPMusicShuffleModeOff, MPMusicShuffleModeSongs, MPMusicShuffleModeAlbums

In both - repeatMode and shuffleMode, the default mode indicates you not set them explicitly. So set them to other modes as you want.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top