cue method

void cue(
  1. String videoId,
  2. {int startAt = 0,
  3. int? endAt}
)

Cues the video as per the videoId provided.

Implementation

void cue(String videoId, {int startAt = 0, int? endAt}) {
  var cueParams = 'videoId:"$videoId",startSeconds:$startAt';
  if (endAt != null && endAt > startAt) {
    cueParams += ',endSeconds:$endAt';
  }
  _updateValues(videoId);
  if (value.errorCode == 1) {
    pause();
  } else {
    _callMethod('cueById({$cueParams})');
  }
}