Suggestions

close search

Add Messaging, Voice, and Authentication to your apps with Vonage Communications APIs

Visit the Vonage API Developer Portal

OT

This library uses React Native bridging to expose native (iOS & Android) methods via a native module. OT is a custom native module that includes methods for logging.

Please keep in mind that OT is not the same as OT in the JS SDK, the OT in this library refers to the iOS and Android OTSessionManager class.

To enable logs:

By default, the native logs are disabled. Please using the following method to enable native logs.

  OT.enableLogs(true);

To disable logs:

  OT.enableLogs(false);

To get supported codecs for the client device

  const supportedCodecs = await OT.getSupportedCodecs();
  console.log(supportedCodecs);

The OT.getSupportedCodecs() method returns a promise that resolves with an object defining the supported codecs on the device. This object includes two properties:

See the OpenTok video codecs documentattion.