Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Trusted Contributor
Posts: 224
Registered: ‎08-09-2011
My Device: 9550
My Carrier: BBprogrammer

how to upload Video

 

 

 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... 

Highlighted
Developer
Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.3.2.858, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: how to upload Video

Based on what I can tell, the Google Data APIs Client Library is J2SE which is not supported on BlackBerry, which is J2ME. You would need to parse the library (which the source code is avaliable) to J2ME in order to use it on BlackBerry.
---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Trusted Contributor
Posts: 224
Registered: ‎08-09-2011
My Device: 9550
My Carrier: BBprogrammer

Re: how to upload Video

Exatly,

can you give me the any documentatin to follow J2ME
Developer
Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.3.2.858, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: how to upload Video

If the class is within this website:

http://www.blackberry.com/developers/docs/7.0.0api/index.html

 

It will work (given that the APIs need to be used correctly...)

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.