Class Room
- Namespace
- LiveKit
public class Room
- Inheritance
-
Room
- Inherited Members
- Extension Methods
Properties
ConnectionState
public ConnectionState ConnectionState { get; }
Property Value
E2EEManager
public E2EEManager E2EEManager { get; }
Property Value
IsConnected
public bool IsConnected { get; }
Property Value
LocalParticipant
public LocalParticipant LocalParticipant { get; }
Property Value
Metadata
public string Metadata { get; }
Property Value
Name
public string Name { get; }
Property Value
NumParticipants
public uint NumParticipants { get; }
Property Value
RemoteParticipants
public IReadOnlyDictionary<string, RemoteParticipant> RemoteParticipants { get; }
Property Value
Sid
public string Sid { get; }
Property Value
Methods
Connect(string, string, RoomOptions)
public ConnectInstruction Connect(string url, string token, RoomOptions options)
Parameters
urlstringtokenstringoptionsRoomOptions
Returns
Disconnect()
public void Disconnect()
RegisterByteStreamHandler(string, ByteStreamHandler)
Registers a handler for incoming byte streams matching the given topic.
public void RegisterByteStreamHandler(string topic, ByteStreamHandler handler)
Parameters
topicstringTopic identifier that filters which streams will be handled. Only streams with a matching topic will trigger the handler.
handlerByteStreamHandlerHandler that is invoked whenever a remote participant opens a new stream with the matching topic. The handler receives a ByteStreamReader for consuming the stream data and the identity of the remote participant who initiated the stream.
RegisterTextStreamHandler(string, TextStreamHandler)
Registers a handler for incoming text streams matching the given topic.
public void RegisterTextStreamHandler(string topic, TextStreamHandler handler)
Parameters
topicstringTopic identifier that filters which streams will be handled. Only streams with a matching topic will trigger the handler.
handlerTextStreamHandlerHandler that is invoked whenever a remote participant opens a new stream with the matching topic. The handler receives a TextStreamReader for consuming the stream data and the identity of the remote participant who initiated the stream.
UnregisterByteStreamHandler(string)
Unregisters a handler for incoming byte streams matching the given topic.
public void UnregisterByteStreamHandler(string topic)
Parameters
topicstringTopic identifier for which the handler should be unregistered.
UnregisterTextStreamHandler(string)
Unregisters a handler for incoming text streams matching the given topic.
public void UnregisterTextStreamHandler(string topic)
Parameters
topicstringTopic identifier for which the handler should be unregistered.
Events
ActiveSpeakersChanged
public event Room.SpeakersChangeDelegate ActiveSpeakersChanged
Event Type
Connected
public event Room.ConnectionDelegate Connected
Event Type
ConnectionQualityChanged
public event Room.ConnectionQualityChangeDelegate ConnectionQualityChanged
Event Type
ConnectionStateChanged
public event Room.ConnectionStateChangeDelegate ConnectionStateChanged
Event Type
DataReceived
public event Room.DataDelegate DataReceived
Event Type
DataTrackPublished
public event Room.DataTrackPublishedDelegate DataTrackPublished
Event Type
DataTrackUnpublished
public event Room.DataTrackUnpublishedDelegate DataTrackUnpublished
Event Type
Disconnected
public event Room.ConnectionDelegate Disconnected
Event Type
E2EeStateChanged
public event Room.E2EeStateChangedDelegate E2EeStateChanged
Event Type
LocalTrackPublished
public event Room.LocalPublishDelegate LocalTrackPublished
Event Type
LocalTrackUnpublished
public event Room.LocalPublishDelegate LocalTrackUnpublished
Event Type
ParticipantAttributesChanged
public event Room.ParticipantDelegate ParticipantAttributesChanged
Event Type
ParticipantConnected
public event Room.ParticipantDelegate ParticipantConnected
Event Type
ParticipantDisconnected
public event Room.ParticipantDelegate ParticipantDisconnected
Event Type
ParticipantMetadataChanged
public event Room.ParticipantDelegate ParticipantMetadataChanged
Event Type
ParticipantNameChanged
public event Room.ParticipantDelegate ParticipantNameChanged
Event Type
Reconnected
public event Room.ConnectionDelegate Reconnected
Event Type
Reconnecting
public event Room.ConnectionDelegate Reconnecting
Event Type
RoomMetadataChanged
public event Room.MetaDelegate RoomMetadataChanged
Event Type
SipDtmfReceived
public event Room.SipDtmfDelegate SipDtmfReceived
Event Type
TrackMuted
public event Room.MuteDelegate TrackMuted
Event Type
TrackPublished
public event Room.PublishDelegate TrackPublished
Event Type
TrackSubscribed
public event Room.SubscribeDelegate TrackSubscribed
Event Type
TrackUnmuted
public event Room.MuteDelegate TrackUnmuted
Event Type
TrackUnpublished
public event Room.PublishDelegate TrackUnpublished
Event Type
TrackUnsubscribed
public event Room.SubscribeDelegate TrackUnsubscribed