1.0.1 • Published 8 years ago

clappr-pause-tab-visibility v1.0.1

Weekly downloads
12
License
BSD-3-Clause
Repository
github
Last release
8 years ago

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

1.0.1

8 years ago

1.0.0

8 years ago