muxinc / media-chrome

Custom elements (web components) for making audio and video player controls that look great in your website or app.
https://media-chrome.org
MIT License
1.77k stars 71 forks source link

mediaisfullscreen attribute not correct upon initialization #761

Closed brandonhub closed 11 months ago

brandonhub commented 1 year ago

Hey Media Chrome team!

I'm using the React distribution of Media Chrome. I noticed that upon initializing my video, the mediaisfullscreen attribute is set on the MediaController even though the video is not fullscreen. I have to toggle fullscreen on and then off to get it to the attribute to disappear.

Here is a codepen illustrating the issue: https://codesandbox.io/s/media-chrome-fullscreen-bug-35wj82

dylanjha commented 1 year ago

Thanks @brandonhub -- that seems to be a bug. Not sure exactly why but when we get bandwidth we'll take a closer look