react-native-webrtc
Version:
WebRTC for React Native
17 lines (13 loc) • 370 B
JavaScript
;
import type RTCIceCandidate from './RTCIceCandidate';
export default class RTCIceCandidateEvent {
type: string;
candidate: RTCIceCandidate;
constructor(type, eventInitDict) {
this.type = type.toString();
this.candidate = null;
if (eventInitDict && eventInitDict.candidate) {
this.candidate = eventInitDict.candidate;
}
}
}