Documentation

Stream
in package

Video streaming class.

Does chunked video streaming using Range header

Table of Contents

Constants

BUFFER_SIZE  = 1024

Properties

$guzzle  : Guzzle
$headers_to_forward  : array<string|int, mixed>
$selenium  : Selenium
$tokens  : Tokens

Methods

__construct()  : mixed
url()  : void
Streams selected url

Constants

BUFFER_SIZE

private mixed BUFFER_SIZE = 1024

Properties

$headers_to_forward

private array<string|int, mixed> $headers_to_forward = [ 'Content-Type' => null, 'Content-Length' => null, 'Content-Range' => null, // Always send this one to explicitly say we accept ranged requests 'Accept-Ranges' => 'bytes', ]

Methods

__construct()

public __construct([array<string|int, mixed> $config = [] ]) : mixed
Parameters
$config : array<string|int, mixed> = []

url()

Streams selected url

public url(string $url) : void
Parameters
$url : string

        
On this page

Search results