Class Room
Inheritance
System.Object
Room
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: cs.temp.dll.dll
Syntax
public class Room : JSEventEmitter<RoomEvent>, IDisposable
Constructors
Room(Nullable<RoomOptions>)
Declaration
public Room(RoomOptions? options = null)
Parameters
Type |
Name |
Description |
System.Nullable<RoomOptions> |
options |
|
Properties
ActiveSpeakers
Declaration
public JSArray<Participant> ActiveSpeakers { get; }
Property Value
CanPlaybackAudio
Declaration
public bool CanPlaybackAudio { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsClosed
Declaration
public bool IsClosed { get; }
Property Value
Type |
Description |
System.Boolean |
|
LocalParticipant
Declaration
public LocalParticipant LocalParticipant { get; }
Property Value
Declaration
public string Metadata { get; }
Property Value
Type |
Description |
System.String |
|
Name
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
RemoteParticipants
Declaration
public JSMap<string, RemoteParticipant> RemoteParticipants { get; }
Property Value
RoomOptions
Declaration
public RoomOptions RoomOptions { get; }
Property Value
State
Declaration
public ConnectionState State { get; }
Property Value
Methods
Connect(String, String, Nullable<RoomConnectOptions>)
Declaration
public ConnectOperation Connect(string url, string token, RoomConnectOptions? options = null)
Parameters
Type |
Name |
Description |
System.String |
url |
|
System.String |
token |
|
System.Nullable<RoomConnectOptions> |
options |
|
Returns
Disconnect(Boolean)
Declaration
public void Disconnect(bool stopTracks = true)
Parameters
Type |
Name |
Description |
System.Boolean |
stopTracks |
|
Dispose()
Declaration
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Overrides
LiveKit.JSEventEmitter<LiveKit.RoomEvent>.Dispose(System.Boolean)
Declaration
public static JSPromise<JSArray<MediaDeviceInfo>> GetLocalDevices(MediaDeviceKind? kind = null, bool? requestPermissions = null)
Parameters
Type |
Name |
Description |
System.Nullable<MediaDeviceKind> |
kind |
|
System.Nullable<System.Boolean> |
requestPermissions |
|
Returns
GetParticipantByIdentity(String)
Declaration
public Participant GetParticipantByIdentity(string identity)
Parameters
Type |
Name |
Description |
System.String |
identity |
|
Returns
GetSid()
Declaration
public JSPromise<JSObject> GetSid()
Returns
StartAudio()
Declaration
public JSPromise StartAudio()
Returns
Declaration
public JSPromise SwitchActiveDevice(MediaDeviceKind kind, string deviceId)
Parameters
Returns
Events
ActiveSpeakersChanged
Declaration
public event Room.ActiveSpeakersChangedDelegate ActiveSpeakersChanged
Event Type
AttributesChanged
Declaration
public event Room.AttributesChangedDelegate AttributesChanged
Event Type
AudioPlaybackChanged
Declaration
public event Room.AudioPlaybackChangedDelegate AudioPlaybackChanged
Event Type
ConnectionQualityChanged
Declaration
public event Room.ConnectionQualityChangedDelegate ConnectionQualityChanged
Event Type
DataReceived
Declaration
public event Room.DataReceivedDelegate DataReceived
Event Type
Disconnected
Declaration
public event Room.DisconnectedDelegate Disconnected
Event Type
LocalTrackPublished
Declaration
public event Room.LocalTrackPublishedDelegate LocalTrackPublished
Event Type
LocalTrackUnpublished
Declaration
public event Room.LocalTrackUnpublishedDelegate LocalTrackUnpublished
Event Type
Declaration
public event Room.MediaDevicesChangedDelegate MediaDevicesChanged
Event Type
Declaration
public event Room.MediaDevicesErrorDelegate MediaDevicesError
Event Type
ParticipantConnected
Declaration
public event Room.ParticipantConnectedDelegate ParticipantConnected
Event Type
ParticipantDisconnected
Declaration
public event Room.ParticipantDisconnectedDelegate ParticipantDisconnected
Event Type
Declaration
public event Room.ParticipantMetadataChangedDelegate ParticipantMetadataChanged
Event Type
Reconnected
Declaration
public event Room.ReconnectedDelegate Reconnected
Event Type
Reconnecting
Declaration
public event Room.ReconnectingDelegate Reconnecting
Event Type
Declaration
public event Room.RoomMetadataChangedDelegate RoomMetadataChanged
Event Type
TrackMuted
Declaration
public event Room.TrackMutedDelegate TrackMuted
Event Type
TrackPublished
Declaration
public event Room.TrackPublishedDelegate TrackPublished
Event Type
TrackStreamStateChanged
Declaration
public event Room.TrackStreamStateChangedDelegate TrackStreamStateChanged
Event Type
TrackSubscribed
Declaration
public event Room.TrackSubscribedDelegate TrackSubscribed
Event Type
TrackSubscriptionFailed
Declaration
public event Room.TrackSubscriptionFailedDelegate TrackSubscriptionFailed
Event Type
TrackSubscriptionPermissionChanged
Declaration
public event Room.TrackSubscriptionPermissionChangedDelegate TrackSubscriptionPermissionChanged
Event Type
TrackUnmuted
Declaration
public event Room.TrackUnmutedDelegate TrackUnmuted
Event Type
TrackUnpublished
Declaration
public event Room.TrackUnpublishedDelegate TrackUnpublished
Event Type
TrackUnsubscribed
Declaration
public event Room.TrackUnsubscribedDelegate TrackUnsubscribed
Event Type
Implements
System.IDisposable