多个附件quickblox机器人 [英] Multiple attachment in quickblox android

查看:180
本文介绍了多个附件quickblox机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要上传视频与它的缩略图,但不能附加多个文件一起。

I want to upload video with it's thumbnail but unable to attach multiple files together.

在机器人有没有办法来从远程URL的视频缩略图,而无需下载它。有没有办法在quickblox获取视频的缩略图?或者是有反正我可以发送视频的缩略图与视频文件附件?或者,我可以在quickblox发送多个附件?

In android there is no way to get thumbnail of video from remote url without downloading it. Is there any way in quickblox for getting thumbnail of video ? Or is there anyway I can send thumbnail of video with the video file attachment ? Or can I send multiple attachment in quickblox ?

请提供详细资料这一点。我搜索了很多关于这一点,但没有发现任何解决办法。

Please provide details for this . I have searched a lot regarding this but did not find any solution.

如果有任何替代方法获取视频的缩略图,请提供soltution。

If there is any alternate way for getting thumbnail of video please provide the soltution.

感谢。

推荐答案

是的,你可以发送多个附件

Yes, you can send multiple attachment

http://quickblox.com/developers/Android_XMPP_Chat_Sample#Send_attachment

呼叫 QBContent.uploadFileTask 作为很多,你需要上传的文件

Call QBContent.uploadFileTask as many as you need to upload files

然后调用 addAttachment

QBAttachment attachment = new QBAttachment("video");
attachment.setId(file.getId().toString());
chatMessage.addAttachment(attachment);

这样你就可以根据需要添加尽可能多的附件

so you can add as many attachments as you need

这篇关于多个附件quickblox机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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