youtube

Youtube iFrame API pauseVideo is undefined in UIWebView

南楼画角 提交于 2020-01-02 16:54:11
问题 I am developing an app for iPad which contains one or more youtube videos embedded in a UIWebView. I am using the Youtube iframe API. The video shows up fine and the user can use the normal controls fine. However, I want to pause the video when an external event happens. I am attempting to do this by using stringByEvaluatingJavascripFromString with "player.pauseVideo()". However, on inspection it appears that player.pauseVideo is undefined. Strangely this only appears to be a problem in the

Error while using part=“…,processingDetails” in a youtube.videos.insert() request

最后都变了- 提交于 2020-01-02 14:13:03
问题 We're developing in java 7 and YouTube Data API v3. When we are calling the upload service with "processingDetails" part, we are getting a 503 Service Unavailable Error. What are we doing wrong? If we remove it, we can upload the video just fine. But we want/need to know about processingDetails. Here is the code: YouTube.Videos.Insert videoInsert = this.youtube.videos().insert("snippet,statistics,status,processingDetails", videoObjectDefiningMetadata, mediaContent); everything else it's the

youtube link regex

雨燕双飞 提交于 2020-01-02 13:28:47
问题 im trying to make this work for all youtube links, which is working, except for youtube.com/v/videoid only watch?v= is working with this regex, any assistance is greatful. /http:\/\/(?:youtu\.be\/|(?:[a-z]{2,3}\.)?youtube\.com\/watch(?:\?|#\!)v=)([\w-]{11}).*/i 回答1: /((http:\/\/)?(?:youtu\.be\/|(?:[a-z]{2,3}\.)?youtube\.com\/v\/)([\w-]{11}).*|http:\/\/(?:youtu\.be\/|(?:[a-z]{2,3}\.)?youtube\.com\/watch(?:\?|#\!)v=)([\w-]{11}).*)/i 回答2: The website Regular Expression Library is a good source

How do I download a youtube video in iOS

安稳与你 提交于 2020-01-02 11:26:33
问题 I know how to launch a youtube video within an iOS web view, but how can I download that video to save on my iPad app? Is it possible? Do I need to use some call with a NSURLConnection object and then save the received data into the proper file format? One specific point I am unsure about is what the url to request the file would be. When viewing a video on youtube, the downloadable videos are triggered with a button, so it's not evident to me what the url would be. 回答1: You would need to

Change youtube video ID without page reloading

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-02 10:34:28
问题 This question is about scripting the main youtube site, client side from javascript. While it looks easy as a click, I found no way to change the current video by a new non in context video ID without reloading. This seems to be related with the polymer library in use, with a lot of shadow dom and some special behavior. Here is the context: I am making for my own use a bookmarklet that load videos from the reddit json api , wich supports CORS calls. So far so good, I can load many videos,

Embed a Youtube Channel into HTML with iFrame

随声附和 提交于 2020-01-02 10:26:09
问题 I'm trying to embed a Youtube channel into a HTML page. For example I take this channel address: http://www.youtube.com/aaaa I used this code: <html> <head> </head> <body> <iframe src="http://www.youtube.com/aaaa"></iframe> </body> </html> The problem is that it doesn't work. I tried with another site, and it works. What can be the problem? 回答1: The problem seems to be induced by this URL:http://www.youtube.com/aaaa. I tried some other URLs and it works. You can try some URLs easily here. Try

YouTube API Request : How could I get the Right token ( about Jim S.' code )

大城市里の小女人 提交于 2020-01-02 10:02:49
问题 I’m trying to implement the YouTube API on my codeIgniter website. I followed the Jim Saunders instructions here : and here : http://codeigniter.com/wiki/OAuth_for_Google/ (approximately the same) SO first of all, I needed to get the token secret with a request_youtube function, that function works correctly, i’ve entered my consumer key and consumer secret from google and everything is just fine. So then I’m redirected to YouTube to authorize the YouTube access, but when I’m redirected to my

YouTube API Request : How could I get the Right token ( about Jim S.' code )

大兔子大兔子 提交于 2020-01-02 10:01:20
问题 I’m trying to implement the YouTube API on my codeIgniter website. I followed the Jim Saunders instructions here : and here : http://codeigniter.com/wiki/OAuth_for_Google/ (approximately the same) SO first of all, I needed to get the token secret with a request_youtube function, that function works correctly, i’ve entered my consumer key and consumer secret from google and everything is just fine. So then I’m redirected to YouTube to authorize the YouTube access, but when I’m redirected to my

Youtube API V3 Insert Comment Issue

陌路散爱 提交于 2020-01-02 09:27:54
问题 I'm essentially using the sample code provided by the docs here but I'm getting an error that reads ArgumentError - unknown keyword: snippet . Does anyone else have this problem as well? I'm not sure if this is a valid bug but intuitively the sample code they provide should work right? properties = { 'snippet.parentId': '123', 'snippet.textOriginal': message } resource = create_resource(properties) response = service.insert_comment('snippet', resource) 回答1: Upon digging through the actual

YouTube Data API v3 - Comment threads request doesn't return all comments

房东的猫 提交于 2020-01-02 08:58:26
问题 For certain videos the call to commentThreads does not return the complete set of toplevelcomments. For example the following call only returns 16 toplevel comments when in fact the video has over 3458 total comments, and the toplevel comments are clearly more than 16. https://www.googleapis.com/youtube/v3/commentThreads?part=snippet&videoId=h_9-3Fj3ZdI&key=[KEY]&maxResults=50 I have run into this issue on a couple of Videos and in both cases the result seems to break on a comment which is in