Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| blocks:app-note:subtitles [2022-01-03 12:31] – [Try it] mattias | blocks:app-note:subtitles [2025-12-09 07:47] (current) – admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ======Subtitles and Closed Captions====== | ======Subtitles and Closed Captions====== | ||
| - | Work In Progress! | + | This application note shows how to use the Subtitle Blocks, including features such as locally synchronized subtitles and subtitles playing on Visitor Spot synchronized to a Display Spot. Here's a video introducing some of of the concepts described below. |
| - | This application note provides an example of how to build content using the subtitle feature of Blocks.. | + | {{vimeo> |
| - | The examples cover features such as local synchronised subtitles, subtitles provided on a visitor spot that synchronises to a display spot. | + | |
| | | ||
| Line 17: | Line 16: | ||
| {{ : | {{ : | ||
| - | then follow the instructions in the [[https:// | + | then follow the instructions in the [[blocks:app-note:start|general setup section]]. |
| Once you've done the general setup, copied the files and pointed your Blocks server to this root folder, follow these steps to run this application: | Once you've done the general setup, copied the files and pointed your Blocks server to this root folder, follow these steps to run this application: | ||
| Line 27: | Line 26: | ||
| - Open a third browser window and type in the URL: http:// | - Open a third browser window and type in the URL: http:// | ||
| + | Make sure the example blocks have been published to the display spot and the visitor spot respectively | ||
| + | |||
| + | {{: | ||
| ===== Try it ===== | ===== Try it ===== | ||
| Line 41: | Line 43: | ||
| {{: | {{: | ||
| - | Then use the locator to locate the displayspot | + | Then use the locator to locate the display spot with its location ID that is set to 10 in this example. |
| {{: | {{: | ||
| Line 57: | Line 59: | ||
| {{: | {{: | ||
| - | Inside the composition we can see the, note the videos //Local Sync Slave// checkbox that is unticked since this video is our master. The subtitle blocks | + | Inside the composition we can see the, note the videos //Local Sync Slave// checkbox that is unticked since this video is our master. The subtitle blocks |
| {{: | {{: | ||
| Line 64: | Line 66: | ||
| {{: | {{: | ||
| - | ===== Style the subtitles===== | + | ===== Subtitle .srt files===== |
| - | As everything else in Blocks the subtitles can be styled using CSS. The selectors to use looks as in this example that styles any subtitle in the block: | + | The files used for subtitles in Blocks is .srt aka [[ https:// |
| + | The formatting looks like this example taken from the english exemple subtitle in this application note. | ||
| + | |||
| + | < | ||
| + | 1 | ||
| + | 00: | ||
| + | You're a fool for traveling alone, | ||
| + | so completely unprepared. | ||
| + | |||
| + | 2 | ||
| + | 00: | ||
| + | You're lucky your blood' | ||
| + | |||
| + | 3 | ||
| + | 00: | ||
| + | Thank you. | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Basic inline formatting of the subtitles===== | ||
| + | |||
| + | It is possible to apply some basic formatting on the text inside the .srt file itself, which may be useful if a single word or sentence should be formatted. | ||
| + | |||
| + | < | ||
| + | Bold – < | ||
| + | Italic – < | ||
| + | Underline – < | ||
| + | Font color – <font color=" | ||
| + | </ | ||
| + | |||
| + | ===== Styling of the subtitles===== | ||
| + | |||
| + | As everything else in Blocks, also the subtitles can be styled using CSS. The selectors to use looks as in this example that styles any subtitle in the block: | ||
| < | < | ||
| Line 84: | Line 118: | ||
| color: red; | color: red; | ||
| }. | }. | ||
| - | </ | + | </ |
| + | |||
| + | ===== Other applications===== | ||
| + | |||
| + | The subtitle block has additional use cases in addition to the standard subtitling, such as Closed Captions. Since the text can be styled and positioned anywhere on the screen (or even on other screen) it can also be used in any other application where one want to show some text in sync with a video for any purposes. | ||