Add video as componment

Hi everyone,
I am a new user in Anvil. I want to create a component who can play video from datatable as mediaobject. Could anyone help me? Thank you

  1. create a custom html component using video tag. see example here
    Strange behavior adding custom html to a column panel component

2)create an endpoint that returns the video media object and pass the endpoint url to the html video component. see: