@livekit/components-core
Version:
This package is a wrapper around the [livekit/client-sdk-js](https://github.com/livekit/client-sdk-js) package. It transforms the event based logic into simple to use observable state and component level APIs. This package is the core for all framework sp
8 lines (6 loc) • 311 B
text/typescript
import type { Participant } from 'livekit-client';
import { participantInfoObserver } from '../observables/participant';
export function setupParticipantName(participant: Participant) {
const infoObserver = participantInfoObserver(participant);
return { className: 'lk-participant-name', infoObserver };
}