A distribution method for serving video files such that the video is played over a persistent connection between the browser and the ad server. Versions of the file at different levels of compression (quality) can be served based on detection of the user’s Internet bandwidth. HTML5 files cannot be streamed and rely on adaptive bitrate streaming technologies such as HLS and MPEG-DASH.