PHP Classes
elePHPant
Icontem

w3v: Embed a video player in Web pages

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2011-07-07 (6 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 1,010 This week: 1All time: 3,524 This week: 674Up
Version License PHP version Categories
w3v 0.1GNU General Publi...5HTML, PHP 5, Video
Description Author

This class can embed a video player in Web pages.

It can take the URL or the path of a video file and generates HTML to embed a player to play the video in a Web page.

The class supports YouTube videos, as well video files in the formats: MPEG 4, 3GP, OGV, WebM, DivX, flv (Flash Video), etc..

  Performance   Level  
Name: Virgilio lino <contact>
Classes: 3 packages by
Country: Italy Italy
Innovation award
Innovation award
Nominee: 1x

Details
Copyright Virgilio Lino 2011 w3v. virgiliolino@gmail.com
It's a videplayer interface to use on web. Basing upon the file format, it loads one player,
you may buil simply a new plugin to recognize new fileformats.

The class is released under dual license,
Creative Commons Attribution 3.0 License and gpl license 2.

w3v 0.1 - Help wanted: i need to test the fileformats, i need free videos.
In the package there is the incredible fwplayer, copyright by them.
usage:

A videoplayer interface which creates a videoplayer or another basing upon file format
you may create your videoplayer plugin, which is just a class that must implements the videoType interface
fileformats it should recognize:
plugin noDivxVideo: it's implemented using jwplayer(its just for non commercial use) if you find something
really opensource and free please contact me. 
formats recognized:mp4,mov,f4v,flv,3gp,3g2,ogv,webm, you tube videos
plugin  divxVideo: it's implemented using divx webplayer
formats recognized:the others



How to use:


to load a video, indipendently the format:
<?php  require_once('includes/classes/w3v.php'); ?>

for every video:
<?php $w3v=new w3v('id of the div containing the video','file with full path'); ?>

For non experts you must use one new variable for every video, and one unique div id

<?php $w3v1=new w3v('id of new div','new file');?>
and so on

then in the body, where you want to see the video for every video, just write:
<?php $w3v->display(); ?>


Finally, you must load the javascript(where applied),  we recommend in the footer, inside a script tag:
<script type="text/javascript">
<?=$w3v->getScript();?>
<!-- once again, it must be done for every video <?=$w3v1->getScript();?> 
</script>
  Files folder image Files  
File Role Description
Accessible without login Image file videoplayer.jpg Photo videoplayer.jpg
Accessible without login Plain text file readme.txt Doc. readme file
Accessible without login Plain text file index.php Example example of usage you need videos to try
Plain text file w3v.php Class The only class needed

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,010
This week:1
All time:3,524
This week:674Up