complete video player functionality