youtube-api

How can the “More videos” overlay on pause be removed from YouTube embed? Edpuzzle and Khan Academy somehow do it

孤街浪徒 提交于 2020-06-28 04:00:13
问题 I want to have the "More videos" overlay not show up when an embedded YouTube video is paused. I've seen other posts like this one or this one, but none have mentioned the fact that somehow Edpuzzle (e.g. https://edpuzzle.com/media/5e96205457b2f23efd7e8903) and Khan Academy are able to prevent the "More videos" (ytp-pause-overlay) from showing. Is there some exception from YouTube for educational sites? 回答1: The rel parameter is what hides the More Videos overlay, but we cannot set it because

How to remove pause menu video suggestions / related videos (class: ytp-pause-overlay) from Youtube embed

丶灬走出姿态 提交于 2020-06-27 07:17:32
问题 Youtube is showing a menu with video suggestions while my embedded video is paused. The element in the iframe has the class 'ytp-pause-overlay' How can you remove it without removing controls? 回答1: Yes it is possible. You have to use showinfo=0?ecver=2 in your iframe code. Example: <iframe src="https://www.youtube.com/embed/pV1jC37ELmQ?rel=0&showinfo=0?ecver=2" width="640" height="360"></iframe> 回答2: In case you loading your videos using Javascript YouTube Player iframe API you will need to

How to remove pause menu video suggestions / related videos (class: ytp-pause-overlay) from Youtube embed

我只是一个虾纸丫 提交于 2020-06-27 07:17:11
问题 Youtube is showing a menu with video suggestions while my embedded video is paused. The element in the iframe has the class 'ytp-pause-overlay' How can you remove it without removing controls? 回答1: Yes it is possible. You have to use showinfo=0?ecver=2 in your iframe code. Example: <iframe src="https://www.youtube.com/embed/pV1jC37ELmQ?rel=0&showinfo=0?ecver=2" width="640" height="360"></iframe> 回答2: In case you loading your videos using Javascript YouTube Player iframe API you will need to

YouTube API 3 GET last videos from specific User

情到浓时终转凉″ 提交于 2020-06-25 06:56:11
问题 I need help to retrieve YouTube videos from specific user with the new API version. I've create YouTube Data API on console.developers.google.com Both OAuth and Public API access for Browser. Before I was use this code to retrieve the latest 6 video: $feedURL = 'http://gdata.youtube.com/feeds/api/users/USERNAME/uploads?max-results=6'; $sxml = simplexml_load_file($feedURL); foreach ($sxml->entry as $entry) { $watch = (string)$media->group->player->attributes()->url; } How can I update this

Why YouTube API Scopes error happens on the Windows Server?

有些话、适合烂在心里 提交于 2020-06-23 16:00:10
问题 I am using YouTube API to get the data and for a month there is an error when I try to make a request on a Windows Server 2012 R2, (local works). Basically, before the script makes a request he updates a YouTube token in order not to perform a log on into Google Account. The function loads a pickle file with the credentials and updates them if necessary. The error happens on the line "creds.refresh(Request())" by drilling down by scopes- def main_load_page(youtube, API_VERSION, SCOPES, CLIENT

Why YouTube API Scopes error happens on the Windows Server?

牧云@^-^@ 提交于 2020-06-23 15:59:11
问题 I am using YouTube API to get the data and for a month there is an error when I try to make a request on a Windows Server 2012 R2, (local works). Basically, before the script makes a request he updates a YouTube token in order not to perform a log on into Google Account. The function loads a pickle file with the credentials and updates them if necessary. The error happens on the line "creds.refresh(Request())" by drilling down by scopes- def main_load_page(youtube, API_VERSION, SCOPES, CLIENT

Error Status 400 When Uploading to Youtube API v3

偶尔善良 提交于 2020-06-16 17:58:26
问题 I keep getting an error when trying to POST to Youtube v3 API. I'm trying to get a response URI, so I can upload a Youtube video. This is the documentation I'm referencing: https://developers.google.com/youtube/v3/docs/videos/insert#go Does anyone know what I'm doing wrong? Error log is below. My code: axios({ method: 'POST', baseURL: 'https://www.googleapis.com', url: '/upload/youtube/v3/videos', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', 'Content-Length':

Know if a video Youtube is unavailable with the API

情到浓时终转凉″ 提交于 2020-06-14 06:25:53
问题 Via the Youtube API, how can I detect if a video Youtube is unavailable (ex : https://www.youtube.com/watch?v=5nRZlcB2jPY) ? Thanks 回答1: You would make an API call for the video status. https://www.googleapis.com/youtube/v3/videos?id=VIDEOID&part=status&key=APIKEY Then check the uploadStatus in the json result: "status": { "uploadStatus": "processed", "privacyStatus": "public", "license": "youtube", "embeddable": true, "publicStatsViewable": true } 回答2: This is also partially possible without

Share private video to some google accounts through API

六月ゝ 毕业季﹏ 提交于 2020-06-11 05:28:36
问题 I'm trying to figure out wheter it is possible to have a private video on youtube that I could share with particular Google Accounts through API. I would have a separate web application that would have a Google signup and after signup I would enable that Google Account to watch my private video. Ideally I would also want to embed the video to the web application (but I think I can do this rather easily if I'm an owner of the video). 回答1: Ispossible to have a private video on YouTube that I

Return upcoming YouTube API V3 video schedule date?

ⅰ亾dé卋堺 提交于 2020-05-29 12:42:54
问题 I'm looking to return the schedule date for a stream in YouTube. Example of scheduled streams: YT Link: https://www.youtube.com/channel/UCP7jMXSY2xbc3KCAE0MHQ-A This is my code to pull this data out using the YouTube v3 API: $videos = $this->yt->searchAdvanced(array( 'q' => '', 'part' => 'snippet', 'channelId' => $this->channel_id, 'eventType' => $event_type, // Upcoming 'type' => 'video', 'order' => 'date', 'maxResults' => $max, 'key' => YOUTUBE_API_KEY )); Here is the object that is