playVideoAt method

void playVideoAt(
  1. int index
)

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

The index parameter specifies the index of the video that you want to play in the playlist. The parameter uses a zero-based index, so a value of 0 identifies the first video in the list. If you have shuffled the playlist, this function will play the video at the specified position in the shuffled playlist.

Implementation

void playVideoAt(int index) => invokeJavascript('playVideoAt($index)');