Home « Server software «
Documentation: files/stream.php
files/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.m3u
redirector).aiff
(through a.m3u
redirector).asf
(through a.m3u
redirector).au
(through a.m3u
redirector).avi
(through a.m3u
redirector).divx
(through a.m3u
redirector).mm
(load a flash or java player).mov
(through a.m3u
redirector).mp3
(through a.m3u
redirector).mp4
(through a.m3u
redirector).mpe
(through a.m3u
redirector).mpeg
(through a.m3u
redirector).mpg
(through a.m3u
redirector).snd
(through a.m3u
redirector).vob
(through a.m3u
redirector).wav
(through a.m3u
redirector).wma
(through a.wax
redirector).wmv
(through a.wvx
redirector).ra
(through a.ram
redirector)
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.
Per-request authentication is based on HTTP basic authentication mechanism, as explained in RFC2617.
Accept following invocations:
- stream.php/12
- stream.php?id=12
If the anchor for this item specifies a specific skin (option keyword '
skin_xyz
'),
or a specific variant (option keyword 'variant_xyz
'), they are used instead default values.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
- Internet Explorer download problem
- HTTP Authentication: Basic and Digest Access Authentication
Licence: GNU Lesser General Public License
Auteurs:
- Bernard Paques bernard.paques@bigfoot.com