Subtitle Type
frametrail/player/types/Subtitle/type.js:6
I am the type definition of a single Subtitle.
Subtitles display in a separate layer on top of the video.
Subtitles are managed by the SubtitlesController.
Item Index
Methods
Attributes
Methods
removeFromDOM
()
I remove my DOM element (Subtitle/subtitleElement from the DOM.
I am called when the single Subtitle is to be deleted.
renderInDOM
()
I render my DOM elements (Overlay/timelineElement and Overlay/overlayElement) into the DOM.
I am called, when the Overlay is initialized. My counterpart ist Overlay/removeFromDOM.
setActive
()
When I am scheduled to be displayed, this is the method to be called.
setInactive
()
When I am scheduled to disappear, this is the method to be called.
Attributes
subtitleElement
HTMLElement
I hold the subtitleElement (a jquery-enabled HTMLElement), which indicates my start and end time.