Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

videojs-swf

videojs91.7k5.4.2

The Flash-fallback video player for video.js (http://videojs.com)

flash, video, player

readme

The lightweight Flash video player for Video.js. This allows the Video.js player's 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 tech in Video.js.

Installation

  1. Install Node Packages.
     npm install
  2. Compile SWF. Development (places new SWF in /dist/):
     grunt mxmlc
    Production/ Distribution (runs mxmlc task and copies SWF to dist/):
     grunt dist
  3. Run Connect Server.
     grunt connect:dev
  4. Open your browser at http://localhost:8000/index.html to see a video play. You can keep using grunt to rebuild the Flash code.

Releasing

  1. Make sure that the following file is modified with these values:
node_modules/flex-sdk/lib/flex_sdk/frameworks/flex-config.xml
<!-- Specifies the minimum player version that will run the compiled SWF. -->
<target-player>10.3</target-player>

<!-- Specifies the version of the compiled SWF -->
<swf-version>12</swf-version>
  1. Run the commands:
    npm version {major,minor,patch}
    npm publish
    The swf and changelog will be automatically built and added to the repo on version.

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.

changelog

CHANGELOG

HEAD (Unreleased)

(none)


5.4.2 (2018-09-20)

  • Fix video dimensions pinned to 100x100

5.4.1 (2017-07-25)

  • chore: update broken URLs
  • fix: decouple muted() from volume=0

5.4.0 (2017-04-28)

  • Add getVideoPlaybackQuality API
  • Fix buffered() getter for RTMP provider
  • Fix paused state for RTMP provider after video ends

5.3.0 (2017-02-17)

  • @albertogasparin added FCsubscribe call and proxy type to RTMP video provider
  • @mjneil add callback to adjust currentTime for video provider

5.2.0 (2017-02-07)

  • @mjneil added appendChunkReady, another way of passing data into the swf

5.1.0 (2016-07-18)

  • @alex-philips added support for the onTextData event

5.0.3 (2016-05-31)

  • Fix muted and loop attributes not being passed to the swf (view)

5.0.2 (2016-05-06)

  • If we are in data generation mode and even if _playbackStarted hasn't happened yet, we should still set _isSeeking to true so that we can correctly emit seeked after an initial (before playback) seek (view)

5.0.1 (2015-11-06)

  • Fix an issue where the player would not report is was seeking after ending (view)

5.0.0 (2015-10-28)

  • Return an empty set of seekable time ranges when seeking in data generation mode (view)

5.0.0-rc1 (2015-07-27)

  • Don't fire loadstart or loadedmetadata in data generation mode (view)
  • Remove unused poster support (view)
  • Expose buffered as ranges, not just an end point (view)
  • Do not seek to to the beginning after a video ends (view)

5.0.0-rc0 (2015-07-21)

  • Let javascript fire "seeking" instead of handling it in the SWF (view)

4.7.2 (2015-06-30)

  • Fixed an issue where an image from previous video could flash briefly while a new video is loaded (view)

4.7.1 (2015-06-23)

  • Fixed an issue where playback required two clisk to start when preload was not auto
  • @qpSHiNqp fix issue that would cause incorrect aspect ratios for some videos (view)

4.7.0 (2015-05-19)

  • @bc-bbay the preload attribute should be a string, not a boolean (view)
  • @Wellming fix manual tests (view)

4.6.1 (2015-04-22)

  • @bclwhitaker append END_SEQUENCE properly in data generation mode (view)

4.6.0 (2015-04-16)

  • Add vjs_discontinuity (view)
  • Don't call resume() on NetstreamPlayStart (view)

4.5.4 (2015-03-17)

  • Improved handling of the paused state, and the loadstart and canplay events (view)
  • Fixed a potential XSS issue with the swf event callbacks (view)
  • Prevented pause from firing after eneded (view)

4.5.3 (2015-01-22)

  • Paused should be true before a source has been set by default

4.5.2 (2014-12-04)

  • Fixed an issue where Flash would crash when switching sources quickly (view)

4.5.1 (2014-10-15)

  • Fixed an issue where changing the source immediately after seeking could cause an error (view)
  • Added sanitation for all data that might be passed through the external interface (view)

4.5.0 (2014-09-29)

  • Buffering and playback event fixes (view)

4.4.5 (2014-09-25)

  • Fixed sanitation of URLs to special case blob URLs (view)

4.4.4 (2014-09-22)

  • Added sanitizing of the src param (view)

4.4.3 (2014-08-14)

  • Rebuild with Flash target-player 10.3 and swf-version 12. (view)

4.4.2 (2014-07-11)

  • Fixed networkState reporting to be more accurate after loadstart (view)

4.4.1 (2014-06-11)

  • Ignore unnecessary files from npm packaging (view)
  • Fixed bug triggering playing (view)
  • Fixed bug with the timing of loadstart (view)
  • Added support for clearing the NetStream while in Data Generation Mode (view)
  • Fixed silent exception when opening MediaSources (view)

4.4.0 (2014-02-18)

  • Added changelog
  • Added support for using NetStream in Data Generation Mode (view)
  • Extended base support for external appendData for integration with HLS / Media Source plugins (view)
  • Fixed bug with viewport sizing on videos which don't present meta data (view)
  • Fixed bugs with buffered and duration reporting on non-linear streams (view)
  • Added refined seeking for use on non-linear streams (view)
  • Extended endOfStream for use with Media Sources API (view)