@brightcove/videojs-flashls-source-handler

1.4.8 • Public • Published

videojs-flashls-source-handler

Build Status Greenkeeper badge Slack Status

NPM

A source handler to integrate flashls with video.js

Table of Contents generated with DocToc

Installation

npm install --save @brightcove/videojs-flashls-source-handler

Usage

To include videojs-flashls-source-handler on your website or web application, use any of the following methods.

This plugin requires the use of a customized SWF that is not included in videojs-flash.

The SWF is available on the unpkg CDN https://unpkg.com/@brightcove/videojs-flashls-source-handler/dist/video-js.swf and is provided in this project's dist/ folder. We highly recommend hosting the SWF yourself as unpkg does not provide uptime or support guarantees.

<script src="//path/to/video.min.js"></script>
<script src="//path/to/videojs-flash.min.js"></script>
<script src="//path/to/videojs-flashls-source-handler.min.js"></script>
<script>
  var player = videojs('my-video', {
    flash: {
      swf: '//path/to/swf'
    }
  });
</script>

Note: The swf option must be set before or during player creation.

Browserify

When using with Browserify, install videojs-flashls-source-handler via npm and require the plugin as you would any other module.

var videojs = require('video.js');
require('videojs-flash');

// The actual plugin function is exported by this module, but it is also
// attached to the `Player.prototype`; so, there is no need to assign it
// to a variable.
require('@brightcove/videojs-flashls-source-handler');

var player = videojs('my-video', {
  flash: {
    swf: '//path/to/swf'
  }
});

RequireJS/AMD

When using with RequireJS (or another AMD library), get the script in whatever way you prefer and require the plugin as you normally would:

require(['video.js', 'videojs-flash', 'videojs-flashls-source-handler'], function(videojs) {
  var player = videojs('my-video', {
    flash: {
      swf: '//path/to/swf'
    }
  });
});

License

Apache-2.0. Copyright (c) Brightcove

Readme

Keywords

Package Sidebar

Install

npm i @brightcove/videojs-flashls-source-handler

Weekly Downloads

175

Version

1.4.8

License

Apache-2.0

Unpacked Size

536 kB

Total Files

22

Last publish

Collaborators

  • vmnavarro
  • dkingston
  • alfredo-reyes
  • jterranova
  • pradeep.vernekar
  • jfloresbc
  • mlopez.b
  • vasu.p
  • ttabrilla-bc
  • msivalls
  • sstevanus
  • rwbarber2
  • kaustubh-thube-brightcove
  • rwinger
  • bcc-bfranklin
  • apenigalapati
  • lmaultsby
  • sravan.pbr
  • agrojas-bc
  • ijunaidf
  • mgoncalves
  • mfregozo
  • arevelo
  • madhu_g
  • hugocjim
  • luisbacasehua
  • daniel_campos
  • kevin.schick
  • m.morrison
  • uomar
  • abarstowbc
  • sbarathan
  • kpandiyarajan
  • rburnham
  • imorones
  • walterseymourbc
  • ddashkevich
  • albertogomez
  • gestrada-br
  • amillerbrightcove
  • lvohra
  • mcho-bc
  • awaldron
  • fsalazarbc
  • dawnpacko
  • ldominguez
  • bc-srimron-soutter
  • rsilva_brightcove
  • joeylesh
  • lmelchorx1
  • juan-sanchez
  • eolvera
  • cloewer_bc
  • carredondo
  • brianhsu
  • niklagbrightcove
  • tsraveling_bc
  • bcbclifford
  • bc-acgarcia
  • adavila1
  • vaishalijayaraman
  • kreynolds
  • bgs-devops
  • albinjohnson
  • rtezera
  • bcmneil
  • randresf
  • v.kozlov_bc
  • nagendra_m
  • michaelmccarthybc
  • georgesanchez.diazjr
  • poneill-bcov
  • mdeltorobcov
  • jmohneycove
  • inbc01
  • aperezbrightcove
  • ireyes94
  • brightcove-admin
  • tedk
  • abradley-brightcove
  • bc-alive
  • 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
  • hwoodbury
  • jblaker
  • bcmauleon
  • paco_oblea_bc
  • jsepulveda
  • biswaranjan
  • barroyo
  • bmartinez
  • bc-jcarlson
  • eledezma
  • jcueto
  • erodrigues
  • psousa
  • acruzr
  • marcogaray
  • javibright
  • bcpsalas
  • etobin
  • ackbabe
  • cvillasenor
  • omartinez
  • mgonzalez_bc
  • pdohertybcov
  • muthukumar.bc
  • bzizmond
  • jmpmacedo
  • scorreia
  • lescorcio
  • cavieira
  • arunjeyaprasad
  • bvilvanathan
  • anand.gangadharan
  • rociosantos
  • agarciabcov
  • attinder
  • lauralopez
  • 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
  • sjimenez
  • rwenger_brightcove
  • rujordan
  • stuartmh
  • jherrerabcov
  • mshiwal
  • ptamizh
  • akamalakkannan
  • roman-bc
  • tnwanna
  • bsahlas.npm
  • dherrera1109
  • hswaminathan
  • echengbc
  • sbarrettbc