
Security News
libxml2 Maintainer Ends Embargoed Vulnerability Reports, Citing Unsustainable Burden
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
videojs-transcript-ac
Advanced tools
Creates interactive transcripts from text tracks.
Please report any issues or feature requests on the tracker. Thank you!
Once you've added the plugin script to your page, you can use it with any video:
<head>
<script src="video.js"></script>
<script src="videojs-transcript.js"></script>
</head>
<body>
<video id="video">
<source src="whatever.webm" type="video/webm">
<track kind="captions" src="mycaptions.srt" srclang="en" label="English" default>
</video>
<div id="transcript"></div>
<script>
var video = videojs('video').ready(function(){
// Set up any options.
var options = {
showTitle: false,
showTrackSelector: false,
};
// Initialize the plugin.
var transcript = this.transcript(options);
// Then attach the widget to the page.
var transcriptContainer = document.querySelector('#transcript');
transcriptContainer.appendChild(transcript.el());
});
</script>
</body>
There's also a working example of the plugin you can check out if you're having trouble.
You'll also want to include one of the css files. You can style the plugin as you like but there are a few examples in the /css folder to get you started.
You may pass in an options object to the plugin upon initialization. This object may contain any of the following properties:
Default: true
Set to false to disable autoscrolling.
Default: 'line'
Set which elements in the transcript are clickable. Options are 'timestamp', 'text', the whole 'line', or 'none'.
Default: true
Show a title with the transcript widget.
(Currently the title only says 'Transcript')
Default: true
Show a track selector with the transcript widget.
Default: true
When you change the caption track on the video, the transcript changes tracks as well.
Default: true
Don't autoscroll the transcript when the user is trying to scroll it.
(This probably still has a few glitches to work out on touch screens and stuff right now)
el()
Returns the DOM element containing the html transcript widget. You'll need to append this to your page.
FAQs
Creates interactive transcripts from text tracks.
The npm package videojs-transcript-ac receives a total of 250 weekly downloads. As such, videojs-transcript-ac popularity was classified as not popular.
We found that videojs-transcript-ac demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.