Skip to content

Latest commit

History

History
38 lines (23 loc) 路 880 Bytes

README.md

File metadata and controls

38 lines (23 loc) 路 880 Bytes

Provider: HTML5 video and audio

Supports for HTML5 video and audio player.

Overview

The provider is already inludes in vLitejs.

Usage

HTML

Video

<video id="player" src="<path_to_video_mp4>"></video>

Audio

<audio id="player" src="<path_to_audio_mp3>"></audio>

JavaScript

import 'vlitejs/vlite.css';
import Vlitejs from 'vlitejs';

new Vlitejs('#player');

Note The provider parameter on the Vlitejs constructor is html5 by default.

Demo

See demos of HTML5 video provider and HTML5 audio provider.