Transmissão do YouTube

var htmlString = ""; var apiKey = 'AIzaSyDS2V2vY5HPp8LSj7XbKDJb2ssXBrmPnPw'; //https://console.developers.google.com var channelID = 'UCZeb8d4mMU82xEz0E7VNiDw'; var maxResults = 999; $.getJSON('https://www.googleapis.com/youtube/v3/search?key=' + apiKey + '&channelId=' + channelID + '&part=snippet,id&order=date&maxResults=' + (maxResults > 1 ? 1 : maxResults), function(data) { $.each(data.items, function(i, item) { var videoID = item['id']['videoId']; var title = item['snippet']['title']; var videoEmbed = "https://www.youtube.com/embed/" + videoID; htmlString += ''; }); $('.video').html(htmlString); });