使用Java应用程序将视频/ mp4上传到twitter [英] Uploading Videos/mp4 to twitter using Java Application

查看:267
本文介绍了使用Java应用程序将视频/ mp4上传到twitter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用twitter4j.jar成功地将图像和消息在java应用程序中发布到twitter4j.jar,参考这个链接 http://javapapers.com/core-java/post-to-twitter-using-java/ ,现在我正在把视频/ mp4 / chunk上传到twiiter。 p>

我讨论了这个话题,发现了很多答案 -
有些帖子表示不可能,有人说可能通过休息API,有些用twitvid API,有些tweetinvi( http://tweetinvi.codeplex.com/discussions/640413



我的问题是:



1。)可以将视频上传到twiter吗?



2。)如果是,只有通过Rest API才可以(或者可以在twitter4j中使用twitter.media支持jar)。



任何建议,回答,关于这个的帖子是受欢迎和感谢的。

解决方案

我在twitter4j中创建了一个拉动请求来添加此功能。您可以在这里查看实现:添加Chuncked,视频上传。这支持大型视频512mb和140秒的异步上传。


I have succesfully posted images and messages in java application to twitter using twitter4j.jar by refering this link http://javapapers.com/core-java/post-to-twitter-using-java/ , now i am tring to upload video/mp4/chunk to twiiter.

I googled about this topic and found many answers- Some posts says its not possible yet ,some say its possible through rest API ,some with twitvid API ,some with tweetinvi (http://tweetinvi.codeplex.com/discussions/640413)

My questions are:

1.) Is it possible to upload video to twiter?

2.) If yes,is it possible only through Rest API or(is it possible using twitter.media support jar in twitter4j).

Any suggestion, answer, post regarding this are welcomed and thanked.

解决方案

I created a pull request to add this feature in twitter4j. You can look at the implementation here: Adding Chuncked, video upload. This supports async upload of large videos 512mb and 140 sec.

这篇关于使用Java应用程序将视频/ mp4上传到twitter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆