selfErrorStatusReport method
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));
}