alankarmisra / SwiftSiriWaveformView

A UIView subclass that reproduces the waveform effect seen in Siri on iOS 7+. It is a Swift adaptation of the amazing SCSiriWaveformView by Stefan Ceriu.
MIT License
176 stars 29 forks source link

Linking with streaming audio #9

Open mhmmdmz opened 7 years ago

mhmmdmz commented 7 years ago

Request: Can you show some examples of how one could link this to a streaming audio using avplayer? I believe this has to be done using MTAudioProcessingTap.

Any leads would be a great help.

dispatchswift commented 7 years ago

@mhmmdmz Any lead on that?

mhmmdmz commented 7 years ago

Nope. The issue is with the metrics available in AVPlayer; they aren't as extensive as AVAudioPlayer and hence I don't think there's a way to do it just with AVPlayer. The other problem is AVAudioPlayer doesn't stream! :( sob sob