FLV Streaming with PHP
Pseudostreaming is a protocol that can be installed on regular HTTP servers such as Apache, Tomcat, IIS or lighthttpd. It uses a server side script for Flash-to-server communication. The player sends a HTTP request to the server with a start time parameter in the request URL’s query string and the server script responds with the video stream so that its start position corresponds to the requested parameter. This start time parameter is usually named simply start. This same technique is used by the ultra-popular YouTube service which uses lighthttpd servers.
The biggest advantage of using pseudostreaming or any other streaming solution is the ability to seek in the timeline to positions that have not been downloaded to the player. This is most desirable for full-length movies because the visitor can seek to the last scene of a 2-hour movie if she wants to. Here are the benefits listed:
* Random seeking to any part of the timeline at any time.
* Starting playback in the middle of the clip’s timeline.
* Provides integration possibilities to custom streaming servers and server-side scripts.
* Both FLV and H.264 files supported.
Here is a list of most popular server side technologies that support pseudostreaming
* lighttpd Web server and it’s FLV streaming script
* H264 Streaming Module for Apache, Lighttpd and Nginx
* Apache FLV streaming using a native Apache module
See also pseudostreaming with IIS and ASP.NET
I did see some of the projects and suggestions which used a serverside scripting language, to achieve the same as the plugins or modules for the web server software does. Ports in perl, php and python as well as shell was also found, but all were bloated, that they were not transparent. So I thought I would give a try. I dont know how to brag about it with the code, I mean explain the code, I am poor at. So why dont you better try it off now.
Try downloading the file: FLV Streaming with PHP (1295)