Show:

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.

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

activeState

Boolean

I store my state, wether I am "active" (visible) or not active (invisible).

data

I hold the data object of a single Subtitle, which is stored in the Database.

subtitleElement

HTMLElement

I hold the subtitleElement (a jquery-enabled HTMLElement), which indicates my start and end time.