I am using iframe to embed youtube videos to my wordpress website. It does pretty nice job with that, blocking it if i click dismiss to the consent, and allowing it when i click accept all.
But, i am using Youtube’s API to pause a Revolution Slider’s Slider when the Youtube Video is playing so it dont swap slider by itself when user is watching the video. And my issue here is that that code i have wrote is working only the first time of page load. If i want to make it work again i need to click dismiss on the cookies, the plugin correctly automaticaly refresh the page, and then on the video place i see that nice text “Click to accept marketing cookies and enable this content” if i click that, and accept the cookies, the video appears, and my code works again. But after i refresh the page by myself, the code does not work, so i need to do that again, dismiss, and then accept, then it works again. Is there anything that i am missing here?
regards
]]>Calls in question are for:
https://www.youtube.com/iframe_api
https://www.youtube.com/s/player/*/www-widgetapi.vflset/www-widgetapi.js
Any suggestions?
]]>Youtube has a membership API so i have members who donate at YouTube giveing them special access. I have way more members over there than have contacted me to update their membership at my site. So i want to automate this process.
I also want to give those members or others who want to buy it directly from the site special access to the game servers. So having someone’s STEAM ID number becomes important to provide this service. Generating XML files that i can refer the game servers to so that the very second they buy the option its active.
We own computers there shouldn’t be human interaction at every step of every process.
I realize I am asking for new or custom features for broad products. If i need to pay for custom work i will as long as if we call it custom it remains mine and not I pay for development everyone else gets its free.
]]>I get missingRequiredParameter
error when I use this setting Show scheduled live videos (adds a quota unit cost of 100)
<!-- YouTube Live debugging:
EmbedYoutubeLiveStreaming::__set_state(array(
'channelId' => 'UC9UC1WtMRp1JAg7jYWJaGSQ',
'API_Key' => 'hidden but it is correct as it works for other things',
'jsonResponse' => '{
"error": {
"errors": [
{
"domain": "youtube.parameter",
"reason": "missingRequiredParameter",
"message": "No filter selected. Expected one of: chart, idParam, myRated, id",
"locationType": "parameter",
"location": ""
}
],
"code": 400,
"message": "No filter selected. Expected one of: chart, idParam, myRated, id"
}
}
',
'objectResponse' =>
(object) array(
'error' =>
(object) array(
'errors' =>
array (
0 =>
(object) array(
'domain' => 'youtube.parameter',
'reason' => 'missingRequiredParameter',
'message' => 'No filter selected. Expected one of: chart, idParam, myRated, id',
'locationType' => 'parameter',
'location' => '',
),
),
'code' => 400,
'message' => 'No filter selected. Expected one of: chart, idParam, myRated, id',
),
),
'arrayResponse' =>
array (
'error' =>
array (
'errors' =>
array (
0 =>
array (
'domain' => 'youtube.parameter',
'reason' => 'missingRequiredParameter',
'message' => 'No filter selected. Expected one of: chart, idParam, myRated, id',
'locationType' => 'parameter',
'location' => '',
),
),
'code' => 400,
'message' => 'No filter selected. Expected one of: chart, idParam, myRated, id',
),
),
'errorMessage' => 'No filter selected. Expected one of: chart, idParam, myRated, id',
'errorArray' =>
array (
0 =>
array (
'domain' => 'youtube.parameter',
'reason' => 'missingRequiredParameter',
'message' => 'No filter selected. Expected one of: chart, idParam, myRated, id',
'locationType' => 'parameter',
'location' => '',
),
),
'isLive' => NULL,
'queryData' =>
array (
'key' => 'hiding',
'part' => 'id,snippet',
'id' => NULL,
),
'getAddress' => 'https://www.googleapis.com/youtube/v3/',
'getQuery' => 'key=hiding&part=id%2Csnippet',
'queryString' => 'https://www.googleapis.com/youtube/v3/videos?key=hiding&part=id%2Csnippet',
'part' => 'id,snippet',
'eventType' => 'upcoming',
'type' => 'video',
'subdomain' => 'www',
'default_embed_width' => '560',
'default_embed_height' => '315',
'default_ratio' => 1.77777777777777767909128669998608529567718505859375,
'embed_code' => ' <div id="wpYouTubeLive" width="720" height="480"></div>
<script>
var wpYTPlayer;
function onYouTubeIframeAPIReady() {
wpYTPlayer = new YT.Player(\'wpYouTubeLive\', {
videoId: \'\',
playerVars: {
\'autoplay\': 1,
\'rel\': 1 },
events: {
\'onReady\': wpYTonPlayerReady,
\'onStateChange\': wpYTonPlayerStateChange
}
});
}
</script>
',
'embed_autoplay' => 'true',
'embed_width' => '720',
'embed_height' => '480',
'show_related' => 'false',
'live_video_id' => NULL,
'live_video_title' => NULL,
'live_video_description' => NULL,
'live_video_publishedAt' => NULL,
'live_video_thumb_default' => NULL,
'live_video_thumb_medium' => NULL,
'live_video_thumb_high' => NULL,
'resource_type' => 'live',
'uploads_id' => NULL,
'channel_title' => NULL,
'completed_video_id' => '',
'resource' => 'videos',
))
-->
]]>I mainly use YouTube videos on my site.
I noticed the option YOUTUBE API, in which case do i have to activate this option ?
If i need an API where do i have to add it?
Thanks!
]]>With the new version of the plugin i have problem with all links which are from YouTube. All links are ok, but plugins shows me message:
Log: (Using YouTube API)
403 Forbidden
Unknown YouTube API response received.
—
domain: usageLimits
reason: accessNotConfigured
message: Access Not Configured. YouTube Data API has not been used in project XXX before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=XXX then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
extendedHelp: https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=XXX
Link is broken.
I have everything configured, before update was everything fine. How i can fix it?
]]>]]>Log: (Using YouTube API)
403 Forbidden
Unknown YouTube API response received.
—
domain: usageLimits
reason: accessNotConfigured
message: Access Not Configured. YouTube Data API has not been used in project 341480211051 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=341480211051 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
extendedHelp: https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=341480211051Link is broken.
Accept Request Referrers:
*.tefpoe.com/*
tefpoe.com/*
Any idea on what I’m doing wrong here?
]]>regards
]]>