Changeset 8ab20b6 in Klonkt for src/assets
- Timestamp:
- 06/20/2026 04:42:18 AM (3 months ago)
- Branches:
- main
- Children:
- fef781e
- Parents:
- 8d43aa1
- File:
-
- 1 edited
-
src/assets/js/audio-player.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/assets/js/audio-player.js
r8d43aa1 r8ab20b6 337 337 if (s === 1) { 338 338 isPlaying = true; root.classList.add('is-playing'); root.classList.remove('audio-needs-tap'); 339 // We startten gedempt (autoplay-policy) → nu 't speelt het geluid terugzetten, 340 // tenzij de gebruiker zelf gedempt heeft. 341 try { if (!audio.muted) { ytPlayer.unMute(); ytPlayer.setVolume(Math.round(audio.volume * 100)); } } catch (e) {} 339 342 mediaRegistry().setActive(registrySelf); startYTTick(); pullYTMeta(); 340 343 } else if (s === 2) { … … 417 420 if (!p) { onLoadError(new Error('YT API niet beschikbaar'), loadSeq); return; } 418 421 try { 422 // Gedempt starten = autoplay is ALTIJD toegestaan (YouTube blokkeert 423 // anders het geluid). onYTState ontdempt zodra 't echt speelt. 424 if (autoplay) { try { p.mute(); } catch (e) {} } 419 425 if (t.ytList) { 420 426 const idx = t.ytIndex || 0;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)