VidePlayer.isplaying

while (videoPlayer.isPlaying)
{
    yield return null;
}

//Done Playing
Cotton Candy Lover