简体   繁体   English

Spring Boot视频聊天

[英]Spring Boot video chat

I have task to create video chat which will allow to communicate two people witch each other. 我的任务是创建视频聊天,使两个人互相交流。 My architecture of application is: front-end Angular 2/typescript , backend: java, spring boot (and submodules). 我的应用程序体系结构是:前端Angular 2 / typescript ,后端: java,spring boot (和子模块)。 Everything works fine but I've got problem with understanding how to make video streaming. 一切正常,但我在理解如何进行视频流传输方面遇到了问题。 I was looking for any framework to do it but I've failed. 我一直在寻找可以做到这一点的框架,但失败了。 As I understand WebSocket doesn't help me in this task and it's no appropriate to use it. 据我了解,WebSocket不能帮助我完成此任务,因此不适合使用它。 Also as I understand Spring doesn't have any tool to solve the task. 而且据我了解,Spring没有任何工具可以解决任务。 Is it really that I have to create streaming via clean UDP which exists in java or maybe there is another way, any framework which gives more higher interfaces for the task? 我是否真的必须通过存在于Java中的干净UDP创建流传输,或者也许还有另一种方法,任何为任务提供更高接口的框架?

The magic keyword here is "WebRTC", which is the browser support to support Audio and Video R eal T ime C ommunication for Web . 这里的魔法关键词是“的WebRTC”,这是浏览器的支持,支持音频和影像R EAL 定时ÇommunicationWeb。

Basicly the communication is happening peer 2 peer between the browsers of your users. 基本上,通信发生在用户浏览器之间的对等2对等。 The only thing your application is responsible of, is the signaling...to exchange the peer data for your clients. 您的应用程序唯一负责的是发信号...为您的客户交换对等数据。

Based on that, check out this project called NextRTC for a reference. 基于此,请查看名为NextRTC的项目,以供参考。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM