TVIRoom Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | TVIRoom.h |
Overview
TVIRoom represents a media session with zero or more remote Participants. Media shared by any one Participant is
distributed equally to all other Participants.
delegate
The TVIRoomDelegate. Set this property to be notified about Room events such as connection status, and
Participants joining and leaving.
@property (nonatomic, weak, readonly, nullable) id<TVIRoomDelegate> delegateDeclared In
TVIRoom.h
localParticipant
A representation of your local Client in the Room.
@property (nonatomic, strong, readonly, nullable) TVILocalParticipant *localParticipantDiscussion
TVILocalParticipant is available once the delegate method didConnectToRoom is called.
If you have not yet connected to the Room, or your attempt fails then this property will return nil.
Declared In
TVIRoom.h
name
The name of the Room.
@property (nonatomic, copy, readonly, nonnull) NSString *nameDiscussion
name will return the sid if the Room was created without a name.
Declared In
TVIRoom.h
participants
A collection of connected participants to TVIRoom.
@property (nonatomic, copy, readonly, nonnull) NSArray<TVIParticipant*> *participantsDeclared In
TVIRoom.h
recording
Indicates if the Room is being recorded.
@property (nonatomic, assign, readonly, getter=isRecording) BOOL recordingDeclared In
TVIRoom.h
sid
The sid of the Room.
@property (nonatomic, copy, readonly, nonnull) NSString *sidDeclared In
TVIRoom.h
state
The Room’s current state. Use TVIRoomDelegate to know about changes in TVIRoomState.
@property (nonatomic, assign, readonly) TVIRoomState stateDeclared In
TVIRoom.h
– init
Developers shouldn’t initialize this class directly.
- (null_unspecified instancetype)initDiscussion
TVIRoom can not be created with init
Declared In
TVIRoom.h
– getParticipantWithSid:
Utility method which gets a Participant using its sid.
- (nullable TVIParticipant *)getParticipantWithSid:(nonnull NSString *)sidParameters
sid |
The sid. |
|---|
Return Value
An instance of TVIParticipant if successful, or nil if not.
Declared In
TVIRoom.h
– getStatsWithBlock:
Retrieve stats for all media tracks.
- (void)getStatsWithBlock:(nonnull TVIRoomGetStatsBlock)blockParameters
block |
The block to be invoked when the stats are available. |
|---|
Discussion
Stats are retrieved asynchronously. In the case where the room is the TVIRoomStateDisconnected state,
reports won’t be delivered.
Declared In
TVIRoom.h