@meisterplayer/plugin-webvtt

5.1.3 • Public • Published

WebVTT Plugin for Meister

This plugin allows WebVTT subtitles in the Meister player. It uses the HTML5 <track> element to play the subtitles.

Getting started

Simply add WebVtt to the Meister config and set an item to use subtitles:

var meisterPlayer = new Meister('#player', {
    WebVtt: {}
});

meisterPlayer.setItem({
    captions: [
        {
            lang: 'nl', // Language short
            src: 'URL_TO_WEBVTT_HERE',
            title: 'Dutch', // Title shown in captions selector
            type: 'webvtt',
        }
    ],
    src: 'MP4_URL_HERE',
    type: 'mp4'
});

Readme

Keywords

Package Sidebar

Install

npm i @meisterplayer/plugin-webvtt

Weekly Downloads

5

Version

5.1.3

License

Apache-2.0

Unpacked Size

53.4 kB

Total Files

16

Last publish

Collaborators

  • licensetriple
  • thomasvdam
  • i.toby
  • kajb
  • smashingpat
  • rtl-video
  • stefkampen
  • edwinmeijne