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

clappr-responsive-container-plugin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clappr-responsive-container-plugin

A plugin for clappr which will resize the container to never be larger than the current viewport width.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

Clappr Responsive Container Plugin A plugin for clappr which will resize the container to never be larger than the current viewport width.

Usage

Add both Clappr and this plugin scripts to your HTML:

<head>
  <script type="text/javascript" src="http://cdn.clappr.io/latest/clappr.min.js"></script>
  <script type="text/javascript" src="https://cdn.jsdelivr.net/clappr.thumbnails-plugin/latest/clappr-responsive-container-plugin.js"></script>
</head>

You can also find the project on npm: https://www.npmjs.com/package/clappr-responsive-container-plugin

Then just add ResponsiveContainer into the list of plugins of your player instance as shown below.

var player = new Clappr.Player({
  source: "http://your.video/here.mp4",
  plugins: {
    container: [ResponsiveContainer]
  }
});

Demo

To run the demo start a web server with the root directory being the root of this repo, and then browse to the "index.html" file in the "demo" folder.

Development

Install dependencies:

npm install

Build:

npm run build

Minified version:

npm run release

Thanks

This repository was based off of tjenkinson's thumbnails plugin: https://github.com/tjenkinson/clappr-thumbnails-plugin

FAQs

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

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