Error in uploading Video to Youtube in Iphone - iphone

I am trying to upload a video to Youtube using GData and I have been quite successful in doing so.
PROBLEM
I have run into a problem in passing different category names, some of which work and some of which do not.
For example, when I pass the video category "Comedy" the video will upload.
But, if I pass any other category, like "Entertainment", then I receive a 400 error.
I haven't any clue why this happening.

Give correct category that Youtube Accepts

you can just check the category name from you tube site where we upload the videos.

you can see the category dropbox in your youtube profile where you can select deferent category like Comedy ,education,Entertainment,gaming,Music ,sport
Note: you have give same category name which are displayed in category dropbox in your youtube profile

Related

How to add thumbnail to facebook scheduled LIVE VIDEO using API

I want to add thumbnail to facebook LIVE VIDEO using graph api. I saw some websites able to do that , they can add thumbnail to live video. there is no docs available to do that.
I tried to upload thumbnail to the live video attachment but not worked.
some website are able to add the thumbnail to the scheduled live video , see the above screenshot with thumbnail
As far as I know, there's no standard way of doing that. However, if you tried getting the data of the live video after the live stream has started, it will include an iframe that has the video ID in its source. So the process would be something like this:
Create the live video
Start the live stream
Get the live video data
Parse the iframe content and extract the value from the src attribute
Get the href query param from the extracted value
The last part of the href is the actual video ID that will show in feeds
Use that video ID to add the thumbnail
I would advise adding some latency before step #3 so that you can be sure that the video has been created in feeds.
USE THIS
https://developers.facebook.com/docs/graph-api/reference/live-video/#Creating
Include event_params: {"cover" : "<thumbnail url>"} in the request parameters
Cover photo won't show up in timeline. (You need to click on more and then click on events)

List of youtube videos in my app

I want to do one application in which i want to get the list of YouTube videos in one UITableView.So how to get that list of YouTube videos. Is there any api for YouTube information.
follow Youtube API
https://developers.google.com/youtube/
You can use PSYouTubeExtractor.h class It can get youtube mp4 video url and than downloading and viewing is not a problem
Here is my example https://github.com/comonitos/youtube_video
Google "youtube api"
First reference Link !

How do I get all uploaded video from my user account in iPhone

I have scenario that I would like to have all video, uploded from my user account in TableView . I don't want other video. I know about to get the video using searching keyword. But I want it which are uploaded through my account only.
I passed through many things and search on it but can't get it.
You can use flag variable which is set to true when video is uploaded from your account. And when you request for list of video pass the parameter to send list of only uploaded videos.
When I read your question I wonder 3 things:
What type of account are you referring to?
To where is the video uploaded, and how?
Do I make a correct guess if I assume that you are developing an application from where users can log in and upload videos to some kind of service?
Assuming the answer to 3 is YES, then here is a suggested answer to your question:
Create an SQLite Database in your app with a table called "Videos" or such. Let that table have columns for video ID, name, length, date uploaded and any other information that can be useful in your app. Whenever the user uploads a video from your app, insert a new row in your SQlite table with information about that video.
This table should contain the information that you need to show in the TableView of your app. When the user clicks a video or if you need to do other things like showing a thumbnail, load the video from the iPhone using ID or name stored in the table.

"Format not supported Error" While Playing youtube video within iphone application

I need to fetch the playlist for specific username.
[NSString stringWithFormat:#"http://gdata.youtube.com/feeds/api/users/%#/playlists?alt=json&v=2&orderby=published&client=ytapi-youtube-profile",strUserName];
I use the above URl to fetch the JSON feeds for the username specified. Now when I parse this I get a list of playlist under the key "entry" which happens to be the array of playlist publicly available. To fetch all videos in specific playlist I again use a formatted URL like
[NSString stringWithFormat:#"http://gdata.youtube.com/feeds/api/playlists/%#?alt=json&v=2",currentPlayList.strPlayListId];
where currentPlayList.strPlayListId is actually the playlist id provided by youtube. The actual problem is to show the youtube video on iphone without exiting the application so I have used this method
Now passing the video ID (fetched from the playlist data as JSON) in URL
NSString* mediaURL = [NSString stringWithFormat:#"http://www.youtube.com/watch?v=%#",video.strMediaId];
where video.strMediaId is the video id of the video I wish to play results in Error of "This movie format is not supported" and it happens for all the videos.I have tried using all the links that are fetched under video details from youtube. There are similar unanswered post for this. Any help/comments will be appreciated to fix the issue ?
That has nothing to do with the iPhone. When people post videos to YouTube they have to allow it to be viewed on mobile devices. If they don't you'll get that message.
You can also get that message if there was a loss of signal or something similar while downloading the video. On those cases, rerunning the video usually works after a few tries.
Also, if the video has been recently uploaded, and the mobile version hasn't been processed yet, you'll get that message.
The only thing I can suggest is to make sure you have a strong, fast WiFi connection and see if the problem still manifests itself.

upload photo and publish story using FBConnect

In my iphone app,I want to let the user upload an image to his facebook photo Album and publish a story at the same time.The story's media field contains the uploaded image's url.I successly uploaded the photo and got the result's "link" and "src_small" property.But when I use FBStreamDialog to publish the story,I got:
(source: sinaimg.cn)
At last,I find this:http://developers.facebook.com/live_status#msg_625,it says:
We no longer allow stream stories to contain images that are hosted on the fbcdn.net domain. The images associated with these URLs aren't always optimized for stream stories and occasionally resulted in errors, leading to a poor user experience. Make sure your stream attachments don't reference images with this domain. You should host the images locally.
It seems that I can't finish my job,What's your solution? thanks in advance!
you can't use that picture or the picture from facebook itself
you can upload the picture on other servers or upload it to online photo sharing like picasa
I got this functionality to work with ShareKit - it's really good:
http://www.getsharekit.com/
It's also open source, so you can see how they do it inside...
Good luck!