I have a single webpage with a HTML5 video playing an mp4 file.
It plays well until i create an audio publisher using openvidu-browser-2.30.0.min.js: the audio of the movie gets interrupted, I can hear random little audio fragments that sound muffled and low volume.
As a test I created a audio context for the video and for the OV video, like below, but no difference. The WebAudio inspector in Chrome dev tools shows nothing is off.
What can be the cause and the solution for this problem? I am running in Chrome on Acer Nitro5 gaming laptop.
Many thanks!
audioContext = new (window.AudioContext || window.webkitAudioContext)()
const source = audioContext.createMediaElementSource(video)
source.connect(audioContext.destination)