Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion packages/ts-client/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,17 @@ import type { AuthErrorReason } from './auth';
import type { JoinErrorReason } from './guards';
import type { ReconnectConfig } from './reconnection';

/**
* Metadata attached to a track published by a peer.
* Sent over the signaling channel so other peers know what kind of track they're receiving.
* @category Tracks
*/
export type TrackMetadata = {
/** The kind of media this track carries. */
type: 'camera' | 'microphone' | 'screenShareVideo' | 'screenShareAudio' | 'customVideo' | 'customAudio';
/** Whether the track is currently muted/disabled. */
paused: boolean;
// track label used in recordings
/** The peer's display name, used in recordings. */
displayName?: string;
};

Expand Down
Loading