Javascript Mediasource play video and audio? : how i can play video and audio using Media Source in Javascript
i have all the code and i can play only one of them , Video Or Audio
but i can't play both of them . i just need to know how does it work so i can implement it .
some code 

     let mse = function() {
        if ('MediaSource' in window && MediaSource.isTypeSupported(codecs)) {
            a = new MediaSource();
            a.addEventListener('sourceopen', ma);
            return a;
        } else {
            return false;
        }
    }();

    
if you need more code i can send it because its 600 lines long and works fine i onky need to know how to join them 