MediaSFU React Native
    Preparing search index...

    Function createDeviceClient

    • Creates a mediasoup client device with the provided RTP capabilities.

      Parameters

      Returns Promise<Device>

      A promise that resolves to the created Device or null if creation fails.

      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");
      }