setMode method

  1. @override
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
void setMode(TextTrackMode mode) {
  super.setMode(mode);
  _nativeTextTrackAPI.setMode(uid, mode);
}