├── LICENSE ├── README.md ├── example.html ├── libs └── video-js │ ├── demo.captions.vtt │ ├── demo.html │ ├── font │ ├── vjs.eot │ ├── vjs.svg │ ├── vjs.ttf │ └── vjs.woff │ ├── video-js.css │ ├── video-js.less │ ├── video-js.min.css │ ├── video-js.swf │ ├── video.dev.js │ └── video.js └── src ├── videojs.logobrand.css ├── videojs.logobrand.js └── videojs.logobrand.v5.js /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, 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, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | videojs-logobrand 2 | ================= 3 | 4 | Add a custom image logo that appears & disappears with the user controls. Perfect for branding the media source. 5 | This could also be useful for learning how to make Video.JS plugins. I put this together in only a few hours of learning Video.JS so I'm not sure how awful it is. 6 | 7 | It's a barebones basic for what I needed, there are possibly some more options that would be nice. Feel free to customize how you need. You can edit the videojs.logobrand.js file to edit the exact values. 8 | TODO: Add more custom parameters 9 | 10 | ###Initialize logobrand 11 | ```JavaScript 12 | video = document.querySelector('video'); 13 | player = videojs(video); 14 | player.logobrand({ 15 | image: "http://www.videojs.com/img/logo.png", //image to use 16 | destination: "http://www.videojs.com/" //destination when clicked 17 | }); 18 | ``` 19 | ###Change image after initializing 20 | ```JavaScript 21 | player.logobrand().loadImage("http://example.com/img.jpg"); 22 | ``` 23 | ###Change destination after initializing 24 | ```JavaScript 25 | player.logobrand().setDestination("http://example.com/"); 26 | ``` 27 | 28 | Feel free to fork and make any changes you want. 29 | The way it is now works perfect for what I need but I do not mind editing it for others needs as well so don't hesitate to do a pull request. 30 | -------------------------------------------------------------------------------- /example.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Video.js logobrand example 5 | 6 | 7 | 8 | 9 | 10 | 11 | 14 | 15 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /libs/video-js/demo.captions.vtt: -------------------------------------------------------------------------------- 1 | WEBVTT 2 | 3 | 00:00.700 --> 00:04.110 4 | Captions describe all relevant audio for the hearing impaired. 5 | [ Heroic music playing for a seagull ] 6 | 7 | 00:04.500 --> 00:05.000 8 | [ Splash!!! ] 9 | 10 | 00:05.100 --> 00:06.000 11 | [ Sploosh!!! ] 12 | 13 | 00:08.000 --> 00:09.225 14 | [ Splash...splash...splash splash splash ] 15 | 16 | 00:10.525 --> 00:11.255 17 | [ Splash, Sploosh again ] 18 | 19 | 00:13.500 --> 00:14.984 20 | Dolphin: eeeEEEEEeeee! 21 | 22 | 00:14.984 --> 00:16.984 23 | Dolphin: Squawk! eeeEEE? 24 | 25 | 00:25.000 --> 00:28.284 26 | [ A whole ton of splashes ] 27 | 28 | 00:29.500 --> 00:31.000 29 | Mine. Mine. Mine. 30 | 31 | 00:34.300 --> 00:36.000 32 | Shark: Chomp 33 | 34 | 00:36.800 --> 00:37.900 35 | Shark: CHOMP!!! 36 | 37 | 00:37.861 --> 00:41.193 38 | EEEEEEOOOOOOOOOOWHALENOISE 39 | 40 | 00:42.593 --> 00:45.611 41 | [ BIG SPLASH ] -------------------------------------------------------------------------------- /libs/video-js/demo.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Video.js | HTML5 Video Player 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 | 16 | 17 | 18 | 19 | 20 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /libs/video-js/font/vjs.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mewte/videojs-logobrand/e770aaf1154acb9237bbc93d4a762250cb4c919d/libs/video-js/font/vjs.eot -------------------------------------------------------------------------------- /libs/video-js/font/vjs.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Generated by IcoMoon 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /libs/video-js/font/vjs.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mewte/videojs-logobrand/e770aaf1154acb9237bbc93d4a762250cb4c919d/libs/video-js/font/vjs.ttf -------------------------------------------------------------------------------- /libs/video-js/font/vjs.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mewte/videojs-logobrand/e770aaf1154acb9237bbc93d4a762250cb4c919d/libs/video-js/font/vjs.woff -------------------------------------------------------------------------------- /libs/video-js/video-js.css: -------------------------------------------------------------------------------- 1 | /*! 2 | Video.js Default Styles (http://videojs.com) 3 | Version 4.6.1 4 | Create your own skin at http://designer.videojs.com 5 | */ 6 | /* SKIN 7 | ================================================================================ 8 | The main class name for all skin-specific styles. To make your own skin, 9 | replace all occurances of 'vjs-default-skin' with a new name. Then add your new 10 | skin name to your video tag instead of the default skin. 11 | e.g.