Hello! I have a bunch of videos (stored in Supabase and embeded using standard FF Video Player widget) of different lengths being displayed in a bottom-sheet component. How can I make the app dismiss the bottom-sheet when the video ends???
It would made sense to have a FF action trigger "onVideoEnd", one would've thought.
On Video End action trigger
Actions & Logic
I have a timer set at fixed 30 seconds, which successfully triggers the dismiss bottom-sheet action. But some videos are longer than 30 seconds, so dismissing them at 30 seconds is not a very nice UX, so somehow I need to either fetch the length of the video in seconds and pass it to the timer, or create some custom action that will trigger upon video's end.
Yes
2
3 replies