attempts to write the video playback functionality