audioVideoState method
dynamic
audioVideoState(
{ - int? audioFlag,
- int? videoFlag,
- String? mcToken,
})
Implementation
audioVideoState({int? audioFlag, int? videoFlag, String? mcToken}) {
print("this is statesssssss $audioFlag $videoFlag");
Map<String, dynamic> audioVideoStatejson = {
"type": "request",
"requestType": "state_information",
"requestId": _generateMd5(
DateTime.now().millisecondsSinceEpoch.toString() +
tenantID +
ref_id!),
"referenceId": ref_id,
"mcToken": mcToken,
"sessionUuid": callSessionUUID,
"audioInformation": audioFlag,
"videoInformation": videoFlag
};
print("this is state of audio and video json $audioFlag");
_socket?.send(audioVideoStatejson);
}