javascript 将屏幕共享添加到我的网络应用程序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9426873/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Add Screen Sharing to my web app?
提问by Mandeep Singh
I have to make a web application that imitates Skype. I am using php, javascript, html and css to do this. I am allowed to use open-sourced libraries and other libraries.
我必须制作一个模仿 Skype 的网络应用程序。我正在使用 php、javascript、html 和 css 来做到这一点。我被允许使用开源库和其他库。
I need to implement a screen sharing feature. How do I do this? My research led me to believe I need to code a java applet but I have no idea how to do this. This was assigned today and I just have 3 weeks to implement it. How should I do this?
我需要实现屏幕共享功能。我该怎么做呢?我的研究让我相信我需要编写一个 java 小程序,但我不知道如何做到这一点。这是今天分配的,我只有 3 周的时间来实施它。我该怎么做?
回答by Wojciech Bednarski
You may find one of those projects useful:
您可能会发现其中一个项目很有用:
回答by j_mcnally
no, you would need at minimum flash, probably some native/java code to do screen sharing, this is not going to happen with php javascript and html
不,您至少需要 flash,可能需要一些本机/java 代码来进行屏幕共享,php javascript 和 html 不会发生这种情况
UPDATE: WebRTC can help you with it but support in browsers is still kind of up in the air.
更新:WebRTC 可以为您提供帮助,但浏览器的支持仍然悬而未决。
回答by Groo
This is far from being an easy job, but if you want to try it, there appears to be an open-source project here(it uses Red5 media serverto transmit the video stream), but it's probably just basic functionality for a single user only.
这远不是一件容易的事,但如果你想尝试一下,似乎是一个开源项目在这里(它使用的Red5媒体服务器发送视频流),但它可能是为单个用户只是基本功能只要。
I am using php, javascript, html and css
我正在使用 php、javascript、html 和 css
Even with HTML5, that won't be enough without additional client plugins. You will need Flash, Java or Silverlight installed on all clients which want to share their desktops (for viewing and interaction, basic HTML5 would suffice). I have a feeling this might be difficult to learn from scratch in three weeks time.
即使使用 HTML5,如果没有额外的客户端插件,这也是不够的。您需要在所有想要共享桌面的客户端上安装 Flash、Java 或 Silverlight(对于查看和交互,基本的 HTML5 就足够了)。我有一种感觉,这可能很难在三周内从头开始学习。