selfErrorStatusReport method

dynamic selfErrorStatusReport(
  1. int state,
  2. StateTypeEnum type
)

Implementation

selfErrorStatusReport(int state, StateTypeEnum type) async {
  if (type == StateTypeEnum.camera) {
    _trtcStreamInfoObs.updateIsCameraAvailable(false);
  } else if (type == StateTypeEnum.mic) {
    _trtcStreamInfoObs.updateIsMicAvailable(false);
  }
  await networkService.selfStatusReport(StateReportBody(classId: _config.classId, state: state, type: type));
}