Videogular - Creating a Custom Plugin
How do I make an videogular - creating a custom plugin?
What is a videogular - creating a custom plugin? How do you make a videogular - creating a custom plugin? This script and codes were developed by Two Fucking Developers on 14 October 2022, Friday.
Videogular - Creating a Custom Plugin - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Videogular - Creating a Custom Plugin</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div ng-app="myApp">
<div ng-controller="HomeCtrl as controller" class="videogular-container"> <videogular vg-theme="controller.config.theme.url"> <vg-media vg-src="controller.config.sources" vg-tracks="controller.config.tracks"> </vg-media> <vg-controls> <vg-play-pause-button></vg-play-pause-button> <vg-time-display>{{ currentTime | date:'mm:ss':'+0000' }}</vg-time-display> <vg-scrub-bar> <vg-scrub-bar-current-time></vg-scrub-bar-current-time> </vg-scrub-bar> <vg-time-display>{{ timeLeft | date:'mm:ss':'+0000' }}</vg-time-display> <vg-volume> <vg-mute-button></vg-mute-button> <vg-volume-bar></vg-volume-bar> </vg-volume> <vg-fullscreen-button></vg-fullscreen-button> </vg-controls> <my-logo-plugin></my-logo-plugin> <vg-overlay-play></vg-overlay-play> <vg-poster vg-url='controller.config.plugins.poster'></vg-poster> </videogular>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular-sanitize.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/videogular/videogular.js"></script>
<script src="https://unpkg.com/[email protected]/dist/controls/vg-controls.js"></script>
<script src="https://unpkg.com/[email protected]/dist/overlay-play/vg-overlay-play.js"></script>
<script src="https://unpkg.com/[email protected]/dist/poster/vg-poster.js"></script> <script src="js/index.js"></script>
</body>
</html>
Videogular - Creating a Custom Plugin - Script Codes CSS Codes
html, body { margin: 0; padding: 0; overflow: hidden;
}
videogular my-logo-plugin { position: absolute; display: block; z-index: 50; top: 0;
}
videogular my-logo-plugin img { width: 150px; height: auto; padding-left: 20px; padding-top: 20px; opacity: 0.5;
}
.videogular-container { width: 100%; height: 320px; margin: auto; overflow: hidden;
}
.videogular-container .skipButton { position: absolute; padding: 10px; top: 10px; right: 10px; z-index: 99999; color: white; cursor: pointer; background-color: #666666; border: 2px #FFFFFF solid; display: none; -webkit-border-radius: 10px; -moz-border-radius: 10px; -ms-border-radius: 10px; border-radius: 10px;
}
@media (min-width: 1200px) { .videogular-container { width: 1170px; height: 658.125px; } .videogular-container.audio { width: 1170px; height: 50px; }
}
@media (min-width: 992px) and (max-width: 1199px) { .videogular-container { width: 940px; height: 528.75px; } .videogular-container.audio { width: 940px; height: 50px; }
}
@media (min-width: 768px) and (max-width: 991px) { .videogular-container { width: 728px; height: 409.5px; } .videogular-container.audio { width: 728px; height: 50px; }
}
Videogular - Creating a Custom Plugin - Script Codes JS Codes
'use strict';
angular.module('myApp', [ "ngSanitize", "com.2fdevs.videogular", "com.2fdevs.videogular.plugins.controls", "com.2fdevs.videogular.plugins.overlayplay", "com.2fdevs.videogular.plugins.poster" ] ) .controller('HomeCtrl', ["$sce", function ($sce) { var controller = this; controller.config = { preload: "none", sources: [ {src: $sce.trustAsResourceUrl("http://static.videogular.com/assets/videos/videogular.mp4"), type: "video/mp4"}, {src: $sce.trustAsResourceUrl("http://static.videogular.com/assets/videos/videogular.webm"), type: "video/webm"}, {src: $sce.trustAsResourceUrl("http://static.videogular.com/assets/videos/videogular.ogg"), type: "video/ogg"} ], tracks: [ { src: "http://www.videogular.com/assets/subs/pale-blue-dot.vtt", kind: "subtitles", srclang: "en", label: "English", default: "" } ], theme: { url: "https://unpkg.com/[email protected]/dist/themes/default/videogular.css" }, plugins: { poster: "http://www.videogular.com/assets/images/videogular.png" } }; }] ) .directive("myLogoPlugin", ["VG_STATES", function(VG_STATES) { return { restrict: "E", require: "^videogular", template: "<img src='http://www.videogular.com/img/videogular.png' ng-show='API.currentState != \"play\"'>", link: function(scope, elem, attrs, API) { scope.API = API; } } } ]);
Developer | Two Fucking Developers |
Username | 2fdevs |
Uploaded | October 14, 2022 |
Rating | 3 |
Size | 2,893 Kb |
Views | 24,288 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Videogular - Buffering Plugin | 2,445 Kb |
Videogular - Using the API in your plugins | 2,806 Kb |
Videogular - Overlay Play Plugin | 2,432 Kb |
Videogular - Youtube Plugin | 2,493 Kb |
V0.7.2 Videogular - Controls Plugin | 2,424 Kb |
Videogular - Adding Your Custom Buttons | 2,842 Kb |
Videogular - Google IMA Ads | 3,136 Kb |
Videogular - Using the API in your plugins | 3,013 Kb |
Videogular - Creating a Custom Layer | 2,857 Kb |
Videogular - DASH plugin | 2,422 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Drag in vanilla js using dotval math instead of translate | Paulq | 2,662 Kb |
Whyutils | LeYvan | 3,752 Kb |
Animated rainbow wave on canvas | Icodeforlove | 2,777 Kb |
Simple Carousel Pure CSS | Dangvanthanh | 4,080 Kb |
Polygon Logo in CSS | Kai | 3,412 Kb |
Comparison of Roboto Draft vs Roboto | Jxnblk | 2,880 Kb |
Kudos Please | TimPietrusky | 6,624 Kb |
Hmmm... | Rk007 | 4,848 Kb |
Css3 slide | Nakome | 3,190 Kb |
Popup Modal | Aldlevine | 3,696 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!