diff --git a/src/js/control-bar/picture-in-picture-toggle.js b/src/js/control-bar/picture-in-picture-toggle.js index ce71b3f705..addb71c639 100644 --- a/src/js/control-bar/picture-in-picture-toggle.js +++ b/src/js/control-bar/picture-in-picture-toggle.js @@ -30,6 +30,7 @@ class PictureInPictureToggle extends Button { this.on(player, ['disablepictureinpicturechanged', 'loadedmetadata'], (e) => this.handlePictureInPictureEnabledChange(e)); this.on(player, ['loadedmetadata', 'audioonlymodechange', 'audiopostermodechange'], () => { + // This audio detection will not detect HLS or DASH audio-only streams because there was no reliable way to detect them at the time const isSourceAudio = player.currentType().substring(0, 5) === 'audio'; if (isSourceAudio || player.audioPosterMode() || player.audioOnlyMode()) {