Hey,

I was happy to find that simply doing avformat_open_input() on a http URL
allowed my application to play a mp3 stream from an internet radio station
using my existing file reading/decoding code.
What I'm not clear on is what the library does and doesn't do for me. Can
anyone provide some insight into the below questions?

Is there any pre-buffering that occurs? If so, can I control the buffer
size?
If not, is there any best practice advice for calling av_read_frame()?
Is av_read_frame() a blocking call that sends a request to the server and
waits for a audio packet in response?
I assume it's possible to call av_read_frame() too fast, as to request data
faster than the stream is creating. Is there a way to tell if there is data
ready to be read by a call to av_read_frame()?
Is there a way to tell if the connection was lost?

Thanks for any help anyone can provide.

Malcolm
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api

Reply via email to