For the complete documentation index, see llms.txt. This page is also available as Markdown.

CDN (UMD Script)

Integrate Convai's Pixel Streaming into your web app using the UMD build directly from a CDN

<script src="https://unpkg.com/@convai/experience-embed/dist/convai-embed.umd.js"></script>
<!-- index.html -->
<div id="pixel-stream-container" style="width: 100%; height: 600px;"></div>
<script src="https://unpkg.com/@convai/experience-embed/dist/convai-embed.umd.js"></script>
<script>
  const container = document.getElementById('pixel-stream-container');

  const pixelStream = new window.PixelStreamClient({
    container: container,
    expId: 'your-experience-id',
  });

  pixelStream.enableCamera();
</script>

Last updated

Was this helpful?