videojs-playlist
Playlist plugin for Video.js
Last updated 2 years ago by misteroneill .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install videojs-playlist 
SYNC missed versions from official npm registry.

videojs-playlist

Build Status Greenkeeper badge Slack Status

NPM

A plugin to enable playlists in video.js

Maintenance Status: Stable

Installation

Install videojs-playlist via npm (preferred):

$ npm install videojs-playlist

Or Bower:

$ bower install videojs-playlist

Inclusion

Include videojs-playlist on your website using the tool(s) of your choice.

The simplest method of inclusion is a <script> tag after the video.js <script> tag:

<script src="path/to/video.js/dist/video.js"></script>
<script src="path/to/videojs-playlist/dist/videojs-playlist.js"></script>

When installed via npm, videojs-playlist supports Browserify-based workflows out of the box.

Basic Usage

For full details on how to use the playlist plugin can be found in the API documentation.

var player = videojs('video');

player.playlist([{
  sources: [{
    src: 'http://media.w3.org/2010/05/sintel/trailer.mp4',
    type: 'video/mp4'
  }],
  poster: 'http://media.w3.org/2010/05/sintel/poster.png'
}, {
  sources: [{
    src: 'http://media.w3.org/2010/05/bunny/trailer.mp4',
    type: 'video/mp4'
  }],
  poster: 'http://media.w3.org/2010/05/bunny/poster.png'
}, {
  sources: [{
    src: 'http://vjs.zencdn.net/v/oceans.mp4',
    type: 'video/mp4'
  }],
  poster: 'http://www.videojs.com/img/poster.jpg'
}, {
  sources: [{
    src: 'http://media.w3.org/2010/05/bunny/movie.mp4',
    type: 'video/mp4'
  }],
  poster: 'http://media.w3.org/2010/05/bunny/poster.png'
}, {
  sources: [{
    src: 'http://media.w3.org/2010/05/video/movie_300.mp4',
    type: 'video/mp4'
  }],
  poster: 'http://media.w3.org/2010/05/video/poster.png'
}]);

// Play through the playlist automatically.
player.playlist.autoadvance(0);

License

Apache-2.0. Copyright (c) Brightcove, Inc.

Current Tags

  • 4.3.1                                ...           latest (2 years ago)
  • 4.3.1                                ...           next (2 years ago)

36 Versions

  • 4.3.1                                ...           2 years ago
  • 4.3.0 [deprecated]           ...           2 years ago
  • 4.2.6                                ...           2 years ago
  • 4.2.5 [deprecated]           ...           2 years ago
  • 4.2.4 [deprecated]           ...           2 years ago
  • 4.2.3 [deprecated]           ...           2 years ago
  • 4.2.2 [deprecated]           ...           2 years ago
  • 4.2.1 [deprecated]           ...           2 years ago
  • 4.2.0 [deprecated]           ...           3 years ago
  • 4.1.1                                ...           3 years ago
  • 4.1.0                                ...           3 years ago
  • 4.1.0-2                                ...           3 years ago
  • 4.1.0-1                                ...           3 years ago
  • 4.1.0-0                                ...           3 years ago
  • 4.0.2                                ...           3 years ago
  • 4.0.1                                ...           3 years ago
  • 4.0.0                                ...           4 years ago
  • 3.1.1                                ...           4 years ago
  • 3.1.0                                ...           4 years ago
  • 3.0.3-1                                ...           4 years ago
  • 3.0.3-0                                ...           4 years ago
  • 3.0.2                                ...           4 years ago
  • 3.0.1                                ...           4 years ago
  • 3.0.0                                ...           4 years ago
  • 2.5.0                                ...           4 years ago
  • 2.4.1                                ...           5 years ago
  • 2.4.0                                ...           5 years ago
  • 2.3.1                                ...           5 years ago
  • 2.3.0                                ...           5 years ago
  • 2.2.0                                ...           5 years ago
  • 2.1.0                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Downloads
Today 0
This Week 6
This Month 44
Last Day 3
Last Week 6
Last Month 58
Dependencies (2)
Dev Dependencies (18)

Copyright 2014 - 2016 © taobao.org |