UNPKG

@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

17 lines 819 B
import type { Participant, TrackPublication } from 'livekit-client'; import type { TrackReference } from './track-reference'; import type { PinState } from './types'; export declare function isLocal(p: Participant): boolean; export declare function isRemote(p: Participant): boolean; export declare const attachIfSubscribed: (publication: TrackPublication | undefined, element: HTMLMediaElement | null | undefined) => void; /** * Check if the participant track reference is pinned. */ export declare function isParticipantTrackReferencePinned(trackRef: TrackReference, pinState: PinState | undefined): boolean; /** * Calculates the scrollbar width by creating two HTML elements * and messaging the difference. * @internal */ export declare function getScrollBarWidth(): number; //# sourceMappingURL=utils.d.ts.map