previousVideo method

void previousVideo()

This function loads and plays the previous 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 previousVideo() => invokeJavascript('previous()');