本文已被:浏览 1819次 下载 2603次
Received:January 17, 2017
Received:January 17, 2017
中文摘要: 传统的Web IM要求通信双方在浏览器中安装插件(如Adobe Flash Player),这不但降低了用户体验,还增加了开发者对插件开发、更新及维护的繁琐工作.此外,传统的Web IM主要采用了定时访问服务器的方法(即轮询方式)实现浏览器与服务器之间的交互,该方式降低了实时性且增加了对服务器资源的消耗.针对上述问题,本文采用WebSocket连接技术使得浏览器与服务器之间能够通过长连接方式进行数据交互,该方式提高了实时性,降低了对服务器的负载.然后,本文依据提供的WebRTC API,实现了一个具备音视频通信以及文件传输功能的多媒体通信模块.通过MVC三层架构模式,对该模块进行了具体划分与实现.最后通过测试表明该设计能够满足用户的基本功能需求.
Abstract:The traditional Web IM requires both sides to install plug-ins (such as Adobe Flash Player) in the browser, which does not only reduce the user experience, but also increases the developers' tedious work for plug-in development, updating and maintenance. In addition, the traditional Web IM mainly adopts the method of the regular access server (the polling mode) to achieve the interaction between the browser and server, which reduces the real-time performance and increases the consumption of server resources. According to the problems above, this article implements the long connection between the browser and server and data interaction through WebSocket, which improves the real-time performance. Then on the basis of providing WebRTC API, we implement a module which performs the function of audio and video communication and file transfer. Through the MVC three-tier architecture model, we carry on the concrete division and implementation of the module. Finally, the test shows that the design can meet the basic functional requirements of the user.
keywords: WebRTC WebSocket video communication file transport
文章编号: 中图分类号: 文献标志码:
基金项目:
引用文本:
于波,缪红娣.基于WebRTC的多媒体通信模块.计算机系统应用,2017,26(10):118-123
YU Bo,MIAO Hong-Di.Multimedia Communication Module Based on WebRTC.COMPUTER SYSTEMS APPLICATIONS,2017,26(10):118-123
于波,缪红娣.基于WebRTC的多媒体通信模块.计算机系统应用,2017,26(10):118-123
YU Bo,MIAO Hong-Di.Multimedia Communication Module Based on WebRTC.COMPUTER SYSTEMS APPLICATIONS,2017,26(10):118-123