Added code to use Nginx pseudo-streaming for Apple devices.