videojs-playlist

WebJar for videojs-playlist

License

License

Categories

Categories

IDE Development Tools JavaScript Languages
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

videojs-playlist
Last Version

Last Version

4.3.1
Release Date

Release Date

Type

Type

jar
Description

Description

videojs-playlist
WebJar for videojs-playlist
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/brightcove/videojs-playlist

Download videojs-playlist

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/videojs-playlist/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>videojs-playlist</artifactId>
    <version>4.3.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/videojs-playlist/
implementation 'org.webjars.npm:videojs-playlist:4.3.1'
// https://jarcasting.com/artifacts/org.webjars.npm/videojs-playlist/
implementation ("org.webjars.npm:videojs-playlist:4.3.1")
'org.webjars.npm:videojs-playlist:jar:4.3.1'
<dependency org="org.webjars.npm" name="videojs-playlist" rev="4.3.1">
  <artifact name="videojs-playlist" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='videojs-playlist', version='4.3.1')
)
libraryDependencies += "org.webjars.npm" % "videojs-playlist" % "4.3.1"
[org.webjars.npm/videojs-playlist "4.3.1"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : global jar [4.3.2,5)
org.webjars.npm : video.js jar [6.0.0,7),[7.0.0,8)

Project Modules

There are no modules declared in this project.

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.

org.webjars.npm

Brightcove

The leading online video hosting platform and online video player solution.

Versions

Version
4.3.1