# How to use a Close Caption file with my Movie

**URL:** <https://forum.xojo.com/t/how-to-use-a-close-caption-file-with-my-movie/81701>\
**Category:** General\
**Created:** [September 8, 2024, 8:25am UTC](https://forum.xojo.com/t/how-to-use-a-close-caption-file-with-my-movie/81701 "2024-09-08T08:25:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [September 8, 2024, 8:25am UTC](https://forum.xojo.com/t/how-to-use-a-close-caption-file-with-my-movie/81701/1 "2024-09-08T08:25:53Z")

</div>

I load (only mp4) movie file and display it in a preview area.

Now I want to display the close caption file with it, but I dound nothing in the documentation about that.

Just in case it works like VLC, I creted a folder where I copied a .mp4 file and its .srt Close Caption Text file. I loaded that movie file and no Close Caption appears on screen.

Isn’t this built-in Xojo ?

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [September 8, 2024, 11:09am UTC](https://forum.xojo.com/t/how-to-use-a-close-caption-file-with-my-movie/81701/2 "2024-09-08T11:09:59Z")

</div>

> [@Emile\_Schwarz](#):
>
> Isn’t this built-in Xojo ?

i not see something about in documentation.

but maybe you could use a timer and read the movie Position to display the  
text outside with a label?

but then i would simplify the text file that empty text clear/override the sub title.

```auto
0.0 Text 
0.5
1.5 Text 
2.5 
3.0 Text

```

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [September 8, 2024, 11:52am UTC](https://forum.xojo.com/t/how-to-use-a-close-caption-file-with-my-movie/81701/3 "2024-09-08T11:52:39Z")

</div>

Fortunately, VLC does not do that and use src file(s)…

---

<div class="post-metadata">

**Author:** ![Christian\_Wheel](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_wheel/32/20536_2.png) [@Christian\_Wheel](https://forum.xojo.com/u/Christian_Wheel)\
**Post date:** [September 8, 2024, 3:00pm UTC](https://forum.xojo.com/t/how-to-use-a-close-caption-file-with-my-movie/81701/4 "2024-09-08T15:00:34Z")

</div>

I don’t think it’s built into Xojo. If you’re on Windows the underlying Windows Media Player component does support SRT but it doesn’t seem to be implemented in Xojo. You may be able to add it as an Active-X control and use it that way.

On MacOS I’m not sure.

In either case, you may be better off using the VLC components in MBS.

---

<div class="post-metadata">

**Author:** ![Mark\_Sweeney](https://forum.xojo.com/user_avatar/forum.xojo.com/mark_sweeney/32/3332_2.png) [@Mark\_Sweeney](https://forum.xojo.com/u/Mark_Sweeney)\
**Post date:** [September 8, 2024, 3:00pm UTC](https://forum.xojo.com/t/how-to-use-a-close-caption-file-with-my-movie/81701/5 "2024-09-08T15:00:59Z")

</div>

Xojo’s MoviePlayer automatically plays closed captions if they’re embedded in the video file, and closed captions are turned on in the system settings.

You’d have to write your own closed caption display if you’re using a separate caption file.

However - Subler lets you embed srt caption files into videos. When you save, it embeds the captions without resaving the entire video file (It’s not recompressing the audio or video). It also lets you add chapter data, if you know how to format it.

[Subler](https://subler.org)

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [September 8, 2024, 3:50pm UTC](https://forum.xojo.com/t/how-to-use-a-close-caption-file-with-my-movie/81701/6 "2024-09-08T15:50:23Z")

</div>

Thank you.

I am starting to understand why I left that idea (like many others) years ago… when I followed that path the first time.

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [September 8, 2024, 3:58pm UTC](https://forum.xojo.com/t/how-to-use-a-close-caption-file-with-my-movie/81701/7 "2024-09-08T15:58:36Z")

</div>

That is VLC:

 ![image](https://forum.xojo.com/uploads/default/original/3X/9/5/956af4a0d7956b97c4e02074aa9782508442fdcd.jpeg)

And here’s where I am:

 ![image](https://forum.xojo.com/uploads/default/original/3X/1/8/1892205b482d3530b18bb1b296ae6369f8b4fae1.jpeg)

Work in progress…
