setMode method

  1. @override
  2. @mustCallSuper
void setMode(
  1. TextTrackMode mode
)
override

Sets mode of the text track, represented by a value from the following list:

Remarks:

  • A disabled track is not displayed and exposes no active cues, nor fires cue events.
  • A hidden track is not displayed but exposes active cues and fires cue events.
  • A showing track is displayed, exposes active cues and fires cue events.

Implementation

@override
@mustCallSuper
void setMode(TextTrackMode mode) {
  _mode = mode;
}