|
Cookbook /
HTML5VideoSummary: Show HTML5 Video
Version: 1.1
Prerequisites: none
Status: working
Maintainer:
GNUZooDownloads: HTML5Video.phpΔ
Questions answered by this recipe
DescriptionThis recipe makes it easy to add HTML5 Video. It will first try to play ogg, then mp4 then webm. If the browser does not support HTML5 video it will display "Your browser does not HTML5 video.". Actual filenames should end with lowercase ".ogv" for ogg, ".mp4" for mp4, and ".webm" for webm. Example:
Parameters
InstallingCopy HTML5Video.phpΔ to your cookbook directory In your config.php enter: include_once("cookbook/HTML5Video.php");
or in your farmconfig.php enter: include_once(" $FarmD/cookbook/HTML5Video.php");
This program sets the default directory to contain videos in "\uploads\". To change the default directory set a variable in your config.php file like this: NotesRelease notesThis program is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation http://www.fsf.org either version 2 of the License, or (at your option) any later version. Copyright 2007 by Please donate to the author at url: http://gnuzoo.org/GNUZooPayPal
See alsoContributorsCommentsWhere does the poster need to be and in what format? Nova Ok, i see it in the code that it has to be in the same folder and it has to be .jpg, but for me it doesn't really work. Nova Ah, sorry, it's good to know, that the poster appears only if none of the videoformats get loaded. Is that true? Nova There is - i think - an error in the script in such way, that it provides a (broken) link to some external site. If you look at the code, the poster is specified as http://gnuzoo.org/guitarstuff/uploads/'.$poster.'.jpg
I don't think this is right. IMHO it should have at least been $HTML5VideoDir.$poster.'.jpg
Otherwise, this seems a good recipe. Nova
User notes +3: If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |