The YouTube JavaScript Player API allows users to control the YouTube chromeless or embedded video players via JavaScript.
3
votes
1answer
46 views
Vue.js 2 - vue-youtube-embed how to detect video ended state?
I'm using vue-youtube-embed to use the Youtube API in my vuejs component.
Here is my code:
<script>
export default {
data() {
return {
videoId: 'HjxYvcdpVnU',
videoLaunched: ...
0
votes
1answer
21 views
Angular2 dynamic Facebook Like, Twitter follow or youtube subscribe not working
I want to add simple social buttons to follow / like / subscribe on my angular2 page.
I am getting the page name from an API call, so the app is using a canActivate guard service first before ...
0
votes
0answers
18 views
ytdl - Download audio file
i'm using ytdl-core in a meteor app. For the moment, I can receive the infos of a video, but now, I'm trying to download it but I'm getting lost with the ytdl-core doc .. I'm trying to pipe the stream ...
6
votes
4answers
18k views
How to fix “If playback doesn't begin shortly, try restarting your device” using Youtube iFrame API on iPad?
I've created a little YouTube streaming script which randomly plays YouTube music videos or from a queue. It's worked fine for months up until this week in which it doesn't seem to want to load the ...
1
vote
1answer
44 views
iOS YTPlayerView Strange Behaviour
I have noticed a strange behaviour of YTPlayerView on iOS, that is, on a iPhone 6s Plus screen portrait with a player both height and width less than 500 but in 16:9 ratio, the auto-selected quality ...
0
votes
2answers
461 views
Maximum play time for youtube video player playlist
I have not been able to find any documentation if Youtube implements a timeout (max play) feature into its javascript / flash players. Has anyone ran into this?
My team is running into an issue ...
0
votes
0answers
32 views
Youtube iframe api enablejsapi does not work in playerVars
I am checking the enablejsapi=1 option in the player's playerVars as given here
But this does not work.
I created a plnkr here
Here is my html:
<!DOCTYPE html>
// 1. The <iframe> (...
5
votes
3answers
3k views
Pause YouTube iframe embed when playing another
I have multiple YouTube iFrames embedded on a page. If one of the movies is already playing, and a user then decides to start playing a different movie, is it possible to stop playing the first movie ...
0
votes
2answers
144 views
YouTube API v3 Channels: list method doesn't work for some channels names
For some reason I can't get any information for some channels via API. For example this channel: http://youtube.com/vithorvascovv and API request
GET https://www.googleapis.com/youtube/v3/channels?...
0
votes
0answers
26 views
Autoplay Multiple Youtube Video When Scrolled to
I have a long article with several youtube videos. I'd like them to play automatically when the user scrolls to them.
So I followed the instructions from this thread on how to autoplay on scroll, ...
66
votes
11answers
86k views
How to pause a YouTube player when hiding the iframe?
I have a hidden div containing a YouTube video in an <iframe>. When the user clicks on a link, this div becomes visible, the user should then be able to play the video.
When the user closes the ...
0
votes
0answers
40 views
Youtube Iframe api player.getPlayerState and player.getCurrentTime is not a function
I am following the youtube iframe api reference
Here is how I initialize my player(in onYouTubeIframeAPIReady)
player = new YT.Player('player', {
playerVars: {
...
-1
votes
0answers
18 views
Youtube embed video shows a black background after loop
I have embedded a youtube video inside a div and the video is supposed to be played on loop. The issue i find is that once the video finishes there is a black background which stays before it loops. ...
0
votes
0answers
18 views
Can we create a video app by using youtube api?
Can we create a video app for android using youtube api . so that user can play and search video inside my app itself or its illegal to do like that .
0
votes
2answers
62 views
When i insert a iframe youtube video doesn't work
I try to insert a youtube video through the Youtube iframe API, but now doesn't work appear "An error occurred Please try again later".
here is my code:
<html>
<head>
<...
2
votes
2answers
3k views
YT is not defined - Uncaught ReferenceError: [youtube api]
Removed Unwanted Code DEMO
Hey,
I am implementing Youtube Video Player Api and i see some sort of error in console.
any how the video plays perfectly, but i want to know why the error is? if i keep ...
0
votes
0answers
30 views
Youtube iFrame API cover image — for Youtube Development team
This is more for Youtube developers than the populace at wide since the API documentation mentions their developers watch here.
Can you please add an option to the Youtube iframe API to allow the ...
2
votes
4answers
1k views
Youtube upload API and cordova / phonegap
I am writing a cordova app that lets the user record a video and upload it to youtube via their api.
If I use a file input and access the file via
$('#file').get(0).files[0]
I receive a file object ...
1
vote
1answer
34 views
youtube ask for channel selection while authenticating
I am using javascript sdk to authenticate google. In my webapp I am trying to upload video to youtube.
A youtube account might have multiple channels and I want to select the channel and send the ...
1
vote
1answer
352 views
YouTube API v3 error on auth “X-Frame-Options is set to SAMEORIGIN”
Alright so I've tried to run the youtube samples from the google developer docs (specifically authorizing_requests)
I downloaded this repo (youtube/api-samples)
I created a new project in the google ...
50
votes
13answers
57k views
Getting Error 403: Access Not Configured. Please use Google Developers Console to activate the API for your project
I am trying to use the Youtube API to pull in all the videos from a particular channel. I set up the project in Google Developers Console and got an API browser key. I enabled YouTube Data API v3 and ...
0
votes
0answers
63 views
How do I make this youtube player appear multiple times on my single page website made using Node and fullPage.js?
the youtube player code attached at the bottom is from http://www.labnol.org/internet/youtube-audio-player/26740/ and I have used it successfully on a site i'm building.
the problem is that it only ...
0
votes
1answer
20 views
Youtube API on clicking a different times does BUFFERING (state=3) always occur?
I am using the Youtube API and was wondering if anyone knew if when you click the youtube player's time (at the bottom of the video) to progress/or go back to an earlier point in the video if the ...
0
votes
0answers
28 views
youtube video upload from my site
I have spent hours for reading this google youtube V3 api, but still I am confused.
My requirement is "I have a website where user can upload videos, I just want to upload those video in youtube ...
0
votes
1answer
433 views
Youtube video api in JavaScript
I have used the YouTube video API in JavaScript
And play pause and stop events I have used
Now I got total current time which total watched time,
but my main problem is this:
Watch a video for a ...
4
votes
2answers
4k views
YouTube signature decipher with an working example for VB.Net
I know there are many projects and I could use them. But I really want to get it running without dependencies in my VB.Net project.
So what I try to do is creating a Youtube downloader. It works ...
4
votes
2answers
2k views
How to get the mp4 url for Youtube videos using Youtube v3 API
How do I get the full mp4 url to play the video from it's actual location in my application using some other source except Youtube. The gdata/youtube API has been deprecated so I am having trouble. ...
29
votes
4answers
78k views
Embed YouTube Video with No Ads
I'm embedding YouTube videos in a widget (http://www.betterdonatebutton.com) to help non-profits raise money. Unfortunately, some of them are not technically inclined enough to turn off ads that ...
1
vote
2answers
3k views
Simple Chromeless Youtube Embed - How?
Question:
Please, can someone explain exactly, clearly, how I can embed a simple Chromeless Youtube player in my page, and control the source of that player dynamically?
Question Explained:
I'm ...
0
votes
2answers
146 views
Execute JavaScript function when YouTube video is played (using YouTube API)
I'm embedding a youtube video on my page using the following code:
<iframe width="400" height="300" id="newvid" src="http://www.youtube.com/embed/url?modestbranding=1&showinfo=0&feature=...
1
vote
1answer
110 views
Youtube API Dynamic iFrame
I'm trying to load a youtube video dynamically (iframe is generated on click after the page has loaded) with the ability to control the playback using the Youtube API.
What I have found is that if ...
2
votes
2answers
109 views
Override playerVars controls:attrib dynamically for videos in youtube API
I have below JS code for youtube API -
<html>
<script>
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var ScriptTag = document....
0
votes
0answers
17 views
Is there a way to use the YouTube.search.list API to return in order of Live Event broadcast time?
When I use YouTube.search.list to get a list of videos, the order: date option only seems to put them in order of the publishedAt attribute. I'd like them to be in order of when the Live Stream began ...
-1
votes
1answer
23 views
is it allowed and possible to provide user upload videos to youtube?
I want to create video upload for my website ,can I do some trick like provide upload video button and when user clicked button video will upload to youtube?(because I heard that storing video on ...
2
votes
3answers
747 views
Can not insert multiple videos into a playlist - youtube api v3
I am trying to add multiple videos to a playlist, but only one video is added to the playlist. I can successful create a playlist and insert a video to the playlist, but can not insert multiple videos ...
0
votes
1answer
42 views
Google Spreadsheet App script to refresh the access token
I am using the below HTTP request to retrieve data from my associated YouTube channel.
https://www.googleapis.com/youtube/analytics/v1/reports?ids=channel%3D%3D{MY_ASSOCIATED_CHANNEL_ID}&start-...
0
votes
1answer
28 views
YouTubeAnalytics.Reports.query : Authentication to associated channel
I have managed to arrange the sample code available in the google app script document; to retrieve data from my associated YouTube channel.
function myFunction() {
var channelId ={MY ASSOCIATED ...
0
votes
0answers
24 views
youtube v3 get playlists but not uploads
I want to retrieve playlists and than videos in a playlist in another request
channel > playlists > videos
by playlists i mean(Insider tips for Agency success, women techmark..., public speaking...) ...
1
vote
2answers
417 views
Get video feeds using Youtube API v3
We have a website which displays our YouTube video channels and favourite videos in our channel, etc. We were using Youtube Data API v2.0 to fetch data.
for example:
https://gdata.youtube.com/...
2
votes
3answers
4k views
android webview youtube embed video autoplay not working
i am not able to autoplay my video please help in this.
my sdk version
android:minSdkVersion="14"
android:targetSdkVersion="19" />
i tried to put java script as specifed in code:
public ...
0
votes
1answer
5k views
Youtube Video Upload using javascript
I am trying to make a browser based youtube video uploader using javascript.
I am using sample code from here
After authentication when I upload video, POST request to youtube server never ends and ...
0
votes
0answers
72 views
YouTube Auto-Like script not working until I refresh
I am not the author of the code and have no prior experience with code, the credits go to the original author, JoeSimmons. So the problem I am having is the code works fine, but it only works when I ...
1
vote
2answers
714 views
onYoutubePlayerAPIReady does not fire
In my index.html I have
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/player_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag....
6
votes
4answers
11k views
Youtube player api with loop
I am struggling with setting up the loop for youtube videos using youtube player api.
The problem is that the video is not running under a loop.
Here is my code
var tag = document.createElement('...
0
votes
0answers
60 views
YouTube API Quota - Multiple accounts
Version 3 of the YouTube Data API has concrete quota numbers listed in the Google API Console where you register for your API Key. You can use 30,000 units/second/user and 1,000,000 per day. Projects ...
1
vote
1answer
516 views
Youtube v3 API - pageToken doesn't work
I'm struggling a bit with the Youtube v3 API, specifically the pageToken concept. It's one I'm familiar with from dozens of other APIs, but this one doesn't seem to work.
I make a search request and ...
0
votes
0answers
39 views
Youtube api, wmg error
I have developed an app that uses youtube api to show videos with javascript.
When I run it on my pc through a browser, everything works well and I can see all videos I want, while if I compile it for ...
2
votes
3answers
4k views
Getting current time of embedded iframe youtube player?
Here i have tried as follows:
HTML
<iframe id="player" style="position: relative; height: 220px; width: 400px" src="http://www.youtube.com/embed/7a_CVFRqYv4?rel=0&enablejsapi=1"></...
1
vote
1answer
57 views
How to display youtube video with advertisement and skip button functionality?
I succeed in displaying a youtube video on my asp.net web application page but I want to display the advertisement also present in that same video. Though the video which i displayed on web ...
0
votes
0answers
113 views
YouTube API - Hide related videos not working via rel=0
I have number of youtube videos playing one after another in slider kind of display, I want to hide the related videos when a video is being completed and is transitioning to another video.
I made ...