@@ -13,7 +13,7 @@ goog.require('shaka.log');
1313goog . require ( 'shaka.media.AdaptationSetCriteria' ) ;
1414goog . require ( 'shaka.media.BufferingObserver' ) ;
1515goog . require ( 'shaka.media.DrmEngine' ) ;
16- goog . require ( 'shaka.media.ExampleBasedCriteria' ) ;
16+ // goog.require('shaka.media.ExampleBasedCriteria');
1717goog . require ( 'shaka.media.ManifestParser' ) ;
1818goog . require ( 'shaka.media.MediaSourceEngine' ) ;
1919goog . 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