跳转到内容

WebRTCState

此内容尚不支持你的语言。

type WebRTCState =
| {
callId: string | undefined;
dataChannel: undefined;
peerConnection: undefined;
status: "disconnected";
}
| {
callId: string | undefined;
dataChannel: RTCDataChannel;
peerConnection: RTCPeerConnection;
status: "connecting";
}
| {
callId: string | undefined;
dataChannel: RTCDataChannel;
peerConnection: RTCPeerConnection;
status: "connected";
};

The connection state of the WebRTC connection.