Skip to content

WebRTC transport type selection when joining a room

Since SFU SDK build 2.0.322 and WCS build 5.3.246 WebRTC transport selection between UDP and TCP is allowed at client side

code

        const transportType = cControls.roomConfig().transport;
        await room.join(pc, null, config, 10, transportType);

The transportType parameter accepts two possible values:

export enum TransportType {
    TCP = "TCP",
    UDP = "UDP"
}