File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -306,8 +306,9 @@ export default class SDP {
306306 const mline = SDPUtil . parseMLine ( mediaItem . split ( '\r\n' ) [ 0 ] ) ;
307307 const isRecvOnly = SDPUtil . findLine ( mediaItem , `a=${ MediaDirection . RECVONLY } ` ) ;
308308
309- // Do not process recvonly m-lines. Firefox generates recvonly SSRCs for all remote sources.
310- if ( isRecvOnly ) {
309+ // Do not process recvonly m-lines for JVB connection. Firefox generates recvonly SSRCs for all remote
310+ // sources.
311+ if ( isRecvOnly && ! this . isP2P ) {
311312 return ;
312313 }
313314
@@ -647,7 +648,7 @@ export default class SDP {
647648 continue ;
648649 }
649650
650- if ( ssrc && ! isRecvOnly ) {
651+ if ( ssrc && ( this . isP2P || ! isRecvOnly ) ) {
651652 const description = $ ( content ) . find ( 'description' ) ;
652653 const ssrcMap = SDPUtil . parseSSRC ( mediaItem ) ;
653654
@@ -736,7 +737,7 @@ export default class SDP {
736737 elem . up ( ) ;
737738 } ) ;
738739
739- if ( ssrc && ! isRecvOnly ) {
740+ if ( ssrc && ( this . isP2P || ! isRecvOnly ) ) {
740741 const ssrcMap = SDPUtil . parseSSRC ( mediaItem ) ;
741742
742743 for ( const [ availableSsrc , ssrcParameters ] of ssrcMap ) {
You can’t perform that action at this time.
0 commit comments