MP3 HTTP 스트림에서 메타 데이터를 가져오고 싶습니다. 스트림은 AVPlayer로 재생됩니다.MP3 HTTP 스트림에서 메타 데이터 가져 오기
AVPlayerItemMetadataCollector를 사용해 보았지만 nil을 반환합니다.
대신 현재 제목이 표시되는 스트림의 웹 사이트에서 특정 부분을 가져 오는 것입니다.
let playerItem = AVPlayerItem(url: URL(string: "stream.p4.no/p5trondheim_mp3_hq")!)
player = AVPlayer(playerItem: playerItem)
player.rate = 1.0;
player.play()
내가 무엇을 할 수 있습니다 : 여기
내 플레이어 코드?
당신이 당신의 질문에 조금 더 많은 예제 코드를 추가 할 수 있습니까? – ventiseis
내 플레이어 코드는 다음과 같습니다 –
let playerItem = AVPlayerItem (url : URL (문자열 : "http://stream.p4.no/p5trondheim_mp3_hq")) player = AVPlayer (playerItem : playerItem) player.rate = 1.0; player.play() –