У меня конфликт с этими двумя сценариями, которые я не знаю, как решить.Когда я добавляю xhook.js, скрипт playerhtml5 перестает работать.
Я сделал несколько тестов и изменил XMLHTTP = 'XMLHttpRequest';
на что-то вроде XMLHTTP = 'XMLHttpRequest2';
в xhook.js playerhtml5 возвращается к работе, но xhook.js перестает работать
https://jpillora.com/xhook/dist/xhook.js
https://static -egc.xvideos-cdn.com / v-d4b92c5105a / v3 / js / skins / min / player.html5hls.static.js
Ошибка, возникающая
ERROR: "Uncaught TypeError: Cannot read property 'readyState' of null" in player.html5hls.static.js
window.onerror @ player.html5hls.static.js
error (async)
o @ player.html5hls.static.js
(anonymous) @ player.html5hls.static.js
(anonymous) @ player.html5hls.static.js
player.html5hls.static.js TypeError: Cannot read property 'readyState' of null
at e.readystatechange (player.html5hls.static.js)
at Object.EventEmitter.emitter.(anonymous function) [as dispatchEvent] (xhook.js:169:22)
at emitReadyState (xhook.js:382)
at setReadyState (xhook.js:405)
at XMLHttpRequest.xhr.onreadystatechange (xhook.js:438)