loadVideoById method
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
@override
Future<void> loadVideoById({
required String videoId,
double? startSeconds,
double? endSeconds,
}) {
return _run(
'loadVideoById',
data: {
'videoId': videoId,
'startSeconds': startSeconds,
'endSeconds': endSeconds,
},
);
}