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
@@ -9,6 +9,9 @@ Kein WebSocket: Presenter (`/admin/{token}/state`) und Teilnehmende (`/p/{code}/
|
||||
|
||||
## Referentenansicht
|
||||
|
||||
- Die Referentenansicht lädt **nie** den YouTube-Player (`renderMedia()` in `plenario.js` zeigt dort nur einen Hinweis),
|
||||
damit das Video nicht doppelt zu hören ist.
|
||||
|
||||
- `/admin/{token}/speaker` (`admin:speaker`, Button ⧉ im Präsentationsmodus und Eintrag „Referentenansicht“ im Aufklappmenü (▾) von „Präsentieren“ in der Verwaltung, jeweils neues Fenster) ist für den eigenen Bildschirm des
|
||||
Präsentierenden: gleiche Seite und gleiches JS wie `present` (`initPresenter`, Steuerung per Tasten/Buttons), plus
|
||||
`data-next`-Kasten „Als Nächstes“ links neben der aktuellen Folie (`stage--speaker`). Anders als `present` startet sie die Präsentation nicht.
|
||||
|
||||
@@ -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