Skip to main content

Before you start

  • Complete the Agent setup.
  • Create a backend endpoint that returns a short-lived LiveKit token, server URL, and room name for the client.
  • Use the same Spatius App ID and Avatar ID as the worker. Keep the Spatius API Key on the worker.
This packaged LiveKit client path is currently available on Web. The native RTC SDKs expose an RTCProvider extension point, but do not bundle a native LiveKitProvider.

Install

Configure your build tool to load the AvatarKit WebAssembly assets. See Toolchain Setup.

Connect and render

startPublishing() requests microphone permission, so call startAvatar() from a user action. Run the returned dispose() function when the experience ends. The adapter creates and owns the LiveKit Room in this path. If your app must supply an existing room, follow the advanced attach() flow in the RTC Adapter reference.

Next steps

Integration demo

RTC Adapter API

Client lifecycle