Video canvas object-fit cover instead of contain

The canvas in the sample app is displaying the video in center and leave space around it. It is like object-fit: contain; in css
I want to cover the video over the canvas area
You can get the idea here:
How can I do that?