32000 Hz
44100 Hz
48000 Hz
Sets video frame rate.
Sets the frame rate of video calls. A maximum of 10 fps is supported.
Sets the frame rate of video calls. A maximum of 15 fps is supported.
Sets the frame rate of video calls. A maximum of 20 fps is supported.
Sets the frame rate of video calls. A maximum of 25 fps is supported.
Sets the frame rate of video calls. A maximum of 5 fps is supported.
Sets the default frame rate of video calls. A maximum of 15 fps is supported.
Sets the resolution.
1080p
180p
480p
720p
Checks the compatibility of NERTC Web SDK with the browser used.
-true
: The SDK is compatible with the current browser.
-false
: The SDK is not compatible with the current browser.
Creates a client.
This method is used to create a client. You can call the method once before each call.
The configuration parameters.
This method creates and returns an audio and video stream object.
The configuration parameters.
Destroy the Client object.
The Client instance to be destroyed. If the instance is not passed, the Client instance created using createClient will be destroyed. The method is used in scenarios where multiple instances are created.
Gets available video input devices.
//Interface usage example
NERTC.getCameras().then(data => {
data.forEach(item=>{
console.log('video label: ', item.label, 'deviceId: ', item.deviceId)
})
})
This method enumerates the available media input and output devices, such as microphones, cameras, headphones, and more.
Gets available audio input devices.
Gets available audio output devices.
Checks the codec supported by NERTC Web SDK and the current browser.
NERTC Web SDK 2.0 video codec supports VP8, H.264, H.265, and NEVC format, and OPUS for audio files. You can call this method to check the codec supported by the NERTC Web SDK and the current browser at the same time. This allows your app to prevent audio and video playback issues during the call due to codec compatibility.
Codec supported by NERTC Web SDK and the current browser.
This method returns a Promise object. In the .then(data(result){}) callback, data contains the following attributes:
//Interface usage example
NERTC.getSupportedCodec().then(data => {
data.forEach(item=>{
console.log(`Supported video codec: ${data.video.join(",")});
console.log(`Supported audio codec: ${data.audio.join(",")});
${data.audio.join(",")});
})
The audio sample rate in Interactive Live Streaming.