Skip to content

Commit 92a886a

Browse files
committed
fix test
1 parent 8caa8eb commit 92a886a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/mux-player/src/base.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)