Skip to content

Fix whipinto and whepfrom iceserver #128

@a-wing

Description

@a-wing

We must support turn server, We should from whip header get iceserver

    let config = RTCConfiguration {
        ice_servers: vec![{
            RTCIceServer {
                urls: vec!["turn:turn.22333.fun".to_owned(), "turn:cn.22333.fun".to_owned()],
                username: "live777".to_owned(),
                credential: "live777".to_owned(),
                credential_type: RTCIceCredentialType::Password,

                //urls: vec!["stun:stun.l.google.com:19302".to_string()],
                //username: "".to_string(),
                //credential: "".to_string(),
                //credential_type: RTCIceCredentialType::Unspecified,
            }
        }],
        ..Default::default()
    };

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions