Favideo updates your website's Favicon.
Favideo supports multiple modes:
- VideoMode: update the favicon to reflect a <video>'s frame.
- PlayIconMode: reshape the favicon to a play-icon when the video is playing, and recolor to match the video frame.
- RecolorMode: recolor the favicon to contain colors of the <video> frame.
Favideo supports the following input types:
- VideoInput: a <video> tag.
- WebVTTInput: a WebVTT file with preview thumbnails.
- Favideo uses <canvas> elements to draw images. Don't taint the canvas and its images.
- Run
npm installto install the NPM dependencies. - Run
npm run buildto generate favicon.js.
- Run
npm run serveto start a local webserver. - Point your browser to http://localhost:8080/index.html.