Skip to content

Room metadata

與所有參與者共享特定於應用程式的狀態。

Overview

Participant metadata 類似,Rooms 也具有一個元資料字段,用於儲存所有參與者可見的應用程式特定資料。

房間元資料只能使用伺服器 API 進行設置,但房間內的所有參與者都可以使用 LiveKit SDK 進行存取。

若要設定房間元數據,請使用 CreateRoomUpdateRoomMetadata API。

若要訂閱更新,您必須 handle RoomMetadataChanged 事件。