npm

Share private packages across your team with npm Orgs, now with simplified billing via the aws marketplace!Learn more »

html5-video-error-translator

1.2.2 • Public • Published

html5-video-error-translator

npm version downloads count dependencies travis coveralls snyk

🔨 Translate HTML5 <video> error code to string

Install

npm install html5-video-error-translator

Usage

var translate = require('html5-video-error-translator').translate;
 
// jQuery
$video.on('error', function (evt) {
    console.log(translate(evt);
});
 
// Pure
video.onerror = function (evt) {
    console.log(translate(evt);
};

Unit tests

npm test

Code coverage

npm run coverage

License

The MIT License @ 2016-2019

install

npm i html5-video-error-translator

Downloadsweekly downloads

1

version

1.2.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability