Skip to content

Wrong component id in parse_remote_candidate_sdp() #7

Description

@Sfinx

Why the component id is set to candidates list size which is random value for both endpoints ? According to https://tools.ietf.org/html/rfc5245 the component is definitely fixed value (1 for RTP, 2 - fro RTCP). Such bug leads to the following warning and inability to establish connection between clients that use different libnice versions.

(process:XXXXX): libnice-WARNING **: Could not find component X in stream 1

one liner change fixes the things

int ret = nice_agent_set_remote_candidates(ice->agent, ice->stream_id, 1, list);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions