Stream
Represents a stream in an OpenTok session.
See OpenTok.getStream() and OpenTok.listStreams().
Table of Contents
$id : string
$layoutClassList : array<string|int, mixed>
$name : string
$videoType : string
$data : mixed
__construct() : mixed
jsonSerialize() : mixed
Properties
$id
public string $id
The stream ID.
$layoutClassList
public array<string|int, mixed> $layoutClassList
An array of the layout classes for the stream.
$name
public string $name
The stream name (if one was set when the client published the stream).
$videoType
public string $videoType
The type of video in the stream, which is set to either "camera" or "screen".
$data
private mixed $data
Methods
__construct()
public __construct(mixed $streamData) : mixed
Parameters
$streamData : mixed
Return values
mixed —
jsonSerialize()
public jsonSerialize() : mixed
Return values
mixed —