initOutboundCall method

Future<void> initOutboundCall(
  1. CallType type
)

Implementation

Future<void> initOutboundCall(CallType type) async {
  await _preparePeerConnection();
  setCallState(CallState.kCreateOffer);
  final stream = await _getUserMedia(type);
  if (stream != null) {
    await addLocalStream(stream, SDPStreamMetadataPurpose.Usermedia);
  }
}