Interface RemoteRoomMember

interface RemoteRoomMember {
    id: string;
    leave: (() => Promise<void>);
    metadata?: string;
    name?: string;
    onLeft: Event<void>;
    onMetadataUpdated: Event<string>;
    onPublicationListChanged: Event<void>;
    onPublicationSubscribed: Event<{
        subscription: RoomSubscription<RemoteStream>;
    }>;
    onPublicationUnsubscribed: Event<{
        subscription: RoomSubscription<RemoteStream>;
    }>;
    onSubscriptionListChanged: Event<void>;
    publications: RoomPublication<LocalStream>[];
    roomId: string;
    roomName?: string;
    roomType: "sfu" | "p2p";
    side: "remote";
    state: MemberState;
    subscribe: ((publicationId) => Promise<{
        subscription: RoomSubscription<RemoteStream>;
    }>);
    subscriptions: RoomSubscription<RemoteStream>[];
    unsubscribe: ((subscriptionId) => Promise<void>);
    updateMetadata: ((metadata) => Promise<void>);
}

Hierarchy (view full)

Properties

id: string
leave: (() => Promise<void>)

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

Description

[japanese] Channelから退室する

metadata?: string
name?: string
onLeft: Event<void>

Description

[japanese] MemberがRoomから出たときに発火するイベント

onMetadataUpdated: Event<string>

Description

[japanese] Memberのメタデータが更新された時に発火するイベント

onPublicationListChanged: Event<void>

Description

[japanese] MemberのPublicationの数が変化したとき

onPublicationSubscribed: Event<{
    subscription: RoomSubscription<RemoteStream>;
}>

Type declaration

Description

[japanese] この RemoteRoomMember がPublicationをSubscribeしたとき

onPublicationUnsubscribed: Event<{
    subscription: RoomSubscription<RemoteStream>;
}>

Type declaration

Description

[japanese] この RemoteRoomMember がPublicationをUnsubscribeしたとき

onSubscriptionListChanged: Event<void>

Description

[japanese] MemberのSubscriptionの数が変化したとき

publications: RoomPublication<LocalStream>[]

Description

[japanese] Memberが Publish した Publication のリスト

roomId: string
roomName?: string
roomType: "sfu" | "p2p"
side: "remote"
subscribe: ((publicationId) => Promise<{
    subscription: RoomSubscription<RemoteStream>;
}>)

Type declaration

Description

[japanese] この RemoteRoomMember にPublicationをSubscribeさせる

subscriptions: RoomSubscription<RemoteStream>[]

Description

[japanese] Memberが Subscribe している Subscription のリスト

unsubscribe: ((subscriptionId) => Promise<void>)

Type declaration

    • (subscriptionId): Promise<void>
    • Parameters

      • subscriptionId: string

      Returns Promise<void>

Description

[japanese] この RemoteRoomMember にPublicationをUnsubscribeさせる

updateMetadata: ((metadata) => Promise<void>)

Type declaration

    • (metadata): Promise<void>
    • Parameters

      • metadata: string

      Returns Promise<void>

Description

[japanese] Memberのメタデータを更新する