akhilcb / ACBAVPlayerExtension

An extension on AVPlayer which converts it to have all useful features of AVAudioPlayer but with streaming support. Also added additional methods to support Audio visualization from AVPlayer streaming.
MIT License
79 stars 15 forks source link

HLS Stream #1

Open FabioBitgears opened 6 years ago

FabioBitgears commented 6 years ago

Hi, it seems that with HLS stream (m3u8), the volume meter doesn't work... Could you check please?

thank you

akhilcb commented 6 years ago

This looks like a known issue and as per this stackoverflow question, there seems to be no proper answer to this.

https://stackoverflow.com/questions/19403584/avplayer-hls-live-stream-level-meter-display-fft-data.

Basically the issue is that we need to get "tracks" from "playerItem.asset" and in case of HLS stream, the tracks property is empty. Hence we cannot connect audioMix to the track and volume meter wont work.

If you urgently need this feature, you can check the answer mentioned there.

akhilcb commented 5 years ago

Confirmation on dev forums that this is not supported by Apple. Please follow below link.

https://forums.developer.apple.com/thread/45966