updateCall method

Future<int> updateCall({
  1. required int sessionId,
  2. bool enableAudio = true,
  3. bool enableVideo = false,
})

Updates an active call session (sends a re-INVITE) to renegotiate the media streams — e.g. after a network change to re-anchor media to the new interface.

Parameters:

  • sessionId: The session ID of the call to update
  • enableAudio: true to keep/enable the audio stream (default: true)
  • enableVideo: true to enable the video stream (default: false)

Returns 0 on success, negative error code on failure.

Implementation

Future<int> updateCall({
  required int sessionId,
  bool enableAudio = true,
  bool enableVideo = false,
}) async {
  throw UnimplementedError('updateCall has not been implemented.');
}