PHP Classes

w3v: Embed a video player in Web pages

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,049 All time: 3,529 This week: 488Up
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..

Picture of Virgilio lino
  Performance   Level  
Name: Virgilio lino <contact>
Classes: 8 packages by
Country: Italy Italy
Age: 45
All time rank: 157664 in Italy Italy
Week rank: 200 Up9 in Italy Italy Up
Innovation award
Innovation award
Nominee: 5x

Winner: 2x

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 (4)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,049
This week:0
All time:3,529
This week:488Up