Skip to content

▶ React web application showcasing custom subtitles overlaying multiple YouTube videos.

Notifications You must be signed in to change notification settings

rzmk/yt-subs-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom YouTube Subtitles

A website showcasing the ability to overlay custom subtitles for multiple YouTube videos using .vtt files.

Demo

How to Use

  1. Create captions for a YouTube video and save them as a .vtt file.
    1. One method is using online caption-making software or Adobe Premiere Pro, exporting as a .srt file and then converting it to a .vtt file using an online conversion tool.
  2. Rename the .vtt file to the video ID of the YouTube video.
    1. For example if the YouTube video you're captioning is at https://www.youtube.com/watch?v=-JTq1BFBwmo then the video ID is after the = symbol as -JTq1BFBwmo.
  3. Add the .vtt file to /src/captions/ and add the video ID to the array in captions.js.
  4. Build the React application and deploy it.

Conclusions

This was helpful in understanding how to work with the Video.js player and adding my own custom subtitles.

There is a possible issue where adding more caption entries may result in a single row of selectable videos to become too crowded/long, so this could be fixed. Though I don't plan to as this isn't a production application.