Giter Site home page Giter Site logo

video-js-liverail's Introduction

LiveRail for VideoJS

Here's an integration for VideoJS that adds advertising from LiveRail.

There are two different versions of the source code here: one is more up-to-date (but still about a year old) and it also has the custom Vidcaster fullscreen menu built-in. This displays a menu in the middle of the video when the fullscreen button is clicked, which then gives the viewer the option to enter Flash's fullscreen mode. We developed this because HTML5 fullscreen mode was non-ideal or non-existent in certain browsers so it makes for a good fallback. The other copy of the source code is a little older and it doesn't have the fullscreen menu, but it's even more out of date.

To send data to LiveRail, include the following JavaScript in your page source before the player is initialized. I forget what OVERLAY_PILL = 0 does but that should probably stay just in case, and the others are hopefully self-explanatory. For more information about where these end up in LiveRail, refer to the LiveRail developer documentation.

VideoJS.options.flash.flashVars = {
  LR_PUBLISHER_ID: "[LiveRail Publisher ID goes here]",
  LR_VIDEO_ID: "[Your video ID for LiveRail goes here]",
  LR_TAGS: "[Optional, comma-separated list of tags]",
  LR_LAYOUT_SKIN_MESSAGE: "Advertisement - Your video will begin in {COUNTDOWN} seconds.",
  LR_LAYOUT_OVERLAY_PILL: "0"
};

Credit for this goes to Tanel Teemusk (LiveRail integration / fullscreen menu) and Dan Connor (fullscreen menu).

video-js-liverail's People

Contributors

stevecochrane avatar

Watchers

Benjamin Heller avatar James Cloos 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.