DivX Web Player Demo for Linux and Windows

This page demonstrate how to render DivX video transparently inside a browser under Linux and Windows.
For Linux it uses mplayer plugin, and for Windows divxwebplayer.

Click on the image to start the video

Syntax to use fulup-divxplayer.js script

* First You need to download fulup-divxplayer.js javascript
* Then install the script on the same directory as your html page on your web site
* Finally build an html page based on following sample.
<head> <title>Fulup Small Test for Linux & Windows divX Web Player</title> <script type='text/javascript' src="fulup-divxplayer.js"></script> </head> <body> <script type="text/javascript"> <!-- // syntaxe: DivxWebPlayer (width, height, preview, video); // warning: do not resize your video our result will be very poor !!! DivxWebPlayer ( 960, 526 ,"http://movies.fridu.org/divx/Erwan-Test.jpg" ,"http://movies.fridu.org/divx/Erwan-Test.divx" ); --> </script> </body> </html>

PhP Integration

For an even better integration, you can leverage PHP to generate javascript code automatically from your URL.

For this you need to download PHP from script from [here] rename file to something like video-script.php, and finally place it in some PHP enable directory of your WEB server.
Then a simple URL link using following syntax, will render your video either in a frame, a javascript popup or your current window.

<a href=/MyScriptDirectory/fulup-divxplayer.php?video=/dir/video.divx&amp;preview=/dir/preview.jpg&amp;width=xxx&amp;height=yyy> My Video</a> http://movies.fridu.org/scripts/fulup-divxplayer.php?video=/divx/Erwan-Test.divx&preview=/divx/Erwan-Test.jpg&width=520&height=288

PhP will generate the adequate HTML page for you, and final tailoring of your operating system and navigator will be achieved by JavaScript. Providing users with a seamless experience on both Linux and Windows. A more complex sample integrated in frames [here]

Author

Fulup