publishVideo method

void publishVideo(
  1. RTCSessionDescription sessionDescription
)

Sends the publishVideo to the WebSocket server

Implementation

void publishVideo(RTCSessionDescription sessionDescription) {
  final Map<String, String> publishVideoParams = {
    'audioActive': 'true',
    'videoActive': 'true',
    'doLoopback': 'false',
    'frameRate': '30',
    'hasAudio': 'true',
    'hasVideo': 'true',
    'typeOfVideo': 'CAMERA',
    'videoDimensions': '{"width":320, "height":240}',
    'sdpOffer': sessionDescription.sdp!,
  };
  idPublishVideo =
      sendJson(JsonConstants.publishVideoMethod, publishVideoParams);
}