Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fork/video-lib

Helper methods for HTML video playback
https://github.com/fork/video-lib

Last synced: 1 day ago
JSON representation

Helper methods for HTML video playback

Awesome Lists containing this project

README

        

# VideoLib

Helper methods for HTML video playback.

This library helps you on problems occuring when implementing custom HTML5 video players. In particular, it has helper methods to:

- Use movingimage with HLS as source, with fallback for non-HLS-compatible browsers
- Apply custom CSS style to subtitles
- Emulating `object-fit: cover;` with Internet Explorer support
- Waiting for a video to become ready

Please take a look at the JSDoc of each method for further information.

## Tricks

- Some browsers do not accept `` to be `mode="hidden"`. Use `kind="metadata"` instead.

## Creating a release

Certain steps need to be done in order to create a new release:

1. Decide on a [semver](https://semver.org/spec/v2.0.0.html) version number
1. Start a new release using `git flow release start [version number]`
1. Update the `package.json` version
1. Run `yarn run release`
1. Commit changes: `git commit -a -m "Prepare release [version number]"`
1. Finish release using `git flow release finish`
1. Push all changes: `git push origin --all && git push origin --tags`

## License

See [LICENSE](LICENSE)