implementation of the video_bitmap to render video in the canvas