Skip to content

mister-ben/videojs-countdown

Repository files navigation

Video.js Countdown

Begins playback after a short countdown once the player is in view.

Getting Started

Brightcove Player

video.js

Once you've added the plugin script to your page, you can use it with any video:

<script src="video.js"></script>
<link rel="stylesheet" href="videojs-countdown.min.css">
<script src="videojs-countdown.js"></script>
<script>
  videojs(document.querySelector('video')).countdown();
</script>

There's also a working example of the plugin you can check out if you're having trouble.

Documentation

Plugin Options

You may pass in an options object to the plugin upon initialization. This object may contain any of the following properties:

time

Type: int Default: 5

Number of seconds to count down. 0 would autostart without countdown.

mute

Type: boolean Default: false

If true, automatic playback starts muted. Leaves volume/mute state unaffected if the countdown is cancelled.

Release History

  • 0.1.0: Initial release

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published