Beat the ABR

A game to explain video streaming concepts, made for Dag van de Wetenschap 2023. Shown off at UHasselt EDM (now Digital Future Lab).

Beat the ABR was made for Dag van de Wetenschap on 26 November 2023, the yearly science day in Flanders.

A video player picks which quality to download next, so that the video does not stall but still looks as good as the connection allows. That decision is made by an adaptive bitrate (ABR) algorithm. In the game, visitors play that part: a real video plays in several qualities, and what the player does decides which quality is streamed. It has three modes and three difficulties (easy, medium and hard), and a scoreboard keeps the best scores.

The start screen of the game: a video above lines for high to low quality, with the score and the controls on the right

Game modes
ModeWhat you doWhat happens
DemoPick the quality with the arrow keys and play or pause with the space barYou see what each quality looks like
Flappy ABRSteer a bird through pipes for 60 secondsHitting the top makes the video buffer, hitting the bottom drops it to the lowest quality, and flying free keeps the best quality and scores
Bit Rate OptimizerMove between the quality linesObstacles make the video buffer, higher quality scores more, and angry viewers cost points

The game is built with Phaser, TypeScript and Bun.