Fork me on GitHub

Opened Captions

This is the very basic Opened Captions tech demo. If the server is properly connected to a live caption stream then you should start to see text streaming across the three windows below.

What's happening is that your browser is getting content updates from the server located in the address you just typed into your web browser. That server is linked to a caption stream (maybe the stream is coming from a TV directly, or maybe it is coming from another Opened Captions server elsewhere in the universe, like the one on openedcaption). The point is that the words have somehow wound up right in front of you.

Right now there are three types of events, which are represented by the three windows.

The first window shows the result of the "content" event. As soon as the characters are typed in by C-SPAN staff, they are broadcast by Opened Captions and rendered in your browser. These are useful for a more "fluid" feeling.

The second window shows the result of the "word" event. The server buffers the content until it notices whitespace, at which point it broadcasts the fact that a new word has been spoken.

The third window shows the "line" event. The server buffers the content until it notices a line break, which would on a TV would result in a new closed captioning line.

This last part is REALLY important. You can have this exact page, with a streaming transcript feed, serving from localhost, in under five minutes without relying on anything but the Internet. Just go to the github page.

Opened Captions was developed by Dan Schultz (@slifty) a 2012 Knight-Mozilla Fellow graciously hosted by The Boston Globe.