loadVideoById abstract method

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

This function loads and plays the specified video.

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, if specified, then the video will start from the closest keyframe to the specified time.

endSeconds, if specified, then the video will stop playing at the specified time.

Implementation

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