implemented recording and playback of videos