How to determine if a media is playing? #930
-
I'm sorry for a silly question and I'm not sure if I'm missing something, but it seems like it's needlessly hard to determine if the media is currently playing? There is a I feel like just having a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks for the feedback! The best source of truth is still the slotted media element, I recommend using that for determining playing state. We purposely built Media Chrome like this, it doesn't try to be a full player. Hope this helps, let me know if it doesn't make sense. Cheers! |
Beta Was this translation helpful? Give feedback.
Thanks for the feedback!
The best source of truth is still the slotted media element, I recommend using that for determining playing state.
With the
media.paused
andplay
,playing
andpause
events you should have everything you need.We purposely built Media Chrome like this, it doesn't try to be a full player. Hope this helps, let me know if it doesn't make sense. Cheers!