loadVideoByUrl method
This function loads and plays the specified video.
mediaContentUrl
specifies a fully qualified YouTube player URL in the format
http://www.youtube.com/v/VIDEO_ID?version=3.
startSeconds
specifies the time from which the video should start playing.
If startSeconds is specified, the video will start from the closest keyframe to the specified time.
endSeconds
specifies the time when the video should stop playing.
Implementation
@override
Future<void> loadVideoByUrl({
required String mediaContentUrl,
double? startSeconds,
double? endSeconds,
}) {
return _run(
'loadVideoByUrl',
data: {
'mediaContentUrl': mediaContentUrl,
'startSeconds': startSeconds,
'endSeconds': endSeconds,
},
);
}