)

Salut!
This page is a small demo on how to embed a video stream MP4 or DIVX in a web page using a combination of PHP and JavaScript.
Resulting page should render smoothly on Linux, Windows and MacOS

For further information on how to generate MP4/H264
Linux MP4 Quicktime Streaming

Menu Link are simple url reference to a PHP page that generate dynamically htm content, final selection from Windows to Linux is done by Javascript.

PHP URL reference follow this syntax:

<a href=/MyScriptDirectory/fulup-mp4player.php?video=/dir/video.mp4&amp;preview=/dir/preview.jpg&amp;width=xxx&amp;height=yyy&> My Video</a> <a href=/MyScriptDirectory/fulup-divxplayer.php?video=/dir/video.divx&amp;preview=/dir/preview.jpg&amp;width=xxx&amp;height=yyy> My Video</a>

In order to use this PHP script you have to:

Download PHP files, rename then to something like video-script.php and place it in some PHP enable directory of your WEB server.

Download link [for MP4] [For DivX]

Download JavaScript file and place them to where ever you want on your web server. Note that for QuickTime/MP4 you can choose to download the script directly from Apple web site, preventing you to serve it on your own web site.

Download JavaScript [for MP4] [For Divx]

Questions remarks feel free to contact me [Fulup]