├── CHANGELOG.markdown ├── LICENSE ├── README.markdown ├── bower.json ├── playr.css └── playr.js /CHANGELOG.markdown: -------------------------------------------------------------------------------- 1 | #### Known issues 2 | * Volume control not working in Opera if there's more than one video on the same "line" 3 | 4 | #### TODO 5 | * Fix issues above 6 | * Add a Flash fallback 7 | 8 | ### v0.9.1 9 | * Now under MIT License (formerly GNU GPL) 10 | 11 | ### v0.9 12 | * Subtitles menu now works with the native TextTrack API (if supported) 13 | * Added option to choose between native and Playr's caption rendering 14 | * Fix autoplay not working 15 | 16 | ### v0.8.5 17 | * Scrolling now affects volume (in fullscreen only) 18 | * Added basic notification system 19 | * Better handling of keyboard and mouse events (on focus only) 20 | 21 | ### v0.8.2 22 | * Added Opera (v12.10+) true fullscreen support 23 | * Changed behavior when is natively supported by the browser (UI is kept) 24 | * Some code refactoring 25 | 26 | ### v0.8.1 27 | * Controls fade out in fullscreen 28 | * Added tack kinds 'captions' & 'descriptions' (parsed as subtitles) 29 | * Fixed in WebVTT files causing Playr to crash (thanks @iandevlin for reporting it) 30 | 31 | ### v0.8 32 | * Fixed IE9+ not displaying Playr properly 33 | 34 | ### v0.7.7 35 | * Images are now embedded as base64 strings 36 | * Added minified version 37 | 38 | ### v0.7.6 39 | * Fixed video not resizing properly when in true fullscreen mode 40 | 41 | ### v0.7.5 42 | * Added true fullscreen when available (Mozilla & Webkit) 43 | 44 | ### v0.7 45 | * Added some accessibility and keyboard controls 46 | * Updated parser according to the new WebVTT cue settings (still compatible with old ones) 47 | * Added options to delay subtitles 48 | 49 | ### v0.6.5 50 | * Basic WebVTT vertical text implementation (incompatible with other cue settings for now) 51 | 52 | ### v0.6 53 | * Updated WebVTT line position implementation according to the spec 54 | * default track attribute is now working properly 55 | 56 | ### v0.5.7 57 | * Fixed parser (WebVTT timestamp milliseconds separator is a full stop, not a comma) 58 | 59 | ### v0.5.6 60 | * Added basic chapters support 61 | 62 | ### v0.5.5 63 | * Added cue timestamps tags support (see notes on WebVTT implementation) 64 | * Cue tags parser fixes 65 | 66 | ### v0.5 67 | * Interface improvements 68 | * Added buffering bar 69 | * Added WebVTT text position support 70 | * Fixed WebVTT text alignment 71 | 72 | ### v0.4 73 | * Added line position (L:xx%) support 74 | * Code refactoring 75 | 76 | ### v0.3.4 77 | * Added label support 78 | * Added WebVTT tag support 79 | 80 | ### v0.3.3 81 | * Fixed fullscreen controls not displaying properly 82 | 83 | ### v0.3.2 84 | * Changed the setup method 85 | * Some CSS fixes 86 | 87 | ### v0.3.1 88 | * Fixed Firefox 4 replaying the video automatically 89 | * Removed version number in JS & CSS files 90 | * Added notes on local testing 91 | 92 | ### v0.3 93 | * Interface improvements 94 | 95 | ### v0.2.8 96 | * Added track auto-select based on lang & srclang 97 | 98 | ### v0.2.7 99 | * Added font size auto-scaling when using fullscreen 100 | * Added code documentation (merge branch documentation) 101 | 102 | ### v0.2.6.1 103 | * Added fullscreen auto-resize when resizing the window 104 | 105 | ### v0.2.6 106 | * Improved fullscreen (based on window resolution) 107 | * Fixed Firefox not restoring properly from fullscreen 108 | * Made srclang attribute optional 109 | 110 | ### v0.2.5 111 | * Improved integration script 112 | * Added remove "controls" attribute 113 | * Cleaned CSS 114 | 115 | ### v0.2.1 116 | * Improved Safari performances: frozen while loading, but smooth once loaded 117 | * New way of adding the controls 118 | 119 | ### v0.2 120 | * Fixed a bug where Firefox would not get and display the subtitles 121 | * Added a basic fullscreen option (buggy in Firefox when restoring) 122 | * Added keyboard escape shorcut to restore from fullscreen 123 | 124 | ### v0.1.6 125 | * Fixed volume and closed captions controls in Firefox 126 | * Added a timecode notifier when hovering the timebar 127 | 128 | ### v0.1.5 129 | * Added a volume control (replacing range type input) 130 | * Extended clickable area of the closed caption menu 131 | * Added draggable timebar and volumebar cursors 132 | * Added Changelog 133 | 134 | ### v0.1 135 | * Initial version 136 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 Julien Villetorte 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /README.markdown: -------------------------------------------------------------------------------- 1 | # Playr: yet another HTML5 <video> player 2 | 3 | ## License 4 | 5 | MIT License 6 | 7 | ## Compatibility 8 | 9 | All major browsers. 10 | 11 | ## Features 12 | 13 | * Easy integration 14 | * Multiple [SubRip](http://en.wikipedia.org/wiki/SubRip) / [WebVTT](http://www.delphiki.com/webvtt/) tracks support 15 | * Keyboard accessible 16 | * True fullscreen 17 | 18 | ## Notes on local testing 19 | 20 | Some browsers disable XMLHttpRequest on local files by default. 21 | 22 | * Opera: enable opera:config#UserPrefs|AllowFileXMLHttpRequest 23 | * Chrome: launch it with --allow-file-access-from-files 24 | 25 | ## Usage 26 | 27 | Just add the class name "playr_video" to your video tag: 28 | 29 | 32 | 33 | You can now force the caption rendering if you prefer to use Playr's rendering over the native one, by adding the following attribute: 34 | 35 |