New Priority Mail

    videojs-playlist

    5.0.0 • Public • Published

    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.

    Install

    npm i videojs-playlist

    DownloadsWeekly Downloads

    5,062

    Version

    5.0.0

    License

    Apache-2.0

    Unpacked Size

    371 kB

    Total Files

    25

    Last publish

    Collaborators

    • uomar
    • abarstowbc
    • sbarathan
    • adamico-bc
    • kpandiyarajan
    • msivalls
    • vbustillos
    • rburnham
    • imorones
    • bhong-brightcove
    • walterseymourbc
    • ddashkevich
    • shubham.chavhan
    • albertogomez
    • gestrada-br
    • lpintor
    • amillerbrightcove
    • lvohra
    • daniel.gutierrez.brightcove
    • charles.seat
    • erick-valdivia
    • victor-rivas
    • mcho-bc
    • awaldron
    • fsalazarbc
    • dawnpacko
    • j.hawleypeters.bc
    • adamboudionbc
    • jimmy-carfagno-bc
    • ldominguez
    • bc-srimron-soutter
    • prasant7bc
    • bart-stevens-bc
    • rsilva_brightcove
    • joeylesh
    • lmelchorx1
    • juan-sanchez
    • eolvera
    • cloewer_bc
    • carredondo
    • brianhsu
    • lewis.moten.brightcove
    • niklagbrightcove
    • tsraveling_bc
    • natedennis
    • bcbclifford
    • craigparrottebc
    • mwebster789
    • bc-acgarcia
    • adavila1
    • vaishalijayaraman
    • kreynolds
    • bgs-devops
    • albinjohnson
    • lmaultsby
    • rtezera
    • bcmneil
    • randresf
    • v.kozlov_bc
    • nagendra_m
    • michaelmccarthybc
    • georgesanchez.diazjr
    • poneill-bcov
    • mdeltorobcov
    • scottbishop
    • bcov_david-kelly
    • yji_bc
    • jmohneycove
    • inbc01
    • jeff.schuman
    • a_castillo_h
    • aperezbrightcove
    • ireyes94
    • brightcove-admin
    • tedk
    • abradley-brightcove
    • bc-alive
    • mrocajr
    • lasanchezc
    • marguinbc
    • brightcove-user
    • kmason
    • cbarstow
    • hikeh
    • myerramalla
    • pdias
    • jwhisenant
    • ebertaud
    • oespinosac
    • dsalnikov
    • sharanya.muruganandam
    • vikaskumar.gajula
    • xgarcia_npm
    • jguerra
    • rjune
    • jonbwalsh
    • khaipham
    • wswanbeck
    • gastafurov
    • adalwani
    • ekelson-bcove
    • syseng
    • mcarreiro
    • elbadawimustafa
    • asinclair
    • hwoodbury
    • jblaker
    • bcmauleon
    • paco_oblea_bc
    • jsepulveda
    • biswaranjan
    • barroyo
    • bmartinez
    • bc-jcarlson
    • eledezma
    • jcueto
    • erodrigues
    • psousa
    • acruzr
    • marcogaray
    • diegocruz1991
    • javibright
    • bcpsalas
    • etobin
    • ackbabe
    • cvillasenor
    • omartinez
    • mgonzalez_bc
    • pdohertybcov
    • muthukumar.bc
    • bzizmond
    • jmpmacedo
    • scorreia
    • lescorcio
    • cavieira
    • mbalasubramaniam
    • arunjeyaprasad
    • bvilvanathan
    • anand.gangadharan
    • rociosantos
    • fdelgado_bc
    • syurishi
    • agarciabcov
    • attinder
    • lauralopez
    • granganathan
    • skumar85
    • hrodriguez2
    • jasilvaantonio
    • palvarezbc
    • ericramos
    • carlosabajo
    • ingrid.s.cruz
    • luis_fernando_lopez_ruiz
    • vishal64
    • tresa.baji
    • luis.garcia.brightcove
    • rodrigofdz
    • pgutierrezgil
    • harish17
    • jjeyaprakash
    • rrajendran1698
    • jlomeli
    • jhurtado
    • sjimenez
    • rwenger_brightcove
    • rujordan
    • stuartmh
    • jherrerabcov
    • mshiwal
    • ptamizh
    • akamalakkannan
    • akatare
    • roman-bc
    • tnwanna
    • bsahlas.npm
    • dherrera1109
    • hswaminathan
    • lramirez-bc
    • echengbc
    • sbarrettbc
    • incompl
    • misteroneill
    • dmlap
    • gkatsev
    • forbesjo
    • saxena-gaurav
    • brandonocasey