Never load the YouTube player in the speaker view
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:
1 parent
99fcfec165
commit
74b69f3c9a
2 files changed
+7
-1
No files matched your search
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user