nextVideo method

void nextVideo()

This function loads and plays the next video in the playlist.

If called while the last video in the playlist is being watched, and the playlist is set to play continuously (i.e. YoutubePlayerParams.loop is true), then the player will load and play the first video in the list, otherwise, the playback will end.

Implementation

void nextVideo() => invokeJavascript('next()');