Skip to content

NOt working #2

@WordpressArtist

Description

@WordpressArtist

CODE:

$videoPath = 'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4';
$options = array(
'is_localPath' => false,
'is_https' => true,
'video_size' => null,
'video_buffer' => 512,
'content_type' => 'video/mp4',
'cache_control' => 'max-age=2592000, public',
'expires' => gmdate('D, d M Y H:i:s', time()+2592000).' GMT',
'last_modified' => gmdate('D, d M Y H:i:s', @filemtime($videoPath)).' GMT'
);

$videoStream = new VideoStream();
return $videoStream->streamVideo($a, $options);

RESPONSE :

BLANK VIDEO
502 (Bad Gateway)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions