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)
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'
);
RESPONSE :
BLANK VIDEO
502 (Bad Gateway)