# How to enable closed captioning w/ Video node

**URL:** <https://forum.developer.roku.com/t/how-to-enable-closed-captioning-w-video-node/7820>\
**Category:** Archived\
**Tags:** roku-developer-program\
**Created:** [October 10, 2017, 1:04pm UTC](https://forum.developer.roku.com/t/how-to-enable-closed-captioning-w-video-node/7820 "2017-10-10T13:04:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaxim](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@jaxim](https://forum.developer.roku.com/u/jaxim)\
**Post date:** [October 10, 2017, 1:04pm UTC](https://forum.developer.roku.com/t/how-to-enable-closed-captioning-w-video-node/7820/1 "2017-10-10T13:04:10Z")

</div>

What is the the BrightScript code to enable subtitles if I am using a video node as my video player? I’ve attempted to enable the player by setting globalCaptionMode to “On”; however the subtitles do not appear.

Also, what formats of closed captioning are supported? Is it only SMPTE-TT, EIA-608, WebVTT as it is indicated on the following documentation URL? The same documentation page makes reference that SRT is available on legacy Roku platforms. However, does this mean that the SRT format not available on all Roku devices?  
[https://sdkdocs.roku.com/display/sdkdoc/Closed+Caption+Support](https://sdkdocs.roku.com/display/sdkdoc/Closed+Caption+Support)

---

<div class="post-metadata">

**Author:** ![jaxim](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@jaxim](https://forum.developer.roku.com/u/jaxim)\
**Post date:** [October 10, 2017, 4:10pm UTC](https://forum.developer.roku.com/t/how-to-enable-closed-captioning-w-video-node/7820/2 "2017-10-10T16:10:32Z")

</div>

Below seems to be the care minimum code to enable the closed captioning. I tested a track with a SRT file and it worked, so it appears Roku also supports SRT files.

```auto

videoContent = createObject("RoSGNode", "ContentNode")
videoContent.SubtitleConfig = {
                                    ShowSubtitle: 1,
                                    TrackName: "URL2ClosedCaptioningFile"
                              }
m.video.content = videoContent
m.video.globalCaptionMode = "On"

```

The additional question I have is that I noticed in some apps, when I click the options button, a closed captioning menu appears. Is this a menu that the app developer created or is this a Roku-made menu that the developer can enable?

---

<div class="post-metadata">

**Author:** ![Joltarin](https://avatars.discourse-cdn.com/v4/letter/j/bbce88/32.png) [@Joltarin](https://forum.developer.roku.com/u/Joltarin)\
**Post date:** [November 7, 2017, 1:10am UTC](https://forum.developer.roku.com/t/how-to-enable-closed-captioning-w-video-node/7820/3 "2017-11-07T01:10:11Z")

</div>

> “jaxim” wrote:  
> The same documentation page makes reference that SRT is available on legacy Roku platforms. However, does this mean that the SRT format not available on all Roku devices?  
> [https://sdkdocs.roku.com/display/sdkdoc/Closed+Caption+Support](https://sdkdocs.roku.com/display/sdkdoc/Closed+Caption+Support)  
> No, to me it means that SRT is the only format supported by **all** Roku players and Roku TVs (and that newer models support additional formats). FYI, the WebVTT standard is based on SRT.

---

<div class="post-metadata">

**Author:** ![RokuCC](https://avatars.discourse-cdn.com/v4/letter/r/f19dbf/32.png) [@RokuCC](https://forum.developer.roku.com/u/RokuCC)\
**Post date:** [November 7, 2017, 7:45pm UTC](https://forum.developer.roku.com/t/how-to-enable-closed-captioning-w-video-node/7820/4 "2017-11-07T19:45:53Z")

</div>

All Roku players supporting a recent firmware release support all those standard as far as I can tell.

---

<div class="post-metadata">

**Author:** ![RokuCC](https://avatars.discourse-cdn.com/v4/letter/r/f19dbf/32.png) [@RokuCC](https://forum.developer.roku.com/u/RokuCC)\
**Post date:** [November 7, 2017, 8:45pm UTC](https://forum.developer.roku.com/t/how-to-enable-closed-captioning-w-video-node/7820/5 "2017-11-07T20:45:35Z")

</div>

for the original question:  
Video node has a field called "content "  
This content has SubtitleTracks, which needs to be populated with side loaded tracks. The demultiplexers for the different container formats will add tracks too.  
(video node field availableSubtitleTracks will show the complete set).  
Special case is eia608 which needs to be added to SubtitleTracks to kick-start the software so it will start searching for these tracks.  
SubtitleConfig in the content and the video node’s subtitleTrack allows a channel to select a track. This is not recommended in 8.0 since it may get in the way of automatic track selection based on the “preferred caption language” menu item.

relevant documents:  
[https://sdkdocs.roku.com/display/sdkdoc … +Meta-Data](https://sdkdocs.roku.com/display/sdkdoc/Content+Meta-Data)  
[https://sdkdocs.roku.com/display/sdkdoc/Video](https://sdkdocs.roku.com/display/sdkdoc/Video)
