I want to play audio and video simultaneously using Media Source in Javascript. I can play either but not both at the same time.
Here's my code so far:
let mse = function() {
if ('MediaSource' in window && MediaSource.isTypeSupported(codecs)) {
a = new MediaSource();
a.addEventListener('sourceopen', ma);
return a;
} else {
return false;
}
}();
I have another 600 lines of code, if needed.