Multiple attachment in quickblox android

只愿长相守 提交于 2019-12-07 19:12:17

问题


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

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.

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

Thanks.


回答1:


Yes, you can send multiple attachment

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

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

then call addAttachment

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

so you can add as many attachments as you need



来源:https://stackoverflow.com/questions/32715039/multiple-attachment-in-quickblox-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!