I’m trying to stream a video file using Javascript’s MediaSource API in a React custom hook. Here’s the snippet of my code: It looks like mediaSource never emit ‘sourceopen’ event. What more, when I’m trying to use this code in different project with simple html and javascript it works fine. I was trying to use document.getElementByTagName instead of useRef or