Depending on how you created the subtitles - embedded in the video or as a separate .srt file - you have different options to publish it online with your video.
Hosting external subtitle files along with video on a web server
We will assume you have one or more subtitles (in SRT format) and the video itself.
You can offer a web preview of Theora video alongside a given .srt with the help of jquery.srt.
It is a small script that can load an srt file and display it inside a div on your page, under the video or as an overlay.
this example could look like this on your page.
For another example using subtitles in several languages, you can have a look at this demo from Mozilla http://people.mozilla.com/~prouget/demos/srt/index2.xhtml
Another example using multiple subtitles and providing an interface to select them can be found at http://www.annodex.net/~silvia/itext/.
Hosting video with embedded subtitles on a web server
If you have Ogg files with embedded subtitles and want to display those in the browser, you can use the video tag right now. However, not all browsers support the video tag. Cortado, a Java plugin that can play Theora videos, also has support for embedded subtitles, and it works in all browsers that have the Java installed. You can get the latest version of Cortado from http://www.theora.org/cortado/
<applet code="com.fluendo.player.Cortado.class" archive="cortado.jar" width="512" height="288"> <param name="url" value="video.ogv"/> <param name="kateLanguage" value="en"> </applet>
To use subtitles with Cortado. you pass it the url to the video with embedded subtitles and in the same way you pass a parameter for the subtitles track to use. The easiest way is to select the language you want via the kateLanguage parameter: