David Kimura PRO said over 4 years ago on Streaming Videos with Active Storage :
Since you're using id my-video for the selector, you'd need to set the id attribute.

<%= content_tag :video, id: { 'my-video' } do %>

Is there a reason why you're wanting to implement this without Stimulus?