简体   繁体   中英

Multiple attachment in quickblox android

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM