10-28-2011 10:44 AM
I am using Youtube Api
public static String uploadVideo(String file, String mimeType, int count,
BlogAccount account, String postContent, String postTitle)
throws Exception {
YouTubeService youtubeService = getYouTubeService(
account.getUserName(), account.getPassword());
VideoEntry resultEntry = startVideoUpload(postTitle, file, mimeType,
count, youtubeService, account.getUserName());
int start = resultEntry.getId().indexOf("video");
String url = resultEntry.getId().substring(start + 6);
StringBuffer videoTag = prepareVideoTag(url);
// Append the <img> tags to the begining of the post
postContent = videoTag + "<br>" + postContent;
return postContent;
}
but eclips given some compile error and Packaging errorss..
Can any one Suggest me that how to Upload videos to Youtube in another way...
10-28-2011 11:33 AM
10-28-2011 11:56 AM
10-28-2011 04:30 PM
If the class is within this website:
http://www.blackberry.com/developers/docs/7.0.0api
It will work (given that the APIs need to be used correctly...)