Multiple attachment in quickblox android

2019-05-24 16:56发布

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条回答
干净又极端
2楼-- · 2019-05-24 17:52

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

查看更多
登录 后发表回答