jQuery: running youtube videos in for loop, plays last video
<p>I have <code>jQuery</code> function as</p>

<pre><code>function play_queue_video() {
    var queue_videos = $('.queue_list .view-item');
    for (var i = 0; i &lt; queue_videos.length; i++) {
        console.log('id - ' + queue_videos[i].id);
        play_video(queue_videos[i].id, true);
    }
}
</code></pre>

<p>If I have <code>n</code> videos, it plays the last video, because it just loops and goes to last</p>

<p><strong>Needed</strong>
- What can I do to make sure each video plays for the duration it is needed to?</p>
