Home « Server software «
Documentation: collections/stream.php
collections/stream.php - Stream a file
This script turns a YACS server into a pseudo-streaming server. On intranets or at home, with VLC or Winamp or Windows Media Player installed at workstations, it allows people to view films on-demand.This script acts as a redirector for well-known types:
.aif(through a.m3uredirector).aiff(through a.m3uredirector).asf(through a.m3uredirector).au(through a.m3uredirector).avi(through a.m3uredirector).divx(through a.m3uredirector).mka(through a.m3uredirector).mkv(through a.m3uredirector).mov(through a.m3uredirector).mp3(through a.m3uredirector).mp4(through a.m3uredirector).mpe(through a.m3uredirector).mpeg(through a.m3uredirector).mpg(through a.m3uredirector).snd(through a.m3uredirector).vob(through a.m3uredirector).wav(through a.m3uredirector).wma(through a.waxredirector).wmv(through a.wvxredirector).ra(through a.ramredirector)
The downloaded object is always cacheable, to avoid IE to remove it too early from temporary directory.
For authentication on protected page this script use basic HTTP authentication. This means that the anonymous surfer will have either to use the regular login page, or to provide name and password on a per-request basis.
Accept following invocations:
- stream.php/collection/path/to/file
- stream.php?file=<collection/path/to/file>
This script is a reference file of this system.
Voir aussi:
- VLC media player
- Streaming audio/video from a web server
- The Unofficial M3U and PLS Specification
- Streaming Examples
- How To Play Sound
- How to get Winamp to show id3 info when streaming from the empeg via http
- Internet Explorer download problem
Licence: GNU Lesser General Public License
Auteurs:
- Bernard Paques bernard.paques@bigfoot.com