Skip to content

Commit

Permalink
fix(SUP-38407): [GaTech] [Multistream - V7 Player] Child entries not …
Browse files Browse the repository at this point in the history
…loading high quality flavor assets (#793)

Add function to change quality on child entries in dual screen.

part of - kaltura/playkit-js-dual-screen#155

solves SUP-38407
  • Loading branch information
Tzipi-kaltura authored Sep 11, 2024
1 parent e75fef0 commit 89f2b53
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89f2b53

Please sign in to comment.