php 中的屏幕共享和聊天
我想在 php 中创建一个应用程序,该应用程序将有一个带有屏幕共享选项的聊天模块 有没有可以共享屏幕和聊天的php源代码 谢谢 希瓦姆
I want to make a application in php that will have a chatting module with screensharing option
is there any php source code available to share screen and chatting
Thanks
Shivam
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我认为这是不可能的,因为 Skype 使用封闭协议。但是您可能会浪费大量时间进行逆向工程来确定这些协议。
I think this is impossible, because skype use closed protocols. But you can waste a lot of time for reverse engineering to determine these protocols.
无法在 PHP 中进行屏幕共享。为此,您最好/最简单的选择很可能是嵌入式 Java 小程序。
至于聊天,您可以在 PHP 中轻松完成,并使用 AJAX 调用检查新消息,使其“实时”显示消息。
Not possible to do screensharing in PHP. Your best/easiest bet for that is most likely an embedded Java applet.
As for the chatting, you could do that very easily in PHP, and make it display messages in "real-time" using AJAX calls to check for new messages.
抱歉,这对于 PHP 来说是不可能的。不过,您可以将 Javascript 和 Ajax 结合起来,从中获得合理的结果。还有 Java 小程序。
Sorry this is not possible with PHP. However you can combine Javascript and Ajax to get something reasonable out of this. And also Java applets.
对于屏幕共享,不,PHP 不是客户端动态的 - 最接近可行的解决方案是使用 JavaScript。由于 PHP 是服务器端,内容(即最简单的屏幕刷新)需要在服务器端进行更新/管理,为了让客户端(用户)看到这些更改,他们需要重新加载脚本。考虑到这样做的开销和不切实际,PHP 根本不可行。
关于聊天 - 最好的选择是 PHP 和 Javascript 的组合,请参阅此处了解此类应用程序
For screen sharing, no, PHP is not client-side dynamic- the closest you'll get for a viable solution is by uising JavaScript. As PHP is server-side, content (i.e. the simplest of screen refreshes) would need to be updated/managed server side, in order for the client (user) to see these changes, they would need to reload the script. Given the overheads and impracticalities of doing so, PHP is not viable at all.
Regarding chatting- your best bet is a combination of PHP and Javascript, see here for one such application