我要上传在twitter上的视频,从Android应用程序。我已经成功上传图片和文字的Twitter。我现在用的是 twitter4j核-3.0.3.jar
库。
I have to upload a video on twitter from android app. I have successfully uploaded image and text on twitter. I am using the twitter4j-core-3.0.3.jar
library.
我试图用我用图像同样的方法上传视频,但未能上载,并得到例外code 403
和TwitterException {除了code = [2ea3c142-58dea759],状态code = 403,消息=错误创建状态,code = 189,retryAfter = -1,rateLimitStatus = NULL,版本= 3.0.3}
。
I tried uploading video using the same method I used for images, but failed to upload and got exception code 403
and TwitterException {exceptionCode=[2ea3c142-58dea759], statusCode=403, message=Error creating status., code=189, retryAfter=-1, rateLimitStatus=null, version=3.0.3}
.
我也下载twitvid SDK从http://twitvid.pbworks.com/w/page/22556292/Client%20Libraries,但即使是集成该SDK之后,我无法上传视频微博。
I also downloaded twitvid sdk from http://twitvid.pbworks.com/w/page/22556292/Client%20Libraries, but even after integrating this sdk, I could not upload video on twitter.
根据微博官方discusion线程 https://dev.twitter.com/discussions/11241 我们可以上传视频使用twitvid使用code。
As per twitter official discusion thread https://dev.twitter.com/discussions/11241 we can upload video using twitvid using that code.
由于我没有合适的SDK,我不能在这方面努力。 任何帮助上传从Android应用程序Twitter的视频就会有强烈的AP preciated。
Since I am not having a suitable sdk, I am not able to work on this. Any help to upload video on twitter from android app will be highly appreciated.
推荐答案
您不能上传视频直接到Twitter - 他们根本不支持它
You cannot upload video directly to Twitter - they simply don't support it.
下面是你必须做的,而不是。
Here's what you have to do, instead.
上传视频到第三方服务(如YouTube) 获取上传视频的公开网址 添加URL向您发送到Twitter的状态 - 例如这是我的视频 http://example.com/video123如果你愿意,你可以添加视频的缩略图作为图像附件。
If you want, you can add a thumbnail of the video as an image attachment.
相关推荐
最新文章