Skip to content

junaidtufail/video-js-vpaid-flash

 
 

Repository files navigation

This is a fork of https://github.com/Manbearpixel/video-js-vpaid-flash and fixes Yume VPAID Ads.

Preface

This repository is based off of Guardian/VideoJS-VPAID and VideoJS/VideoJS-SWF. This is my attempt at getting Flash VPAID support for VideoJS and most of it is currently just a mashup and is in no way in it's final form. I will modify this over time as I slowly piece together everything.

Currently Working:

  • LiveRail VPAID ad example --> located within /sandbox/

Currently Broken?:

  • YuMe VPAID ad example
  • Example Ad SWF that is compiled with grunt mxmlc

The source code for the VideoJS SWF is available and can be editted and looked at, and I am open to anyone reporting issues or contributing to this. I cannot guarentee the tests work right now as I am solely just working on getting the Flash VPAID stable.

I am available via Twitter for direct questions or feedback, my handle is @Manbearpixel. Thanks for checking this repo out!


The light-weight Flash video player that makes Flash work like HTML5 video. This allows player skins, plugins, and other features to work with both HTML5 and Flash

This project doesn't need to be used if you simply want to use the Flash video player. Head back to the main Video.js project if that's all you need, as the compiled SWF is checked in there.

Installation

  1. Install Node Packages.
    npm install
  1. Compile SWF. Development (places new SWF in /dist/):
    grunt mxmlc

Production/ Distribution (runs mxmlc task and copies SWF to dist/):

    grunt dist
  1. Run Connect Server.
    grunt connect:dev
  1. Open your browser at http://localhost:8000/index.html to see a video play. You can keep using grunt to rebuild the Flash code.

Running Unit and Integration Tests

** Note - We want to drop all of this for grunt based / Karma testing.

For unit tests, this project uses FlexUnit. The unit tests can be found in [project root]/src/com/videojs/test/

For integration tests, this project uses qunit. The integration tests can be found in [project root]/test

In order to run all of the tests, use the links at http://localhost:8000/index.html

There are very few tests. Adding to them is a fantastic and much appreciated way to contribute.

VPAID Support

Initial VPAID integration has been added. An example can be found in the sandbox/videojs.html

The script in there plus the custom build of the video player should be all that is necessary to get it running with stock Video-JS code.

About

VPAID Linear Advert Flash Player for VideoJS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 52.3%
  • ActionScript 27.1%
  • HTML 17.5%
  • CSS 3.1%