Node's Perfect Mate

    videojs-resumecard

    2.1.1 • Public • Published

    videojs-resumecard

    Video.js plugin for resuming playback.

    Getting Started

    Include

    <!-- optional: default styles -->
    <link href="/path/to/videojs.resumecard.min.css" rel="stylesheet">
     
    <script src="/path/to/videojs.resumecard.min.js"></script>

    Enable

    videojs('player_id').resumecard({
      time: 42,
    });

    Note: There are multiple ways to enable plugins. For more information, please visit Video.js.

    Options

    [className]

    Type: string
    Default: vjs-resumecard

    HTMLElement class.

    [id]

    Type: string
    Default: vjs_resumecard

    HTMLElement id.

    [preload]

    Type: boolean Default: false

    Have the player immediately seek to time specified.

    [restartCallback]

    Type: function(event)

    Enables customization for the restart event.

    [resumeCallback]

    Type: function(event)

    Enables customization for the resume event.

    template

    Type: function(restartCallback, resumeCallback):HTMLElement

    Enables HTML customization for the template. MUST return DOM Element.

    time

    Type: number

    In seconds.

    Contributing + Example

    npm install -g grunt-cli # only needed for contributing 
     
    npm install
     
    npm start

    License

    Code licensed under The MIT License.

    Install

    npm i videojs-resumecard

    DownloadsWeekly Downloads

    0

    Version

    2.1.1

    License

    MIT

    Last publish

    Collaborators

    • chemoish