Array ( [kind] => youtube#channelListResponse [etag] => "XI7nbFXulYBIpL0ayR_gDh3eu1k/5y6-lFW8UJTPmJ8iewXLMQyJsf8" [pageInfo] => Array ( [totalResults] => 1 [resultsPerPage] => 1 ) [items] => Array ( [0] => Array ( [kind] => youtube#channel [etag] => "XI7nbFXulYBIpL0ayR_gDh3eu1k/OMHI-W2ap-E8lIftvUp952RPVXc" [id] => UC_wb9FQkewAlh7i2bCB5FtQ [snippet] => Array ( [title] => Twitch [description] => [customUrl] => twitch [publishedAt] => 2013-05-07T10:33:14.000Z [thumbnails] => Array ( [default] => Array ( [url] => https://yt3.ggpht.com/a-/ACSszfFLNG0qhiqoNC0gFdyWRqJlpfihDNXh1J4qWw=s88-mo-c-c0xffffffff-rj-k-no [width] => 88 [height] => 88 ) [medium] => Array ( [url] => https://yt3.ggpht.com/a-/ACSszfFLNG0qhiqoNC0gFdyWRqJlpfihDNXh1J4qWw=s240-mo-c-c0xffffffff-rj-k-no [width] => 240 [height] => 240 ) [high] => Array ( [url] => https://yt3.ggpht.com/a-/ACSszfFLNG0qhiqoNC0gFdyWRqJlpfihDNXh1J4qWw=s800-mo-c-c0xffffffff-rj-k-no [width] => 800 [height] => 800 ) ) [localized] => Array ( [title] => Twitch [description] => ) ) [contentDetails] => Array ( [relatedPlaylists] => Array ( [uploads] => UU_wb9FQkewAlh7i2bCB5FtQ [watchHistory] => HL [watchLater] => WL ) ) [statistics] => Array ( [viewCount] => 1439918 [commentCount] => 0 [subscriberCount] => 7276 [hiddenSubscriberCount] => [videoCount] => 63 ) ) ) )
var player; function onYouTubeIframeAPIReady()
{ player = new YT.Player('player',{ videoId:'<?php echo''.$fulluri2.'' ; ?>',
playerVars: { autoplay: 1, html5: 1, theme: "light", modesbranding: 0,
color: "white", iv_load_policy: 3, showinfo: 0, controls: 2, 'wmode':'opaque',<?php echo ''.$list.''; ?>}, }); }
var tag = document.createElement('script');tag.src = "//www.youtube.com/player_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
$live ='https://www.googleapis.com/youtube/v3/search?part=snippet&type=video&eventType=live&channelId='.$fullname666.'&order=date&key=';
<a class="ytp-youtube-button ytp-button yt-uix-sessionlink" target="_blank" data-sessionlink="feature=player-button" data-visual-id="7" href="https://www.youtube.com/watch?v=X2gcLUZ7qnw" title="Смотреть это видео на youtube.com"><svg height="100%" version="1.1" viewBox="0 0 67 36" width="100%">................
var player; function onYouTubeIframeAPIReady()
{ player = new YT.Player('player',{ videoId:'<?php echo''.$fulluri2.'' ; ?>',
playerVars: { autoplay: 1, html5: 1, theme: "light", modesbranding: 0,
color: "white", iv_load_policy: 3, showinfo: 0, controls: 2, 'wmode':'opaque',<?php echo ''.$list.''; ?>}, }); }
var tag = document.createElement('script');tag.src = "https://www.youtube.com/player_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=25&playlistId=UUKonxxVHzDl55V7a9n_Nlgg&key=тут ключ
https://www.googleapis.com/youtube/v3/channels?part=statistics,snippet,contentDetails&.............&key=ключ
$fff2 ='https://www.googleapis.com/youtube/v3/search'.$region.'&'.$vpoisk.'&key=тут ключ, получаем после регистрации'.$rating.'&type=video&'.$time.'&part=snippet&safeSearch=none'. $kolisestvo.'
';
locris2= '<span onclick="player.loadVideoById(\''+loc+ '\', 0);return false"><img src="https://i1.ytimg.com/vi/'+ locris + '/default.jpg" align="left" width="23%" height="8%" ></span>' };
<div id="player" class="Дополнительный дизайн плейера" ></div>
var player; function onYouTubeIframeAPIReady()
{ player = new YT.Player('player',{ videoId:'<?php echo''.$fulluri2.'' ; ?>',
playerVars: { autoplay: 1, html5: 1, theme: "light", modesbranding: 0,
color: "white", iv_load_policy: 3, showinfo: 0, controls: 2, 'wmode':'opaque',<?php echo ''.$list.''; ?>}, }); }
var tag = document.createElement('script');tag.src = "https://www.youtube.com/player_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);