Skip to content

Commit

Permalink
Add beforeRequest redefine
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienCozeDev committed Dec 15, 2023
1 parent 485cc75 commit 91ff5a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pod/peer_to_peer/static/peer_to_peer/js/p2p-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,11 @@ player.on('xhr-hooks-ready', () => {
}
};

player.tech().vhs.xhr.beforeRequest = function (options) {
console.log('HLS Request:', options);
return options;
}

// FIN player.on('xhr-hooks-ready', () => {
});

Expand Down

0 comments on commit 91ff5a2

Please sign in to comment.