createDeviceClient

Creates a mediasoup client device with the provided RTP capabilities.

The CreateDeviceClientOptions is required and must contain the RTP capabilities.

Returns a Device object representing the created mediasoup client device or throws an Exception if the device creation is not supported.

Example usage:

val device = createDeviceClient(
options = CreateDeviceClientOptions(rtpCapabilities = rtpCapabilities)
)
if (device != null) {
} else {
Logger.e("CreateDeviceClient", "Failed to create device")
}