Font Size: a A A

Design And Implementation Of Live Broadcast System Based On WebRTC Technology

Posted on:2021-04-15Degree:MasterType:Thesis
Country:ChinaCandidate:P W GeFull Text:PDF
GTID:2518306308973009Subject:Computer technology
Abstract/Summary:PDF Full Text Request
Live broadcast has become a new tuyere for the Internet.In the past 10 years,a large number of live broadcast platforms have risen rapidly,driven by the rapid development of mobile Internet,and have taken a very high market share in the industry.Live broadcasting has been integrated into people's daily lives,becoming an indispensable network tool for people to show themselves and share information.Current mainstream live streaming technologies are incompatible with each other on software and hardware level due to different transmission protocols.Its development and maintenance costs are getting higher and higher.Centralized live streaming servers are also extremely bandwidth consuming,causing a large amount of redundant bandwidth waste.Most live streaming platforms have loose user access mechanism,national regulations laws on live streaming aren't being promulgated quickly enough.Regulatory mechanism on live streaming is also not perfect,causing many chaos situations in the industry.Stirct user behavior supervision and information protection mechanism is needed for the live streaming industry.Based on the above reasons,this article builds a live broadcast system using browser-based audio and video capabilities WebRTC,which is lightweight,easy to maintain and compatible with mainstream browsers.The article also implements the change of network connection topology to improve the stability of audio and video streams with multiple users,making full use of users' redundant bandwidth.On this basis,a blockchain network based on Ethereum was established,and smart contracts were used to enable live broadcast scenarios.The specific work of this design is as follows:1)Design and implement WebRTC module.The WebRTC module is responsible for obtaining the audio and video streams of the live broadcaster on the browser side for packaging,and using the media penetration service built by the Coturn framework to establish a P2P direct connection with the counterparty.2)Design and implement WebSocket signaling server module,which builds a signaling service based on the open source framework Socket.io,with a complete signaling system,and is responsible for supporting the connection negotiation of the WebRTC module and the information synchronization of the front-end module.Use tree network topology and improve the user capacity of the entire WebRTC connection by about 20%.3)Design and implement the blockchain incentive network based on Ethereum.It is responsible for providing secure storage of information for the live broadcast system.The smart contract is written using the Truffle framework to implement functions such as virtual currency exchange,live broadcast forwarding incentives,and gift purchases.4)Design and implement the front-end module which is responsible for integrating the existing functions of other modules,providing an interface for users to watch live broadcast,implemented with the function of sharing chats between live broadcasts and artboards,which enriches the form of user interaction in the system.
Keywords/Search Tags:Live Broadcast System, WebRTC, Ethereum, Smart Contract
PDF Full Text Request
Related items