Skip to content

Change onssrcconflict event in RTCRtpSender by exception #448

@murillo128

Description

@murillo128

Currently we have an onssrcconflict in the RTCRtpSender, but I fail to see which situations would cause it to be triggered.

AFAIK the only way of having an ssrc conflict is by assigning the same ssrc to two different RTPSender on same transport, or having two different encodings with same ssrc. Or when changing a sender from one transport to another which already had another RTPSender using that same ssrc.

This can only be triggered by an API method call (either RTCRtpSender.send()or RTCRtpSender.setTransport()) so IMHO it is much better to throw an exception in this case (an InvalidParameter exception for send() and maybe a new SSRConflict exception for setTranspor()), that triggering an event.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions