Skip to content

Commit

Permalink
chore: call fast-quality-switch only when we enable playlist from qua…
Browse files Browse the repository at this point in the history
…lity selector
  • Loading branch information
Dzianis Dashkevich committed Nov 5, 2024
1 parent f6fd00b commit 626123f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rendition-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ const enableFunction = (loader, playlistID, changePlaylistFn) => (enable) => {

if (enable !== currentlyEnabled && !incompatible) {
// Ensure the outside world knows about our changes
changePlaylistFn(playlist);
if (enable) {
// call fast quality change only when the playlist is enabled
changePlaylistFn(playlist);
loader.trigger({ type: 'renditionenabled', metadata});
} else {
loader.trigger({ type: 'renditiondisabled', metadata});
Expand Down

0 comments on commit 626123f

Please sign in to comment.