in src/player.js [14:22]
componentDidMount() {
videojs.Hls.xhr.beforeRequest = function (options) {
options.uri = `${options.uri}?token=${videojs.getAllPlayers()[0].options().token}`;
return options;
};
this.player = videojs(this.videoNode, this.props,function onPlayerReady() {
console.log('onPlayerReady', this)
});
}