Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2024-10-16 (23 days ago) | | 60% | | Total: 118 | | All time: 9,532 This week: 60 |
|
Description | | Author |
This package can serve large files to stream video.
It provides a class that can determine if the browser client is requesting the whole file or just a range of the file.
The class generates HTTP headers and file body data to serve only the part of the file that is being requested. Innovation Award
April 2024
Winner |
Nowadays video is a common form of content that many users want to consume on the Internet.
Usually, video files are large. When users want to pause watching a video they need to resume the video watching later in the position where they paused.
Streaming content helps the browsers play video instantaneously without having to wait for the video to be completely downloaded.
Nowadays video players are smart and retrieve smaller chunks of video files at any time.
This PHP utility package can serve files for streaming starting the stream download in any position upon the request of the browser or application video player.
Manuel Lemos |
| |
|
|
Innovation award
Nominee: 5x
Winner: 3x |
|
Details
Stream Audio / Video
Stream large audio / video files in browser.
Example
video-gallery.html
<video width="100%" height="100%" preload="none" poster="template.jpg" controls="">
<source src="stream.php?file=/somevideo.mov">
</video>
stream.php
<?php
include_once ('StreamVideo.php');
$file = $_GET['file'];
$obj = new StreamVideo();
$obj->initFile($file);
$obj->validateFile();
$obj->setHeaders();
$obj->streamContent();
> Note: Update the supportedMimes of media files in the class.
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.