You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pressing a button changes source, but VideoPlayer seems to want to play please select a video (if I do let source = src1 is player the first video, always.
The text was updated successfully, but these errors were encountered:
PS: I believe that HTML5 video requires calling .load() when the sources or src changes, see HTMLMediaElement: load method.
The component as currently written doesn't appear to do this. I'm also not sure how to retrieve the <video> element from it, but here's a work around I found works:
Hi, when the components
source
property changes, should the video that's displayed be updated?My test case:
Pressing a button changes
source
, butVideoPlayer
seems to want to playplease select a video
(if I dolet source = src1
is player the first video, always.The text was updated successfully, but these errors were encountered: