Is there a way to have the audio metering levels from the AVPlayer class?
I know that AVAudioPlayer does that, but it doesn't play streamed http .m3u8 urls , like AVPlayer does.
Is there a way to have the audio metering levels from the AVPlayer class?
I know that AVAudioPlayer does that, but it doesn't play streamed http .m3u8 urls , like AVPlayer does.
I do not know, specifically, if they privatized what you're looking for, but I do know the various high-level classes are usually just the tops of the pyramid for the lower level AV items. In any case, I do have good news...
Remember an AVPlayer uses an AVPlayerItem. The AVPlayerItem has assets (and an AVAudioMix). The AVAssets have the properties for modifying audio and video.
Unfortunately, the properties indicate they are "suggestions", not absolutes, but try this:
preferredVolume
If you reference the docs, AVPlayer->AVPlayerItem->AVAsset and voila. It might be what you're after.
Hope it's enough
There is a fork of audioStream link ,does what you want.
I had try avplayer for days ,but the end shows it can't. Likely i find the audioStream fork version.This code is 4 years old ,but still works good at ios7(change the demo target from ios3 to ios7).
I've recently found this GitHub project called SCWaveformView that helped me a lot, and I hope someone else out there could benefit from it as well.
Edit:
Actually the extension suggested by dev in the comments is quite nice, and you can find it here, the ACBAVPlayerExtension
.