Documentation

PublishDataTrackRequest extends Message
in package

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

Table of Contents

Properties

$encryption  : mixed
Method used for end-to-end encryption (E2EE) on frame payloads.
$frame_encoding  : mixed
Encoding for frame payloads on this track. If unspecified, the track is untyped.
$name  : mixed
Human-readable identifier (e.g., `geoLocation`, `servoPosition.x`, etc.), unique per publisher.
$pub_handle  : mixed
Client-assigned, 16-bit identifier that will be attached to packets sent by the publisher.
$schema  : mixed
ID of the schema used by frames on this track if the track is typed.

Methods

__construct()  : mixed
Constructor.
clearFrameEncoding()  : mixed
clearSchema()  : mixed
getEncryption()  : int
Method used for end-to-end encryption (E2EE) on frame payloads.
getFrameEncoding()  : DataTrackFrameEncoding|null
Encoding for frame payloads on this track. If unspecified, the track is untyped.
getName()  : string
Human-readable identifier (e.g., `geoLocation`, `servoPosition.x`, etc.), unique per publisher.
getPubHandle()  : int
Client-assigned, 16-bit identifier that will be attached to packets sent by the publisher.
getSchema()  : DataTrackSchemaId|null
ID of the schema used by frames on this track if the track is typed.
hasFrameEncoding()  : mixed
hasSchema()  : mixed
setEncryption()  : $this
Method used for end-to-end encryption (E2EE) on frame payloads.
setFrameEncoding()  : $this
Encoding for frame payloads on this track. If unspecified, the track is untyped.
setName()  : $this
Human-readable identifier (e.g., `geoLocation`, `servoPosition.x`, etc.), unique per publisher.
setPubHandle()  : $this
Client-assigned, 16-bit identifier that will be attached to packets sent by the publisher.
setSchema()  : $this
ID of the schema used by frames on this track if the track is typed.

Properties

$encryption

Method used for end-to-end encryption (E2EE) on frame payloads.

protected mixed $encryption = 0

Generated from protobuf field .livekit.Encryption.Type encryption = 3;

$frame_encoding

Encoding for frame payloads on this track. If unspecified, the track is untyped.

protected mixed $frame_encoding = null

Generated from protobuf field optional .livekit.DataTrackFrameEncoding frame_encoding = 4;

$name

Human-readable identifier (e.g., `geoLocation`, `servoPosition.x`, etc.), unique per publisher.

protected mixed $name = ''

This must be non-empty and no longer than 256 characters.

Generated from protobuf field string name = 2;

$pub_handle

Client-assigned, 16-bit identifier that will be attached to packets sent by the publisher.

protected mixed $pub_handle = 0

This must be non-zero and unique for each data track published by the publisher.

Generated from protobuf field uint32 pub_handle = 1;

$schema

ID of the schema used by frames on this track if the track is typed.

protected mixed $schema = null

If set, the associated schema must be stored with StoreDataBlobRequest.

Generated from protobuf field optional .livekit.DataTrackSchemaId schema = 5;

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 int $pub_handle
      Client-assigned, 16-bit identifier that will be attached to packets sent by the publisher.
      This must be non-zero and unique for each data track published by the publisher.
@type string $name
      Human-readable identifier (e.g., `geoLocation`, `servoPosition.x`, etc.), unique per publisher.
      This must be non-empty and no longer than 256 characters.
@type int $encryption
      Method used for end-to-end encryption (E2EE) on frame payloads.
@type \Livekit\DataTrackFrameEncoding $frame_encoding
      Encoding for frame payloads on this track. If unspecified, the track is untyped.
@type \Livekit\DataTrackSchemaId $schema
      ID of the schema used by frames on this track if the track is typed.
      If set, the associated schema must be stored with `StoreDataBlobRequest`.

}

getEncryption()

Method used for end-to-end encryption (E2EE) on frame payloads.

public getEncryption() : int

Generated from protobuf field .livekit.Encryption.Type encryption = 3;

Return values
int

getName()

Human-readable identifier (e.g., `geoLocation`, `servoPosition.x`, etc.), unique per publisher.

public getName() : string

This must be non-empty and no longer than 256 characters.

Generated from protobuf field string name = 2;

Return values
string

getPubHandle()

Client-assigned, 16-bit identifier that will be attached to packets sent by the publisher.

public getPubHandle() : int

This must be non-zero and unique for each data track published by the publisher.

Generated from protobuf field uint32 pub_handle = 1;

Return values
int

getSchema()

ID of the schema used by frames on this track if the track is typed.

public getSchema() : DataTrackSchemaId|null

If set, the associated schema must be stored with StoreDataBlobRequest.

Generated from protobuf field optional .livekit.DataTrackSchemaId schema = 5;

Return values
DataTrackSchemaId|null

setEncryption()

Method used for end-to-end encryption (E2EE) on frame payloads.

public setEncryption(int $var) : $this

Generated from protobuf field .livekit.Encryption.Type encryption = 3;

Parameters
$var : int
Return values
$this

setName()

Human-readable identifier (e.g., `geoLocation`, `servoPosition.x`, etc.), unique per publisher.

public setName(string $var) : $this

This must be non-empty and no longer than 256 characters.

Generated from protobuf field string name = 2;

Parameters
$var : string
Return values
$this

setPubHandle()

Client-assigned, 16-bit identifier that will be attached to packets sent by the publisher.

public setPubHandle(int $var) : $this

This must be non-zero and unique for each data track published by the publisher.

Generated from protobuf field uint32 pub_handle = 1;

Parameters
$var : int
Return values
$this

setSchema()

ID of the schema used by frames on this track if the track is typed.

public setSchema(DataTrackSchemaId $var) : $this

If set, the associated schema must be stored with StoreDataBlobRequest.

Generated from protobuf field optional .livekit.DataTrackSchemaId schema = 5;

Parameters
$var : DataTrackSchemaId
Return values
$this
On this page

Search results