Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd subtitles #1162
Add subtitles #1162
Comments
This comment has been minimized.
This comment has been minimized.
|
Are you talking about webtorrent in the browser? the desktop app? the CLI? |
This comment has been minimized.
This comment has been minimized.
|
About webtorrent in the browser. Im currently using the basic script that shows in the webttorrent website with the min js. `<script>
It works prefectly but, I can't seem to find to get subtitles work. |
This comment has been minimized.
This comment has been minimized.
|
I don't understand what kind of subtitles are you using and how do you want to load it... please insert more info... |
This comment has been minimized.
This comment has been minimized.
|
Let me explain, I inserted the script in one of my post In my static website, that is deployed using Hugo, now, Id like to add certain videos, of movies, documentaries that I have from certain groups that I have uploaded to a torrent in my normal Qbittorrent client. Now, I see that the system you have created has the ability to load subtitles trough uploading a compressed file, but I see that mechanism some complicated for certain people who would see this video on my post, so why I tried to do was to load the srt file from a folder in my website called subtitles, but I don't understand how to implement this trough the script you created (that is an excellent implementation btw) .¿Is this possible?, I mean, if the srt could be loaded from outside, then it could also be loaded from the inside folder of the website. Another doubt is that, some of this torrents won't load, I supposed it was because the low numbers of peers, so i tried to load some other tor from any tracker in the web, some torrent of this movie torrents that have lots of peers, but it did not load, I saw that when I loaded it in the desktop version worked, but not on the browser version, ¿this is a limitation of the browser client or just a bad configuration i made on the script?. Thanks, I really appreciate your help, I am newbie in js. |
This comment has been minimized.
This comment has been minimized.
|
You can append the srt file to the video tag (?). |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@DiegoRBaquero ¡Thanks!, I did not read that. @andreapaiola ¿And how I load to the video tracks?, I see from the basic script that this var loads the .mp4 from the torrent. var file = torrent.files.find(function (file) { ¿But for the WebVTT how do I do?. Thanks, very grateful from your help. |
This comment has been minimized.
This comment has been minimized.
|
Use the .srt file to generate the WebVTT. Search it online. In my script it's loaded in the zip file, but in your case you don't need this... as far as I can understand. |
How can I implement
subtitles to the player, I have seen the video player with subtitles example but id like to add the subtitles directly from a srt file without this process. I don't have to much knowledge related to js. Thanks.