Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

ember-lazy-video

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-lazy-video

Lazy loading videos for Ember apps

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
2
Created
Source

ember-lazy-video

Circle CI

Installation

$ ember install ember-lazy-video

Installation for ember-cli 0.1.5 - 0.2.2

$ ember install:addon ember-lazy-video

ember-lazy-video is a simple component and service that deals with lazy loading of videos from specified providers.

Usage

ember-lazy-video currently supports lazy loading videos from Youtube, Vimeo and Instagram. Usage in your app is as simple as passing the video's url into a lazy-video component:

{{lazy-video url="https://vimeo.com/108532122"}}

{{lazy-video url="https://www.youtube.com/watch?v=sD72LbIk02M"}}

{{lazy-video url="http://instagram.com/p/vXeXAnsieB/"}}

You can add a custom poster image by setting the poster attribute:

{{lazy-video url="https://vimeo.com/108532122" poster="images/poster.jpg"}}

Contribution

Please read the Contributing guidelines for information on how to contribute.

The goal and scope of the component is simple – be really good at lazy loading videos. This means being able to lazy load videos from any provider. The component should also be customizable to a certain degree: for example, being able to change the play button style/template, or being able to pass in their own thumbnail. Customization does not entail changing the functionality of the component, although it is possible we could abstract this out (in a separate repo) so that it could lazy load any element.

Installation

  • git clone https://github.com/poteto/ember-lazy-video.git
  • cd ember-lazy-video
  • npm install
  • bower install

Running

Running Tests

  • npm test (Runs ember try:each to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://ember-cli.com/.

Keywords

ember-addon

FAQs

Package last updated on 19 Nov 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