Fixes #5929 -- Add "player-ready" event upon embeddable player mount.

This commit is contained in:
Buster Neece 2022-12-29 10:11:57 -06:00
parent b0549b4700
commit 85012ac2f1
No known key found for this signature in database
GPG Key ID: F1D2E64A0005E80E
1 changed files with 2 additions and 0 deletions

View File

@ -323,6 +323,8 @@ const switchStream = (new_stream) => {
};
onMounted(() => {
document.dispatchEvent(new CustomEvent("player-ready"));
if (props.autoplay) {
switchStream(currentStream.value);
}