Here is a basic setup of the Captions plugin displaying a DFXP captions file. Since DFXP is not supported in HTML5 yet, this setup only works in Flash:
Here are the contents of the DFXP captions file:
<tt xmlns="http://www.w3.org/2006/10/ttaf1">
<body>
<div>
<p begin="00:00:08" end="00:00:10">- Nothing is going on.</p>
<p begin="00:00:10.5" end="00:00:12.5">You liar!</p>
<p begin="00:00:13.5" end="00:00:15">Are you?</p>
<p begin="00:00:17" end="00:00:20">Violet, please!<br/>- I am not your babe!</p>
<p begin="00:00:24" end="00:00:29">You stupid cow,<br/>look what you gone and done now, ay.</p>
<p begin="00:00:34" end="00:00:36">Vi, please.<br/>- Leave me alone!</p>
<p begin="00:00:36" end="00:00:38.5">- We need to talk.<br/>- Jason, are you deaf?!</p>
<p begin="00:00:41" end="00:00:42.9">What's going on?</p>
<p begin="00:00:43" end="00:00:45">Get out there and try to salvage this!</p>
</div>
</body>
</tt>
Note that loading of the captions is subject to crossdomain loading restrictions.