How to do speedtest prior to streaming

Hi,


I'm working on video streaming app, one of the task I need to handle is checking connection prior to streaming.

Simply testing by uploading a file and get average speed isn't sufficient because the connection might be spotty and it doesn't account if the network is unstable, i.e. 900Kbps, and 100Kbps, this would be 500 Kbps with this approach.


Does anybody have any idea on how to go about this? Any guidance would be great. Thank you!

Replies

Does anybody have any idea on how to go about this?

I strongly recommend that you use HTTP Live Streaming (HLS) for this, at which point it takes care of all the heavy lifting including bandwidth estimation. Writing your own code for this is painful, and best avoided if at all possible.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"