Auto-mapping .srt files to videos
When a video file is uploaded, then added to any node that corresponds to the name of an .srt file uploaded to the Eko Studio library, the files will automatically be mapped based on the file names. The .srt file will contain a language description, which will determine the language reflected in the player controls. There’s currently no max for the number of languages that can be used for a project. Note that the language description doesn’t need to be part of the video file name; however, the .srt file will need to include a language description (see the Formatting .srt files section below) for the mapping to occur. If a video or .srt file name is updated, the auto-mapping will be re-triggered.
Eko studio doesn’t support .srt files for each channel (child node) in parallel nodes, which means switching channels in the experience can’t switch between different subtitles. To add subtitles to a parallel node, you can match an .srt file to any of the channels’ names. That .srt would apply to all channels. If you match several .srt files to several channels, these would all apply as different languages for the entire parallel node.
Formatting .srt files
Language descriptions may be audio descriptions (AD) or subtitles for the deaf or hard of hearing (SDH). None and SDH will be treated as duplicate files. The list of available language codes (and their descriptions) can be found here.
|File name – formatting examples||Language description suffix||How these should appear in ekoshell when you click CC|
|best_node_eva.en-US-AD.srt||AD||English, Audio Descriptions|
General formatting notes:
- .srt files will need to be created for each video used in a node.
- The duration of each .srt file should correspond to the duration of the video file
- No formatting should be applied to the text in an .srt file (e.g. font, size, color, etc.).
In order for the subtitles to appear in the published version, click the wrench in the top right corner of the interface to navigate to Publish Settings. Under the Basic Info tab, select the This project has subtitles checkbox. This is enabled by default.