如果在java中使用smack Api和openfire,可以显示powerpoint并在客户端聊天中滑动它
我想知道使用 Smack Api 创建应用程序聊天,Openfire 是服务器,我的问题是如果我想在聊天框中显示幻灯片(powerpoint),我可以这样做吗? 如果可以的话,它看起来像powerpoint吗?这意味着当用户A将ppt文档浏览到聊天框时,之后用户B可以看到ppt文档的第一张幻灯片,然后用户A单击前进按钮,ppt文档就是幻灯片。用户 B 只看下一张幻灯片。
I wonder create application chat using Smack Api and Openfire is server, my problem is if i want show slide show (powerpoint) into chat box, can i do it?
and if i can, is it look like powerpoint - it's mean when user A browse ppt document into chat box , after that user B can see first slide of ppt document, and then user A click forward button and ppt document is slide. User B just see next slide.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果是一对一,那么您可以使用Smack的文件传输功能将文件传输到查看器。然后您可以使用单独的命名空间来中继前进/后退命令。副作用是您在查看幻灯片时还可以聊天。
要显示 PPT 文件,您可以从 Java 应用程序中使用 OfficeBean。
您还可以使用聊天室进行群组查看,但您必须弄清楚将 PPT 文件传输给稍后将加入聊天室的人员的最佳方式是什么。一种方法是实现一个服务 (
disco#item
/disco#info
) 来跟踪元信息,例如当前正在进行的会话以及文件所在的位置(例如,来自 Google 文档)。If it is one to one, then you can use Smack's file transfer feature to transfer the file to the viewer. Then you can probably use a separate namespace in to relay the forward/backward command. The side effect is that you can also chat while you are viewing the slide.
To display the PPT file you can OfficeBean from you Java application.
You can also use a chatroom for group viewing although you have to figure out what is the best way to transfer the PPT file to people who will be joining the chatroom later. One way would be to implement a service (
disco#item
/disco#info
) to keep track of meta info like what sessions are currently on and where the files can be located (eg. from Google Docs).