Skip to content

Commit e5ec593

Browse files
committed
remove changing selectioncriteria in selectvariant track
1 parent 3a602dc commit e5ec593

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/player.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ goog.require('shaka.log');
1313
goog.require('shaka.media.AdaptationSetCriteria');
1414
goog.require('shaka.media.BufferingObserver');
1515
goog.require('shaka.media.DrmEngine');
16-
goog.require('shaka.media.ExampleBasedCriteria');
16+
// goog.require('shaka.media.ExampleBasedCriteria');
1717
goog.require('shaka.media.ManifestParser');
1818
goog.require('shaka.media.MediaSourceEngine');
1919
goog.require('shaka.media.MediaSourcePlayhead');
@@ -4106,10 +4106,13 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
41064106
// https://github.com/shaka-project/shaka-player/issues/1299
41074107
// When track is selected, back-propagate the language to
41084108
// currentAudioLanguage_.
4109-
this.currentAdaptationSetCriteria_ = new shaka.media.ExampleBasedCriteria(
4109+
// This code is removed because we don´t want to change the
4110+
// ccurrentAdaptationSetCriteria_ language when a track is selected
4111+
/* this.currentAdaptationSetCriteria_ =
4112+
new shaka.media.ExampleBasedCriteria(
41104113
variant,
41114114
this.config_.mediaSource.codecSwitchingStrategy,
4112-
this.config_.manifest.dash.enableAudioGroups);
4115+
this.config_.manifest.dash.enableAudioGroups);*/
41134116

41144117
// Update AbrManager variants to match these new settings.
41154118
this.updateAbrManagerVariants_();

0 commit comments

Comments
 (0)