Never load the YouTube player in the speaker view
CI / Deploy / PHP 8.4 (push) Successful in 1m17s
CI / Deploy / PHP 8.5 (push) Successful in 1m18s
CI / Deploy / test (push) Successful in 2s
CI / Deploy / deploy (push) Skipped

Avoids hearing the video twice next to the presentation window.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Sonnet 5.5 committed 2026-11-16 19:32:05 +01:00
1 parent 99fcfec165
commit 74b69f3c9a
2 files changed
+7 -1

No files matched your search

+4 -1
View File
@@ -1288,7 +1288,10 @@
mediaKey = key;
media.textContent = '';
media.hidden = !video;
if (video) {
if (video && root.classList.contains('stage--speaker')) {
// Speaker view never loads the player: the video plays in the presentation window only (no double audio).
media.appendChild(el('p', {class: 'stage__media-note muted', text: 'Das Video wird nur im Präsentationsfenster abgespielt.'}));
} else if (video) {
media.appendChild(youtubeFrame(video.embedUrl, slide.question));
}
}