Documentation

WebhookEvent extends Message
in package

Generated from protobuf message <code>livekit.WebhookEvent</code>

Table of Contents

Properties

$created_at  : mixed
timestamp in seconds
$egress_info  : mixed
set when event is egress_*
$event  : mixed
one of room_started, room_finished, participant_joined, participant_left, participant_connection_aborted, track_published, track_unpublished, egress_started, egress_updated, egress_ended, ingress_started, ingress_ended
$id  : mixed
unique event uuid
$ingress_info  : mixed
set when event is ingress_*
$num_dropped  : mixed
Generated from protobuf field <code>int32 num_dropped = 11 [deprecated = true];</code>
$participant  : mixed
set when event is participant_* or track_*
$room  : mixed
Generated from protobuf field <code>.livekit.Room room = 2;</code>
$track  : mixed
set when event is track_*

Methods

__construct()  : mixed
Constructor.
clearEgressInfo()  : mixed
clearIngressInfo()  : mixed
clearParticipant()  : mixed
clearRoom()  : mixed
clearTrack()  : mixed
getCreatedAt()  : int|string
timestamp in seconds
getEgressInfo()  : EgressInfo|null
set when event is egress_*
getEvent()  : string
one of room_started, room_finished, participant_joined, participant_left, participant_connection_aborted, track_published, track_unpublished, egress_started, egress_updated, egress_ended, ingress_started, ingress_ended
getId()  : string
unique event uuid
getIngressInfo()  : IngressInfo|null
set when event is ingress_*
getNumDropped()  : int
Generated from protobuf field <code>int32 num_dropped = 11 [deprecated = true];</code>
getParticipant()  : ParticipantInfo|null
set when event is participant_* or track_*
getRoom()  : Room|null
Generated from protobuf field <code>.livekit.Room room = 2;</code>
getTrack()  : TrackInfo|null
set when event is track_*
hasEgressInfo()  : mixed
hasIngressInfo()  : mixed
hasParticipant()  : mixed
hasRoom()  : mixed
hasTrack()  : mixed
setCreatedAt()  : $this
timestamp in seconds
setEgressInfo()  : $this
set when event is egress_*
setEvent()  : $this
one of room_started, room_finished, participant_joined, participant_left, participant_connection_aborted, track_published, track_unpublished, egress_started, egress_updated, egress_ended, ingress_started, ingress_ended
setId()  : $this
unique event uuid
setIngressInfo()  : $this
set when event is ingress_*
setNumDropped()  : $this
Generated from protobuf field <code>int32 num_dropped = 11 [deprecated = true];</code>
setParticipant()  : $this
set when event is participant_* or track_*
setRoom()  : $this
Generated from protobuf field <code>.livekit.Room room = 2;</code>
setTrack()  : $this
set when event is track_*

Properties

$created_at

timestamp in seconds

protected mixed $created_at = 0

Generated from protobuf field int64 created_at = 7;

$egress_info

set when event is egress_*

protected mixed $egress_info = null

Generated from protobuf field .livekit.EgressInfo egress_info = 9;

$event

one of room_started, room_finished, participant_joined, participant_left, participant_connection_aborted, track_published, track_unpublished, egress_started, egress_updated, egress_ended, ingress_started, ingress_ended

protected mixed $event = ''

Generated from protobuf field string event = 1;

$id

unique event uuid

protected mixed $id = ''

Generated from protobuf field string id = 6;

$ingress_info

set when event is ingress_*

protected mixed $ingress_info = null

Generated from protobuf field .livekit.IngressInfo ingress_info = 10;

$num_dropped

Generated from protobuf field <code>int32 num_dropped = 11 [deprecated = true];</code>

protected mixed $num_dropped = 0

$participant

set when event is participant_* or track_*

protected mixed $participant = null

Generated from protobuf field .livekit.ParticipantInfo participant = 3;

$room

Generated from protobuf field <code>.livekit.Room room = 2;</code>

protected mixed $room = null

$track

set when event is track_*

protected mixed $track = null

Generated from protobuf field .livekit.TrackInfo track = 8;

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 $event
      one of room_started, room_finished, participant_joined, participant_left, participant_connection_aborted,
      track_published, track_unpublished, egress_started, egress_updated, egress_ended,
      ingress_started, ingress_ended
@type \Livekit\Room $room
@type \Livekit\ParticipantInfo $participant
      set when event is participant_* or track_*
@type \Livekit\EgressInfo $egress_info
      set when event is egress_*
@type \Livekit\IngressInfo $ingress_info
      set when event is ingress_*
@type \Livekit\TrackInfo $track
      set when event is track_*
@type string $id
      unique event uuid
@type int|string $created_at
      timestamp in seconds
@type int $num_dropped

}

getCreatedAt()

timestamp in seconds

public getCreatedAt() : int|string

Generated from protobuf field int64 created_at = 7;

Return values
int|string

getEgressInfo()

set when event is egress_*

public getEgressInfo() : EgressInfo|null

Generated from protobuf field .livekit.EgressInfo egress_info = 9;

Return values
EgressInfo|null

getEvent()

one of room_started, room_finished, participant_joined, participant_left, participant_connection_aborted, track_published, track_unpublished, egress_started, egress_updated, egress_ended, ingress_started, ingress_ended

public getEvent() : string

Generated from protobuf field string event = 1;

Return values
string

getId()

unique event uuid

public getId() : string

Generated from protobuf field string id = 6;

Return values
string

getIngressInfo()

set when event is ingress_*

public getIngressInfo() : IngressInfo|null

Generated from protobuf field .livekit.IngressInfo ingress_info = 10;

Return values
IngressInfo|null

getNumDropped()

Generated from protobuf field <code>int32 num_dropped = 11 [deprecated = true];</code>

public getNumDropped() : int
Return values
int

getParticipant()

set when event is participant_* or track_*

public getParticipant() : ParticipantInfo|null

Generated from protobuf field .livekit.ParticipantInfo participant = 3;

Return values
ParticipantInfo|null

getRoom()

Generated from protobuf field <code>.livekit.Room room = 2;</code>

public getRoom() : Room|null
Return values
Room|null

getTrack()

set when event is track_*

public getTrack() : TrackInfo|null

Generated from protobuf field .livekit.TrackInfo track = 8;

Return values
TrackInfo|null

setCreatedAt()

timestamp in seconds

public setCreatedAt(int|string $var) : $this

Generated from protobuf field int64 created_at = 7;

Parameters
$var : int|string
Return values
$this

setEgressInfo()

set when event is egress_*

public setEgressInfo(EgressInfo $var) : $this

Generated from protobuf field .livekit.EgressInfo egress_info = 9;

Parameters
$var : EgressInfo
Return values
$this

setEvent()

one of room_started, room_finished, participant_joined, participant_left, participant_connection_aborted, track_published, track_unpublished, egress_started, egress_updated, egress_ended, ingress_started, ingress_ended

public setEvent(string $var) : $this

Generated from protobuf field string event = 1;

Parameters
$var : string
Return values
$this

setId()

unique event uuid

public setId(string $var) : $this

Generated from protobuf field string id = 6;

Parameters
$var : string
Return values
$this

setIngressInfo()

set when event is ingress_*

public setIngressInfo(IngressInfo $var) : $this

Generated from protobuf field .livekit.IngressInfo ingress_info = 10;

Parameters
$var : IngressInfo
Return values
$this

setNumDropped()

Generated from protobuf field <code>int32 num_dropped = 11 [deprecated = true];</code>

public setNumDropped(int $var) : $this
Parameters
$var : int
Return values
$this

setParticipant()

set when event is participant_* or track_*

public setParticipant(ParticipantInfo $var) : $this

Generated from protobuf field .livekit.ParticipantInfo participant = 3;

Parameters
$var : ParticipantInfo
Return values
$this

setRoom()

Generated from protobuf field <code>.livekit.Room room = 2;</code>

public setRoom(Room $var) : $this
Parameters
$var : Room
Return values
$this

setTrack()

set when event is track_*

public setTrack(TrackInfo $var) : $this

Generated from protobuf field .livekit.TrackInfo track = 8;

Parameters
$var : TrackInfo
Return values
$this

        
On this page

Search results