Thanks for your reply. So I must edit my twitter4j-core by downloading the new one. Is that the right way? And how can I use that? For example for the image this is how I procede.
StatusUpdate statusUpdate = new StatusUpdate(text);
statusUpdate.setMedia("New pic", new URL(photo).openStream());
twitter.updateStatus(statusUpdate.inReplyToStatusId(tweetId));
log.info("Successfully updated the status in Twitter (image).");
How can I do it for the video?