diff --git a/lib/util/player_configuration.js b/lib/util/player_configuration.js index f0f9690d5b..b068c5e110 100644 --- a/lib/util/player_configuration.js +++ b/lib/util/player_configuration.js @@ -11,6 +11,7 @@ goog.require('shaka.abr.SimpleAbrManager'); goog.require('shaka.config.AutoShowText'); goog.require('shaka.config.CodecSwitchingStrategy'); goog.require('shaka.log'); +goog.require('shaka.media.Capabilities'); goog.require('shaka.net.NetworkingEngine'); goog.require('shaka.util.ConfigUtils'); goog.require('shaka.util.FairPlayUtils'); @@ -104,7 +105,8 @@ shaka.util.PlayerConfiguration = class { let codecSwitchingStrategy = shaka.config.CodecSwitchingStrategy.RELOAD; let multiTypeVariantsAllowed = false; - if (shaka.util.Platform.supportsSmoothCodecSwitching()) { + if (shaka.media.Capabilities.isChangeTypeSupported() && + shaka.util.Platform.supportsSmoothCodecSwitching()) { codecSwitchingStrategy = shaka.config.CodecSwitchingStrategy.SMOOTH; multiTypeVariantsAllowed = true; }