From d413a999cc8efa356d273cf51340061053a93746 Mon Sep 17 00:00:00 2001 From: Tzipi-kaltura Date: Wed, 11 Sep 2024 14:30:26 +0300 Subject: [PATCH 1/3] fix(SUP-38407): [GaTech] [Multistream - V7 Player] Child entries not loading high quality flavor assets --- src/player.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/player.ts b/src/player.ts index ff8b733e..2edd644a 100644 --- a/src/player.ts +++ b/src/player.ts @@ -1280,6 +1280,15 @@ export default class Player extends FakeEventTarget { }); } + public changeChildQuality(track: any | string): void{ + if (track === 'auto') { + this.enableAdaptiveBitrate(); + } else { + this.selectTrack(track); + } + this._markActiveTrack(track); + } + /** * Select a track * @function selectTrack @@ -1860,7 +1869,7 @@ export default class Player extends FakeEventTarget { * @private */ private _selectEngineByPriority(): boolean { - const streamPriority = this._config.playback.streamPriority; + const streamPriority = this._config.playback?.streamPriority || []; const preferNative = this._config.playback.preferNative; const sources = this._sources; for (const priority of streamPriority) { From 2ff8d537470226382c369524b4f5e35f55923a23 Mon Sep 17 00:00:00 2001 From: Tzipi-kaltura Date: Wed, 11 Sep 2024 14:33:28 +0300 Subject: [PATCH 2/3] remove not related change --- src/player.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/player.ts b/src/player.ts index 2edd644a..3b855a96 100644 --- a/src/player.ts +++ b/src/player.ts @@ -1869,7 +1869,7 @@ export default class Player extends FakeEventTarget { * @private */ private _selectEngineByPriority(): boolean { - const streamPriority = this._config.playback?.streamPriority || []; + const streamPriority = this._config.playback.streamPriority; const preferNative = this._config.playback.preferNative; const sources = this._sources; for (const priority of streamPriority) { From 90f5ee5e61c340d609c77274fd5deeeb16a7b7ef Mon Sep 17 00:00:00 2001 From: Tzipi-kaltura Date: Wed, 11 Sep 2024 14:45:55 +0300 Subject: [PATCH 3/3] change --- src/player.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/player.ts b/src/player.ts index 3b855a96..87949cf5 100644 --- a/src/player.ts +++ b/src/player.ts @@ -1280,6 +1280,13 @@ 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();