Web Only: The AvatarKit RTC client path is currently available for Web applications only.
livekit-plugins-spatius.
This page uses the RTC Adapter with the LiveKit provider. LiveKit Agents is the platform integration; the RTC Adapter (@spatius/avatarkit-rtc) is the Web client adapter used to render the avatar stream from the LiveKit room.
AvatarPlayer API
Code in this section shows type signatures, not copy-paste examples. For runnable code, see the Complete Example at the bottom of the page.
Constructor
LiveKitProviderOptions
new LiveKitProvider() without options. Set these only when your LiveKit transport publishes motion data under custom publication names.
AvatarPlayerOptions
Connection
LiveKitConnectionConfig
Microphone Control
Custom Audio Publishing
For non-microphone audio sources like audio elements or Web Audio API.unpublishAudio() does not stop the track. You are responsible for calling track.stop() to release the resource.Native Client Access
Access the underlying LiveKitRoom instance for advanced features.
ConnectionState
Events
When a
stalled event fires, the avatar automatically transitions to idle animation. Consider calling player.reconnect() to recover.Session diagnostics
sessionSummary is a read-only diagnostics snapshot for the current AvatarPlayer lifetime. Use it when investigating RTC playback health, including packet ordering, recovery, skipped playback, and stalled playback behavior. The object shape is SDK-owned diagnostics data, so avoid depending on individual fields for core application state.
Stall recovery example:

