New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vlitejs

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vlitejs

vLite.js is a fast and lightweight Javascript library to customize and skin native HTML5 video and Youtube video in Javascript native with a default skin

1.1.1
Source
npm
Version published
Weekly downloads
1.1K
36.91%
Maintainers
1
Weekly downloads
 
Created
Source

vLitejs

vLite.js

The new smallest Javascript video library

See https://vlite.bitbucket.io for complete docs and demos.

vLite.js is a fast and lightweight Javascript library to customize and skin native HTML5 video and Youtube video. Only 4Kb on production with Gzip, vLite.js has no dependency with any framework or library and is write in Javascript native.

vLite on desktop

This module is fully writen in Javascript native. No need to import an additional librairy like jQuery or Handlebars. #YouMightNotNeedJquery

Demo

Online demo is available on the vLite website.

Download

vLitejs is available as the vlitejs package on npm and Github.

Browser support

The project is fully compatible with the most popular web browser. More information about the HTML5 video support here.

Licences

Available with the MIT licence.

How it works

HTML5 video
<video id="{{idSelector}}"
    class="vlite-js"
</video>

Youtube video

<video id="{{idSelector}}"
    class="vlite-js"
    data-youtube-id="{{idYoutube}}">
</video>

Simple example with options in HTML

The simplest way to use vLite is like the example below.
Default options are used and passed in the HTML. The poster was overrided with the correct path.

<video id="{{idSelector}}"
    class="vlite-js"
    data-options='{"poster": "img/poster.jpg"}'>
</video>
var player = new vLite({
    selector: '#player-1'
});

More information in the vLite website.
If you like the project, like it on Github please :)

Keywords

player

FAQs

Package last updated on 28 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts