File transfer in group chat with XMPP

霸气de小男生 提交于 2019-12-25 02:38:17

问题


I am using group chat with open fire.

i can able to send messages but how to send file to group with Smack library.

i can able to send file to single user with below but i don't know how to send to group chat (MUC) so all users in room will receive that file

OutgoingFileTransfer transfer = manager.createOutgoingFileTransfer("usre2@myHost/Smack");

回答1:


Use XEP-0066: Out of Band Data - this is small extension to standard groupchat message with url and description. Other users will receive link to the file. Smack library does not have standard implementation, but it is very simple.



来源:https://stackoverflow.com/questions/22344806/file-transfer-in-group-chat-with-xmpp

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