From 87881bd8e1080872ec17fcf3e978135c43c3cc80 Mon Sep 17 00:00:00 2001 From: yomguy Date: Mon, 9 Apr 2012 23:24:49 +0200 Subject: [PATCH] add video.js files, fix some icons --- telemeta/htdocs/images/user_red.png | Bin 1133 -> 959 bytes telemeta/htdocs/images/vox.png | Bin 777 -> 691 bytes telemeta/htdocs/video-js/LGPLv3-LICENSE.txt | 165 + telemeta/htdocs/video-js/README.md | 153 + telemeta/htdocs/video-js/demo.html | 30 + telemeta/htdocs/video-js/video-js.css | 499 +++ telemeta/htdocs/video-js/video-js.min.css | 1 + telemeta/htdocs/video-js/video-js.png | Bin 0 -> 8235 bytes telemeta/htdocs/video-js/video-js.swf | Bin 0 -> 9612 bytes telemeta/htdocs/video-js/video.js | 4375 +++++++++++++++++++ telemeta/htdocs/video-js/video.min.js | 21 + telemeta/urls.py | 3 + 12 files changed, 5247 insertions(+) create mode 100644 telemeta/htdocs/video-js/LGPLv3-LICENSE.txt create mode 100644 telemeta/htdocs/video-js/README.md create mode 100644 telemeta/htdocs/video-js/demo.html create mode 100644 telemeta/htdocs/video-js/video-js.css create mode 100644 telemeta/htdocs/video-js/video-js.min.css create mode 100644 telemeta/htdocs/video-js/video-js.png create mode 100644 telemeta/htdocs/video-js/video-js.swf create mode 100644 telemeta/htdocs/video-js/video.js create mode 100644 telemeta/htdocs/video-js/video.min.js diff --git a/telemeta/htdocs/images/user_red.png b/telemeta/htdocs/images/user_red.png index 469c5be972696bd3a9c7783dda2ddf8201545ccf..48fdc4c7e25d585274a8475da3c3e99d54f6fb75 100644 GIT binary patch delta 890 zcmV-=1BLwU2)_rAHwpg${{a7>y{D6rKp%eu2M-??gsLRz0009&Nkl1vBW^$7jYH1op+90)90vZ*Ub<>p<6f7=8j3-?P(jSV5Zo8=nZbWe**;#1fMg=WW z7p{tn+LfSaXa!Lzg;GhA{-kYk&&=1wJvY6^de7XHB;VmI&S7SFzIW#P85IPU*$98| zCh#t+V_yNE0pA0${Zkzvn}KOy8*5`%fM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zcmV;^0xbQr1&IcbF_A+Qe*&&aL_t(o!|hiwNE=ZY{tP8>UGh-q6f{(NV_&dX>T+j8 zoeGJHjvACK8APH^ZKa5{Q)!5C$WSOb$2c@6PD11|1q8Xv7@_1eYvkSHjjw}Ez?zu5 z#OmTV-aFp=-uM0Qd;ja>oO3)NJa}L{61X!0r&3cf}gdqC!2QpJL0Dwf{5HDn@cLnxV);ccUC`kR6iZ{`D06=bKt#=Db z%C4*PUCJsLi_SqH1U22j(e_UF7SxO~lA#IMjJc{8QIo%n&!CZ8oLw6HgWeG-J#U-;qBUjg|I4(8i zTpt!uubL1Dxe-)_R2rfzwe;EXWprVlAu~PGa)*tRNzu3o8!=n2nkZ!z2!tR}ICSKD zPc7NGZt&#Wcg@x-?(y=>)C{jz&92(IzQ?E8BY}q|@CQbc^u#bdy>9>j002ovPDHLk FV1lH}P_6&~ diff --git a/telemeta/htdocs/video-js/LGPLv3-LICENSE.txt b/telemeta/htdocs/video-js/LGPLv3-LICENSE.txt new file mode 100644 index 00000000..65c5ca88 --- /dev/null +++ b/telemeta/htdocs/video-js/LGPLv3-LICENSE.txt @@ -0,0 +1,165 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. diff --git a/telemeta/htdocs/video-js/README.md b/telemeta/htdocs/video-js/README.md new file mode 100644 index 00000000..f3bacb2f --- /dev/null +++ b/telemeta/htdocs/video-js/README.md @@ -0,0 +1,153 @@ +Video.js - [HTML5 Video Player](http://videojs.com) +================================================== +Version 3.0 + +--- +Version 3 is almost a complete rewrite of the previous versions of Video.js. New features includes: + + - HTML/CSS Controls and API now work for both the HTML5 and Flash versions. + - Custom Super-lightweight Flash Fallback + - Embed Code is much simpler. + - No more "vjs-box" div required, just use the video tag. + - No more embedding of Flash fallback within the video tag HTML. + +--- + +View [videojs.com](http://videojs.com) for a demo and overview. + +Video.js is an HTML5 video player that uses the HTML5 video tag built into modern browsers, and uses javascript to add custom controls, new functionality, and to fix cross browser bugs. For browsers that don't support HTML5, it will fallback to a Flash player. + +View demo.html for an example of how to use it. + +Originally based on [this tutorial](http://blog.steveheffernan.com/2010/04/how-to-build-an-html5-video-player/). + +Contributors (Github Username) +------------------------------ +heff, dz0ny, sentientbit, tvdeyen, brandonarbini, gordonbrander, Shraymonks, albertogasparin, sandaru1, nicholasbs, majornista, Fredust85, @wonderboymusic, ellis-, emirpprime, eirikb, mbrubeck + + +Getting Started +--------------- + +### Step 1: Include the Video.js Javascript and CSS files in the head of your page. +Change the file urls to point to the files on your server. + + + + + +### Step 2: Add an HTML5 video tag to your page. +Use the video tag as normal, with a few extra pieces for Video.js: + + 1. The 'data-setup' attribute tells Video.js to automatically set up the video when the page is ready, and read any options (in JSON format) from the attribute. + 2. The 'id' Attribute: Should be used and unique for every video on the same page. + 3. The 'class' attribute contains two classes: + - 'video-js' applies styles that are required for Video.js functionality, like fullscreen and subtitles. + - 'vjs-default-skin' applies the default skin to the HTML controls, and can be removed or overridden to create your own controls design. + +Otherwise include/exclude attributes, settings, sources, and tracks exactly as you would for HTML5 video. + + + + +### Step 3: Nada! +That's all it take to get started. See the [docs](http://videojs.com/docs/) for more advanced uses. + + +Changelog +--------- +3.0 + +- Complete rewrite +- HTML/CSS Controls and API now work for both the HTML5 and Flash versions +- Custom Super-lightweight Flash Fallback +- Embed Code is much simpler. + - No more "vjs-box" div required, just use the video tag. + - No more embedding of Flash fallback within the video tag HTML. + +2.0.3 + +- Feature: Made returning to the start at the end of the movie an option ("returnToStart"). +- Feature: Added loop option to loop movie ("loop"). +- Feature: Reorganized player API and listeners. +- Feature: Added option to disable controls. controlsEnabled: false +- Feature: Setup method now has a callback, so you can more easily work with the player after setup +- Feature: Added listeners for enter/exit full screen/window. +- Feature: Added a VideoJS.player(id) function for getting the player for a video ID +- Changes: setupAllWhenReady is now just setupAll (backward compatible) +- Fix: Check for Android browser now excludes firefox and opera + +2.0.2 (2010-12-10) + +- Feature: Rewrote and optimized subtitle code. +- Feature: Protecting against volume ranges outside of 1 and 0. +- Fix: Bug in Safari for Mac OS 10.5 (Leopard) that was breaking fullscreen. + +2.0.1 (2010-11-22) + +- Fix: Issue with big play button when multiple videos are on the page. +- Fix: Optimized play progress tracking. +- Fix: Optimized buffer progress checking. +- Fix: Firefox not showing Flash fallback object. + +2.0.0 (2010-11-21) + +- Feature: Created "behaviors" concept for adding behaviors to elements +- Feature: Switched back to divs for controls, for more portable styles +- Feature: Created playerFallbackOrder array option. ["html5", "flash", "links"] +- Feature: Created playerType concept, for initializing different platforms +- Feature: Added play button for Android +- Feature: Added spinner for iPad (non-fullscreen) +- Feature: Split into multiple files for easier development +- Feature: Combined VideoJS & _V_ into the same variable to reduce confusion +- Fix: Checking for m3u8 files (Apple HTTP Streaming) +- Fix: Catching error on localStorage full that safari seems to randomly throw +- Fix: Scrubbing to end doesn't trigger onEnded + +1.1.5 (2010-11-09) + +- Feature: Switched to track method for setting subtitles. Now works like spec. +- Feature: Created "players" concept for defining fallbacks and fallback order +- Fix: Android playback bug. +- Fix: Massive reorganization of code to make easier to navigate + +1.1.4 (2010-11-06) + +- Feature: Added loading spinner. +- Feature: Improved styles loaded checking. +- Feature: Added volume() function to get and set volume through the player. +- Fix: Fix issue where FF would loop video in background when ended. +- Fix: Bug in Chrome that shows poster & plays audio if you set currentTime too quickly. +- Fix: Bug in Safari where waiting is triggered and shows spinner when not needed +- Fix: Updated to show links if only unplayable sources and no Flash. +- Fix: Issue where if play button was loaded after play, it wouldn't hide. + +1.1.3 (2010-10-19) + +- Feature: Width/Height functions for resizing the player +- Feature: Made initial click & hold trigger new value on progress and volume +- Feature: Made controls not hide when hovering over them +- Feature: Added big play button as default starting control. +- Fix: Removed trailing comma that was breaking IE7 +- Fix: Removed some vars from global scope +- Fix: Changed a document.onmousemove to an eventListener to prevent conflicts +- Fix: Added a unique ID to FlowPlayer demo object to fix a FlowPlayer bug. Thanks @emirpprime. +- Fix: Safari error on unloaded video + +1.1.2 (2010-09-20) + +- Added a fix for the poster bug in iPad/iPhone +- Added more specificity to styles + +1.1.1 (2010-09-14) + +- First Formally Versioned Release + +1.0.0 (2010-05-18) + +- First released diff --git a/telemeta/htdocs/video-js/demo.html b/telemeta/htdocs/video-js/demo.html new file mode 100644 index 00000000..b35cdc28 --- /dev/null +++ b/telemeta/htdocs/video-js/demo.html @@ -0,0 +1,30 @@ + + + + Video.js | HTML5 Video Player + + + + + + + + + + + + + + + + + diff --git a/telemeta/htdocs/video-js/video-js.css b/telemeta/htdocs/video-js/video-js.css new file mode 100644 index 00000000..cd468eb0 --- /dev/null +++ b/telemeta/htdocs/video-js/video-js.css @@ -0,0 +1,499 @@ +/* +VideoJS Default Styles (http://videojs.com) +Version GENERATED_AT_BUILD +*/ + +/* +REQUIRED STYLES (be careful overriding) +================================================================================ */ +/* When loading the player, the video tag is replaced with a DIV, + that will hold the video tag or object tag for other playback methods. + The div contains the video playback element (Flash or HTML5) and controls, and sets the width and height of the video. + + ** If you want to add some kind of border/padding (e.g. a frame), or special positioning, use another containing element. + Otherwise you risk messing up control positioning and full window mode. ** +*/ +.video-js { + background-color: #000; position: relative; padding: 0; + + /* Start with 10px for base font size so other dimensions can be em based and easily calculable. */ + font-size: 10px; + + /* Allow poster to be vertially aligned. */ + vertical-align: middle; + /* display: table-cell; */ /*This works in Safari but not Firefox.*/ +} + +/* Playback technology elements expand to the width/height of the containing div.