Skip to content

Commit

Permalink
expose participantkind
Browse files Browse the repository at this point in the history
  • Loading branch information
nbsp committed Sep 20, 2024
1 parent 6d9fd64 commit 58c7889
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/livekit-rtc/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ export {
export { EncryptionType, EncryptionState } from './proto/e2ee_pb.js';
export { StreamState, TrackKind, TrackSource } from './proto/track_pb.js';
export { VideoBufferType, VideoRotation } from './proto/video_frame_pb.js';
export { ParticipantKind } from './proto/participant_pb.js';
export { dispose } from './ffi_client.js';
6 changes: 5 additions & 1 deletion packages/livekit-rtc/src/participant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: Apache-2.0
import { FfiClient, FfiHandle } from './ffi_client.js';
import type { OwnedParticipant, ParticipantInfo } from './proto/participant_pb.js';
import type { OwnedParticipant, ParticipantInfo, ParticipantKind } from './proto/participant_pb.js';
import type {
PublishDataCallback,
PublishDataResponse,
Expand Down Expand Up @@ -71,6 +71,10 @@ export abstract class Participant {
get attributes(): Record<string, string> {
return this.info.attributes;
}

get kind(): ParticipantKind {
return this.info.kind;
}
}

export type DataPublishOptions = {
Expand Down

0 comments on commit 58c7889

Please sign in to comment.