Adding code for video playback