🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

srt-webvtt

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

srt-webvtt - npm Package Compare versions

Comparing version

to
1.2.0

index.d.ts

2

package.json
{
"name": "srt-webvtt",
"version": "1.0.1",
"version": "1.2.0",
"description": "Convert SRT format subtitle to WebVTT on the fly over HTML5 environment",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -5,3 +5,3 @@

HTMLMediaElement/Video doesn't support ```.srt``` (SubRip Track) format subtitle as its ```<track>``` source - in order to show captions of your video track either you have to convert the SRT file to WebVTT or write it on your own. Because ```<track src="VALID URL SCHEME">``` requires a valid URL of ```.vtt``` (Web Video Text Track) formated subtitle track.
This library will let you do this on fly and will give you an URL set the source of caption track.
This library will let you do this on the fly and will give you an URL to set the source of caption track.

@@ -8,0 +8,0 @@ <p align="center">