initializeVideo method

dynamic initializeVideo({
  1. Signer? signer,
  2. required int chainId,
  3. String? pgpPrivateKey,
  4. required int callType,
  5. required VideoCallData data,
  6. required dynamic onReceiveStream(
    1. MediaStream receivedStream,
    2. String senderAddress,
    3. bool? audio
    ),
})

Implementation

initializeVideo({
  Signer? signer,
  required int chainId,
  String? pgpPrivateKey,
  required int callType,
  required VideoCallData data,
  required Function(
          MediaStream receivedStream, String senderAddress, bool? audio)
      onReceiveStream,
}) {
  this.signer = signer ?? getCachedWallet()?.signer;
  this.chainId = chainId;
  this.pgpPrivateKey = pgpPrivateKey ?? getCachedWallet()?.pgpPrivateKey;
  videoCallData = data;
  this.onReceiveStream = onReceiveStream;
  notifyListeners();
}