Skip to content

Commit

Permalink
fix: enableFunction not passing playlist to fastQualityChange (#1502)
Browse files Browse the repository at this point in the history
* fix: enableFunction not passing playlist to fastQualityChange

* fix: demo page
  • Loading branch information
adrums86 authored Apr 4, 2024
1 parent f5d1209 commit e50ecb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
rep.playlist.disabled = rep.id !== id;
});

window.pc.fastQualityChange_();
window.pc.fastQualityChange_(selectedOption);
});
var isManifestObjectType = function(url) {
return (/application\/vnd\.videojs\.vhs\+json/).test(url);
Expand Down
2 changes: 1 addition & 1 deletion src/rendition-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const enableFunction = (loader, playlistID, changePlaylistFn) => (enable) => {

if (enable !== currentlyEnabled && !incompatible) {
// Ensure the outside world knows about our changes
changePlaylistFn();
changePlaylistFn(playlist);
if (enable) {
loader.trigger('renditionenabled');
} else {
Expand Down

0 comments on commit e50ecb1

Please sign in to comment.