videoary-js
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Videoary

Videoary is a simple video player build with Typescript.

To use Videoary

import { Videoary } from "videoary"

const container = document.querySelector('#app') // Root area to append

const videoary = new Videoary({
    accentColor: "red",
    containerArea: container,
    video: {
        src: "example", // Hls source
        poster: null, // Poster or thumbnail extension must be .png,
        next: null, // Optional page link to play next video
        prev: null // Optional page link to play prev video
    },
    subtitles: [
        {
            source: "example.vtt", // Subtitle source
            short: "en",
            long: "English"
        }
    ]
})

Readme

Keywords

none

Package Sidebar

Install

npm i videoary-js

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

1.16 MB

Total Files

8

Last publish

Collaborators

  • mohamadadithya