diff options
Diffstat (limited to 'www/lib/videogular-overlay-play')
| -rw-r--r-- | www/lib/videogular-overlay-play/.bower.json | 19 | ||||
| -rw-r--r-- | www/lib/videogular-overlay-play/.gitignore | 3 | ||||
| -rw-r--r-- | www/lib/videogular-overlay-play/Gruntfile.js | 35 | ||||
| -rw-r--r-- | www/lib/videogular-overlay-play/LICENSE | 20 | ||||
| -rw-r--r-- | www/lib/videogular-overlay-play/README.md | 59 | ||||
| -rw-r--r-- | www/lib/videogular-overlay-play/bower.json | 8 | ||||
| -rw-r--r-- | www/lib/videogular-overlay-play/index.js | 3 | ||||
| -rw-r--r-- | www/lib/videogular-overlay-play/package.json | 12 | ||||
| -rw-r--r-- | www/lib/videogular-overlay-play/vg-overlay-play.js | 77 | ||||
| -rw-r--r-- | www/lib/videogular-overlay-play/vg-overlay-play.min.js | 1 |
10 files changed, 237 insertions, 0 deletions
diff --git a/www/lib/videogular-overlay-play/.bower.json b/www/lib/videogular-overlay-play/.bower.json new file mode 100644 index 00000000..22c499fd --- /dev/null +++ b/www/lib/videogular-overlay-play/.bower.json @@ -0,0 +1,19 @@ +{ + "name": "videogular-overlay-play", + "version": "1.3.2", + "main": "./vg-overlay-play.js", + "dependencies": { + "videogular": "~1.3.2" + }, + "homepage": "https://github.com/2fdevs/bower-videogular-overlay-play", + "_release": "1.3.2", + "_resolution": { + "type": "version", + "tag": "v1.3.2", + "commit": "8c68babdf2ad165be19983656a6dae4c4c0d9b21" + }, + "_source": "git://github.com/2fdevs/bower-videogular-overlay-play.git", + "_target": "~1.3.2", + "_originalSource": "videogular-overlay-play", + "_direct": true +}
\ No newline at end of file diff --git a/www/lib/videogular-overlay-play/.gitignore b/www/lib/videogular-overlay-play/.gitignore new file mode 100644 index 00000000..ac2c9712 --- /dev/null +++ b/www/lib/videogular-overlay-play/.gitignore @@ -0,0 +1,3 @@ +/node_modules/ +/bower_components/ +.idea
\ No newline at end of file diff --git a/www/lib/videogular-overlay-play/Gruntfile.js b/www/lib/videogular-overlay-play/Gruntfile.js new file mode 100644 index 00000000..e5b2f2f7 --- /dev/null +++ b/www/lib/videogular-overlay-play/Gruntfile.js @@ -0,0 +1,35 @@ +module.exports = function(grunt) { + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + release: { + options: { + //bump: false, //default: true + //file: 'bower.json', //default: package.json + //add: false, //default: true + //commit: false, //default: true + //tag: false, //default: true + //push: false, //default: true + //pushTags: false, //default: true + //npmtag: true, //default: no tag + //folder: 'folder/to/publish/to/npm', //default project root + //commitMessage: 'check out my release <%= version %>', //default: 'release <%= version %>' + //tagMessage: 'tagging version <%= version %>', //default: 'Version <%= version %>', + //tagName: 'v<%= version %>', //default: '<%= version %>' + + file: 'bower.json', //default: package.json + add: false, //default: true + commit: false, //default: true + tag: false, //default: true + push: false, //default: true + pushTags: false, //default: true + npm: false + } + } + }); + + grunt.loadNpmTasks('grunt-release'); + + grunt.registerTask('major', ['release:major']); + grunt.registerTask('minor', ['release:minor']); + grunt.registerTask('patch', ['release:patch']); +}; diff --git a/www/lib/videogular-overlay-play/LICENSE b/www/lib/videogular-overlay-play/LICENSE new file mode 100644 index 00000000..2a6b69f7 --- /dev/null +++ b/www/lib/videogular-overlay-play/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2013 2fdevs + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/www/lib/videogular-overlay-play/README.md b/www/lib/videogular-overlay-play/README.md new file mode 100644 index 00000000..80ce6c68 --- /dev/null +++ b/www/lib/videogular-overlay-play/README.md @@ -0,0 +1,59 @@ +bower-videogular-overlay-play +============================= + +Videogular `overlay-play` plugin repository for distribution on `bower`. + +## Install + +Install [Videogular](http://www.videogular.com/) `overlay-play` plugin with Bower: + +`bower install videogular-overlay-play` + +### Install Videogular + +Install [Videogular](http://www.videogular.com/) with Bower: + +`bower install videogular` + +### Install themes + +Install [Videogular](http://www.videogular.com/) themes with Bower: + +`bower install videogular-themes-default` + +### Install plugins + +Install [Videogular](http://www.videogular.com/) plugins with Bower: + +`bower install videogular-buffering` + +`bower install videogular-controls` + +`bower install videogular-poster` + +## Documentation + +It's available on [Videogular's project Wiki](https://github.com/2fdevs/videogular/wiki). + +## License + +The MIT License (MIT) + +Copyright (c) 2013 2fdevs + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/www/lib/videogular-overlay-play/bower.json b/www/lib/videogular-overlay-play/bower.json new file mode 100644 index 00000000..32166c2f --- /dev/null +++ b/www/lib/videogular-overlay-play/bower.json @@ -0,0 +1,8 @@ +{ + "name": "videogular-overlay-play", + "version": "1.3.2", + "main": "./vg-overlay-play.js", + "dependencies": { + "videogular": "~1.3.2" + } +} diff --git a/www/lib/videogular-overlay-play/index.js b/www/lib/videogular-overlay-play/index.js new file mode 100644 index 00000000..fe6e0b39 --- /dev/null +++ b/www/lib/videogular-overlay-play/index.js @@ -0,0 +1,3 @@ +require('./vg-overlay-play'); + +module.exports = 'com.2fdevs.videogular.plugins.overlayplay'; diff --git a/www/lib/videogular-overlay-play/package.json b/www/lib/videogular-overlay-play/package.json new file mode 100644 index 00000000..8a0202b5 --- /dev/null +++ b/www/lib/videogular-overlay-play/package.json @@ -0,0 +1,12 @@ +{ + "name": "videogular-overlay-play", + "version": "1.3.2", + "main": "index.js", + "devDependencies": { + "grunt": "~0.4.1", + "grunt-release": "~0.7.0" + }, + "engines": { + "node": ">=0.8.0" + } +} diff --git a/www/lib/videogular-overlay-play/vg-overlay-play.js b/www/lib/videogular-overlay-play/vg-overlay-play.js new file mode 100644 index 00000000..a5142f07 --- /dev/null +++ b/www/lib/videogular-overlay-play/vg-overlay-play.js @@ -0,0 +1,77 @@ +/** + * @license videogular v1.3.2 http://videogular.com + * Two Fucking Developers http://twofuckingdevelopers.com + * License: MIT + */ +/** + * @ngdoc directive + * @name com.2fdevs.videogular.plugins.overlayplay.directive:vgOverlayPlay + * @restrict E + * @description + * Shows a big play button centered when player is paused or stopped. + * + * <pre> + * <videogular vg-theme="config.theme.url" vg-autoplay="config.autoPlay"> + * <vg-media vg-src="sources"></vg-media> + * + * <vg-overlay-play></vg-overlay-play> + * </videogular> + * </pre> + * + */ +"use strict"; +angular.module("com.2fdevs.videogular.plugins.overlayplay", []) + .run( + ["$templateCache", function ($templateCache) { + $templateCache.put("vg-templates/vg-overlay-play", + '<div class="overlayPlayContainer" ng-click="onClickOverlayPlay()">\ + <div class="iconButton" ng-class="overlayPlayIcon"></div>\ + </div>'); + }] +) + .directive( + "vgOverlayPlay", + ["VG_STATES", function (VG_STATES) { + return { + restrict: "E", + require: "^videogular", + scope: {}, + templateUrl: function (elem, attrs) { + return attrs.vgTemplate || 'vg-templates/vg-overlay-play'; + }, + link: function (scope, elem, attr, API) { + scope.onChangeState = function onChangeState(newState) { + switch (newState) { + case VG_STATES.PLAY: + scope.overlayPlayIcon = {}; + break; + + case VG_STATES.PAUSE: + scope.overlayPlayIcon = {play: true}; + break; + + case VG_STATES.STOP: + scope.overlayPlayIcon = {play: true}; + break; + } + }; + + scope.onClickOverlayPlay = function onClickOverlayPlay(event) { + API.playPause(); + }; + + scope.overlayPlayIcon = {play: true}; + + scope.$watch( + function () { + return API.currentState; + }, + function (newVal, oldVal) { + scope.onChangeState(newVal); + } + ); + } + } + } + ]); + diff --git a/www/lib/videogular-overlay-play/vg-overlay-play.min.js b/www/lib/videogular-overlay-play/vg-overlay-play.min.js new file mode 100644 index 00000000..31a59c8a --- /dev/null +++ b/www/lib/videogular-overlay-play/vg-overlay-play.min.js @@ -0,0 +1 @@ +"use strict";angular.module("com.2fdevs.videogular.plugins.overlayplay",[]).run(["$templateCache",function(a){a.put("vg-templates/vg-overlay-play",'<div class="overlayPlayContainer" ng-click="onClickOverlayPlay()"> <div class="iconButton" ng-class="overlayPlayIcon"></div> </div>')}]).directive("vgOverlayPlay",["VG_STATES",function(a){return{restrict:"E",require:"^videogular",scope:{},templateUrl:function(a,b){return b.vgTemplate||"vg-templates/vg-overlay-play"},link:function(b,c,d,e){b.onChangeState=function(c){switch(c){case a.PLAY:b.overlayPlayIcon={};break;case a.PAUSE:b.overlayPlayIcon={play:!0};break;case a.STOP:b.overlayPlayIcon={play:!0}}},b.onClickOverlayPlay=function(a){e.playPause()},b.overlayPlayIcon={play:!0},b.$watch(function(){return e.currentState},function(a,c){b.onChangeState(a)})}}}]);
\ No newline at end of file |
