Creates a mediasoup client device with the provided RTP capabilities.
Throws an error if the required parameters are not provided or if device creation is not supported.
const device = await createDeviceClient({ rtpCapabilities });if (device) { console.log("Device created successfully");} else { console.log("Failed to create device");} Copy
const device = await createDeviceClient({ rtpCapabilities });if (device) { console.log("Device created successfully");} else { console.log("Failed to create device");}
The options for creating the device client.
A promise that resolves to the created Device or null if creation fails.
Creates a mediasoup client device with the provided RTP capabilities.
Throws
Throws an error if the required parameters are not provided or if device creation is not supported.
Example