callStart static method

Future<DataResult> callStart(
  1. String? anchorId,
  2. bool call,
  3. String callId
)

通话开始

Implementation

static Future<DataResult> callStart(
    String? anchorId, bool call, String callId) async {
  Map other = {'userId': anchorId, 'callId': callId, 'caller': call ? 0 : 1};
  var res = await BaseDao.fromBaseEncrypt(other, VideoUrl.callStart());
  if (res.result) {
    var entity = VideoEntity.fromJson(res.data);
    return DataResult(entity, true);
  }
  return res;
}