CN105376075A - Chat room voice direct broadcasting system and voice direct broadcasting method based on web - Google Patents

Chat room voice direct broadcasting system and voice direct broadcasting method based on web Download PDF

Info

Publication number
CN105376075A
CN105376075A CN201510657130.7A CN201510657130A CN105376075A CN 105376075 A CN105376075 A CN 105376075A CN 201510657130 A CN201510657130 A CN 201510657130A CN 105376075 A CN105376075 A CN 105376075A
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.)
Granted
Application number
CN201510657130.7A
Other languages
Chinese (zh)
Other versions
CN105376075B (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 chat room voice direct broadcasting system and voice direct broadcasting method based on a web. The system comprises a chat room management server used for receiving a web request that there are users needing to listen to chat room voice direct broadcasting and used for sensing a chat room voice direct broadcasting notification; a chat room voice server used for receiving the chat room voice direct broadcasting notification, turning on a voice channel and allowing a direct broadcasting management server to request chat room voice data through the voice channel; the direct broadcasting management server used for receiving the chat room voice direct broadcasting notification, requesting chat room voice data from the chat room voice server, establishing connection with an HLS server, encoding the chat room voice data obtained by requesting and sending the encoded voice data to the HLS server; and the HLS server used for receiving the encoded voice data from the direct broadcasting management server and storing the voice data as a plurality of files so as to enable the web to download and play the files. According to the above scheme, the experience of a user is improved.

Description

Based on chatroom voice broadcast system and the voice broadcast method of web
Technical field
The present invention relates to the communications field, in particular to a kind of chatroom voice broadcast system based on web and voice broadcast method.
Background technology
Along with increasing people uses Voice Communication, the chat content of chatroom becomes more diversified, and the topic of general interest can get more and more.
Traditional voice-enabled chat room is live needs user installation client software, and after being registered as member, entering this chatroom and listen to chat content.In chatroom, user wants to friend's sharing contents, and audience or may can not want to install this chatroom software because of reasons such as equipment, so need to propose the one conveniently live scheme in voice-enabled chat room, adopt the program, audience can not install client software, not registered members, do not add in chatroom, in browser (it is good that micro-letter and QQ carry browser), open the link that good friend shares can listen to.
Summary of the invention
Main purpose of the present invention is to disclose a kind of chatroom voice broadcast system based on web and voice broadcast method, need client software is installed at least to solve user in correlation technique, after being registered as member, just can enter this chatroom and listen to chat content, cause the problem that Consumer's Experience reduces.
According to an aspect of the present invention, a kind of chatroom voice broadcast system based on web is provided.
Chatroom voice broadcast system according to web of the present invention comprises: chatroom management server, need to listen to the web request of chatroom voice broadcast for receiving user, and send chatroom voice broadcast notice to live management server and chatroom voice server; Chatroom voice server, be connected with above-mentioned chatroom management server, for receiving the above-mentioned chatroom voice broadcast notice coming from above-mentioned chatroom management server, opening voice passage, allows live management server to ask chatroom speech data by above-mentioned voice channel; Above-mentioned live management server, be connected with above-mentioned chatroom management server and above-mentioned chatroom voice server respectively, for receiving the above-mentioned chatroom voice broadcast notice coming from above-mentioned chatroom management server, to voice server request chatroom, above-mentioned chatroom speech data, create and the connection based on stream media network host-host protocol (HLS) server of HTTP, undertaken encoding by asking the chatroom speech data obtained and be sent to above-mentioned HLS server by above-mentioned connection; Above-mentioned HLS server, is connected with above-mentioned live management server, for receiving the speech data after coming from above-mentioned live management server coding and saving as multiple file to make web downloading and playing.
According to a further aspect in the invention, a kind of chatroom voice broadcast method based on web is provided.
Chatroom voice broadcast method based on web according to the present invention comprises: chatroom management server receives has user to need to listen to the web request of chatroom voice broadcast, and sends chatroom voice broadcast notice to live management server and chatroom voice server; Chatroom voice server receives the above-mentioned chatroom voice broadcast notice coming from above-mentioned chatroom management server, and opening voice passage, allows live management server to ask chatroom speech data by above-mentioned voice channel; Above-mentioned live management server receives the above-mentioned chatroom voice broadcast notice coming from above-mentioned chatroom management server, to voice server request chatroom, above-mentioned chatroom speech data, create the connection with HLS server, undertaken encoding by asking the chatroom speech data obtained and be sent to above-mentioned HLS server by above-mentioned connection; Above-mentioned HLS server receives the speech data after coming from above-mentioned live management server coding and saves as multiple file to make web downloading and playing.
Pass through the present invention, the scheme playing chatroom voice is in real time achieved based on web, in chatroom, user wants to audience's sharing contents, audience can not install client software, not registered members, does not add in chatroom, in browser (it is good that micro-letter and QQ carry browser), open the link that good friend shares can listen to, effectively improve Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the structured flowchart of the chatroom voice broadcast system based on web according to the embodiment of the present invention;
Fig. 2 is according to the preferred embodiment of the invention based on the structured flowchart of the chatroom voice broadcast system of web;
Fig. 3 is the flow chart of the chatroom voice broadcast method based on web according to the embodiment of the present invention.
Embodiment
Below in conjunction with Figure of description, specific implementation of the present invention is made a detailed description.
Fig. 1 is the structured flowchart of the chatroom voice broadcast system based on web according to the embodiment of the present invention.As shown in Figure 1, should comprise based on the chatroom voice broadcast system of web:
Chatroom management server (PCMS) 10, needs to listen to the web request of chatroom voice broadcast for receiving user, and sends chatroom voice broadcast notice to live management server and chatroom voice server;
Chatroom voice server (PCS) 12, be connected with above-mentioned chatroom management server, for receiving the above-mentioned chatroom voice broadcast notice coming from above-mentioned chatroom management server, opening voice passage, allows live management server to ask chatroom speech data by above-mentioned voice channel;
Above-mentioned live management server (PCBS) 14, be connected with above-mentioned chatroom management server and above-mentioned chatroom voice server respectively, for receiving the above-mentioned chatroom voice broadcast notice coming from above-mentioned chatroom management server, to voice server request chatroom, above-mentioned chatroom speech data, create and the connection based on stream media network host-host protocol (HLS) server of HTTP, undertaken encoding by asking the chatroom speech data obtained and be sent to above-mentioned HLS server by above-mentioned connection;
Above-mentioned HLS server 16, is connected with above-mentioned live management server, for receiving the speech data after coming from above-mentioned live management server coding and saving as multiple file to make web downloading and playing.
In correlation technique, voice-enabled chat room is live needs user installation client software, and after being registered as member, entering this chatroom and listen to chat content.The chatroom voice broadcast system based on web shown in Fig. 1 of employing, in chatroom, user wants to audience's sharing contents, audience can not install client software, not registered members, do not add in chatroom, in browser (it is good that micro-letter and QQ carry browser), open the link that good friend shares can listen to, and effectively improves Consumer's Experience.
In preferred implementation process, the effect of chatroom management server (PCMS) 10 in this direct broadcast function is management chatroom, when receive web request need to listen to chatroom live time, notice voice management server forwards the speech data of this chatroom, and notifies that live management server starts chatroom voice broadcast.
In preferred implementation process, the speech data of the mixing of this network in charge and distribution chatroom, when server receives the live notice in beginning chatroom that chatroom management server sends, an open voice channel, allows live management server to ask the speech data of chatroom by this passage.
Wherein, what live management server 14 created can be that real-time messages host-host protocol (RTMP) connects with the connection of HLS server, and the speech data after above-mentioned coding can be Advanced Audio Coding (AAC) speech data.
Preferably, above-mentioned live management server 14, also for after chatroom voice broadcast terminates, destroys the connection with above-mentioned HLS server.
In preferred implementation process, the foundation of live management server primary responsibility living broadcast channel (i.e. above-mentioned connection) and destruction, the format conversion of live data.When receiving the live notice of chatroom management server, asking chatroom speech data to chatroom voice server (PCS), the encoded speech data received being become the receivable AAC coded voice data of HLS server.Create one to be connected with the RTMP of HLS server, by this connection, AAC speech data is sent to HLS server.
Preferably, as shown in Figure 2, above-mentioned HLS server 16 may further include: Nginx real-time messages host-host protocol module (nginx-rtmp-module) 160, for the data after above-mentioned coding are saved as multiple transport stream ts file; Nginx module 162, stores configuration file, wherein, above-mentioned configuration file comprise each above-mentioned ts file preserve the time span of voice data and the effective time of this ts file.
Preferably, as shown in Figure 2, Nginx real-time messages host-host protocol module 160, also for when above-mentioned effective time is overtime, deletes the ts file corresponding this effective time.
In preferred implementation process, HLS server uses the nginx (Web server of a lightweight) and nginx-rtmp-module module that increase income, the function of nginx-rtmp-module module is that the AAC voice data sent from live management server (PCBS) is saved as multiple ts file, and the time span of the voice data that each ts file is preserved configures in the configuration file of nginx server.The effective time of each ts file is also configured by the configuration file of nginx server, and after effective time spent by file, scratch file is deleted by nginx-rtmp-module module in charge.
Whole stream is divided into one by one based on the file of HTTP, and web only downloads at every turn.When a beginning flow media session, client can download extendedM3U (m3u8) the playlist file that comprises metadata, for finding available Media Stream.HLS only asks basic HTTP message, the fire compartment wall that can pass through through any permission HTTP data or proxy server.
Fig. 3 is the flow chart of the chatroom voice broadcast method based on web according to the embodiment of the present invention.As shown in Figure 3, should comprise based on the chatroom voice broadcast method of web:
Step S301: chatroom management server receives has user to need to listen to the web request of chatroom voice broadcast, and send chatroom voice broadcast notice to live management server and chatroom voice server;
Step S303: chatroom voice server receives the above-mentioned chatroom voice broadcast notice coming from above-mentioned chatroom management server, and opening voice passage, allows live management server to ask chatroom speech data by above-mentioned voice channel;
Step S305: above-mentioned live management server receives the above-mentioned chatroom voice broadcast notice coming from above-mentioned chatroom management server, to voice server request chatroom, above-mentioned chatroom speech data, create and the connection based on the stream media network host-host protocol HLS server of HTTP, undertaken encoding by asking the chatroom speech data obtained and be sent to above-mentioned HLS server by above-mentioned connection;
Step S307: above-mentioned HLS server receives the speech data after coming from above-mentioned live management server coding and saves as multiple file to make web downloading and playing.
User in chatroom shares chatroom and links to audience (can be circle of friends or QQ space), after audience opens this link, the web that linked notify chatroom management server (PCMS) someone to listen to this chatroom chat content, each server will the function completing each server of method according to Fig. 3 afterwards, and web can arrive HLS server and downloads voice document and carry out having play afterwards.
The chatroom voice broadcast method based on web shown in Fig. 3 of employing, in chatroom, user wants to audience's sharing contents, audience can not install client software, not registered members, do not add in chatroom, in browser (it is good that micro-letter and QQ carry browser), open the link that good friend shares can listen to, and effectively improves Consumer's Experience.
Wherein, what live management server 14 created can be that real-time messages host-host protocol (RTMP) connects with the connection of HLS server, and the speech data after above-mentioned coding can be Advanced Audio Coding (AAC) speech data.
Preferably, after live management server creates the connection with above-mentioned HLS server in step S305, following process can also be comprised: above-mentioned live management server, after chatroom voice broadcast terminates, destroys the connection with above-mentioned HLS server.
Preferably, in step S307, above-mentioned HLS server receives the speech data after coming from above-mentioned live management server coding and saves as multiple file and may further include: the data after above-mentioned coding are saved as multiple transport stream ts file by the Nginx real-time messages host-host protocol module of above-mentioned HLS server; The Nginx module of above-mentioned HLS server stores configuration file, wherein, above-mentioned configuration file comprise each above-mentioned ts file preserve the time span of voice data and the effective time of this ts file.
Preferably, the ts file corresponding this effective time, when above-mentioned time-out effective time, is deleted by Nginx real-time messages host-host protocol module.
In sum, by above-described embodiment provided by the invention, voice-enabled chat room is carried out live by web, audience can not install client software, can not registered members, can not add in chatroom, in browser (it is good that micro-letter and QQ carry browser), open the link that good friend shares can listen to.Aforesaid operations is convenient and swift, effectively improves Consumer's Experience.
Be only several specific embodiment of the present invention above, but the present invention is not limited thereto, the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.

Claims (10)

1., based on a chatroom voice broadcast system of web, it is characterized in that, comprising:
Chatroom management server, needs to listen to the web request of chatroom voice broadcast for receiving user, and sends chatroom voice broadcast notice to live management server and chatroom voice server;
Chatroom voice server, be connected with described chatroom management server, for receiving the described chatroom voice broadcast notice coming from described chatroom management server, opening voice passage, allows live management server to ask chatroom speech data by described voice channel;
Described live management server, be connected with described chatroom management server and described chatroom voice server respectively, for receiving the described chatroom voice broadcast notice coming from described chatroom management server, to voice server request chatroom, described chatroom speech data, create and the connection based on the stream media network host-host protocol HLS server of HTTP, undertaken encoding by asking the chatroom speech data obtained and be sent to described HLS server by described connection;
Described HLS server, is connected with described live management server, for receiving the speech data after coming from described live management server coding and saving as multiple file to make web downloading and playing.
2. system according to claim 1, is characterized in that, described live management server, also for after chatroom voice broadcast terminates, destroys the connection with described HLS server.
3. system according to claim 1, is characterized in that, described HLS server comprises:
Nginx real-time messages host-host protocol module, for saving as multiple transport stream ts file by the data after described coding;
Nginx module, stores configuration file, wherein, described configuration file comprise each described ts file preserve the time span of voice data and the effective time of this ts file.
4. system according to claim 3, is characterized in that,
Nginx real-time messages host-host protocol module, also for when described effective time is overtime, deletes the ts file corresponding this effective time.
5. system according to claim 1, is characterized in that, what described live management server created is that real-time messages host-host protocol RTMP connects with the connection of HLS server, and the speech data after described coding is Advanced Audio Coding AAC speech data.
6. a voice broadcast method for the chatroom voice broadcast system according to any one of described claim 1 to 5, is characterized in that, comprising:
Chatroom management server receives has user to need to listen to the web request of chatroom voice broadcast, and sends chatroom voice broadcast notice to live management server and chatroom voice server;
Chatroom voice server receives the described chatroom voice broadcast notice coming from described chatroom management server, and opening voice passage, allows live management server to ask chatroom speech data by described voice channel;
Described live management server receives the described chatroom voice broadcast notice coming from described chatroom management server, to voice server request chatroom, described chatroom speech data, create and the connection based on the stream media network host-host protocol HLS server of HTTP, undertaken encoding by asking the chatroom speech data obtained and be sent to described HLS server by described connection;
Described HLS server receives the speech data after coming from described live management server coding and saves as multiple file to make web downloading and playing.
7. method according to claim 6, is characterized in that, after described live management server creates the connection with described HLS server, also comprises:
Described live management server, after chatroom voice broadcast terminates, destroys the connection with described HLS server.
8. method according to claim 6, is characterized in that, described HLS server receives the speech data after coming from described live management server coding and saves as multiple file and comprises:
Data after described coding are saved as multiple transport stream ts file by the Nginx real-time messages host-host protocol module of described HLS server;
The Nginx module of described HLS server stores configuration file, wherein, described configuration file comprise each described ts file preserve the time span of voice data and the effective time of this ts file.
9. method according to claim 8, is characterized in that, also comprises:
The ts file corresponding this effective time, when described time-out effective time, is deleted by Nginx real-time messages host-host protocol module.
10. method according to claim 6, is characterized in that, described connection is that real-time messages host-host protocol RTMP connects, and the speech data after described coding is Advanced Audio Coding AAC speech 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 true CN105376075A (en) 2016-03-02
CN105376075B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483604A (en) * 2017-08-29 2017-12-15 武汉斗鱼网络科技有限公司 The method and apparatus that Nginx RTMP dynamics update DNS cache
CN107680021A (en) * 2017-10-17 2018-02-09 深圳市乐唯科技开发有限公司 A kind of building method of light and easy voice training mobile platform
CN107743251A (en) * 2017-10-10 2018-02-27 武汉斗鱼网络科技有限公司 Video friend-making duration adaptation method, storage medium, electronic equipment and system
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

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483604A (en) * 2017-08-29 2017-12-15 武汉斗鱼网络科技有限公司 The method and apparatus that Nginx RTMP dynamics update DNS cache
CN107483604B (en) * 2017-08-29 2020-12-15 武汉斗鱼网络科技有限公司 Method and device for dynamically updating DNS cache by Nginx-RTMP
CN107743251A (en) * 2017-10-10 2018-02-27 武汉斗鱼网络科技有限公司 Video friend-making duration adaptation method, storage medium, electronic equipment and system
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

Also Published As

Publication number Publication date
CN105376075B (en) 2019-04-09

Similar Documents

Publication Publication Date Title
CN108055496B (en) Live broadcasting method and system for video conference
CN101872555B (en) Real-time interactive teaching system based on application-layer multicast services
CN110768817B (en) Upgrading method and device for video networking terminal
CN108289187B (en) Method and system for accessing live webcast to video conference
CN101365096B (en) Method for providing video content, related service apparatus and system
CN103763627B (en) A kind of method and system for realizing real-time video conference
KR20160067126A (en) Method and apparatus for content delivery
NO20072231L (en) Method and system for broadcasting multimedia data
CN101873219B (en) System for live broadcast of video conference on basis of application-layer multicast services
US20110126256A1 (en) Method for live broadcasting in a distributed network and apparatus for the same
CN102801770A (en) Web video conference method capable of realizing separate transmission of audio and video
CN101938624A (en) Multipoint safe videoconference system with IP set-top box based on H.323 protocol
CN105376075A (en) Chat room voice direct broadcasting system and voice direct broadcasting method based on web
CN112565234B (en) Cross-network transmission system and method based on WebRTC
MXPA06000670A (en) Method and system for providing a transmission link for streaming traffic.
CN102497423B (en) Method, device and system for playing songs in webpage chat room
CN105791884A (en) Streaming media live broadcast method and streaming media live broadcast system
CN109964467A (en) The control based on node type for auxiliary data flow transmission
CN105187296A (en) Studio authority acquisition method and system
US8910226B2 (en) Transmitting apparatus, transmitting method, receiving apparatus, receiving method, program, and content distribution system
CN109963108B (en) One-to-many talkback method and device
CN102291244B (en) Cloud broadcast system and method
EP2890081B1 (en) Aggregated adaptive bit rate streaming
CN103684970A (en) Transmission method and thin terminals for media data streams
US8539091B2 (en) Method and system for preempting control of data streaming

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