Some example PHP web apps that use Panda to encode videos and play them on a page.
The full tutorial is available here: http://pandastream.com/docs/integrate_with_php Also available:
- The PHP Panda client library that this application is based on.
- The Panda Uploader.
By default, Panda will encode your videos using the H.264 codec, playable with the HTML5 <VIDEO> tag. These examples will use this to play your videos. Make sure you use a compatible browser to watch it.
These applications require PHP 5.2 or later. They have been tested successfully with Apache 2. Make sure of the following:
- These required PHP modules are installed: php5-curl, php5-mcrypt
- For each example, copy the provided lib/config.inc.php.example into a new file lib/config.inc.php and fill it out with the appropriate info
Run the web server (php >= 5.4):
$ php -S localhost:8080
The applications will initially show a simple form where you can specify a video file to upload from your computer. After uploading a video and waiting for encoding to finish, it will be shown to you.