Allow override initial consumers MID values on WebRTC transport. #584
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm working on project which uses media soup as
SFU
on server side. Media Soup clients libraries are not used and own signaling is being implemented.Each client uses single peer connection in unified plan mode to send and receive media, in contrast to media soup demo app, which has distinct PC to send and receive media. The clients are supposed to have single PC with 2
m=
sections insendonly
mode to send media, andN
m=
section inrecvonly/inactive
to receive media.On server side for each client single
WebRTCTransport
created.2
producers created for audio&videom=
sections from SDP offer from client. Those producers are usually created with mid0
and1
(because that's how chrome and firefox generate SDP). The consumers for other producers on same router are also created starting with mid0, 1, 2, ...
on that transport.Later when
RTP
parameters of consumers and producers are transformed into singleSDP
withcount(producers)
m=
sections insendonly
mode andcount(consumers)
m=
sections inrecvonly
mode there is an issue: because consumers and producers has overlapping mid (in my scenario when I don't deal with sendrecvm=
sections).It would be nice to have a way to control initial mid value of created consumers just to make IDs non overlapping.
So this PR proposes one of the solution to my problem.