File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ function getProps(el: MuxPlayerElement, state?: any): MuxTemplateProps {
127127 playbackId : el . playbackId ,
128128 hasSrc : ! ! el . playbackId || ! ! el . src || ! ! el . currentSrc ,
129129 poster : el . poster ,
130- storyboard : el . storyboard ,
130+ storyboard : el . hasLoaded && el . storyboard ,
131131 storyboardSrc : el . getAttribute ( PlayerAttributes . STORYBOARD_SRC ) ,
132132 fullscreenElement : el . getAttribute ( PlayerAttributes . FULLSCREEN_ELEMENT ) ,
133133 placeholder : el . getAttribute ( 'placeholder' ) ,
@@ -827,6 +827,10 @@ class MuxPlayerElement extends VideoApiElement implements IMuxPlayerElement {
827827 return this . mediaController ?. hasAttribute ( MediaUIAttributes . MEDIA_HAS_PLAYED ) ?? false ;
828828 }
829829
830+ get hasLoaded ( ) {
831+ return this . #hasLoaded;
832+ }
833+
830834 get inLiveWindow ( ) {
831835 return this . mediaController ?. hasAttribute ( MediaUIAttributes . MEDIA_TIME_IS_LIVE ) ;
832836 }
You can’t perform that action at this time.
0 commit comments