iOS 5는 잠금 화면과 원격 재생 컨트롤 (홈 버튼을 두 번 클릭하고 오른쪽으로 스 와이프하면 얻을 수있는 컨트롤)에서 트랙 아트 및 앨범 아트 이미지 설정을 지원합니다. MPNowPlayingInfoCenter
클래스를 살펴보십시오. 여기
if ([MPNowPlayingInfoCenter class]) {
/* we're on iOS 5, so set up the now playing center */
UIImage *albumArtImage = [UIImage imageNamed:@"HitchHikersGuide"];
albumArt = [[MPMediaItemArtwork alloc] initWithImage:albumArtImage];
NSDictionary *currentlyPlayingTrackInfo = [NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:@"Life, the Universe and Everything", [NSNumber numberWithInt:42], albumArt, nil] forKeys:[NSArray arrayWithObjects:MPMediaItemPropertyTitle, MPMediaItemPropertyPlaybackDuration, MPMediaItemPropertyArtwork, nil]];
[MPNowPlayingInfoCenter defaultCenter].nowPlayingInfo = currentlyPlayingTrackInfo;
}
누구나 웹 오디오를 사용하는 방법을 알고 계십니까? –