audioVideoState method

dynamic audioVideoState({
  1. int? audioFlag,
  2. int? videoFlag,
  3. 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);
}