Giter VIP home page Giter VIP logo

videojs-flashls's Introduction

videojs-flashls

Introduction

The flashls project brings HLS support to many video players (flowplayer, videojs, osmf, etc). It has support for videojs, but it takes some effort to wire it up. This plugin makes the integration easier.

Installation

  1. Download the fork of video-js.swf created for flashls: [https://github.com/mangui/video-js-swf/blob/master/dist/video-js.swf]

Why? For flashls to work with videojs, mangui has made a fork of the video-js.swf which adds in HLS support.

To see the flashls/videojs demo, go here

  1. Install the videojs.flashls.js script in your application.

Usage

All you need todo is call the flashls plugin and pass it the url for the video-js.swf asset.

Warning: you MUST initialize the flashls plugin before you initialize your video player, otherwise the plugin won't work. Why? When you initialize your video player, it examines your video sources and determines what player tech to use. The flashls plugin adds a tech adapter to videojs, so this must happen before the player determines what player tech to use.

// init the flashls plugin
videojs.flashls({swfUrl: "http://localhost:3000/path/to/flashls/video-js.swf"});

// init your player
videojs("video_id", {}).ready(function(){
	console.log("player is ready!");
});

TODO

  • Allow the user to pass in/override "hls_*" configuration options
  • Commonjs/browserify support
  • Automated tests: unit tests (karma + mocha) + integration (sauce + selenium + different versions of videojs)
  • npm and bower support

videojs-flashls's People

Contributors

tommyh avatar

Watchers

James Cloos avatar 王冰 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.