cuePlaylist abstract method
Queues the specified list of videos. The list can be a playlist or a user's uploaded videos feed.
When the list is cued and ready to play, the player will broadcast a video cued event (5).
list
contains a key that identifies the particular list of videos that YouTube should return.
listType
specifies the type of results feed that you are retrieving.
index
specifies the index of the first video in the list that will play.
The parameter uses a zero-based index, and the default parameter value is 0,
so the default behavior is to load and play the first video in the list.
startSeconds
specifies the time from which the first video in the list
should start playing when the playVideo function is called.
If you specify a startSeconds value and then call seekTo, then the player plays from the time specified in the seekTo() call.
If you cue a list and then call the playVideoAt function, the player will start playing at the beginning of the specified video.
Implementation
Future<void> cuePlaylist({
required List<String> list,
ListType? listType,
int? index,
double? startSeconds,
});