While this isn't exposed directly in markup, some platform media frameworks can provide indication that a caption track is a closed caption. Expose such a flag on TextTrack and platforms can show a different UI if they want to.
<rdar://problem/13147063>
Created attachment 186455 [details] Patch
Comment on attachment 186455 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=186455&action=review A little strange to land just the patch that adds the data, but OK if you will follow up soon. > Source/WebCore/html/track/TextTrack.cpp:110 > + , m_closedCaption(false) Should be named m_isClosedCaption. > Source/WebCore/html/track/TextTrack.h:113 > + void setIsClosedCaption(bool c) { m_closedCaption = c; } I’d name the local variable “isClosedCaption” rather than c.
Committed r141840: <http://trac.webkit.org/changeset/141840>