placeCallWithStreams method

Future<void> placeCallWithStreams(
  1. List<WrappedMediaStream> callFeeds, [
  2. bool requestScreenshareFeed = false
])

Implementation

Future<void> placeCallWithStreams(List<WrappedMediaStream> callFeeds,
    [bool requestScreenshareFeed = false]) async {
  opts.dir = CallDirection.kOutgoing;

  voip.calls[callId] = this;

  // create the peer connection now so it can be gathering candidates while we get user
  // media (assuming a candidate pool size is configured)
  await _preparePeerConnection();
  await gotCallFeedsForInvite(callFeeds, requestScreenshareFeed);
}