How would I go about showing a video with anvil?

Hello there. I haven’t been able to get this solution to work in my app. I grabbed the code from both the video form and the Form1 form. I set the video form to be a component and used it as a component. The video player frame does not show up on both the video form as well as the Form1 form.

When I run my app, I get the following error:
AttributeError: ‘NoneType’ object has no attribute ‘src’ at [video, line 22](javascript:void(0)) called from [Form1, line 22](javascript:void(0))

Can someone please help me? What is baffling me is I copy-pasted the code verbatim into my new app. So what am I missing?