youtube-javascript-api

I get a 500 error when I add 'madeForKids' parameter to 'youtube.liveBroadcasts.insert' API

妖精的绣舞 提交于 2021-02-08 05:18:38
问题 I have one question about how to use 'madeForKids' in 'youtube.liveBroadcasts.insert' API. When I don't use this parameter, the user interface of youtube will pop up a window to let me choose wether it is made for kids. I don't want it to show this window. I want to set this value with API. But when I added this parameter, it will always response a 500 error. My codes is based on JS as follows: this.youtube.liveBroadcasts.insert( { auth: this.oauth2Client, part: "snippet,contentDetails,status

I get a 500 error when I add 'madeForKids' parameter to 'youtube.liveBroadcasts.insert' API

狂风中的少年 提交于 2021-02-08 05:18:12
问题 I have one question about how to use 'madeForKids' in 'youtube.liveBroadcasts.insert' API. When I don't use this parameter, the user interface of youtube will pop up a window to let me choose wether it is made for kids. I don't want it to show this window. I want to set this value with API. But when I added this parameter, it will always response a 500 error. My codes is based on JS as follows: this.youtube.liveBroadcasts.insert( { auth: this.oauth2Client, part: "snippet,contentDetails,status

android webview youtube embed video autoplay not working

若如初见. 提交于 2021-02-04 18:08:39
问题 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 void onPageFinished(WebView view, String url) { webView.loadUrl("javascript:(function() { document.getElementsByTagName('video')[0].play(); })()"); } }); i also try to append autoplay in URL but not working //webView.loadUrl("http://youtube.com/embed/oY2OxMpCUVY?autoplay=1"); my web settings `

android webview youtube embed video autoplay not working

谁说我不能喝 提交于 2021-02-04 18:01:10
问题 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 void onPageFinished(WebView view, String url) { webView.loadUrl("javascript:(function() { document.getElementsByTagName('video')[0].play(); })()"); } }); i also try to append autoplay in URL but not working //webView.loadUrl("http://youtube.com/embed/oY2OxMpCUVY?autoplay=1"); my web settings `

Why is the YouTube api search returning different results from different servers?

ぐ巨炮叔叔 提交于 2021-01-27 15:58:07
问题 We've noticed the search results returned from the v3 search api are different depending on the location of the server. I've confirmed the code is exactly the same and when I run a test using the try-it section of the api documentary website on the different server the results are different as well. Does anyone know why? https://developers.google.com/youtube/v3/docs/search/list#try-it 回答1: That's normal, just as you'd expect from YouTube's web search, depending on your login and location, it

Accessing elements from player.getIframe() object?

隐身守侯 提交于 2020-08-06 06:42:07
问题 As per https://developers.google.com/youtube/iframe_api_reference player.getIframe():Object This method returns the DOM node for the embedded <iframe>. How can I access the elements of the DOM node like I can do with the parent page's DOM, such as document.getElementById("example") ? 回答1: Here are the children under that player.getIframe():Object <iframe id="player" frameborder="0" allowfullscreen="1" title="YouTube video player" width="640" height="390" src="https://www.youtube.com/embed