Socket
Book a DemoInstallSign in
Socket

clappr-pause-tab-visibility

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clappr-pause-tab-visibility

A clappr plugin to pause/resume when you are in another tab.

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

license

Clappr pause/resume on tab change visibility

A clappr container plugin to pause when user is in another tab and resume when the user is back.

You can optionally show an icon to indicate its state.

{
  visibilityEnableIcon: true
}

Usage

<div id="player"></div>
  <script>
    var player = new Clappr.Player({
      parentId: '#player',autoPlay:true, mute: true,
      plugins: [ClapprPauseTabVisibility],
      source: 'http://www.sample-videos.com/video/mp4/480/big_buck_bunny_480p_5mb.mp4',
      height: 360,
      width: 640,
      visibilityEnableIcon: true
    })
  </script>

Development

Install dependencies:

npm install

Build:

npm run build

Run:

npm start

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.