From 6d1d71a25d7bf79197def89b54c6ab5a9e8549b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?A=CC=81lvaro=20Velad=20Galva=CC=81n?= Date: Fri, 18 Aug 2023 10:25:10 +0200 Subject: [PATCH] fix: Remove duplicate adaptation event before init --- lib/player.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/player.js b/lib/player.js index 22851c1368..cf4b2c0857 100644 --- a/lib/player.js +++ b/lib/player.js @@ -2219,10 +2219,6 @@ shaka.Player = class extends shaka.util.FakeEventTarget { this.playhead_.setStartTime(adjustedTime); } - - // Since the first streams just became active, send an adaptation event. - this.onAdaptation_(null, - shaka.util.StreamUtils.variantToTrack(initialVariant)); } this.playhead_.ready();