hello developers ! today I'am introducing my new subtitles Extension for loading and displaying subtitles in an app.
It provides functionality to load subtitles from SRT and SSA files, as well as from URLs. It also includes a method to convert SRT files to SSA format.
Here's a breakdown of the main blocks and functionalities in the Extension :
Blocks
SrtConvertedToSsa Event:
This event is triggered when the SRT to SSA conversion is complete. It provides the converted SSA content to the user.
SubtitlesLoaded Event:
This event is triggered after loading subtitles, allowing the user to handle the loaded subtitles.
LoadSubtitlesFromFile :
This function loads subtitles from an SRT file. It reads the file, parses the content,
LoadSubtitlesFromSsaFile : This function loads subtitles from an SSA file. It reads the file, parses the content
LoadSrtFromUrl and LoadSsaFromUrl blocks:
These functions load subtitles from SRT and SSA files hosted on a remote server.
GetSubtitleAtTime:
This function retrieves the subtitle text for a specified time in milliseconds. It iterates through the subtitle entries and checks if the given time falls within the start and end times of each entry.
ConvertSrtToSsa :
This function converts an SRT file to SSA format. It reads the SRT content, converts it to SSA format using the convertSrtToSsa
method, and triggers the SrtConvertedToSsa
event with the converted content.
Video
AIX
You can purchase this extension HERE. Once your payment is complete, you will be redirected to the Download URL.
Thanks