callStartNoiseCancellation method

Future<StartNoiseCancellationResponse> callStartNoiseCancellation(
  1. Context ctx,
  2. StartNoiseCancellationRequest req
)

Implementation

Future<StartNoiseCancellationResponse> callStartNoiseCancellation(
    twirp.Context ctx, StartNoiseCancellationRequest req) async {
  try {
    Uri url = Uri.parse(baseUrl +
        prefix +
        'stream.video.sfu.signal.SignalServer/StartNoiseCancellation');
    final data = await doJSONRequest(ctx, url, hooks, req);
    final StartNoiseCancellationResponse res =
        StartNoiseCancellationResponse.create();
    res.mergeFromProto3Json(json.decode(data));
    return Future.value(res);
  } catch (e) {
    rethrow;
  }
}