<li class="g-view" data-video="abcdefghij">

<li class="g-view" data-video="abcdefghij">
$('li').click(function() {
    $('#leftiframe').attr('src',$(this).data('video'));
});

$('li').click(function() {
    $('#leftiframe').attr('src','https://youtube.com/embed/v='+$(this).data('video'));
});

https://stackoverflow.com/questions/7853904/how-to-detect-when-a-youtube-video-finishes-playing

http://jsfiddle.net/t24U2/

http://jsfiddle.net/satpalsingh/V4ehv/2/