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