Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
angular-video-background
Advanced tools
use any video as background for your html pages with many options
light module for using any video as background with many options
Download the module using npm package manager:
npm install angular-video-background
with bower package manager:
bower install --save angular-videos-background
or download it directly from GitHub.
Add the style to your header:
<link rel="stylesheet" href="angular-video-background.min.css">
Add the script to your body:
<script type="text/javascript" src="angular-video-background.min.js"></script>
and than add the module to your application dependencies:
angular.module('app', ['video-background'])
and you can start to use the directive video-background it in your application.
The directive most important attribute that must be specified in order to work correctly. The attribute is source, that specify the object with the source/s of the video in the format type: "source".
// example source object
$scope.myVideo = {
mp4: "public/myvideo.mp4",
ogg: "public/myvideo.ogg"
}
Note: you must pass a object to the source attribute.
<video-background source="myVideo"></video-background>
<video-background source="{ mp4: 'path/to/video.mp4' }"></video-background>
You can optionally bind keyboard press to video controls by using key-controls attribute.
The object containing the source/s of the video to show. This attribute is necessary for the directive to work.
<video-background source="{
mp4: 'mySource.mp4',
ogg: 'mySource.ogg',
webm: 'mySource.webm'
}"></video-background>
The autoplay attribute will start the video when it's ready to play. (like the normal html autoplay attribute)
Specify a custom start time for the video, pass a number, can be a float.
<video-background source="myVideo" start-time="3.75"></video-background>
Specify a custom end time for the video, pass a number, can be a float.
<video-background source="myVideo" end-time="15.35"></video-background>
Start the video with initial volume of 0
<video-background source="myVideo" volume="0"></video-background>
Specify a custom end time for the video, pass a number, can be a float.
<video-background source="myVideo" autoplay autopause></video-background>
Specify a custom end time for the video, pass a number, can be a float.
<video-background source="myVideo" key-controls="true"></video-background>
FAQs
use any video as background for your html pages with many options
We found that angular-video-background demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.