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
- Install Node Packages.
npm install
- Compile SWF.
Development (places new SWF in /dist/):
grunt mxmlc
Production/ Distribution (runs mxmlc task and copies SWF to dist/):
grunt dist
- Run Connect Server.
grunt connect:dev
- 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
** Notes - We should 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, run test.sh.
./test.sh
A copy of the SWF produced for the unit tests will be compiled into the bin-debug folder. Both the unit and integration tests will attempt to run with the 'open' command, or an instruction will be given on how to run them manually.
There are very few tests. Adding to them is a fantastic and much appreciated way to contribute.