[go: up one dir, main page]

CN105376075B - Chatroom voice broadcast system and voice broadcast method based on web - Google Patents

Chatroom voice broadcast system and voice broadcast method based on web Download PDF

Info

Publication number
CN105376075B
CN105376075B CN201510657130.7A CN201510657130A CN105376075B CN 105376075 B CN105376075 B CN 105376075B CN 201510657130 A CN201510657130 A CN 201510657130A CN 105376075 B CN105376075 B CN 105376075B
Authority
CN
China
Prior art keywords
chatroom
voice
server
management server
hls
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510657130.7A
Other languages
Chinese (zh)
Other versions
CN105376075A (en
Inventor
王恒
陈正超
周平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guiyang Longmaster Information and Technology Co ltd
Original Assignee
Guiyang Longmaster Information and Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guiyang Longmaster Information and Technology Co ltd filed Critical Guiyang Longmaster Information and Technology Co ltd
Priority to CN201510657130.7A priority Critical patent/CN105376075B/en
Publication of CN105376075A publication Critical patent/CN105376075A/en
Application granted granted Critical
Publication of CN105376075B publication Critical patent/CN105376075B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of chatroom voice broadcast system and voice broadcast method based on web.The system includes: chatroom management server, for receiving the web request for having user to need to listen to chatroom voice broadcast, sends chatroom voice broadcast notice;Chatroom voice server, for receiving chatroom voice broadcast notice, opening voice channel allows to be broadcast live management server and requests chatroom voice data by voice channel;Management server is broadcast live, for receiving chatroom voice broadcast notice, chatroom voice data is requested to chatroom voice server, the chatroom voice data that request obtains encode and is sent to HLS server by connection by the connection of creation and HLS server;HLS server, for receiving the voice data after live streaming management server coding and saving as multiple files so that web downloading plays.Above-mentioned technical proposal improves user experience.

Description

Chatroom voice broadcast system and voice broadcast method based on web
Technical field
The present invention relates to the communications fields, in particular to a kind of chatroom voice broadcast system and voice based on web Live broadcasting method.
Background technique
As more and more people use Voice Communication, the chat content of chatroom becomes more diversified, public Interested topic can be more and more.
Traditional voice-enabled chat room live streaming needs user installation client software, and after being registered as member, into this Listen to chat content in chatroom.In chatroom, user wants to give friend's sharing contents, and audience may be because of reasons such as equipment It cannot or be not desired to that the chatroom software is installed, then need to propose a kind of conveniently voice-enabled chat room live streaming scheme, use The program, audience can not install client software, and registered members, are not added without in chatroom, and in browser, (wechat and QQ are certainly It is good with browser) in open good friend share link can listen to.
Summary of the invention
It is a primary object of the present invention to disclose a kind of chatroom voice broadcast system based on web and voice broadcast side Method needs to install client software at least to solve user in the related technology, after being registered as member, can just enter the chatroom The problem of listening to chat content, user experience caused to reduce.
According to an aspect of the invention, there is provided a kind of chatroom voice broadcast system based on web.
The chatroom voice broadcast system of web according to the present invention includes: chatroom management server, useful for receiving Family needs to listen to the web request of chatroom voice broadcast, and chats to live streaming management server and the transmission of chatroom voice server Its room voice broadcast notice;Chatroom voice server is connected with above-mentioned chatroom management server, for receive from The above-mentioned chatroom voice broadcast of above-mentioned chatroom management server notifies that opening voice channel allows that management server is broadcast live Chatroom voice data is requested by above-mentioned voice channel;Above-mentioned live streaming management server is managed with above-mentioned chatroom respectively Server and above-mentioned chatroom voice server are connected, for receiving from the above-mentioned of above-mentioned chatroom management server Chatroom voice broadcast notice, the chatroom Xiang Shangshu voice server request chatroom voice data, create and based on HTTP's The chatroom voice data that request obtains is encoded and is passed through by the connection of stream media network transport protocol (HLS) server Above-mentioned connection is sent to above-mentioned HLS server;Above-mentioned HLS server is connected, for receiving with above-mentioned live streaming management server From above-mentioned live streaming management server coding after voice data and save as multiple files so that web downloading play.
According to another aspect of the present invention, a kind of chatroom voice broadcast method based on web is provided.
Chatroom voice broadcast method according to the present invention based on web includes: that management server reception in chatroom is useful Family needs to listen to the web request of chatroom voice broadcast, and chats to live streaming management server and the transmission of chatroom voice server Its room voice broadcast notice;Chatroom voice server receives the above-mentioned chatroom language from above-mentioned chatroom management server Sound live streaming notice, opening voice channel allow to be broadcast live management server and request chatroom voice number by above-mentioned voice channel According to;Above-mentioned live streaming management server receives the above-mentioned chatroom voice broadcast notice from above-mentioned chatroom management server, Chatroom voice data is requested to above-mentioned chatroom voice server, the connection of creation and HLS server is chatted what request obtained Its room voice data encode and is sent to above-mentioned HLS server by above-mentioned connection;Above-mentioned HLS server receive from Voice data after above-mentioned live streaming management server coding simultaneously saves as multiple files so that web downloading plays.
Through the invention, based on web realize in real time play chatroom voice scheme, in chatroom, user want to Audience's sharing contents, audience can not install client software, and registered members, are not added without in chatroom, in browser (wechat And QQ carry browser it is good) in open good friend share link can listen to, effectively improve user experience.
Detailed description of the invention
Fig. 1 is the structural block diagram of the chatroom voice broadcast system according to an embodiment of the present invention based on web;
Fig. 2 is the structural block diagram of the chatroom voice broadcast system according to the preferred embodiment of the invention based on web;
Fig. 3 is the flow chart of the chatroom voice broadcast method according to an embodiment of the present invention based on web.
Specific embodiment
Specific implementation of the invention is made a detailed description with reference to the accompanying drawings of the specification.
Fig. 1 is the structural block diagram of the chatroom voice broadcast system according to an embodiment of the present invention based on web.Such as Fig. 1 institute Show, the chatroom voice broadcast system based on web of being somebody's turn to do includes:
Chatroom management server (PCMS) 10 is asked for receiving the web for having user to need to listen to chatroom voice broadcast It asks, and sends chatroom voice broadcast notice to live streaming management server and chatroom voice server;
Chatroom voice server (PCS) 12 is connected with above-mentioned chatroom management server, for receive from The above-mentioned chatroom voice broadcast notice of chatroom management server is stated, opening voice channel allows that management server is broadcast live logical Above-mentioned voice channel is crossed to request chatroom voice data;
Above-mentioned live streaming management server (PCBS) 14, respectively with above-mentioned chatroom management server and above-mentioned chatroom language Sound server is connected, for receiving the above-mentioned chatroom voice broadcast notice from above-mentioned chatroom management server, to Above-mentioned chatroom voice server requests chatroom voice data, creation and the stream media network transport protocol based on HTTP (HLS) the chatroom voice data that request obtains is carried out coding and is sent to by above-mentioned connection above-mentioned by the connection of server HLS server;
Above-mentioned HLS server 16 is connected with above-mentioned live streaming management server, for receiving from above-mentioned live streaming management Voice data after server code simultaneously saves as multiple files so that web downloading plays.
In the related technology, voice-enabled chat room live streaming needs user installation client software, and after being registered as member, into Enter the chatroom and listens to chat content.Using the chatroom voice broadcast system shown in FIG. 1 based on web, in chatroom, use Family wants to give audience's sharing contents, and audience can not install client software, and registered members, are not added without in chatroom, browse Opening the link that good friend shares in device (wechat and the included browser of QQ are good) can listen to, and effectively improve user experience.
In a preferred implementation process, effect of the chatroom management server (PCMS) 10 in the direct broadcast function is that management is chatted Its room, when receiving web request and needing to listen to chatroom live streaming, notice voice management server forwards the voice of the chatroom Data, and live streaming management server is notified to start chatroom voice broadcast.
In a preferred implementation process, which is responsible for mixing and distributing the voice data of chatroom, when server receives When notifying to the beginning chatroom live streaming that chatroom management server is sent, an open voice channel allows to be broadcast live management clothes Business device requests the voice data of chatroom by this channel.
Wherein, the connection with HLS server that live streaming management server 14 creates can be real-time messages transport protocol (RTMP) it connects, the voice data after above-mentioned coding can be Advanced Audio Coding (AAC) voice data.
Preferably, above-mentioned live streaming management server 14 is also used to after the voice broadcast of chatroom, destroy with it is above-mentioned The connection of HLS server.
During preferred implementation, live streaming management server is mainly responsible for foundation and the pin of living broadcast channel (i.e. above-mentioned connection) It ruins, the format conversion of live data.When the live streaming for receiving chatroom management server notifies, chatroom voice server is arrived (PCS) chatroom voice data is requested, by the encoded speech data received at the receivable AAC encoded voice of HLS server Data.Creation one is connect with the RTMP of HLS server, sends HLS server for AAC voice data by this connection.
Preferably, as shown in Fig. 2, above-mentioned HLS server 16 may further include: Nginx real-time messages transport protocol Module (nginx-rtmp-module) 160, for the data after above-mentioned coding to be saved as multiple transport stream ts files;Nginx Module 162, is stored with configuration file, wherein including each above-mentioned saved audio data of ts file in above-mentioned configuration file The effective time of time span and the ts file.
Preferably, as shown in Fig. 2, Nginx real-time messages transport protocol module 160, is also used to super when above-mentioned effective time Constantly, the effective time corresponding ts file is deleted.
In a preferred implementation process, HLS server uses the nginx (Web server of a lightweight) of open source And nginx-rtmp-module module, the function of nginx-rtmp-module module be by from live streaming management server (PCBS) the AAC audio data sent saves as multiple ts files, and the time for the audio data that each ts file is saved is long Degree configures in the configuration file of nginx server.The effective time of each ts file is also by the configuration file of nginx server Configuration, after it's effective time has past file, nginx-rtmp-module module is responsible for deleting scratch file.
Entire stream is divided into file one by one based on HTTP, web is only downloaded every time.Starting a Streaming Media meeting When words, client can download extended M3U (m3u8) the playlist file comprising metadata, available for finding Media Stream.HLS simply requests basic HTTP message, can pass through firewall or agency that any permission HTTP data pass through Server.
Fig. 3 is the flow chart of the chatroom voice broadcast method according to an embodiment of the present invention based on web.As shown in figure 3, The chatroom voice broadcast method based on web includes:
Step S301: chatroom management server receives the web request for having user to need to listen to chatroom voice broadcast, and Chatroom voice broadcast notice is sent to live streaming management server and chatroom voice server;
Step S303: chatroom voice server receives the above-mentioned chatroom language from above-mentioned chatroom management server Sound live streaming notice, opening voice channel allow to be broadcast live management server and request chatroom voice number by above-mentioned voice channel According to;
Step S305: above-mentioned live streaming management server is received from the above-mentioned chatroom of above-mentioned chatroom management server Voice broadcast notice, the chatroom Xiang Shangshu voice server request chatroom voice data, creation and the Streaming Media based on HTTP The chatroom voice data that request obtains is carried out coding and by above-mentioned connection by the connection of network transmission protocol HLS server It is sent to above-mentioned HLS server;
Step S307: above-mentioned HLS server receives the voice data after above-mentioned live streaming management server coding simultaneously Multiple files are saved as so that web downloading plays.
User's sharing chatroom in chatroom, which links, to be given audience (can be circle of friends or QQ space), and audience opens should After link, the web linked notifies management server (PCMS) someone in chatroom to listen to the chatroom chat content, later Each server will method according to Fig.3, each server of completion function, web can arrive HLS server and download language later Sound file plays out.
Using the chatroom voice broadcast method shown in Fig. 3 based on web, in chatroom, user wants to share to audience Content, audience can not install client software, and registered members, are not added without in chatroom, and in browser, (wechat and QQ are included Browser is good) in open good friend share link can listen to, effectively improve user experience.
Wherein, the connection with HLS server that live streaming management server 14 creates can be real-time messages transport protocol (RTMP) it connects, the voice data after above-mentioned coding can be Advanced Audio Coding (AAC) voice data.
Preferably, be broadcast live in step S305 management server creation with after the connection of above-mentioned HLS server, can be with Including following processing: above-mentioned live streaming management server destroys the company with above-mentioned HLS server after the voice broadcast of chatroom It connects.
Preferably, in step S307, above-mentioned HLS server receives the language after above-mentioned live streaming management server coding Sound data simultaneously save as multiple files and may further include: the Nginx real-time messages transport protocol module of above-mentioned HLS server Data after above-mentioned coding are saved as into multiple transport stream ts files;The Nginx module of above-mentioned HLS server is stored with configuration text Part, wherein include the time span and the ts file of each above-mentioned saved audio data of ts file in above-mentioned configuration file Effective time.
Preferably, Nginx real-time messages transport protocol module is corresponding by the effective time in above-mentioned effective time time-out Ts file deleted.
In conclusion carrying out the live streaming of voice-enabled chat room, Ting Zhongke by web by above-described embodiment provided by the invention Not install client software, can not registered members, can be added without in chatroom, in browser, (wechat and QQ carry clear Device of looking at is good) in open good friend share link can listen to.Aforesaid operations are convenient and efficient, effectively increase user experience.
Disclosed above is only several specific embodiments of the invention, and still, the present invention is not limited to this, any ability What the technical staff in domain can think variation should all fall into protection scope of the present invention.

Claims (10)

1. a kind of chatroom voice broadcast system based on web characterized by comprising
Chatroom management server is managed for receiving the web request for having user to need to listen to chatroom voice broadcast, and to live streaming It manages server and chatroom voice server sends chatroom voice broadcast notice;
Chatroom voice server is connected with the chatroom management server, manages for receiving from the chatroom The chatroom voice broadcast notice of server is managed, opening voice channel allows to be broadcast live management server and passes through the voice Chatroom voice data is requested in channel;
The live streaming management server is connected with the chatroom management server and the chatroom voice server respectively It connects, for receiving the chatroom voice broadcast notice from the chatroom management server, the chatroom Xiang Suoshu language Sound server requests chatroom voice data, creates the connection with the stream media network transport protocol HLS server based on HTTP, The chatroom voice data that request obtains encode and the HLS server is sent to by the connection;
The HLS server is connected with the live streaming management server, for receiving from the live streaming management server Voice data after coding simultaneously saves as multiple files so that web downloading plays.
2. system according to claim 1, which is characterized in that the live streaming management server is also used in chatroom language After sound is broadcast live, the connection with the HLS server is destroyed.
3. system according to claim 1, which is characterized in that the HLS server includes:
Nginx real-time messages transport protocol module, for the data after the coding to be saved as multiple transport stream ts files;
Nginx module, is stored with configuration file, wherein includes each saved audio of ts file in the configuration file The effective time of the time span of data and the ts file.
4. system according to claim 3, which is characterized in that
Nginx real-time messages transport protocol module, is also used to when the effective time time-out, by the effective time corresponding ts File is deleted.
5. system according to claim 1, which is characterized in that it is described live streaming management server creation with HLS server Connection be real-time messages transport protocol RTMP connection, the voice data after the coding is Advanced Audio Coding AAC voice number According to.
6. a kind of voice broadcast method according to chatroom voice broadcast system described in any one of claim 1 to 5, It is characterised by comprising:
Chatroom management server receives the web request for having user to need to listen to chatroom voice broadcast, and takes to live streaming management Business device and chatroom voice server send chatroom voice broadcast notice;
Chatroom voice server receives the chatroom voice broadcast notice from the chatroom management server, opens Voice channel is put, allows to be broadcast live management server and requests chatroom voice data by the voice channel;
The live streaming management server receives the chatroom voice broadcast notice from the chatroom management server, Chatroom voice data, creation and the stream media network transport protocol based on HTTP are requested to the chatroom voice server The chatroom voice data that request obtains encode and is sent to the HLS by the connection by the connection of HLS server Server;
The HLS server receives the voice data after the live streaming management server coding and saves as multiple files So that web downloading plays.
7. according to the method described in claim 6, it is characterized in that, being taken in live streaming management server creation with the HLS It is engaged in after the connection of device, further includes:
The live streaming management server destroys the connection with the HLS server after voice broadcast of chatroom.
8. according to the method described in claim 6, it is characterized in that, the HLS server is received from live streaming management Voice data after server code simultaneously saves as multiple files and includes:
Data after the coding are saved as multiple transmission by the Nginx real-time messages transport protocol module of the HLS server Flow ts file;
The Nginx module of the HLS server is stored with configuration file, wherein includes each ts in the configuration file The time span of the saved audio data of file and the effective time of the ts file.
9. according to the method described in claim 8, it is characterized by further comprising:
Nginx real-time messages transport protocol module in the effective time time-out, by the effective time corresponding ts file into Row is deleted.
10. according to the method described in claim 6, it is characterized in that, described be connected as the RTMP connection of real-time messages transport protocol, Voice data after the coding is Advanced Audio Coding AAC voice data.
CN201510657130.7A 2015-10-13 2015-10-13 Chatroom voice broadcast system and voice broadcast method based on web Active CN105376075B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510657130.7A CN105376075B (en) 2015-10-13 2015-10-13 Chatroom voice broadcast system and voice broadcast method based on web

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510657130.7A CN105376075B (en) 2015-10-13 2015-10-13 Chatroom voice broadcast system and voice broadcast method based on web

Publications (2)

Publication Number Publication Date
CN105376075A CN105376075A (en) 2016-03-02
CN105376075B true CN105376075B (en) 2019-04-09

Family

ID=55377905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510657130.7A Active CN105376075B (en) 2015-10-13 2015-10-13 Chatroom voice broadcast system and voice broadcast method based on web

Country Status (1)

Country Link
CN (1) CN105376075B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483604B (en) * 2017-08-29 2020-12-15 武汉斗鱼网络科技有限公司 Method and device for dynamically updating DNS cache by Nginx-RTMP
CN107743251B (en) * 2017-10-10 2020-06-16 武汉斗鱼网络科技有限公司 Video friend-making duration adapting method, storage medium, electronic device and system
CN107680021A (en) * 2017-10-17 2018-02-09 深圳市乐唯科技开发有限公司 A kind of building method of light and easy voice training mobile platform
CN114173145A (en) * 2021-12-08 2022-03-11 四川启睿克科技有限公司 HLS protocol-based dynamic code rate low-delay live broadcast method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7120668B2 (en) * 2000-02-22 2006-10-10 Yahoo!, Inc. Systems and methods for matching participants to a conversation
CN101064823A (en) * 2006-04-30 2007-10-31 互联天下科技发展(深圳)有限公司 Video interdynamic network living broadcast method
CN102307266A (en) * 2011-08-05 2012-01-04 贵阳朗玛信息技术股份有限公司 Telephone voice value-added system and communication method thereof
CN103312907A (en) * 2013-05-15 2013-09-18 腾讯科技(深圳)有限公司 Voice channel distribution management method, related device and communication system
CN104811773A (en) * 2015-04-28 2015-07-29 天脉聚源(北京)传媒科技有限公司 Hotlinking prevention-based channel playing implementation method, system and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7120668B2 (en) * 2000-02-22 2006-10-10 Yahoo!, Inc. Systems and methods for matching participants to a conversation
CN101064823A (en) * 2006-04-30 2007-10-31 互联天下科技发展(深圳)有限公司 Video interdynamic network living broadcast method
CN102307266A (en) * 2011-08-05 2012-01-04 贵阳朗玛信息技术股份有限公司 Telephone voice value-added system and communication method thereof
CN103312907A (en) * 2013-05-15 2013-09-18 腾讯科技(深圳)有限公司 Voice channel distribution management method, related device and communication system
CN104811773A (en) * 2015-04-28 2015-07-29 天脉聚源(北京)传媒科技有限公司 Hotlinking prevention-based channel playing implementation method, system and equipment

Also Published As

Publication number Publication date
CN105376075A (en) 2016-03-02

Similar Documents

Publication Publication Date Title
US9158769B2 (en) Systems and methods for network content delivery
CN108289187B (en) Method and system for accessing live webcast to video conference
NO20072231L (en) Method and system for broadcasting multimedia data
CN105376075B (en) Chatroom voice broadcast system and voice broadcast method based on web
CN107819833B (en) A kind of access live streaming connects the method and device of wheat
CN102801770A (en) Web video conference method capable of realizing separate transmission of audio and video
CN106464680A (en) Bandwidth management in a content distribution network
ATE437492T1 (en) ACCESS CONTROL, NETWORK ACCESS DEVICE AND SERVICE PROVIDER SERVER FOR DELIVERY OF VIDEO AND OTHER SERVICES
US8966107B2 (en) System and method of streaming data over a distributed infrastructure
ATE369692T1 (en) METHOD, SYSTEM AND ARTICLE FOR DYNAMIC REAL-TIME STREAM AGGREGATION IN A NETWORK
CN101365096A (en) Method for providing video content, related service apparatus and system
US11025352B2 (en) Reception device, transmission device, and data processing method
CN105141971A (en) Method and system for realizing live broadcast based on session initialization protocol
CN105187296A (en) Studio authority acquisition method and system
US10270708B2 (en) Aggregated adaptive bit rate streaming
CN104348700B (en) Method and system for issuing microblog
CA2964712C (en) Reception device, transmission device, and data processing method
US8539091B2 (en) Method and system for preempting control of data streaming
US7483388B2 (en) Method and system for sending a multimedia stream in an IP multicast network
CN100414877C (en) System and method for implementing webcast slide presentation files
CN100388781C (en) Conference delay method
CN106162372B (en) Audio and video data distribution method and device for enhanced multimedia broadcast and multicast service
CN111225252B (en) PON gateway UPNP video live broadcast method based on openwrt system
KR100643705B1 (en) Method and device for multicast rebroadcast service in internet broadcasting system
US20150139609A1 (en) Method and system for enhancing user experience during an ongoing content viewing activity

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant