An iOS and macOS audio visualization framework built upon Core Audio useful for anyone doing real-time, low-latency audio processing and visualizations.
Other
4.96k
stars
822
forks
source link
EZAudioPlayer with HTTP streaming URL not working #342
TLDR; How do i use EZAudioPlayer with a HTTP Streaming URL?
My goal is to display the waveform of a live HTTP stream in realtime. I have a streaming URL like http://myradio.com/listen, which works fine in browsers. After reading the documentation, I figured I'll do this in 2 steps:
Create an EZAudioPlayer initialized with my streaming URL and set player delegate to self.
[EZAudioPlayer audioPlayerWithURL:<my_url> delegate:<self>]
Then implement the EZAudioPlayerDelegate method below in which I update my EZAudioPlot view.
However, I cannot get past step 1 because the EZAudioPlayer will not initialize with a HTTP streaming URL, I suppose it is checking for file existence and simply failing since the url is not a local file. How can I remedy this? Thanks.
TLDR; How do i use EZAudioPlayer with a HTTP Streaming URL?
My goal is to display the waveform of a live HTTP stream in realtime. I have a streaming URL like http://myradio.com/listen, which works fine in browsers. After reading the documentation, I figured I'll do this in 2 steps:
EZAudioPlayer
initialized with my streaming URL and set player delegate to self.[EZAudioPlayer audioPlayerWithURL:<my_url> delegate:<self>]
EZAudioPlayerDelegate
method below in which I update my EZAudioPlot view.However, I cannot get past step 1 because the EZAudioPlayer will not initialize with a HTTP streaming URL, I suppose it is checking for file existence and simply failing since the url is not a local file. How can I remedy this? Thanks.