constructor()

in TailwindTraders.Website/Source/Tailwind.Traders.Web/ClientApp/src/pages/home/components/videoCall/CallCard.js [16:40]


  constructor(props) {
    super(props);
    this.callFinishConnectingResolve = undefined;
    this.call = props.call;
    this.deviceManager = props.deviceManager;
    this.state = {
      callState: this.call.state,
      callId: this.call.id,
      remoteParticipants: this.call.remoteParticipants,
      streams: [],
      videoOn: true,
      micMuted: false,
      onHold: this.call.state === "Hold",
      screenShareOn: this.call.isScreenShareOn,
      cameraDeviceOptions: [],
      speakerDeviceOptions: [],
      microphoneDeviceOptions: [],
      selectedCameraDeviceId: props.selectedCameraDeviceId,
      selectedSpeakerDeviceId: props.selectedSpeakerDeviceId,
      selectedMicrophoneDeviceId: props.selectedMicrophoneDeviceId,
      showSettings: false,
      showLocalVideo: false,
      chatView: false,
    };
  }