cueVideoById abstract method

Future<void> cueVideoById({
  1. required String videoId,
  2. double? startSeconds,
  3. double? endSeconds,
})
inherited

This function loads the specified video's thumbnail and prepares the player to play the video. The player does not request the FLV until playVideo or seekTo is called.

videoId specifies the YouTube Video ID of the video to be played. In the YouTube Data API, a video resource's id property specifies the ID.

startSeconds specifies the time from which the video should start playing when playVideo is called. If you specify a startSeconds value and then call seekTo, then the player plays from the time specified in the seekTo() call. When the video is cued and ready to play, the player will broadcast a video cued event (5).

endSeconds specifies the time when the video should stop playing when playVideo() is called. If you specify an endSeconds value and then call seekTo(), the endSeconds value will no longer be in effect.

Implementation

Future<void> cueVideoById({
  required String videoId,
  double? startSeconds,
  double? endSeconds,
});