diff --git a/src/player.ts b/src/player.ts index ff8b733e..87949cf5 100644 --- a/src/player.ts +++ b/src/player.ts @@ -1280,6 +1280,22 @@ export default class Player extends FakeEventTarget { }); } + /** + * change quality in child entries + * @function changeChildQuality + * @param {?Track} track - the track to change + * @returns {void} + * @public + */ + public changeChildQuality(track: any | string): void{ + if (track === 'auto') { + this.enableAdaptiveBitrate(); + } else { + this.selectTrack(track); + } + this._markActiveTrack(track); + } + /** * Select a track * @function selectTrack