# videojs-swf

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

Latest version **5.4.2** (published 2018-09-20) · 0 weekly downloads

## Install

```sh
npm install videojs-swf
pnpm add videojs-swf
yarn add videojs-swf
bun add videojs-swf
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.4.2 |
| Published | 2018-09-20 |
| First published | 2014-01-15 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 60.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 336 |
| Author | Brightcove |
| Maintainers | bclwhitaker, dmlap, gkatsev, heff, seniorflexdeveloper |
| Keywords | flash, video, player |

## Links

- npm: https://www.npmjs.com/package/videojs-swf
- Repository: https://github.com/videojs/video-js-swf
- Homepage: http://videojs.com
- Issues: https://github.com/videojs/video-js-swf/issues
- npm.io page: https://npm.io/package/videojs-swf

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 5.4.2 (latest) — 2018-09-20
- 5.0.3 (next) — 2016-05-31
- 5.4.1 — 2017-07-25
- 5.4.0 — 2017-04-28
- 5.3.0 — 2017-02-17
- 5.2.0 — 2017-02-07
- 5.1.0 — 2016-07-18
- 5.0.2 — 2016-05-06
- 5.0.1 — 2015-11-06
- 5.0.0 — 2015-10-28
- 4.7.5 — 2015-08-31
- 5.0.0-rc1 — 2015-08-27
- 4.7.4 — 2015-08-11
- 4.7.3 — 2015-08-10
- 5.0.0-rc0 — 2015-07-21
- … 21 more at https://npm.io/package/videojs-swf/versions

## 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.

- For Video.js 5.x and below, the Flash tech is part of the [Video.js core repository](https://github.com/videojs/video.js).
- For Video.js 6.x and above, the Flash tech is in a [separate repository](https://github.com/videojs/videojs-flash).

## Installation

1. Install Node Packages.
```bash
    npm install
   ```
2. Compile SWF.
Development (places new SWF in /dist/):
```bash
    grunt mxmlc
   ```
Production/ Distribution (runs mxmlc task and copies SWF to dist/):
```bash
    grunt dist
   ```
3. Run Connect Server.
```bash
    grunt connect:dev
```
4. Open your browser at [http://localhost:8000/index.html](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
```

```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>
```

2. Run the commands:
```sh
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](http://flexunit.org/). The unit tests can be found in [project root]/src/com/videojs/test/

For integration tests, this project uses [qunit](http://qunitjs.com/). 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](http://localhost:8000/index.html)

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

---
_Source: https://npm.io/package/videojs-swf · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
