summaryrefslogtreecommitdiff
path: root/www/lib/videogular-overlay-play/vg-overlay-play.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2017-09-27 12:42:48 -0400
committerPliable Pixels <pliablepixels@gmail.com>2017-09-27 12:42:48 -0400
commit210e8feae2fb4842bfb2de38666e6c41671fef3c (patch)
treecbdafa34b1a6260bb20236d7e9de9eb1b690a1c5 /www/lib/videogular-overlay-play/vg-overlay-play.js
parente7e7baeaad90229ccb3e0f45f4ebd77be7d79b14 (diff)
removed lib
Diffstat (limited to 'www/lib/videogular-overlay-play/vg-overlay-play.js')
-rw-r--r--www/lib/videogular-overlay-play/vg-overlay-play.js76
1 files changed, 0 insertions, 76 deletions
diff --git a/www/lib/videogular-overlay-play/vg-overlay-play.js b/www/lib/videogular-overlay-play/vg-overlay-play.js
deleted file mode 100644
index 1cf2cc35..00000000
--- a/www/lib/videogular-overlay-play/vg-overlay-play.js
+++ /dev/null
@@ -1,76 +0,0 @@
-/**
- * @license videogular v1.4.4 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);
- }
- );
- }
- }
- }
- ]);
-