CN109660839B - Communication method between live broadcast functional components, storage medium, electronic device and system - Google Patents

Communication method between live broadcast functional components, storage medium, electronic device and system Download PDF

Info

Publication number
CN109660839B
CN109660839B CN201710935292.1A CN201710935292A CN109660839B CN 109660839 B CN109660839 B CN 109660839B CN 201710935292 A CN201710935292 A CN 201710935292A CN 109660839 B CN109660839 B CN 109660839B
Authority
CN
China
Prior art keywords
component
communication
live broadcast
communication module
name
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
CN201710935292.1A
Other languages
Chinese (zh)
Other versions
CN109660839A (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.)
Beijing Jinxin Ruitong Technology Co ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710935292.1A priority Critical patent/CN109660839B/en
Publication of CN109660839A publication Critical patent/CN109660839A/en
Application granted granted Critical
Publication of CN109660839B publication Critical patent/CN109660839B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/38Universal adapter
    • G06F2213/3852Converter between protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a communication method, a storage medium, electronic equipment and a system among live broadcast functional components, and relates to the field of design of coupling relations among live broadcast functional components. The method comprises the following steps: setting a corresponding number of component communication modules according to the number of live broadcast functional components, and setting a universal communication message name conversion protocol in each component communication module; when the live broadcast functional component needs to communicate, selecting and associating a proper component communication module for the live broadcast functional component; and the live broadcast functional component sends a communication message to the associated component communication module, and the component communication module converts the name of the current communication message into a message transmission name according to the communication message name conversion protocol and then sends the communication message with the converted name to the component communication module associated with the target live broadcast functional component. When the live broadcast functional components communicate with each other, the communication quality can be improved while the communication efficiency of the live broadcast functional components is ensured.

Description

Communication method between live broadcast functional components, storage medium, electronic device and system
Technical Field
The invention relates to the field of design of coupling relations among live broadcast functional components, in particular to a communication method, a storage medium, electronic equipment and a system among live broadcast functional components.
Background
Currently, when live broadcast functional components are designed, in order to isolate service functions between live broadcast functional components, a coupling relationship between live broadcast functional components is generally designed to be a zero coupling relationship (i.e., there is no coupling relationship). Although the zero-coupling relationship can completely isolate the business functions between the live broadcast functional components, not only more repeated data exists between the zero-coupling live broadcast functional components, but also the following defects exist during communication:
(1) when all live function module communications, all need send communication message through 1 event bus, under the condition that event bus itself need handle other things, let event bus forward all live function module's communication message, have increased the load of event bus (that is whole system) undoubtedly, all live function module communicate through 1 event bus moreover, can make communication message send the delay rate higher, and then has seriously reduced work efficiency and user experience.
(2) The communication message name of the live broadcast functional component is packaged in the component, namely, each live broadcast functional component independently maintains messages, so that the communication message packet loss and other problems are caused due to the fact that the communication message names of different live broadcast functional components are not matched (cannot be corresponding) when different live broadcast functional components communicate, and the communication quality is further reduced.
Disclosure of Invention
Aiming at the defects in the prior art, the invention solves the technical problems that: when the live broadcast functional components communicate, how to realize the improvement of the communication quality while ensuring the communication efficiency of the live broadcast functional components.
In order to achieve the above purpose, the communication method between live broadcast functional components provided by the invention comprises the following steps:
s1: according to the number of the live broadcast functional components, setting a corresponding number of component communication modules, setting a universal communication message name conversion protocol in each component communication module, and turning to S2;
s2: when the live function component needs communication, selecting a proper component communication module for the live function component, associating the selected component communication module with the live function component, and turning to S3;
s3: the live broadcast functional component sends communication information to an associated component communication module, the component communication module converts the name of the current communication information into an information transmission name according to the communication information name conversion protocol, and then sends the communication information with the converted name to a component communication module associated with a target live broadcast functional component, and the component communication module associated with the target live broadcast functional component receives the communication information with the converted name.
On the basis of the above technical solution, in S1, the standard for setting the component communication modules in the corresponding number according to the number of live broadcast functional components is as follows: the ratio of the number of the component communication modules to the number of the live broadcast functional components is 1: 1-7.
On the basis of the above technical solution, the process of S2 selecting an appropriate component communication module for the live function component includes: and acquiring the number of the live broadcast functional components associated with each component communication module, and selecting the component communication module with the least number of the associated live broadcast functional components as a proper component communication module.
On the basis of the above technical solution, the process of setting a common communication message name conversion protocol in each component communication module in S1 includes: setting message transmission names corresponding to all communication message names of each live broadcast functional component in each component communication module, and associating each message transmission name; the process of converting the current communication message name into the message transmission name by the component communication module according to the communication message name conversion protocol in S3 includes: and acquiring a message transmission name corresponding to the current communication message name.
The storage medium provided by the invention is stored with a computer program, and the computer program realizes the communication method among the live broadcast functional components when being executed by a processor.
The electronic equipment provided by the invention comprises a memory and a processor, wherein the memory is stored with a computer program running on the processor, and the processor realizes the communication method among the live broadcast functional components when executing the computer program.
The communication system between the live broadcast functional components comprises a communication association module and a plurality of component communication modules;
the communication association module is to: when the live broadcast functional component needs to communicate, selecting a proper component communication module for the live broadcast functional component, and sending a communication association signal to the selected component communication module;
the component communication module is to: setting a universal communication message name conversion protocol; after receiving the communication association signal, associating the communication association signal with a corresponding live broadcast functional component; when receiving the communication message sent by the live broadcast functional component, converting the name of the current communication message into a message transmission name according to a communication message name conversion protocol, and sending the communication message after name conversion to a component communication module associated with a target live broadcast functional component.
On the basis of the technical scheme, the ratio of the number of the component communication modules to the number of the live broadcast functional components is 1: 1-7.
On the basis of the technical scheme, the process that the communication association module selects a proper component communication module for the live broadcast functional component comprises the following steps: and acquiring the number of the live broadcast functional components associated with each component communication module, and selecting the component communication module with the least number of the associated live broadcast functional components as a proper component communication module.
On the basis of the above technical solution, the process of setting a universal communication message name conversion protocol by the component communication module includes: setting message transmission names corresponding to all communication message names of each live broadcast functional component, and associating each message transmission name; the process of converting the current communication message name into the message transmission name by the component communication module according to the communication message name conversion protocol comprises the following steps: and acquiring a message transmission name corresponding to the current communication message name.
Compared with the prior art, the invention has the advantages that:
(1) as can be seen from S1 to S3 of the present invention, compared with the live broadcast function component communicating via the event bus in the prior art, the present invention can take charge of the transmission of the communication message between the live broadcast function components via the component communication module, which not only significantly reduces the load of the time bus and reduces the delay rate of the communication message transmission, but also can automatically select the most suitable component communication module for the live broadcast function component requiring communication, thereby ensuring the communication efficiency of the component communication module.
Meanwhile, referring to S1 and S3 of the present invention, compared with the situation that the communication message names of different live broadcast functional components in the prior art are not matched, the present invention converts the communication message names of all live broadcast functional components into message transmission names associated with each other through the component communication module, thereby realizing the identification of the communication messages of all live broadcast functional components, further significantly reducing the probability of packet loss of the communication messages, and greatly improving the communication quality.
(2) Referring to the invention S1, the ratio of the number of the communication modules of the component to the number of the live broadcast functional components is 1: 1-7, that is, at most 7 live broadcast functional components share 1 component communication module; the number of the communication modules is not too much, so that the use cost is controlled, the number of the communication modules is not too small, and the communication number of the live broadcast functional components is ensured.
(3) Referring to S2 of the present invention, when the live broadcast function components communicate, the present invention selects the component communication module with the least number of associated live broadcast function components as the appropriate component communication module, which is the component communication module with the fastest operation efficiency among all the component communication modules. Therefore, the communication efficiency of the live broadcast functional component can be guaranteed to the maximum extent when the live broadcast functional component communicates.
Drawings
FIG. 1 is a flow chart of a method for communication between live function components in an embodiment of the present invention;
fig. 2 is a connection block diagram of an electronic device in an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
Referring to fig. 1, a communication method between live function components in the embodiment of the present invention includes the following steps:
s1: according to the number of the live broadcast functional components, setting corresponding number of component communication modules, and setting a universal communication message name conversion protocol in each component communication module, specifically: in each component communication module, message transfer names corresponding to all communication message names of each live function component are set, each message transfer name is associated, and the flow goes to S2.
The reason why the corresponding number of component communication modules is set according to the number of live function components in S1 is that: the component communication module is used for communication among live broadcast functional components, and considering the communication efficiency and the use cost of the live broadcast functional components, the component communication module cannot be too much (too much cost is increased) or too little (too little can enable the too many live broadcast functional components to share 1 component communication module, and further the communication efficiency is reduced). Therefore, the ratio of the number of the component communication modules to the number of the live broadcast functional components in the embodiment of the invention is 1: 1-7, that is, at most 7 live broadcast functional components share 1 component communication module, and through tests, the ratio of the number can ensure the communication efficiency of the live broadcast functional components on the basis of controlling the use cost.
S2: when the live function component needs to communicate, after a proper component communication module is selected for the live function component, the selected component communication module is associated with the live function component, and the S3 is switched to.
The conditions of the appropriate component communication module in S2 are: and the component communication module with the fastest operation efficiency is selected from all the component communication modules. The specific selection condition corresponding to the possessed condition may be determined according to the number of live broadcast functional components associated with the component communication module, or may be determined according to the load of the component communication module, and in the embodiment of the present invention, a suitable component communication module is selected according to the number of live broadcast functional components associated with the component communication module, and the specific flow is as follows: and acquiring the number of the live broadcast functional components associated with each component communication module, and selecting the component communication module with the least number of the associated live broadcast functional components as a proper component communication module. Therefore, the communication module with the fastest operation efficiency can be automatically selected to be responsible for the communication of the live broadcast functional component, and the communication efficiency of the live broadcast functional component is further guaranteed to the maximum extent.
S3: the live broadcast functional component sends a communication message to the associated component communication module, the component communication module converts the name of the current communication message into a message transmission name (acquires the message transmission name corresponding to the name of the current communication message) according to the communication message name conversion protocol in S1, sends the communication message after the name conversion to the component communication module associated with the target live broadcast functional component, and the component communication module associated with the target live broadcast functional component receives the communication message after the name conversion.
As can be seen from S1 to S3 in the embodiments of the present invention, compared with the live broadcast function component communicating through the event bus in the prior art, the embodiment of the present invention can be responsible for the transmission of the communication message between the live broadcast function components through the component communication module, which not only significantly reduces the load of the time bus and improves the work efficiency of the entire system, but also can automatically select the most appropriate component communication module for the live broadcast function component requiring communication, thereby ensuring the communication efficiency of the component communication module.
Meanwhile, referring to S3 in this embodiment of the present invention, as compared with the case where the communication message names of different live broadcast function components in the prior art are not matched, the communication message names of all live broadcast function components are converted into a common message transmission name by the component communication module in this embodiment of the present invention, so as to identify the communication messages of all live broadcast function components, thereby significantly reducing the probability of packet loss of the communication messages, and greatly improving the communication quality.
The embodiment of the invention also provides a storage medium, wherein a computer program is stored on the storage medium, and when being executed by a processor, the computer program realizes the communication method among the live broadcast functional components. The storage medium includes various media capable of storing program codes, such as a usb disk, a removable hard disk, a ROM (Read-Only Memory), a RAM (Random Access Memory), a magnetic disk, or an optical disk.
Referring to fig. 2, an embodiment of the present invention further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program running on the processor, and the processor executes the computer program to implement the communication method between the live broadcast functional components.
The communication system among the live broadcast functional components in the embodiment of the invention comprises a communication association module and a plurality of component communication modules, wherein the ratio of the number of the component communication modules to the number of the live broadcast functional components is 1: 1-7.
The communication association module is to: when the live broadcast functional components need to communicate, selecting a proper component communication module for the live broadcast functional components (acquiring the number of live broadcast functional components associated with each component communication module, selecting the component communication module with the least number of associated live broadcast functional components as the proper component communication module), and sending communication association signals to the selected component communication module.
The component communication module is to: setting a universal communication message name conversion protocol (setting message transmission names corresponding to all communication message names of each live broadcast functional component, and associating each message transmission name); after receiving the communication association signal, associating the communication association signal with a corresponding live broadcast functional component; when receiving the communication message sent by the live broadcast functional component, converting the name of the current communication message into a message transmission name (acquiring the message transmission name corresponding to the name of the current communication message) according to a communication message name conversion protocol, and sending the communication message after the name conversion to a component communication module associated with a target live broadcast functional component.
It should be noted that: in the system provided in the embodiment of the present invention, when performing inter-module communication, only the division of each functional module is illustrated, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the system is divided into different functional modules to complete all or part of the above described functions.
Further, the present invention is not limited to the above-mentioned embodiments, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and these modifications and improvements are also considered to be within the scope of the present invention. Those not described in detail in this specification are within the skill of the art.

Claims (8)

1. A communication method between live broadcast functional components is characterized by comprising the following steps:
s1: according to the number of the live broadcast functional components, setting a corresponding number of component communication modules, setting a universal communication message name conversion protocol in each component communication module, and turning to S2;
s2: when the live function component needs communication, selecting a proper component communication module for the live function component, associating the selected component communication module with the live function component, and turning to S3;
s3: the live broadcast functional component sends a communication message to an associated component communication module, the component communication module converts the name of the current communication message into a message transmission name according to the communication message name conversion protocol, and then sends the communication message with the converted name to a component communication module associated with a target live broadcast functional component, and the component communication module associated with the target live broadcast functional component receives the communication message with the converted name;
the process of S2 selecting an appropriate component communication module for the live function component includes: and acquiring the number of the live broadcast functional components associated with each component communication module, and selecting the component communication module with the least number of the associated live broadcast functional components as a proper component communication module.
2. The method according to claim 1, wherein in S1, the criteria for setting the corresponding number of component communication modules according to the number of live function components are: the ratio of the number of the component communication modules to the number of the live broadcast functional components is 1: 1-7.
3. The method for communicating between live functional components according to claim 1 or 2, wherein the step of setting a common communication message name conversion protocol in each component communication module in S1 includes: setting message transmission names corresponding to all communication message names of each live broadcast functional component in each component communication module, and associating each message transmission name; the process of converting the current communication message name into the message transmission name by the component communication module according to the communication message name conversion protocol in S3 includes: and acquiring a message transmission name corresponding to the current communication message name.
4. A storage medium having a computer program stored thereon, characterized in that: the computer program, when executed by a processor, implements the method of any of claims 1 to 3.
5. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program that runs on the processor, characterized in that: a processor implementing the method of any one of claims 1 to 3 when executing the computer program.
6. A communication system among live broadcast functional components is characterized by comprising a communication association module and a plurality of component communication modules;
the communication association module is to: when the live broadcast functional component needs to communicate, selecting a proper component communication module for the live broadcast functional component, and sending a communication association signal to the selected component communication module;
the component communication module is to: setting a universal communication message name conversion protocol; after receiving the communication association signal, associating the communication association signal with a corresponding live broadcast functional component; when receiving a communication message sent by a live broadcast functional component, converting the name of the current communication message into a message transmission name according to a communication message name conversion protocol, and sending the communication message after name conversion to a component communication module associated with a target live broadcast functional component;
the process that the communication association module selects a proper component communication module for the live broadcast functional component comprises the following steps: and acquiring the number of the live broadcast functional components associated with each component communication module, and selecting the component communication module with the least number of the associated live broadcast functional components as a proper component communication module.
7. A system for communication between live functional components as claimed in claim 6, wherein: the ratio of the number of the component communication modules to the number of the live broadcast functional components is 1: 1-7.
8. A system of communication between live functional components as claimed in claim 6 or 7, characterized by: the process of setting the universal communication message name conversion protocol by the component communication module comprises the following steps: setting message transmission names corresponding to all communication message names of each live broadcast functional component, and associating each message transmission name; the process of converting the current communication message name into the message transmission name by the component communication module according to the communication message name conversion protocol comprises the following steps: and acquiring a message transmission name corresponding to the current communication message name.
CN201710935292.1A 2017-10-10 2017-10-10 Communication method between live broadcast functional components, storage medium, electronic device and system Active CN109660839B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710935292.1A CN109660839B (en) 2017-10-10 2017-10-10 Communication method between live broadcast functional components, storage medium, electronic device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710935292.1A CN109660839B (en) 2017-10-10 2017-10-10 Communication method between live broadcast functional components, storage medium, electronic device and system

Publications (2)

Publication Number Publication Date
CN109660839A CN109660839A (en) 2019-04-19
CN109660839B true CN109660839B (en) 2021-01-01

Family

ID=66108600

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710935292.1A Active CN109660839B (en) 2017-10-10 2017-10-10 Communication method between live broadcast functional components, storage medium, electronic device and system

Country Status (1)

Country Link
CN (1) CN109660839B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247555A (en) * 2008-01-29 2008-08-20 梁宇杰 Information service method and system based on USSD protocol
CN102238373A (en) * 2010-04-20 2011-11-09 上海精视信息技术有限责任公司 Television program transmission system based on broadband mobile communication technology and working method thereof
US20150063208A1 (en) * 2013-08-28 2015-03-05 Qualcomm Incorporated Systems and methods for service identification in neighborhood aware networks
CN106792089A (en) * 2016-12-15 2017-05-31 腾讯科技(深圳)有限公司 Video broadcasting method and device

Also Published As

Publication number Publication date
CN109660839A (en) 2019-04-19

Similar Documents

Publication Publication Date Title
RU2019134380A (en) METHODS AND SYSTEMS FOR RESOURCE PLANNING IN A TELECOMMUNICATION SYSTEM
CN101534244A (en) Method, device and system for load distribution
CN106233559A (en) Wireless energy transfer
RU2014140186A (en) COMMUNICATION DEVICE, COMMUNICATION MANAGEMENT METHOD AND PROGRAM
EP3496351B1 (en) Pilot signal transmission method and device
CN104770045A (en) Device-to-device distributed scheduling
CN107925652B (en) Fixed conversion method and device of transmission protocol based on message protocol identification
US11483103B2 (en) Base station, user terminal, and carrier scheduling indication method
CN101873269A (en) Data retransmission device and method for distributing buffer to ports
CN106131788A (en) A kind of obtain the method for positional information, relevant device and trunked communication system
CN112019239A (en) Method, node and storage medium for transmitting data
CN108521888A (en) Unmanned plane cut-in method and device
CN104734823A (en) Communication system, communication terminal, transfer tables and handshake communication method
CN109660839B (en) Communication method between live broadcast functional components, storage medium, electronic device and system
US9924497B2 (en) Method for transmitting signal in device-to-device proximity service, base station, and user equipment
CN114257354A (en) Transmission method, terminal equipment and network side equipment
US11528685B2 (en) Uplink control information transmission method and related apparatus
CN105634931A (en) Messaging service processing method and instant messaging server
CN110166187B (en) HARQ-ACK codebook determination method, user terminal and base station
CN112312465A (en) Method, device, terminal and equipment for reporting and receiving random access report
CN112512131B (en) Power saving method and system for data transmission
US11803494B2 (en) Data communication method, master device and system
US20190387376A1 (en) Method and Terminal for Acquiring Transmission Resource in Vehicle to Everything
RU2009104702A (en) CUSTOM NETWORK AND METHOD FOR USING MULTIPLE ACCESS SYSTEMS FOR CONNECTING WITH REMOTE (REMOTE) COMMUNICATION NETWORK (S)
CN112399463B (en) Information reporting method and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20231109

Address after: Room 8434, Building 3, No. 3 Xijing Road, Badachu High tech Park, Shijingshan District, Beijing, 100043

Patentee after: Beijing Jinxin Ruitong Technology Co.,Ltd.

Address before: 430000 East Lake Development Zone, Wuhan City, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building

Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right