diff --git a/src/controller/audio-track-controller.ts b/src/controller/audio-track-controller.ts index 079ef312c3c..a7f8f1dbf0b 100644 --- a/src/controller/audio-track-controller.ts +++ b/src/controller/audio-track-controller.ts @@ -404,11 +404,17 @@ class AudioTrackController extends BasePlaylistController { protected loadPlaylist(hlsUrlParameters?: HlsUrlParameters): void { const audioTrack = this.currentTrack; - if (this.shouldLoadPlaylist(audioTrack) && audioTrack) { + if (!audioTrack) { + return; + } + let url = audioTrack.url; + if ( + this.shouldLoadPlaylist(audioTrack) && + url !== this.hls.levels[this.hls.loadLevel]?.uri + ) { super.loadPlaylist(); const id = audioTrack.id; const groupId = audioTrack.groupId as string; - let url = audioTrack.url; if (hlsUrlParameters) { try { url = hlsUrlParameters.addDirectives(url);