Interface: shakaExtern.TextDisplayer

An interface for plugins that display text.
Implementations:
Extends:
Source:

Extends

Methods

(export) append(cuesnon-null)

Append given text cues to the list of cues to be displayed.
Parameters:
Name Type Description
cues Array.<!shaka.text.Cue> Text cues to be appended.
Source:

(export) destroy() → (non-null) {Promise}

Destroys the object, releasing all resources and shutting down all operations. Returns a Promise which is resolved when destruction is complete. This Promise should never be rejected.
Overrides:
Source:
Returns:
Type
Promise

(export) isTextVisible() → {boolean}

Returns true if text is currently visible.
Source:
Returns:
Type
boolean

(export) remove(start, end) → {boolean}

Remove cues in a given time range.
Parameters:
Name Type Description
start number
end number
Source:
Returns:
Type
boolean

(export) setTextVisibility(on)

Set text visibility.
Parameters:
Name Type Description
on boolean
Source:

Type Definitions

Factory

A factory for creating a TextDisplayer.
Type:
  • function(new:shakaExtern.TextDisplayer)
Source: