RoomConfiguration
extends Message
in package
Generated from protobuf message <code>livekit.RoomConfiguration</code>
Table of Contents
Properties
- $departure_timeout : mixed
- number of seconds to keep the room open after everyone leaves
- $egress : mixed
- egress
- $empty_timeout : mixed
- number of seconds to keep the room open if no one joins
- $max_participants : mixed
- limit number of participants that can be in a room, excluding Egress and Ingress participants
- $max_playout_delay : mixed
- Generated from protobuf field <code>uint32 max_playout_delay = 8;</code>
- $metadata : mixed
- metadata of room
- $min_playout_delay : mixed
- playout delay of subscriber
- $name : mixed
- Used as ID, must be unique
- $sync_streams : mixed
- improves A/V sync when playout_delay set to a value larger than 200ms. It will disables transceiver re-use so not recommended for rooms with frequent subscription changes
- $agents : mixed
- Define agents that should be dispatched to this room
Methods
- __construct() : mixed
- Constructor.
- clearEgress() : mixed
- getAgents() : RepeatedField<string|int, RoomAgentDispatch>
- Define agents that should be dispatched to this room
- getDepartureTimeout() : int
- number of seconds to keep the room open after everyone leaves
- getEgress() : RoomEgress|null
- egress
- getEmptyTimeout() : int
- number of seconds to keep the room open if no one joins
- getMaxParticipants() : int
- limit number of participants that can be in a room, excluding Egress and Ingress participants
- getMaxPlayoutDelay() : int
- Generated from protobuf field <code>uint32 max_playout_delay = 8;</code>
- getMetadata() : string
- metadata of room
- getMinPlayoutDelay() : int
- playout delay of subscriber
- getName() : string
- Used as ID, must be unique
- getSyncStreams() : bool
- improves A/V sync when playout_delay set to a value larger than 200ms. It will disables transceiver re-use so not recommended for rooms with frequent subscription changes
- hasEgress() : mixed
- setAgents() : $this
- Define agents that should be dispatched to this room
- setDepartureTimeout() : $this
- number of seconds to keep the room open after everyone leaves
- setEgress() : $this
- egress
- setEmptyTimeout() : $this
- number of seconds to keep the room open if no one joins
- setMaxParticipants() : $this
- limit number of participants that can be in a room, excluding Egress and Ingress participants
- setMaxPlayoutDelay() : $this
- Generated from protobuf field <code>uint32 max_playout_delay = 8;</code>
- setMetadata() : $this
- metadata of room
- setMinPlayoutDelay() : $this
- playout delay of subscriber
- setName() : $this
- Used as ID, must be unique
- setSyncStreams() : $this
- improves A/V sync when playout_delay set to a value larger than 200ms. It will disables transceiver re-use so not recommended for rooms with frequent subscription changes
Properties
$departure_timeout
number of seconds to keep the room open after everyone leaves
protected
mixed
$departure_timeout
= 0
Generated from protobuf field uint32 departure_timeout = 3;
$egress
egress
protected
mixed
$egress
= null
Generated from protobuf field .livekit.RoomEgress egress = 5;
$empty_timeout
number of seconds to keep the room open if no one joins
protected
mixed
$empty_timeout
= 0
Generated from protobuf field uint32 empty_timeout = 2;
$max_participants
limit number of participants that can be in a room, excluding Egress and Ingress participants
protected
mixed
$max_participants
= 0
Generated from protobuf field uint32 max_participants = 4;
$max_playout_delay
Generated from protobuf field <code>uint32 max_playout_delay = 8;</code>
protected
mixed
$max_playout_delay
= 0
$metadata
metadata of room
protected
mixed
$metadata
= ''
Generated from protobuf field string metadata = 11 [(.logger.redact) = true, (.logger.redact_format) = "<redacted ({{ .Size }} bytes)>"];
$min_playout_delay
playout delay of subscriber
protected
mixed
$min_playout_delay
= 0
Generated from protobuf field uint32 min_playout_delay = 7;
$name
Used as ID, must be unique
protected
mixed
$name
= ''
Generated from protobuf field string name = 1;
$sync_streams
improves A/V sync when playout_delay set to a value larger than 200ms. It will disables transceiver re-use so not recommended for rooms with frequent subscription changes
protected
mixed
$sync_streams
= false
Generated from protobuf field bool sync_streams = 9;
$agents
Define agents that should be dispatched to this room
private
mixed
$agents
Generated from protobuf field repeated .livekit.RoomAgentDispatch agents = 10;
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $data = null ]) : mixed
Parameters
- $data : array<string|int, mixed> = null
-
{ Optional. Data for populating the Message object.
@type string $name Used as ID, must be unique @type int $empty_timeout number of seconds to keep the room open if no one joins @type int $departure_timeout number of seconds to keep the room open after everyone leaves @type int $max_participants limit number of participants that can be in a room, excluding Egress and Ingress participants @type string $metadata metadata of room @type \Livekit\RoomEgress $egress egress @type int $min_playout_delay playout delay of subscriber @type int $max_playout_delay @type bool $sync_streams improves A/V sync when playout_delay set to a value larger than 200ms. It will disables transceiver re-use so not recommended for rooms with frequent subscription changes @type \Livekit\RoomAgentDispatch[] $agents Define agents that should be dispatched to this room}
clearEgress()
public
clearEgress() : mixed
getAgents()
Define agents that should be dispatched to this room
public
getAgents() : RepeatedField<string|int, RoomAgentDispatch>
Generated from protobuf field repeated .livekit.RoomAgentDispatch agents = 10;
Return values
RepeatedField<string|int, RoomAgentDispatch>getDepartureTimeout()
number of seconds to keep the room open after everyone leaves
public
getDepartureTimeout() : int
Generated from protobuf field uint32 departure_timeout = 3;
Return values
intgetEgress()
egress
public
getEgress() : RoomEgress|null
Generated from protobuf field .livekit.RoomEgress egress = 5;
Return values
RoomEgress|nullgetEmptyTimeout()
number of seconds to keep the room open if no one joins
public
getEmptyTimeout() : int
Generated from protobuf field uint32 empty_timeout = 2;
Return values
intgetMaxParticipants()
limit number of participants that can be in a room, excluding Egress and Ingress participants
public
getMaxParticipants() : int
Generated from protobuf field uint32 max_participants = 4;
Return values
intgetMaxPlayoutDelay()
Generated from protobuf field <code>uint32 max_playout_delay = 8;</code>
public
getMaxPlayoutDelay() : int
Return values
intgetMetadata()
metadata of room
public
getMetadata() : string
Generated from protobuf field string metadata = 11 [(.logger.redact) = true, (.logger.redact_format) = "<redacted ({{ .Size }} bytes)>"];
Return values
stringgetMinPlayoutDelay()
playout delay of subscriber
public
getMinPlayoutDelay() : int
Generated from protobuf field uint32 min_playout_delay = 7;
Return values
intgetName()
Used as ID, must be unique
public
getName() : string
Generated from protobuf field string name = 1;
Return values
stringgetSyncStreams()
improves A/V sync when playout_delay set to a value larger than 200ms. It will disables transceiver re-use so not recommended for rooms with frequent subscription changes
public
getSyncStreams() : bool
Generated from protobuf field bool sync_streams = 9;
Return values
boolhasEgress()
public
hasEgress() : mixed
setAgents()
Define agents that should be dispatched to this room
public
setAgents(array<string|int, RoomAgentDispatch> $var) : $this
Generated from protobuf field repeated .livekit.RoomAgentDispatch agents = 10;
Parameters
- $var : array<string|int, RoomAgentDispatch>
Return values
$thissetDepartureTimeout()
number of seconds to keep the room open after everyone leaves
public
setDepartureTimeout(int $var) : $this
Generated from protobuf field uint32 departure_timeout = 3;
Parameters
- $var : int
Return values
$thissetEgress()
egress
public
setEgress(RoomEgress $var) : $this
Generated from protobuf field .livekit.RoomEgress egress = 5;
Parameters
- $var : RoomEgress
Return values
$thissetEmptyTimeout()
number of seconds to keep the room open if no one joins
public
setEmptyTimeout(int $var) : $this
Generated from protobuf field uint32 empty_timeout = 2;
Parameters
- $var : int
Return values
$thissetMaxParticipants()
limit number of participants that can be in a room, excluding Egress and Ingress participants
public
setMaxParticipants(int $var) : $this
Generated from protobuf field uint32 max_participants = 4;
Parameters
- $var : int
Return values
$thissetMaxPlayoutDelay()
Generated from protobuf field <code>uint32 max_playout_delay = 8;</code>
public
setMaxPlayoutDelay(int $var) : $this
Parameters
- $var : int
Return values
$thissetMetadata()
metadata of room
public
setMetadata(string $var) : $this
Generated from protobuf field string metadata = 11 [(.logger.redact) = true, (.logger.redact_format) = "<redacted ({{ .Size }} bytes)>"];
Parameters
- $var : string
Return values
$thissetMinPlayoutDelay()
playout delay of subscriber
public
setMinPlayoutDelay(int $var) : $this
Generated from protobuf field uint32 min_playout_delay = 7;
Parameters
- $var : int
Return values
$thissetName()
Used as ID, must be unique
public
setName(string $var) : $this
Generated from protobuf field string name = 1;
Parameters
- $var : string
Return values
$thissetSyncStreams()
improves A/V sync when playout_delay set to a value larger than 200ms. It will disables transceiver re-use so not recommended for rooms with frequent subscription changes
public
setSyncStreams(bool $var) : $this
Generated from protobuf field bool sync_streams = 9;
Parameters
- $var : bool