Is it mandatory to use the Google module? You will not get much flexibility when making changes.
Why not use the YouTube API JSON response ? This way you can have full flexibility in getting the video you want using JavaScript.
JSON : https://gdata.youtube.com/feeds/api/users/tomdesigner777/uploads?v=2&alt=jsonc&max-results=5
Update
, YouTube. :
$(document).ready(function() {
var randNumber = RandNo(1,5);
$.ajax({
type: "POST",
url: "https://gdata.youtube.com/feeds/api/users/tomdesigner777/uploads?v=2&alt=jsonc&max-results=5",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "jsonp",
success: function(result) {
var data = result.data;
$("#yt").html("<iframe width='560' height='315' src='http://www.youtube.com/embed/" + data.items[randNumber].id + "' frameborder='0' allowfullscreen></iframe>");
}
});
});
function RandNo(min,max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
: http://jsfiddle.net/sbhomra/kCSsX/