streamPropertyChange method

void streamPropertyChange({
  1. required String streamId,
  2. required String property,
  3. required dynamic newValue,
  4. required String reason,
})

Sends the streamPropertyChange to the WebSocket server Used to change the audio and video status of a stream

Implementation

void streamPropertyChange(
    {required String streamId,
    required String property,
    required dynamic newValue,
    required String reason}) {
  final Map<String, dynamic> streamPropertyChangeParams = {
    'streamId': streamId,
    'property': property,
    'newValue': newValue,
    'reason': reason,
  };
  sendJson(
      JsonConstants.streamPropertyChangedMethod, streamPropertyChangeParams);
}