This code is a bit strange at this point because it is slicing a media file into pieces, reading each slice as array buffer, assembling the results, and loading into a video