Loaded event for video component

I would like a way to know if the video is "loaded" after its URL property has changed.

I need to get the video length but some videos can take a short while to load up before the duration property is updated.

What does work is the Watched Input in a Query pattern to approximate the event, but a direct event would be much nicer.

For those who are not familiar wit the Watched Input in a Query pattern (my name for it) you make a JSON SQL query and make a query using any component property you want a Change event on. Then you put your event handler in the query's Success handler.

In my case I put this: select {{video1.duration}}

Hi Bradly,

Excited to share that we've recently added an onLoad event to the Video component.

Let us know if it works for your use case!

Best,
Alexi

2 Likes