Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.

brainbits/jquery-webvtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery WebVTT plugin v0.0.1

Caution: This plugin is currently in early development. Some things may change, so take care with updates!

jQuery WebVTT is made for parsing subtitles for usage in html context. It supports the WebVTT and SRT markup. The text can be parsed from text in a variable or from a document tag.

Usage

Html:

<script id="source" type="text/vtt">
    WEBVTT

    00:11.000 --> 00:13.000
    <v Roger Bingham>We are in New York City

    00:13.000 --> 00:16.000
    <v Roger Bingham>We're actually at the Lucern Hotel, just down the street
</script>

Javascript:

$('#source').webVtt('00:12.000').appendTo('#target');

About

A little WebVTT parser for the jQuery library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published