Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-video-background

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-video-background

use any video as background for your html pages with many options

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-37.5%
Maintainers
1
Weekly downloads
 
Created
Source

angular-video-background

light module for using any video as background with many options

The idea came when I needed to use a video as background for one website and looking around on the web I saw: Vide and it works very good, but uses jQuery and I didn't like the code too much so I decided to write my own.

DEMO

Getting started:

Download the package using npm package manager:

npm install angular-video-background

or clone it from github.

Add the script to your html page.

<script type="text/javascript" src="video-background.module.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.


Basic usage:

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
myVideo = {
  mp4: public/myvideo.mp4,
  ogg: public/myvideo.ogg
}

Note: you should pass a object to the attribute.

<video-background source="myVideo"></video-background>

Directive attributes:

  • source: the object containing the video source/s
  • autoplay: set the video auto play attribute (default true)
  • on-firstplay: a callback to run when the video play for the first time
  • on-firstend: a callback to run when the video ends for the first time

Coming soon many customization examples..

Keywords

FAQs

Package last updated on 15 Feb 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc