# videojs-playlist
[](https://travis-ci.org/brightcove/videojs-playlist)
[](https://greenkeeper.io/)
[](http://slack.videojs.com)
[](https://nodei.co/npm/videojs-playlist/)
A plugin to enable playlists in video.js
Maintenance Status: Stable
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
- [Installation](#installation)
- [Inclusion](#inclusion)
- [Basic Usage](#basic-usage)
- [License](#license)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
## Installation
Install videojs-playlist via npm (preferred):
```sh
$ npm install videojs-playlist
```
Or Bower:
```sh
$ 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:
```html
<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](docs/api.md).
```js
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.
没有合适的资源?快使用搜索试试~ 我知道了~
videojs-playlist 视频列表播放_videojs列表

共30个文件
js:13个
md:7个
json:2个

1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
219 浏览量
2022-09-19
12:17:42
上传
评论
收藏 242KB ZIP 举报
温馨提示
videojs-playlist 视频列表播放
资源详情
资源评论
资源推荐
收起资源包目录





































共 30 条
- 1


















Kinonoyomeo
- 粉丝: 41
- 资源: 1万+
上传资源 快速赚钱
我的内容管理 收起
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


会员权益专享
安全验证
文档复制为VIP权益,开通VIP直接复制

评论0