Vimeo Lights Out

Lights Out is a plugin for Vimeo Wrap that basically turns off the lights in the background and lets the users focus on the media in the Vimeo player.

The lights out functionality causes the browser window (with the exception of the Vimeo player) to be overlayed with a background shade with customizable color and opacity.

Usage

<div id="player"></div>
<script src="https://luwes.github.io/vimeowrap.js/vimeowrap.js"></script>
<script src="https://luwes.github.io/vimeowrap.js/vimeowrap.lightsout.js"></script>
<script>
    vimeowrap('player').setup({
        urls: [
            'https://vimeo.com/39050404'
        ],
        plugins: {
            'lightsout':{}
        }
    });
</script>

Configuration

backgroundcolor (000000) Color of the background shade (RRGGBB)
opacity (0.8) Opacity of background shade (min:0, max:1)
time (800) The time in milliseconds to fade in/out the lights
onplay (off) Lights on/off if player is playing (on | off)
onpause (on) Lights on/off if player is paused (on | off)
onfinish (on) Lights on/off if player is completed (on | off)