toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['autoPublish'] = this.autoPublish;
  data['autoSubscribe'] = this.autoSubscribe;
  data['enableMultistream'] = this.enableMultistream;
  data['hasVideo'] = this.hasVideo;
  data['hasAudio'] = this.hasAudio;
  data['hasScreen'] = this.hasScreen;
  data['hasData'] = this.hasData;
  data['videoCodec'] = this.videoCodec;
  data['audioCodec'] = this.audioCodec;
  data['audioFrequency'] = this.audioFrequency;
  data['outputAudioChannel'] = this.outputAudioChannel;
  data['inputAudioChannel'] = this.inputAudioChannel;
  data['videoResolution'] = this.videoResolution;
  data['videoWidth'] = this.videoWidth;
  data['videoHeight'] = this.videoHeight;
  data['videoFps'] = this.videoFps;
  data['videoMaxkbps'] = this.videoMaxkbps;
  data['videoMinkbps'] = this.videoMinkbps;
  data['audioMaxkbps'] = this.audioMaxkbps;

  data['audioBitrateMode'] = this.audioBitrateMode;
  data['transportAudioChannel'] = this.transportAudioChannel;
  data['audioSource'] = this.audioSource;
  data['audioBufferPackets'] = this.audioBufferPackets;
  data['audioCodecComplex'] = this.audioCodecComplex;
  data['audioPlayoutDelay'] = this.audioPlayoutDelay;
  data['connectionTimeoutMs'] = this.connectionTimeoutMs;
  data['readTimeoutMs'] = this.readTimeoutMs;
  data['audioContentType'] = this.audioContentType;
  data['videoRenderMode'] = this.videoRenderMode;
  data['micPhoneMuted'] = this.micPhoneMuted;
  data['cameraMuted'] = this.cameraMuted;
  data['enableFixedResolution'] = this.enableFixedResolution;
  data['enableRequiredResolutionAligment32'] =
      this.enableRequiredResolutionAligment32;
  data['disableExtraCamera'] = this.disableExtraCamera;
  data['enableHighProfile'] = this.enableHighProfile;

  data['enableHisiH264HW'] = this.enableHisiH264HW;
  data['enableMTKH264Decode'] = this.enableMTKH264Decode;
  data['enableAacCodec'] = this.enableAacCodec;
  data['enableJitterRetransmission'] = this.enableJitterRetransmission;
  data['mediaServerIP'] = this.mediaServerIP;

  data['kcpServerDomain'] = this.kcpServerDomain;
  data['kcpSignalServerDomain'] = this.kcpSignalServerDomain;

  data['encodeBitrateMode'] = this.encodeBitrateMode;
  data['enableAudioLevel'] = this.enableAudioLevel;
  data['audioLevelTopCount'] = this.audioLevelTopCount;
  data['enableMultistream'] = this.enableMultistream;
  data['forceSoftwareEncoder'] = this.forceSoftwareEncoder;
  data['forceSoftwareDecoder'] = this.forceSoftwareDecoder;
  data['enableLowLatencyMode'] = this.enableLowLatencyMode;
  data['disableDropFrame'] = this.disableDropFrame;
  data['weakNetworkPolicy'] = this.weakNetworkPolicy;
  data['enableReportAudioLevel'] = this.enableReportAudioLevel;
  data['videoCodecHwAcceleration'] = this.videoCodecHwAcceleration;
  data['disableBluetoothSocMode'] = this.disableBluetoothSocMode;
  data['isMultiPlayerModel'] = this.isMultiPlayerModel;
  return data;
}