function _removeExtmapMixedFromSDP(description) {
    if (description &&
        description.sdp &&
        description.sdp.indexOf('\na=extmap-allow-mixed') !== -1) {
        description.sdp = description.sdp
            .split('\n')
            .filter(function (line) {
                return line.trim() !== 'a=extmap-allow-mixed';
            })
            .join('\n');
    }
    return description;
}
/**
 * This is to fix error on legacy WebRTC implementations
 * @param {RTCSessionDescriptionInit} description
 */
This is to fix error on legacy WebRTC implementations
@param {RTCSessionDescriptionInit} description
This is to fix error on legacy WebRTC implementations @param { RTCSessionDescriptionInit } description
function _removeExtmapMixedFromSDP(description) {
    if (description &&
        description.sdp &&
        description.sdp.indexOf('\na=extmap-allow-mixed') !== -1) {
        description.sdp = description.sdp
            .split('\n')
            .filter(function (line) {
                return line.trim() !== 'a=extmap-allow-mixed';
            })
            .join('\n');
    }
    return description;
}
function _removeExtmapMixedFromSDP ( description ) { if ( description && description . sdp && description . sdp . indexOf ( '\na=extmap-allow-mixed' ) !== - 1 ) { description . sdp = description . sdp . split ( '\n' ) . filter ( function ( line ) { return line . trim ( ) !== 'a=extmap-allow-mixed' ; } ) . join ( '\n' ) ; } return description ; }
This is to fix error on legacy WebRTC implementations
 @param {RTCSessionDescriptionInit} description
This is to fix error on legacy WebRTC implementations @param { RTCSessionDescriptionInit } description