SDK Integration

Hello, I’m trying to integrate the deepar SDK into a web based Webrtc video chat and running into issues since I am using streams as a source vs a camera source. Is there any troubleshooting literature for this application?

1 Like

Here’s a snippet:

const deepAR = await deepar.initialize({
  // ...
  additionalOptions: {
      cameraConfig: {
          disableDefaultCamera: true
      }
  }
});

// HTMLVideoElement that can contain camera or any video.
const video = ...;

deepAR.setVideoElement(video, true);

You can learn more details on the docs page

under the Different video sources section