According to YouTube's policy, only the owner of the content can add subtitle to a video.
With YouTube External Subtitle you can display subtitles over the embedded video from YouTube on your site. These texts could be translations, comments or lyrics as well. (Any kind of texts is allowed)
http://github.com/siloor/youtube.external.subtitle
Please, don't forget to star the repository if you like (and use) the script. This will let me know how many users it has and then how to proceed with further development.
If you'd like to make subtitle for a video, there are a lot of tools helping you.
- YouTube has an automatic english speech recognition logic, that does a really good job and makes only a few mistakes. Its a very big help by timing the subtitles.
- On DownSub.com you can download the subtitles from YouTube as an SRT file.
- There are a lot of good open source SRT editors out there.
- Basic example
- Load an SRT file
- More subtitles
- More SRT subtitles
- More SRT subtitles by more videos
- Style subtitles
- Fullscreen
- Responsive
- Custom render method
By latest browsers, the embedded iframe requesting the fullscreen mode requires the whole window, so the script is not allowed to display anything in front of the player. That is why YouTube External Subtitle disables the fullscreen button by default. You can add your own fullscreen logic on your page, check the fullscreen example.
The script supports AMD.