Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for source-specific media attributes #17

Open
nirbheek opened this issue Dec 28, 2023 · 0 comments
Open

Add support for source-specific media attributes #17

nirbheek opened this issue Dec 28, 2023 · 0 comments

Comments

@nirbheek
Copy link

nirbheek commented Dec 28, 2023

https://www.rfc-editor.org/rfc/rfc5576, for example, this line:

a=ssrc:3761382600 cname:user1066417796@host-9f2666a9

Is currently parsed as:

Attribute {
    attribute: "ssrc",
    value: Some(
        "3761382600 cname:user1066417796@host-9f2666a9",
    ),
},

But it should be parsed as something like:

SourceAttribute {
    ssrc: 3761382600,
    attributes: [
        Attribute {
            attribute: "cname",
            value: Some("user1066417796@host-9f2666a9"),
        },
    ]
}

And stored under a new field in the Media struct called source_attributes: Vec<SourceAttribute>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant