Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including videojs-notations with all npm packages installed. Try it out:

var videojsNotations = require("videojs-notations")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

videojs-notations v0.0.4

A videojs plugin to show notations

videojs-notations

=================

A plugin for videojs inspired by ajbogh/video-js-html5Thumbnails and spchuang/videojs-markers


Usage

var video = videojs('#example');
video.notations({
    'notations': [
        {
            'time': 3,
            'text': 'Scantly unrepealably slinky'
        },
        {
            'time': 12.2,
            'text': 'Unbulky bemoisten slumberer bash'
        },
        {
            'time': 32.21,
            'text': 'Inappropriately havel'
        }
    ],
    'size': 180,
    'fontSize': 12,
    'showPreviewWhenHoverOnSeekBar': false
});

Options

{
    'onHover': function(){

    },
    'onClick': function(){
        
    },
    'notations': [],
    'size': 128,
    'fontSize': 14,
    'showPreviewWhenHoverOnSeekBar': false
}

License

WTFPL

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free