Rate this page:

Mid-call operations

React Native

The most typical actions during a call – send video, hold a call, start receiving video (if video receiving was disabled on call start or answer) – are promise-based in React Native SDK (since version 1.0.0). In order to ensure the successful execution of the appropriate methods, call them only after the CallEvents.Connected event is triggered.

See an example of the Call.sendVideo method usage below. The Call.hold and Call.receiveVideo methods are pretty similar:

sendVideo

sendVideo

Voximplant.CallError contains all types of execution errors, such as “ALREADY_IN_THIS_STATE”, “MISSING_PERMISSION”, “TIMEOUT” etc.

These operations are also available for the Flutter SDK.

hold

hold