I checked the documentation of YouTube Player API Reference, but it does not specify any parameters to add a path to our own VTT file for captions.
I also came across Plyr.JS, but I am not sure if it can be used to achieve the same.
So, is there any way to play our own subtitle on YouTube videos?
I found an indirect temporary way to do it.
https://maadhav-ytdl.herokuapp.com/video_info.php?url=https://www.youtube.com/watch?v=BaW_jenozKc
(Source code for this server: https://github.com/Maadhav/youtube-downloader-API )
decodeURIComponent()the link that you get.Works as on December 2020.