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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With