我使用AVPlayer
爲我的應用程序使用HTTP實時streaming.Now我想實現該音頻流的電平表。 我發現了幾個使用AVAudioPlayer的例子。但我找不到解決方案來獲取所需的信息。如何在iOS中設置AVPlayer聲級計?
AVPlayer.NSURL *url = [NSURL URLWithString:@"http://www.stephaniequinn.com/Music/Allegro%20from%20Duet%20in%20C%20Major.mp3"];
self.playerItem = [AVPlayerItem playerItemWithURL:url];
self.player = [AVPlayer playerWithPlayerItem:self.playerItem];
self.player = [AVPlayer playerWithURL:url];
[self.player play];
[AVPlayer音量控制]的可能的複製(http://stackoverflow.com/questions/15569983/avplayer-volume-control) – KIDdAe
檢查:HTTPS: //github.com/akhilcb/ACBAVPlayerExtension – adev