Skip to content

Commit

Permalink
remove changing selectioncriteria in selectvariant track
Browse files Browse the repository at this point in the history
  • Loading branch information
jobispo committed Jan 29, 2025
1 parent 3a602dc commit e5ec593
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ goog.require('shaka.log');
goog.require('shaka.media.AdaptationSetCriteria');
goog.require('shaka.media.BufferingObserver');
goog.require('shaka.media.DrmEngine');
goog.require('shaka.media.ExampleBasedCriteria');
// goog.require('shaka.media.ExampleBasedCriteria');
goog.require('shaka.media.ManifestParser');
goog.require('shaka.media.MediaSourceEngine');
goog.require('shaka.media.MediaSourcePlayhead');
Expand Down Expand Up @@ -4106,10 +4106,13 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
// https://github.com/shaka-project/shaka-player/issues/1299
// When track is selected, back-propagate the language to
// currentAudioLanguage_.
this.currentAdaptationSetCriteria_ = new shaka.media.ExampleBasedCriteria(
// This code is removed because we don´t want to change the
// ccurrentAdaptationSetCriteria_ language when a track is selected
/* this.currentAdaptationSetCriteria_ =
new shaka.media.ExampleBasedCriteria(
variant,
this.config_.mediaSource.codecSwitchingStrategy,
this.config_.manifest.dash.enableAudioGroups);
this.config_.manifest.dash.enableAudioGroups);*/

// Update AbrManager variants to match these new settings.
this.updateAbrManagerVariants_();
Expand Down

0 comments on commit e5ec593

Please sign in to comment.