Video player based on HTML5Video
npm install playableIMPORTANT! Migration guide from 1.0.0 to 2.0.0 you can find here.
You can play with demo here: https://jsfiddle.net/bodia/to0r65f4/
```
$ npm install playable --save
In modern way
`javascript`
import Playable from 'playable';
Or in old school way, add a
`
And write awesome code:
`javascript
document.addEventListener('DOMContentLoaded', function() {
const config = {
width: 700,
height: 394,
src: 'http://my-url/video.mp4',
preload: 'metadata',
};
const player = Playable.create(config);
player.attachToElement(document.getElementById('content'));
});
``
You can find documentation here: https://wix-incubator.github.io/playable/
Cross-browser Testing Platform and Open Source <3 Provided by [Sauce Labs][sauselabs-homepage]
[sauselabs-homepage]: https://saucelabs.com
[documentation]: https://wix-incubator.github.io/playable/