Skip to content

Allow more control over SDP negotiation #715

@Janrupf

Description

@Janrupf

I'm writing a service where I want to ahead of time accept/reject an SDP offer (specifically for a WHIP like scenario). My service for example accepts one, and only exactly one audio media. Arguably SDP is a bad choice to begin with here, but its sadly still the standard and as such I need to support it.

Right now str0m doesn't really seem to expose the ability to introspect the SDP ahead of time (#385 all over again?) - in my case rejecting an SDP offer would result in a HTTP 400 response on the WHIP offer endpoint. I could now move to the direct API, but str0m already does an excellent job at SDP negotiation and handling all the weirdness.

The MediaAdded event is too late, since at this point I already have accepted a for my use case non-sensible SDP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions