CN112073487A - Signaling sending method, signaling display method, signaling sending device, signaling display device, electronic equipment and storage medium - Google Patents

Signaling sending method, signaling display method, signaling sending device, signaling display device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112073487A
CN112073487A CN202010887452.1A CN202010887452A CN112073487A CN 112073487 A CN112073487 A CN 112073487A CN 202010887452 A CN202010887452 A CN 202010887452A CN 112073487 A CN112073487 A CN 112073487A
Authority
CN
China
Prior art keywords
signaling
information
display
client
configuration information
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
CN202010887452.1A
Other languages
Chinese (zh)
Other versions
CN112073487B (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 Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202010887452.1A priority Critical patent/CN112073487B/en
Publication of CN112073487A publication Critical patent/CN112073487A/en
Application granted granted Critical
Publication of CN112073487B publication Critical patent/CN112073487B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/03Protocol definition or specification 

Landscapes

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

Abstract

The embodiment of the disclosure relates to a signaling sending method, a signaling display method, a signaling sending device, a signaling display device, an electronic device and a storage medium. The signaling sending method comprises the following steps: receiving a long connection request sent by a client, wherein the long connection request comprises display configuration information of the client; establishing connection with the client and storing the display configuration information; receiving an initial signaling sent by a second server according to a signaling protocol, wherein the signaling protocol is established between a first server and the second server and comprises at least one piece of display information; inquiring the display configuration information; in the initial signaling, modifying each piece of display information, generating a signaling corresponding to the display configuration information, and sending the signaling to the client, where the corresponding signaling includes the display information corresponding to the display configuration information. The embodiment of the disclosure can reduce the initial signaling adjustment cost and complexity, and improve the signaling generation efficiency.

Description

Signaling sending method, signaling display method, signaling sending device, signaling display device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of information technologies, and in particular, to a method and an apparatus for signaling transmission and signaling display, an electronic device, and a storage medium.
Background
In the related art, a system architecture for providing services to clients may include a long connection layer and a business logic layer. The long connection layer is used for interacting with the client, such as signaling is issued to the client, and the service logic layer is used for processing complex service logic operation. Usually, the signaling is generated by a service logic layer and is sent to a long connection layer, and then is sent to a plurality of clients connected to the server by the long connection layer.
When the signaling with the text content is issued, the service logic layer issues the original signaling without the text content to the long connection layer, and the long connection layer reassembles and generates the signaling with the text content according to the type of the signaling and issues the signaling to the client.
For users in different countries, there is a need for clients to display text in different languages. When the language of the text needs to be adjusted, the long connection layer needs to be adjusted again, and even the long connection layer needs to be developed again.
Disclosure of Invention
The disclosure provides a signaling sending method, a signaling display method, a signaling sending device, a signaling display device, an electronic device and a storage medium, which are used for at least solving the problems of high complexity, high development cost and high maintenance cost of a signaling operation for converting non-carried text content into carried text content by a long connection layer in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a signaling sending method is provided, which is applied to a first server, and includes:
receiving a long connection request sent by a client, wherein the long connection request comprises display configuration information of the client;
establishing connection with the client and storing the display configuration information;
receiving an initial signaling sent by a second server according to a signaling protocol, wherein the signaling protocol is established between a first server and the second server and comprises at least one piece of display information;
inquiring the display configuration information;
in the initial signaling, modifying each piece of display information, generating a signaling corresponding to the display configuration information, and sending the signaling to the client, where the corresponding signaling includes the display information corresponding to the display configuration information.
Optionally, in the initial signaling, modifying each piece of display information to generate a signaling corresponding to the display configuration information includes:
in the initial signaling, target display information corresponding to the display configuration information is obtained, the display configuration information is used for configuring to-be-displayed contents in the signaling sent to the client, and the target display information is used for indicating the client to display to-be-displayed contents matched with the display configuration information;
in the initial signaling, deleting the display information different from the target display information, and generating a signaling corresponding to the display configuration information.
Optionally, the deleting the display information different from the target display information, and generating a signaling corresponding to the display configuration information includes:
acquiring a communication protocol between a first server and a client;
and acquiring display information identification information included by the communication protocol, adding the display information identification information to a position matched with the target display information, and generating a signaling corresponding to the display configuration information, wherein the display information identification information is used for the client to inquire the target display information.
Optionally, the presentation information is text information, the presentation configuration information is language type information, semantics of the presentation information are the same, the presentation configuration information is used for configuring a text to be displayed included in a signaling sent to the client, and the target presentation information is used for indicating the client to display the text to be displayed, which is matched with the target language type information.
Optionally, after receiving the initial signaling sent by the second server according to the signaling protocol, the method further includes:
extracting live broadcast room identification information from the initial signaling;
acquiring at least one target client matched with the identification information of the live broadcast room from a plurality of clients establishing connection;
and respectively inquiring the target display configuration information of each target client, generating target signaling corresponding to each target display information, and respectively sending the target signaling to the corresponding target clients.
According to a second aspect of the embodiments of the present disclosure, there is provided a signaling method, applied to a second server, including:
acquiring an initial signaling, wherein the initial signaling comprises at least one piece of display information;
and sending the initial signaling to a first server according to a signaling protocol, wherein the initial signaling is used for the first server to modify each piece of display information in the initial signaling, generate a signaling corresponding to display configuration information and send the signaling to a client, and the display configuration information is obtained from a long connection request sent by the client through the first server.
Optionally, the acquiring the initial signaling includes:
acquiring signaling data, wherein the signaling data comprises: content configuration information, live broadcast room identification information and at least one piece of presentation information;
and arranging the signaling data according to a data structure included by the signaling protocol to generate an initial signaling.
According to a third aspect of the embodiments of the present disclosure, there is provided a signaling display method, applied to a client, including:
receiving a signaling sent by a first server, wherein the signaling is generated by modifying at least one piece of display information included in an initial signaling by the first server, and generating a signaling corresponding to display configuration information, and the display configuration information is sent to the first server in advance through a client;
extracting display information from the signaling, wherein the display information corresponds to display configuration information;
and generating and displaying the display content matched with the display information, wherein the display content corresponds to the display configuration information.
Optionally, the generating and displaying the display content matched with the display information includes:
and generating text content matched with the language type information and displaying the text content in the live broadcast room.
Optionally, before receiving the signaling sent by the first server, the method further includes:
acquiring display configuration information and generating a long connection request, wherein the long connection request comprises the display configuration information;
sending the long connection request to the first server;
establishing a connection with the first server.
Optionally, the initial signaling is a signaling that the first server receives a signaling sent by the second server according to a signaling protocol, where the signaling protocol is a signaling protocol established between the first server and the second server.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a signaling transmission apparatus configured in a first server, including
The client long connection establishing unit is configured to execute receiving of a long connection request sent by a client, wherein the long connection request comprises display configuration information of the client;
a display configuration information storage unit configured to perform establishment of a connection with the client and store display configuration information;
a signaling protocol acquisition unit configured to execute receiving of an initial signaling sent by a second server according to a signaling protocol, where the signaling protocol is a signaling protocol established between a first server and the second server, and the initial signaling includes at least one piece of presentation information;
a presentation configuration information query unit configured to perform query of the presentation configuration information;
and the signaling issuing unit is configured to modify each piece of display information in the initial signaling, generate a signaling corresponding to the display configuration information, and send the signaling to the client, wherein the corresponding signaling includes the display information corresponding to the display configuration information.
Optionally, the signaling issuing unit includes:
a target display information screening subunit, configured to execute in the initial signaling, to acquire target display information corresponding to the display configuration information, where the display configuration information is used to configure to-be-displayed content included in a signaling sent to the client, and the target display information is used to instruct the client to display to-be-displayed content matched with the display configuration information;
and the redundant display information deleting subunit is configured to delete the display information different from the target display information in the initial signaling, and generate a signaling corresponding to the display configuration information.
Optionally, the redundant display information deleting subunit includes:
a server and client protocol acquisition subunit configured to perform acquisition of a communication protocol between a first server and a client;
and the display information identification information adding subunit is configured to execute acquisition of display information identification information included in the communication protocol, add the display information identification information to a position matched with the target display information, and generate a signaling corresponding to the display configuration information, wherein the display information identification information is used for the client to inquire the target display information.
Optionally, the presentation information is text information, the presentation configuration information is language type information, semantics of the presentation information are the same, the presentation configuration information is used for configuring a text to be displayed included in a signaling sent to the client, and the target presentation information is used for indicating the client to display the text to be displayed, which is matched with the target language type information.
Optionally, the signaling sending apparatus further includes:
the direct broadcasting room identification information acquisition unit is configured to extract direct broadcasting room identification information from an initial signaling after receiving the initial signaling sent by a second server according to a signaling protocol;
a multi-client connection establishing unit configured to execute acquiring, among a plurality of clients establishing a connection, at least one target client matched with the live broadcast room identification information;
and each client display configuration information query unit is configured to execute target display configuration information query of each target client, generate target signaling corresponding to each target display information, and send the target signaling to the corresponding target client.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a signaling transmission apparatus, configured in a second server, including:
an initial signaling obtaining unit configured to perform obtaining initial signaling, the initial signaling including at least one piece of presentation information;
an initial signaling issuing unit, configured to execute sending the initial signaling to a first server according to a signaling protocol, where the initial signaling is used for the first server to modify each piece of presentation information in the initial signaling, generate a signaling corresponding to presentation configuration information, and send the signaling to a client, where the presentation configuration information is obtained from a long connection request sent by the client through the first server.
Optionally, the initial signaling obtaining unit includes:
a signaling data acquisition unit configured to perform acquisition of signaling data, the signaling data including: content configuration information, live broadcast room identification information and at least one piece of presentation information;
and the signaling data combination unit is configured to execute a data structure included according to the signaling protocol, arrange the signaling data and generate initial signaling.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a signaling display apparatus configured in a client, including:
a signaling receiving unit, configured to perform receiving signaling sent by a first server, where the signaling is obtained by modifying at least one piece of presentation information included in an initial signaling by the first server, and generating a signaling corresponding to presentation configuration information, where the presentation configuration information is sent to the first server through the client in advance;
a presentation information obtaining unit configured to extract presentation information from the signaling, the presentation information corresponding to presentation configuration information;
and the display content generating unit is configured to generate and display the display content matched with the display information, wherein the display content corresponds to the display configuration information.
Optionally, the display content generating unit includes:
and the live broadcast display subunit is configured to generate text content matched with the language type information and display the text content in the live broadcast.
Optionally, the signaling display apparatus further includes:
the display configuration information acquisition unit is configured to acquire display configuration information before receiving a signaling sent by a first server, and generate a long connection request, wherein the long connection request comprises the display configuration information;
a long connection request unit configured to perform sending the long connection request to the first server;
a long connection establishing unit configured to perform establishing a connection with the first server.
Optionally, the initial signaling is a signaling that the first server receives a signaling sent by the second server according to a signaling protocol, where the signaling protocol is a signaling protocol established between the first server and the second server.
According to a seventh aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the signaling method according to any embodiment of the present disclosure.
According to an eighth aspect of the embodiments of the present disclosure, there is provided a storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the signaling method according to any one of the embodiments of the present disclosure.
According to a ninth aspect of the embodiments of the present disclosure, there is provided a computer program product for use in conjunction with an electronic device, the computer program product comprising a computer-readable storage medium and a computer program mechanism embedded therein, the program being loaded into and executed by a computer to implement the signaling method according to any of the embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the method comprises the steps of establishing long connection with a client through a first server, simultaneously recording display configuration information sent by the client, modifying at least one piece of display information included in an initial signaling when the initial signaling sent by a second server is received, generating a signaling corresponding to the display configuration information, wherein the signaling includes the display information corresponding to the display configuration information, realizing that a plurality of pieces of display information are carried in the initial signaling, generating the signaling by screening the display information corresponding to the display configuration information, simplifying signaling generation operation, sending the signaling to the client, so that the client can acquire the display information corresponding to the display configuration information, and solving the problems that the generation operation complexity, the development cost and the maintenance cost of the signaling carrying the text content are high due to the fact that the first server assembles the signaling without the text content and the text content to generate the signaling with the text content in the prior art, the method and the device realize that all the text contents are carried in the initial signaling sent by the second server, the target text is screened in the initial signaling, and the signaling sent to the client is generated, thereby simplifying the generation operation of the signaling required by the client, reducing the workload of modifying the initial signaling, improving the generation efficiency of the signaling required by the client, reducing the complexity of the generation operation of the signaling required by the client, and reducing the maintenance cost of the first server.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a diagram illustrating a signaling delivery application scenario according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a signaling method according to an example embodiment.
Fig. 3 is a flow chart illustrating a signaling method according to an example embodiment.
Fig. 4 is a flow chart illustrating a signaling method according to an example embodiment.
Fig. 5 is a flow chart illustrating a signaling exposure method according to an example embodiment.
Fig. 6 is a signaling diagram illustrating interaction between a client, a first server, and a second server, according to an example embodiment.
Fig. 7 is a block diagram illustrating a signaling device according to an example embodiment.
Fig. 8 is a block diagram illustrating a signaling device according to an example embodiment.
Fig. 9 is a block diagram illustrating a signaling exhibit apparatus in accordance with an example embodiment.
FIG. 10 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In the process of receiving the signaling by the client, specifically as shown in fig. 1, the service system is connected to the client, and the service system is configured to provide a service, such as a live broadcast service, for the client. The service system at least comprises: a first server and a second server. The method comprises the steps that a first server and a client establish connection, meanwhile, the first server is connected with a second server, the second server is not connected with the first server, generally, the connection is a long connection, wherein the long connection refers to the connection capable of continuously keeping a connection state for a long time, and a plurality of data packets can be continuously sent on the long connection. The second server is used for sending the service data to the first server; the first server processes the service data and sends the processed service data to the client, where the service data may be a signaling.
Fig. 2 is a flowchart illustrating a signaling method according to an exemplary embodiment, where the signaling method is used in a first server as shown in fig. 2, and includes the following steps.
In step S11, a long connection request sent by a client is received, where the long connection request includes presentation configuration information of the client.
The long connection request is a request for establishing a long connection between the first server and the client. Usually, the signaling is a command issued by the first server actively, and does not need to rely on the request of the client. By establishing the long connection between the first server and the client, the first server can actively send signaling to the client. The first server is configured to establish long connection with the client for communication, so that the connection request times and time can be reduced, and the signaling issuing efficiency is improved.
The presentation configuration information is used to determine the content that needs to be presented. The client and the display configuration information have a corresponding relationship, and correspondingly, the display configuration information is used for determining the content and the like which need to be displayed on the corresponding client. More specifically, the presentation configuration information is data used for distinguishing the clients and screening the presentation information for the clients. The presentation configuration information may be represented by characters. The content may include at least one of the following content type, presentation style, presentation position, and the like. For example, the content is a text, the content type may be a language type, the presentation style may be a font size, and the presentation position may be a position in the page, for example, a top of the page or a bottom of the page, and the content may further include other information, which may be specifically set according to needs.
In step S12, a connection with the client is established, and the presentation configuration information is stored.
And establishing long connection with the client, and returning a message of successful establishment of the long connection back to the client when the connection is successfully established. After the connection is established, the first server can perform data transmission with the client through the established long connection.
And storing the display configuration information sent by the client, and simultaneously establishing and storing the corresponding relation between the display configuration information and the client. The first server may establish and maintain a correspondence table between the presentation configuration information and the client list, and store correspondences between the plurality of clients and the corresponding presentation configuration information.
For example, the client in the correspondence table may be a client that establishes a long connection with the first server, for example, the client is disconnected from the first server, and the correspondence between the client and the corresponding presentation configuration information may be deleted from the correspondence table. In addition, the client in the correspondence table may also be any other client, and for this, the embodiment of the present disclosure is not particularly limited.
In step S13, an initial signaling sent by the second server according to a signaling protocol is received, where the signaling protocol is established between the first server and the second server, and the initial signaling includes at least one piece of presentation information.
The initial signaling is a command for instructing the client to display the specified content on the interface, that is, the initial signaling needs to specify the content to be displayed, and correspondingly, the initial signaling includes display information, and the display information includes data for generating the content to be displayed. Optionally, the initial signaling may further specify an interface to be displayed, and correspondingly, the initial signaling further includes identification information of the interface. Initial signaling is transmitted between a first server and a second server. The signaling protocol is a protocol established between the first server and the second server and is used for appointing a data format and a transmission mode of initial signaling.
The second server is used for providing service for at least one client, the first server is used for establishing long connection with each client, and the first server and the second server belong to the same service system. The first server and the second server may communicate, for example, via a cable connection, to establish a communication connection. The second server is configured with a service code, and the service code is executed to generate service data and provide service for the client. For example, the second server executing the service code may generate an initial signaling, and display the specified presentation information on the specified interface of the client; for another example, the second server executing the service code may generate a hypertext markup language file, and display a page matching the hypertext markup language file on the client.
The presentation information may be information for generating visual content such as text, images, and videos. Differentiated by the type of the visual content, the presentation information may include at least one of: text information, image information, video information, or the like. The text information includes data for generating text, such as text content; the image information includes data for generating an image, such as an image address; the video information includes data, such as a video address, used to generate the video. The interface may be a web page of a browser; as another example, the interface may be a live room page of a live application; as another example, the interface may be a chat page of a communication application, or the like. For example, the initial signaling is used to display the text "welcome to my live room" in live room a.
In fact, in the user group using the client, the requirements of the users are different, for example, the users in different countries use different languages, and accordingly, the users in different countries need the client to display text contents in different languages, for example, a chinese text, an english text, or a russian text; for another example, users of different ages may see different font sizes, and accordingly, users of different ages need the client to display text contents of different font sizes, for example, a font size five or a font size one. By configuring a plurality of display information and establishing a corresponding relation between one display information and one user or one type of user requirements, the corresponding display information can be determined according to the user requirements of the client, and only the display information is provided for the client, so that the client generates the content adaptive to the user requirements according to the display information.
In fact, the second server does not store information related to the client, and at this time, the second server cannot detect the presence information required by the client, so that all the presence information needs to be added to the initial signaling and provided to the first server, and accordingly, the initial signaling includes at least one presence information. And screening out the display information adapted to the client from all the display information by the first server to form a signaling, and sending the signaling to the client.
The first server and the second server cooperate to execute a task of generating and issuing a signaling, specifically, the task of generating the signaling to adjust the signaling to be adapted to the client and sending the signaling to the client is divided into a task of generating the signaling, and the task of screening the display information of the adapted client in the signaling and issuing the display information to the client is executed independently by the first server and the second server respectively. The task of generating and issuing the signaling is divided into two subtasks, and the two subtasks are respectively distributed to two independent servers for execution, so that the execution time of each subtask can be shortened, meanwhile, the task of generating the signaling of the second server does not need to depend on the information of the client, a plurality of tasks of generating the signaling can be executed in parallel, and the signaling generation efficiency is improved, so that the whole signaling generation and issuing efficiency is improved, moreover, the phenomenon that all tasks are executed by one server in a centralized manner is avoided, and the load of a single server is reduced.
Optionally, after receiving the initial signaling sent by the second server according to the signaling protocol, the method further includes: extracting live broadcast room identification information from the initial signaling; acquiring at least one target client matched with the identification information of the live broadcast room from a plurality of clients establishing connection; and respectively inquiring the target display configuration information of each target client, generating target signaling corresponding to each target display information, and respectively sending the target signaling to the corresponding target clients.
The second server may be a live traffic server. Specifically, the second server may provide live data, for example, live video stream data, as well as page resource data used for generating a live room page, for example, for the client. The live broadcast room identification information is information for identifying a live broadcast room, and the live broadcast room identification information can be a room number and is represented by a character string.
The second server may provide live broadcast services for a plurality of clients, and accordingly, there may be a plurality of clients that establish long connections with the first server. The at least one target client matched with the live broadcast room identification information may refer to a client browsing the same live broadcast room or a client browsing the same type of live broadcast room. Browsing the live broadcast room can be that the client generates a page of the live broadcast room and/or that the client plays a live video stream matched with the live broadcast room.
According to the technical scheme of the embodiment, the target signaling carrying the target display information of the adaptive client is quickly generated in the live broadcast scene, so that the signaling issuing efficiency in the live broadcast process is improved, the resource occupation amount generated and issued by the signaling is reduced, the whole resource consumption of a live broadcast system is reduced, the live broadcast service blockage is reduced, and the stability of the live broadcast service is improved.
In step S14, the presentation configuration information is queried.
When determining that a signaling needs to be sent to a client, a first server queries display configuration information, wherein the display configuration information corresponds to the client, and the client is a client to receive the signaling. The method comprises the steps that whether a client is the client to receive the signaling or not is judged, and the client is determined to be the client to receive the signaling in different service scenes, for example, in a live broadcast scene according to live broadcast room identification information included in initial signaling, if the identification information of a live broadcast room displayed by a certain client is matched with the live broadcast room identification information; for another example, in an instant messaging scenario, according to the chat user identification information included in the initial signaling, if the user identification information of the chat page displayed by a certain client matches with the chat user identification information, it is determined that the client is a client to receive the signaling, and the like.
And if the client is the client to receive the signaling, inquiring display configuration information corresponding to the client.
In step S15, in the initial signaling, each piece of display information is modified, a signaling corresponding to the display configuration information is generated, and the signaling is sent to the client, where the corresponding signaling includes the display information corresponding to the display configuration information.
The signaling corresponding to the display configuration information is a command for instructing the client to display the display information corresponding to the display configuration information on the interface. The difference between the signaling corresponding to the display configuration information and the initial signaling is that the content specified to be displayed in the signaling corresponding to the display configuration information, that is, the display information corresponding to the display configuration information is specified, and the initial signaling does not specify the content to be displayed, but provides all the display information. Correspondingly, the initial signaling includes at least one piece of presentation information, and the signaling corresponding to the presentation configuration information includes only one piece of presentation information, and does not include the presentation information except the presentation information corresponding to the presentation configuration information. And modifying the initial signaling, namely removing the display information except the display information corresponding to the display configuration information and reserving the display information corresponding to the display configuration information.
The modification of each display information to generate the signaling corresponding to the display configuration information can be realized in various ways: for example, deleting the display information except the display information corresponding to the display configuration information, modifying the data format of the initial signaling according to a signaling template, and taking the modified initial signaling as the signaling corresponding to the display configuration information; for another example, the display information and other configuration information corresponding to the display configuration information are obtained, and the display information and other configuration information corresponding to the display configuration information are added to the signaling template corresponding to the display configuration information to form a signaling corresponding to the display configuration information.
In the client, the display information corresponding to the display configuration information can be extracted from the signaling corresponding to the display configuration information, rendered, and displayed on the interface. And the signaling corresponding to the display configuration information is the signaling sent to the client.
The first server screens out the display information of the adaptive client from all the display information to form a signaling corresponding to the display configuration information, and is used for directly communicating with the client and sending the signaling corresponding to the display configuration information to the client. In practice, the second server is used to generate commands for controlling the client, and the first server is used to interact with the client and convert the commands into commands meeting the user requirements, so as to instruct the client to display the display contents meeting the user requirements.
By configuring the second server to interact with the first server at the same time, the first server only needs to execute the task of modifying the initial signaling into the signaling adapted to the client, so that the signaling modification time is shortened, and the signaling generation efficiency and the signaling sending efficiency corresponding to the display configuration information are improved.
In a specific application scenario, optionally, the presentation information is text information, the presentation configuration information is language type information, semantics of the presentation information are the same, the presentation configuration information is used for configuring a text to be displayed included in a signaling sent to the client, and the target presentation information is used for indicating the client to display the text to be displayed, which is matched with the target language type information.
The display information is text information, that is, the display information is used for generating text content to instruct the client to generate the text content and display the text content on the interface. The display configuration information is language type information, the semantics of all the display information are the same, and the display configuration information is used for generating different languages and the same text content with the same voice according to different display information. For example, the language type is chinese, and the text content generated by the presentation information corresponding to the presentation configuration information is "hello"; if the language type is english, the text content generated by the display information corresponding to the display configuration information is "hello" and the like.
The initial signaling comprises a plurality of text messages, each text message can generate a text to be displayed in one language, and the languages of the texts to be displayed generated by different text messages are different. The display configuration information is used for configuring the text to be displayed included in the signaling sent to the client, that is, the display configuration information specifies the text to be displayed included in the signaling sent to the client, so that the text information included in the signaling sent to the client is specified.
Specifically, the target display configuration information is target language type information, the target display configuration information specifies that the language type information of the text information is the target language type information, and the display information included in the signaling corresponding to the target display configuration information is the target display information. Accordingly, the target presentation may instruct the client to generate a text to be displayed, for example, a text to be displayed in chinese, matching the target language type information.
The display information is configured into the text information, and the display configuration information is configured into the language type information, so that the signaling corresponding to the display configuration information indicates the client to adapt to different languages, the text content which can be understood by the users adapting to different countries is generated, the display content is flexibly adjusted, and the universality of the client is improved.
In the prior art, the signaling generated by the second server does not include text content, the first server receives the signaling which does not include text content, acquires a target client to be sent, determines a language type required by the target client, acquires the text content of the language type, assembles the text content and the signaling, generates the signaling carrying the text content, and sends the signaling to the client. If the text content is changed, the corresponding relationship between the language type and the text content stored in the second server needs to be updated in advance, and meanwhile, if the corresponding relationship between other types and the text content is newly added, the second server needs to be modified and redeployed, so that the signaling adjustment cost and complexity are increased. In the embodiment of the disclosure, the signaling generated by the second server carries a plurality of display information, the first server performs screening, the target display information is retained, different initial signaling can be modified through a screening mode, and the universality of the screening mode for modifying the initial signaling is improved, so that the signaling adjustment cost and complexity are reduced, and the signaling modification efficiency is improved.
The technical scheme of the embodiment of the disclosure includes that a long connection is established between a first server and a client, display configuration information sent by the client is recorded, at least one piece of display information included in an initial signaling is modified when the initial signaling sent by a second server is received, a signaling corresponding to the display configuration information is generated, the signaling includes the display information corresponding to the display configuration information, multiple pieces of display information are carried in the initial signaling, a signaling is generated by screening the display information corresponding to the display configuration information, signaling generation operation is simplified, and the signaling is sent to the client, so that the client can acquire the display information corresponding to the display configuration information The problem of high development cost and high maintenance cost is solved, the initial signaling sent by the second server carries all the text contents, the target text is screened from the initial signaling, the signaling sent to the client is generated, the generation operation of the signaling required by the client is simplified, the workload of modifying the initial signaling is reduced, the generation efficiency of the signaling required by the client is improved, the complexity of the generation operation of the signaling required by the client is reduced, and the maintenance cost of the first server is reduced.
Fig. 3 is a flowchart of a signaling sending method according to an exemplary embodiment, where this embodiment is a further refinement of the above technical solution, and the technical solution in this embodiment may be combined with various alternatives in one or more of the above embodiments. As shown in fig. 3, the signaling method includes the following steps.
In step S21, a long connection request sent by a client is received, where the long connection request includes presentation configuration information of the client.
Non-exhaustive descriptions of the present embodiments may refer to the foregoing embodiments.
In step S22, a connection with the client is established, and the presentation configuration information is stored.
In step S23, an initial signaling sent by the second server according to a signaling protocol is received, where the signaling protocol is established between the first server and the second server, and the initial signaling includes at least one piece of presentation information.
In step S24, the presentation configuration information is queried.
In step S25, in the initial signaling, target display information corresponding to the display configuration information is obtained, where the display configuration information is used to configure the content to be displayed included in the signaling sent to the client, and the target display information is used to instruct the client to display the content to be displayed that matches the display configuration information.
The initial signaling comprises a plurality of pieces of display information, each piece of display information can generate one piece of content to be displayed, and the content to be displayed generated by different pieces of display information is different. The content to be displayed is different, may be different, and specifically may be different in at least one of the type, the presentation style, the presentation position, and the like of the content to be displayed.
The display configuration information is used for configuring the content to be displayed included in the signaling sent to the client, that is, the display configuration information specifies the content to be displayed included in the signaling sent to the client, so that the display information included in the signaling sent to the client is specified.
Specifically, the target display configuration information specifies the target display information, so that the client can be instructed to generate the content to be displayed corresponding to the target display configuration information through the target display information, for example, the content to be displayed may be a text to be displayed with a bold type on the top of the page.
When the display information is screened, the display configuration information can be configured through the distinguishing characteristics of different display information.
In step S26, in the initial signaling, display information different from the target display information is deleted, and a signaling corresponding to the display configuration information is generated, where the corresponding signaling includes the display information corresponding to the display configuration information.
In the initial signaling, a corresponding relationship between the presentation information and the presentation configuration information is established, for example, the initial signaling includes a data pair formed by the presentation information and the presentation configuration information. And if the display configuration information corresponding to the client is the target display configuration information and the display configuration information in the data pair is the same as the target display configuration information, determining that the display information in the data pair is the target display information and is matched with the target display configuration information.
Illustratively, the initial signaling includes data pairs "zh": i.e., "welcome to join my chat room", and the presentation configuration information is: zh; the display information is as follows: welcome to join my chat room. For another example, the initial signaling includes data "en": a "welcome to my chat room", showing that the configuration information is: en; the display information is as follows: welome to my chat room. At this time, the initial signaling adopts colon to distinguish the display configuration information from the display information, the character string in front of the colon is the display configuration information, and the character string behind the colon is the display information. In addition, the initial signaling may also have other representation manners, for example, commas are used to separate the presentation configuration information and the presentation information.
In the initial signaling, the presentation information corresponding to the presentation configuration information may be queried as the target presentation information. The target display information is used for indicating the client to generate corresponding content to be displayed, and other display information is redundant information for the client and can be deleted. Only the signaling of the target display information is reserved, and the signaling can be determined as the signaling corresponding to the display configuration information. By deleting the display information except the target display information, the amount of information carried by the signaling can be reduced, the amount of transmitted data is reduced, the waste of transmission resources is reduced, and the transmission efficiency is improved.
Optionally, the deleting the display information different from the target display information, and generating a signaling corresponding to the display configuration information includes: acquiring a communication protocol between a first server and a client; and acquiring display information identification information included by the communication protocol, adding the display information identification information to a position matched with the target display information, and generating a signaling corresponding to the display configuration information, wherein the display information identification information is used for the client to inquire the target display information.
The initial signaling comprises at least one piece of presentation information and also comprises the corresponding relation between each piece of presentation information and the presentation configuration information. The corresponding relation between the display configuration information and the display information can be represented by configuring a plurality of groups of display configuration information and display information data pairs, each data pair comprises one display configuration information and one display information, and one data pair represents one corresponding relation. The corresponding relation including the target display configuration information can be inquired, and the display information corresponding to the target display configuration information is used as the target display information in the corresponding relation. Specifically, the initial signaling includes a plurality of data pairs, queries the data pairs including the target presentation configuration information, and takes the presentation information included in the data pairs as the target presentation information.
The identification information of the corresponding relation set is configured in the initial signaling, and the corresponding relation set can be queried through the identification information, for example, the corresponding relation set is obtained from data adjacent to the identification information, so that each data pair is obtained, and further, the corresponding target display information is queried according to the display configuration information of the client.
Illustratively, the identification information of the correspondence set is "a". The content of the corresponding relationship set with identification information "a" queried in the initial signaling is as follows:
Figure BDA0002655993530000141
the corresponding relation between the display information and the display configuration information is configured in the corresponding relation set A of the initial signaling, each behavior comprises a data pair including the display configuration information and the display information, a character string in front of a colon is the display configuration information, and a character string behind the colon is the display information. In one specific example, if the target presentation configuration information is en, it is determined that the data pair "en": the "welome to my chat room" is hit, while the welome to my chat room is the target presentation information.
And deleting the display information except the target display information and deleting the display configuration information in the plurality of display information.
Because the signaling protocol between the server and the client is different from the communication protocol between the server and the client, the initial signaling needs to be modified according to the communication protocol between the client and the server in addition to the modification of the display information, so as to generate the signaling which conforms to the communication protocol between the client and the server.
The display information identification information is information used for inquiring the display information, and because the number of the display information is one, only one piece of display information can be directly inquired according to the display information identification information and is determined as the target display information.
Specifically, the communication protocol specifies which part of the data is the target presentation information, so that the client analyzes and extracts the target presentation information from the signaling. The display information identification information is information for identifying target display information, and the position of the display information identification information is associated with the position of the target display information, for example, the display information identification information and the target display information are separated by a colon. And the position matched with the target display information is used for placing the display information identification information. The display information identification information may be configured at a designated position, so that the client acquires target display information matched with the designated position, specifically, the client may acquire the designated position, determine an associated position, and acquire the target display information at the associated position.
The manner of addition may be determined according to circumstances. For example, at this time, the number of the presentation information is usually one, and correspondingly, the identification information of the corresponding relationship set may be updated to the presentation information identification information. For example, the adding manner may be to replace the identification information of the corresponding relationship set with the presentation information identification information. Or the identification information of the corresponding relationship set may be modified to form the display information identification information, for example, the identification information of the corresponding relationship set is texts, the display information identification information is text, and at this time, s may be directly deleted from the identification information of the corresponding relationship set to form the display information identification information.
Illustratively, the content of the initial signaling is as follows:
Figure BDA0002655993530000151
the type is content configuration information used for describing semantics of content displayed by the client indicated by the initial signaling, and the "WELCOME _ MSG" is the content configuration information used for indicating that the client generates content as WELCOME information. Id is an interface identification parameter, for example, the parameter value of the interface identification parameter is 123456, which may be expressed as room number 123456 of the live room.
The identification information of the corresponding relation set is 'a', and the corresponding relation set comprises: the display configuration information is 'en', and the display information is a data pair of 'welome to my chat room'; the presentation configuration information is "zh" and the presentation information is a data pair of "welcome to join my chat room".
The content of the modified signaling corresponding to the presentation information identification information of "B" is as follows:
Figure BDA0002655993530000152
Figure BDA0002655993530000161
for example, if the target presentation configuration information is en, it is determined that the data pair of "en" and "welome to my chat room" is hit, and the welome to my chat room is the target presentation information. At this time, the number of the display information is one, and other display information and all display configuration information can be directly deleted. And replacing the identification information 'A' of the corresponding relation set with the display information identification information 'B', and inquiring the unique display information through the identification information 'B'. In fact, the identification information indicates that the data after the adjacent colon is the identification content, for example, the data after the colon adjacent to the display information identification information is the display information, or the data after the colon adjacent to the identification information of the correspondence set is the correspondence between the display information and the display configuration information. Moreover, the presentation configuration information is used for the first server to determine the target presentation information included in the signaling, so that the presentation configuration information is redundant information and can be deleted completely.
As can be seen from the above, the positions of a and B are the same, and only the target presentation information may be retained in the data included in the correspondence set, so that the identification information of the correspondence set may be directly updated to the presentation information identification information, thereby forming a signaling conforming to the communication protocol.
In addition, the initial signaling can be updated according to the corresponding relation set template, and the signaling corresponding to the display configuration information is generated. The presentation information template may be generated according to a communication protocol between the first server and the client. And displaying the information configuration parameter template for modifying the corresponding relation set.
Generally, the presentation information template is included in a signaling corresponding to the presentation configuration information, and includes presentation information identification information, a data structure, a position of the presentation information identification information in the signaling, and the like. Illustratively, the presentation information template is "" B ": XXXX", ". wherein XXXX refers to the filling position of the target presentation information. The presentation information template may be used to directly replace "A": … …. ,
the display information different from the target display information is deleted from the corresponding relation set comprising the display information, only the target display information is reserved, the display information identification information is added into the initial signaling according to the communication protocol between the client and the first server, so that the client inquires the target display information according to the display information identification information, the signaling which accords with the communication protocol and corresponds to the display configuration information is generated, the initial signaling is modified, the signaling corresponding to the display configuration information is quickly generated, the generation process of the signaling is simplified, the complexity of the signaling is reduced, and the generation efficiency of the signaling is improved.
According to the technical scheme of the embodiment of the disclosure, the display information is inquired, the display information different from the target display information is deleted, only the target display information is reserved, the signaling corresponding to the display configuration information is generated, the initial signaling can be modified in a deleting mode, the existing assembling operation of the text content and the signaling not carrying the text content is replaced, the generating operation of the signaling carrying the text content in assembling and generating can be simplified, the generating speed of the signaling corresponding to the display configuration information is increased, and therefore the issuing efficiency of the signaling corresponding to the display configuration information is improved.
Fig. 4 is a flow chart illustrating a signaling method according to an example embodiment. As shown in fig. 4, a signaling method is used in the second server, and the signaling method includes the following steps.
In step S31, an initial signaling is obtained, the initial signaling including at least one piece of presence information.
Non-exhaustive descriptions of the present embodiments may refer to the foregoing embodiments.
In step S32, the initial signaling is sent to a first server according to a signaling protocol, where the initial signaling is used for the first server to modify each piece of presentation information in the initial signaling, generate a signaling corresponding to presentation configuration information, and send the signaling to a client, where the presentation configuration information is obtained from a long connection request sent by the client through the first server.
When the second server generates the initial signaling, the initial signaling is configured to include all the display information, so that the first server can query all the display information directly in the initial signaling without configuring the local query display information and assemble the display information to the logic operation of the signaling, the display information matched with the client is screened out from the display information, the assembly operation is simplified into the editing operation, and the operation of assembling the signaling of the first server is simplified.
And moreover, the first server only needs to acquire the display information in the initial signaling and screen the display information, the display information does not need to be maintained, the cost of the first server for storing and maintaining the display information can be reduced, and meanwhile, when the display information is increased, only the second server needs to be added in the initial signaling, the logical operation of the first server is not needed to be changed, the adding cost of the display information can be reduced, the content of the display information is enriched, and the flexibility of the display information deletion is improved.
Optionally, the acquiring the initial signaling includes: acquiring signaling data, wherein the signaling data comprises: content configuration information, live broadcast room identification information and at least one piece of presentation information; and arranging the signaling data according to a data structure included by the signaling protocol to generate an initial signaling.
The signaling data is data used to assemble the initial signaling generated. The data structure of the initial signaling is usually specified in the signaling protocol, so that the first server receiving the initial signaling can parse the initial signaling according to the signaling protocol to extract the required data.
The content configuration information is information for describing semantics of content that the signaling indicates the client to display. Illustratively, the presentation information is text information, and the content configuration information may refer to semantics of the presentation information. Generally, the signaling data includes all the presentation information for displaying the content corresponding to the content configuration information, and correspondingly, according to the signaling data, all the presentation information may be added to the initial signaling, so that the operation of locally querying the presentation information by the first server and assembling the presentation information according to a preset structure may be omitted.
The data structure included in the signaling protocol is that the content configuration information, the live broadcast room identification information and the corresponding relation set are arranged in sequence. Meanwhile, the content configuration information is expressed in the following manner: identification information of content configuration information: a character string representing content; the representation mode of the live broadcast room identification information is as follows: identification information of live broadcast room identification information: a string representing a live room; the display information is represented by the following modes: identification information of the correspondence set: { exhibition configuration information: corresponding presentation information … … }.
As in the previous example, the content configuration information is "type": WELCOME _ MSG ", which indicates that the content displayed by the client is WELCOME information. The live room identification information is 'Id' 123456, which indicates that the room number of the live room displayed by the client is 123456. The display configuration information is zh, the corresponding display information is welcome to join the my chat room, the language type corresponding to the client is Chinese, and the displayed content is welcome to join the my chat room. The display configuration information is 'en', the corresponding display information is 'welcome to my chat room', the language type corresponding to the client is English, and the content displayed is 'welcome to my chat room'.
The signaling protocol specifies that the signaling data comprises all display information corresponding to the content to be displayed, so that the first server screens out the display information of the adaptive client side according to the display information, and the efficiency of signaling generation is improved.
According to the technical scheme of the embodiment of the disclosure, the initial signaling comprising the plurality of display information is generated at the second server and is sent to the first server, so that the first server screens out the display information matched with the client from the display information, the signaling corresponding to the client is generated, the generation operation of the signaling is simplified, the generation difficulty of the signaling is reduced, and the generation efficiency of the signaling is improved.
Fig. 5 is a flow chart illustrating a signaling exposure method according to an example embodiment. As shown in fig. 5, the signaling presentation method is used in a client, and the signaling presentation method includes the following steps.
In step S41, a signaling sent by a first server is received, where the signaling is that the first server modifies at least one piece of presentation information included in an initial signaling, and generates a signaling corresponding to presentation configuration information, where the presentation configuration information is sent to the first server through the client in advance.
Non-exhaustive descriptions of the present embodiments may refer to the foregoing embodiments.
In step S42, presentation information is extracted from the signaling, where the presentation information corresponds to presentation configuration information.
The display information is information used for generating display content by the client.
In step S43, display content matching the display information is generated and displayed, the display content corresponding to the display configuration information.
The display content is visualized content generated based on the display information. The presentation content is for display on a display screen of the client. The display content is generated based on the display information, the display information corresponds to the display configuration information, and correspondingly, the display content corresponds to the display configuration information. Illustratively, the display information is text information, the display configuration information is a Chinese language, and the display content is a Chinese character, such as "thank you".
Optionally, the generating and displaying the display content matched with the display information includes: and generating text content matched with the language type information and displaying the text content in the live broadcast room.
The display configuration information is language type information, the display information is text information, the display content is text content, and the display interface is a live broadcast room.
For example, the user may configure language type information of the client, and the signaling indicates that the content displayed by the client is text content matched with the language type information.
The text content matched with the language type information is generated and displayed in the live broadcast room according to the signaling, so that the matching between the language of the text content generated by the signaling and the language type information used by the client can be ensured, the consistency between the language of the text content and the language used by the client is improved, the accuracy of the content displayed in the live broadcast room is improved, and the stability of live broadcast service is improved.
Optionally, before receiving the signaling sent by the first server, the method further includes: acquiring display configuration information and generating a long connection request, wherein the long connection request comprises the display configuration information; sending the long connection request to the first server; establishing a connection with the first server.
By acquiring the display configuration information, the first server can be instructed to issue the display information adaptive to the client, the accuracy of signaling and display content is improved, the display configuration information is added into the long connection request, the long connection is established with the first server, the connection request times and time can be reduced, and the signaling receiving efficiency is improved.
Optionally, the initial signaling is a signaling that the first server receives a signaling sent by the second server according to a signaling protocol, where the signaling protocol is a signaling protocol established between the first server and the second server.
The first server and the second server are matched together to execute the tasks for generating the signaling and issuing the signaling, the tasks for generating the signaling and issuing the signaling are divided into two subtasks and are respectively distributed to the two independent servers to be executed, the execution time of each subtask can be shortened, meanwhile, the tasks for generating the signaling of the second server do not need to depend on information of a client, a plurality of tasks for generating the signaling can be executed in parallel, the signaling generation efficiency is improved, the whole signaling generation and issuing efficiency is improved, in addition, the phenomenon that all tasks are executed by one server in a centralized mode is avoided, and the load of a single server is reduced.
In a specific example, the presentation information is text information, and the presentation type is a language type. As shown in fig. 6, a signaling diagram of the interaction between a client, a first server and a second server is provided. Specifically, the signaling sending method may include:
s401, the client sends a request for establishing a long connection to the first server, and transmits the language type on the established long connection.
S402, the first server establishes the corresponding relation between the language type and the client and stores the corresponding relation.
Can be stored in the user information table and maintained.
S403, the first server establishes a successful message for the long connection to the client.
S401-S403 are procedures for establishing long connections.
S404, the second server generates an initial signaling, and the initial signaling comprises a plurality of text messages.
S405, the second server sends the initial signaling to the first server.
S406, the first server queries the language type matched with the client.
The language type is searched in the user information table. And the first server determines that the client is the client to send the signaling according to the initial signaling.
S407, the first server obtains the text information matched with the language type in the initial signaling, and modifies the initial signaling according to the text information to form a target signaling.
S408, the first server sends the target signaling to the client.
S404-S408 are signaling issuing flows.
According to the technical scheme of the embodiment of the disclosure, the client acquires the signaling sent by the first server, extracts the display information, generates and displays the corresponding display content, can accurately acquire the display information adapted to the client, generates the display content meeting the configuration information of the client, improves the consistency of the content displayed by the client, and accurately generates the display content.
Fig. 7 is a block diagram illustrating a signaling device according to an example embodiment. Referring to fig. 7, the apparatus includes a client long connection establishing unit 121, a presentation configuration information storage unit 122, a signaling protocol acquiring unit 123, a presentation configuration information querying unit 124, and a signaling issuing unit 125.
A client long connection establishing unit 121, configured to execute receiving a long connection request sent by a client, where the long connection request includes presentation configuration information of the client;
a presentation configuration information storage unit 122 configured to perform establishment of a connection with the client and store presentation configuration information;
a signaling protocol obtaining unit 123 configured to perform receiving an initial signaling sent by a second server according to a signaling protocol, where the signaling protocol is a signaling protocol established between a first server and the second server, and the initial signaling includes at least one piece of presentation information;
a presentation configuration information query unit 124 configured to perform query of the presentation configuration information;
a signaling issuing unit 125, configured to modify each piece of display information in the initial signaling, generate a signaling corresponding to the display configuration information, and send the signaling to the client, where the corresponding signaling includes the display information corresponding to the display configuration information.
The technical scheme of the embodiment of the disclosure includes that a long connection is established between a first server and a client, display configuration information sent by the client is recorded, at least one piece of display information included in an initial signaling is modified when the initial signaling sent by a second server is received, a signaling corresponding to the display configuration information is generated, the signaling includes the display information corresponding to the display configuration information, multiple pieces of display information are carried in the initial signaling, a signaling is generated by screening the display information corresponding to the display configuration information, signaling generation operation is simplified, and the signaling is sent to the client, so that the client can acquire the display information corresponding to the display configuration information The problem of high development cost and high maintenance cost is solved, the initial signaling sent by the second server carries all the text contents, the target text is screened from the initial signaling, the signaling sent to the client is generated, the generation operation of the signaling required by the client is simplified, the workload of modifying the initial signaling is reduced, the generation efficiency of the signaling required by the client is improved, the complexity of the generation operation of the signaling required by the client is reduced, and the maintenance cost of the first server is reduced.
Optionally, the signaling issuing unit 125 includes:
a target display information screening subunit, configured to execute in the initial signaling, to acquire target display information corresponding to the display configuration information, where the display configuration information is used to configure to-be-displayed content included in a signaling sent to the client, and the target display information is used to instruct the client to display to-be-displayed content matched with the display configuration information;
and the redundant display information deleting subunit is configured to delete the display information different from the target display information in the initial signaling, and generate a signaling corresponding to the display configuration information.
Optionally, the redundant display information deleting subunit includes:
a server and client protocol acquisition subunit configured to perform acquisition of a communication protocol between a first server and a client;
and the display information identification information adding subunit is configured to execute acquisition of display information identification information included in the communication protocol, add the display information identification information to a position matched with the target display information, and generate a signaling corresponding to the display configuration information, wherein the display information identification information is used for the client to inquire the target display information.
Optionally, the presentation information is text information, the presentation configuration information is language type information, semantics of the presentation information are the same, the presentation configuration information is used for configuring a text to be displayed included in a signaling sent to the client, and the target presentation information is used for indicating the client to display the text to be displayed, which is matched with the target language type information.
Optionally, the signaling sending apparatus further includes:
the direct broadcasting room identification information acquisition unit is configured to extract direct broadcasting room identification information from an initial signaling after receiving the initial signaling sent by a second server according to a signaling protocol;
a multi-client connection establishing unit configured to execute acquiring, among a plurality of clients establishing a connection, at least one target client matched with the live broadcast room identification information;
and each client display configuration information query unit is configured to execute target display configuration information query of each target client, generate target signaling corresponding to each target display information, and send the target signaling to the corresponding target client.
With regard to the apparatus in the above-described embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
Fig. 8 is a block diagram illustrating a signaling device according to an example embodiment. Referring to fig. 8, the apparatus includes an initial signaling acquisition unit 221 and an initial signaling down-sending unit 222.
An initial signaling obtaining unit 221 configured to perform obtaining initial signaling, where the initial signaling includes at least one piece of presentation information;
an initial signaling issuing unit 222, configured to execute sending the initial signaling to a first server according to a signaling protocol, where the initial signaling is used for the first server to modify each piece of presentation information in the initial signaling, generate a signaling corresponding to presentation configuration information, and send the signaling to a client, where the presentation configuration information is obtained from a long connection request sent by the client through the first server.
According to the technical scheme of the embodiment of the disclosure, the initial signaling comprising the plurality of display information is generated at the second server and is sent to the first server, so that the first server screens out the display information matched with the client from the display information, the signaling corresponding to the client is generated, the generation operation of the signaling is simplified, the generation difficulty of the signaling is reduced, and the generation efficiency of the signaling is improved.
Optionally, the initial signaling obtaining unit 221 includes:
a signaling data acquisition unit configured to perform acquisition of signaling data, the signaling data including: content configuration information, live broadcast room identification information and at least one piece of presentation information;
and the signaling data combination unit is configured to execute a data structure included according to the signaling protocol, arrange the signaling data and generate initial signaling.
With regard to the apparatus in the above-described embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
Fig. 9 is a block diagram illustrating a signaling exhibit apparatus in accordance with an example embodiment. Referring to fig. 9, the apparatus includes a signaling receiving unit 321, a presentation information acquiring unit 322, and a presentation content generating unit 323.
A signaling receiving unit 321, configured to perform receiving a signaling sent by a first server, where the signaling is obtained by modifying at least one piece of presentation information included in an initial signaling by the first server, and generating a signaling corresponding to presentation configuration information, where the presentation configuration information is sent to the first server through the client in advance;
a presentation information obtaining unit 322 configured to extract presentation information from the signaling, where the presentation information corresponds to presentation configuration information;
and a presentation content generating unit 323 configured to perform generating and displaying a presentation content matched with the presentation information, the presentation content corresponding to the presentation configuration information.
According to the technical scheme of the embodiment of the disclosure, the client acquires the signaling sent by the first server, extracts the display information, generates and displays the corresponding display content, can accurately acquire the display information adapted to the client, generates the display content meeting the configuration information of the client, improves the consistency of the content displayed by the client, and accurately generates the display content.
Optionally, the display content generating unit 323 includes:
and the live broadcast display subunit is configured to generate text content matched with the language type information and display the text content in the live broadcast.
Optionally, the signaling display apparatus further includes:
the display configuration information acquisition unit is configured to acquire display configuration information before receiving a signaling sent by a first server, and generate a long connection request, wherein the long connection request comprises the display configuration information;
a long connection request unit configured to perform sending the long connection request to the first server;
a long connection establishing unit configured to perform establishing a connection with the first server.
Optionally, the initial signaling is a signaling that the first server receives a signaling sent by the second server according to a signaling protocol, where the signaling protocol is a signaling protocol established between the first server and the second server.
With regard to the apparatus in the above-described embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
Fig. 10 is a schematic structural diagram illustrating an electronic device according to an exemplary embodiment, where the electronic device includes, as shown in fig. 10:
one or more of the processors 210 may be,
in FIG. 10, one processor 210 is taken as an example;
a memory 220;
the processor 210 and the memory 220 in the device may be connected by a bus or other means, and fig. 10 illustrates the connection by a bus as an example.
The memory 220 is used as a non-transitory computer-readable storage medium, and may be used to store a software program, a computer-executable program, and a module, such as a program instruction/module corresponding to a signaling method in an embodiment of the disclosure (for example, the client long connection establishing unit 121, the display configuration information storage unit 122, the signaling protocol acquiring unit 123, the display configuration information querying unit 124, and the signaling issuing unit 125 shown in fig. 7, or the initial signaling acquiring unit 221 and the initial signaling issuing unit 222 shown in fig. 8, or the signaling receiving unit 321, the display information acquiring unit 322, and the display content generating unit 323 shown in fig. 9). The processor 210 executes various functional applications and data processing of the computer device by executing software programs, instructions and modules stored in the memory 220, namely, a signaling method for implementing the above method embodiments is implemented, that is:
receiving a long connection request sent by a client, wherein the long connection request comprises display configuration information of the client;
establishing connection with the client and storing the display configuration information;
receiving an initial signaling sent by a second server according to a signaling protocol, wherein the signaling protocol is established between a first server and the second server and comprises at least one piece of display information;
inquiring the display configuration information;
in the initial signaling, modifying each piece of display information, generating a signaling corresponding to the display configuration information, and sending the signaling to the client, where the corresponding signaling includes the display information corresponding to the display configuration information.
Or, a signaling sending method for implementing the above method embodiment, that is:
acquiring an initial signaling, wherein the initial signaling comprises at least one piece of display information;
and sending the initial signaling to a first server according to a signaling protocol, wherein the initial signaling is used for the first server to modify each piece of display information in the initial signaling, generate a signaling corresponding to display configuration information and send the signaling to a client, and the display configuration information is obtained from a long connection request sent by the client through the first server.
Or a signaling display method for implementing the above method embodiment, that is:
receiving a signaling sent by a first server, wherein the signaling is generated by modifying at least one piece of display information included in an initial signaling by the first server, and generating a signaling corresponding to display configuration information, and the display configuration information is sent to the first server in advance through a client;
extracting display information from the signaling, wherein the display information corresponds to display configuration information;
and generating and displaying the display content matched with the display information, wherein the display content corresponds to the display configuration information.
The memory 220 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 220 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 220 may optionally include memory located remotely from processor 210, which may be connected to the terminal device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 230 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the server. The output device 240 may include a display device such as a display screen.
In an exemplary embodiment, a storage medium comprising instructions, such as the memory 220 comprising instructions, executable by the processor 210 of the apparatus to perform the method described above is also provided. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided for use in conjunction with an electronic device, the computer program product comprising a computer-readable storage medium and a computer program mechanism embedded therein, the program being loaded into and executed by a computer to implement the signaling method according to any of the embodiments of the disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A signaling sending method is applied to a first server and comprises the following steps:
receiving a long connection request sent by a client, wherein the long connection request comprises display configuration information of the client;
establishing connection with the client and storing the display configuration information;
receiving an initial signaling sent by a second server according to a signaling protocol, wherein the signaling protocol is established between a first server and the second server and comprises at least one piece of display information;
inquiring the display configuration information;
in the initial signaling, modifying each piece of display information, generating a signaling corresponding to the display configuration information, and sending the signaling to the client, where the corresponding signaling includes the display information corresponding to the display configuration information.
2. The method according to claim 1, wherein the modifying each of the presentation information in the initial signaling to generate the signaling corresponding to the presentation configuration information includes:
in the initial signaling, target display information corresponding to the display configuration information is obtained, the display configuration information is used for configuring to-be-displayed contents in the signaling sent to the client, and the target display information is used for indicating the client to display to-be-displayed contents matched with the display configuration information;
in the initial signaling, deleting the display information different from the target display information, and generating a signaling corresponding to the display configuration information.
3. The signaling sending method according to claim 1, wherein the presentation information is text information, the presentation configuration information is language type information, semantics of the presentation information are the same, the presentation configuration information is used for configuring a text to be displayed included in the signaling sent to the client, and the target presentation information is used for instructing the client to display the text to be displayed matched with the target language type information.
4. A signaling sending method is applied to a second server, and comprises the following steps:
acquiring an initial signaling, wherein the initial signaling comprises at least one piece of display information;
and sending the initial signaling to a first server according to a signaling protocol, wherein the initial signaling is used for the first server to modify each piece of display information in the initial signaling, generate a signaling corresponding to display configuration information and send the signaling to a client, and the display configuration information is obtained from a long connection request sent by the client through the first server.
5. A signaling display method is applied to a client, and comprises the following steps:
receiving a signaling sent by a first server, wherein the signaling is generated by modifying at least one piece of display information included in an initial signaling by the first server, and generating a signaling corresponding to display configuration information, and the display configuration information is sent to the first server in advance through a client;
extracting display information from the signaling, wherein the display information corresponds to display configuration information;
and generating and displaying the display content matched with the display information, wherein the display content corresponds to the display configuration information.
6. A signaling apparatus, configured in a first server, comprising:
the client long connection establishing unit is configured to execute receiving of a long connection request sent by a client, wherein the long connection request comprises display configuration information of the client;
a display configuration information storage unit configured to perform establishment of a connection with the client and store display configuration information;
a signaling protocol acquisition unit configured to execute receiving of an initial signaling sent by a second server according to a signaling protocol, where the signaling protocol is a signaling protocol established between a first server and the second server, and the initial signaling includes at least one piece of presentation information;
a presentation configuration information query unit configured to perform query of the presentation configuration information;
and the signaling issuing unit is configured to modify each piece of display information in the initial signaling, generate a signaling corresponding to the display configuration information, and send the signaling to the client, wherein the corresponding signaling includes the display information corresponding to the display configuration information.
7. A signaling apparatus, configured in a second server, comprising:
an initial signaling obtaining unit configured to perform obtaining initial signaling, the initial signaling including at least one piece of presentation information;
an initial signaling issuing unit, configured to execute sending the initial signaling to a first server according to a signaling protocol, where the initial signaling is used for the first server to modify each piece of presentation information in the initial signaling, generate a signaling corresponding to presentation configuration information, and send the signaling to a client, where the presentation configuration information is obtained from a long connection request sent by the client through the first server.
8. A signaling presentation apparatus, configured in a client, comprising:
a signaling receiving unit, configured to perform receiving signaling sent by a first server, where the signaling is obtained by modifying at least one piece of presentation information included in an initial signaling by the first server, and generating a signaling corresponding to presentation configuration information, where the presentation configuration information is sent to the first server through the client in advance;
a presentation information obtaining unit configured to extract presentation information from the signaling, the presentation information corresponding to presentation configuration information;
and the display content generating unit is configured to generate and display the display content matched with the display information, wherein the display content corresponds to the display configuration information.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the signaling method according to any one of claims 1 to 4 or to implement the signaling presentation method according to claim 5.
10. A storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the signaling method according to any one of claims 1 to 4 or to implement the signaling presentation method according to claim 5.
CN202010887452.1A 2020-08-28 2020-08-28 Signaling sending and signaling displaying method and device, electronic equipment and storage medium Active CN112073487B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010887452.1A CN112073487B (en) 2020-08-28 2020-08-28 Signaling sending and signaling displaying method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010887452.1A CN112073487B (en) 2020-08-28 2020-08-28 Signaling sending and signaling displaying method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112073487A true CN112073487A (en) 2020-12-11
CN112073487B CN112073487B (en) 2023-08-01

Family

ID=73660783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010887452.1A Active CN112073487B (en) 2020-08-28 2020-08-28 Signaling sending and signaling displaying method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112073487B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113177171A (en) * 2021-04-16 2021-07-27 百果园技术(新加坡)有限公司 Chart display method and device, terminal device and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100017720A1 (en) * 2008-07-15 2010-01-21 International Business Machines Corporation Command line interface browser
CN106453231A (en) * 2016-08-08 2017-02-22 腾讯科技(深圳)有限公司 Signaling obtaining and transmission method and device
CN109388666A (en) * 2018-09-28 2019-02-26 拉扎斯网络科技(上海)有限公司 Business customizing method, device, electronic equipment and storage medium
CN109445733A (en) * 2018-10-16 2019-03-08 杭州橙鹰数据技术有限公司 Across screen methods of exhibiting, device, calculate equipment and storage medium
WO2019062193A1 (en) * 2017-09-29 2019-04-04 北京金山安全软件有限公司 Information display method and device
CN109947512A (en) * 2019-03-18 2019-06-28 北京字节跳动网络技术有限公司 A kind of text adaptation display methods, device, server and storage medium
CN110390035A (en) * 2019-07-26 2019-10-29 广州虎牙科技有限公司 Searching method, device, equipment and the storage medium of direct broadcasting room
CN110545327A (en) * 2019-09-20 2019-12-06 北京达佳互联信息技术有限公司 information pushing method and system
CN111131848A (en) * 2019-12-24 2020-05-08 支付宝(杭州)信息技术有限公司 Video live broadcast data processing method, client and server
CN111177318A (en) * 2019-12-23 2020-05-19 杭州安恒信息技术股份有限公司 Method, device and computer readable storage medium for executing international business

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100017720A1 (en) * 2008-07-15 2010-01-21 International Business Machines Corporation Command line interface browser
CN106453231A (en) * 2016-08-08 2017-02-22 腾讯科技(深圳)有限公司 Signaling obtaining and transmission method and device
WO2019062193A1 (en) * 2017-09-29 2019-04-04 北京金山安全软件有限公司 Information display method and device
CN109388666A (en) * 2018-09-28 2019-02-26 拉扎斯网络科技(上海)有限公司 Business customizing method, device, electronic equipment and storage medium
CN109445733A (en) * 2018-10-16 2019-03-08 杭州橙鹰数据技术有限公司 Across screen methods of exhibiting, device, calculate equipment and storage medium
CN109947512A (en) * 2019-03-18 2019-06-28 北京字节跳动网络技术有限公司 A kind of text adaptation display methods, device, server and storage medium
CN110390035A (en) * 2019-07-26 2019-10-29 广州虎牙科技有限公司 Searching method, device, equipment and the storage medium of direct broadcasting room
CN110545327A (en) * 2019-09-20 2019-12-06 北京达佳互联信息技术有限公司 information pushing method and system
CN111177318A (en) * 2019-12-23 2020-05-19 杭州安恒信息技术股份有限公司 Method, device and computer readable storage medium for executing international business
CN111131848A (en) * 2019-12-24 2020-05-08 支付宝(杭州)信息技术有限公司 Video live broadcast data processing method, client and server

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113177171A (en) * 2021-04-16 2021-07-27 百果园技术(新加坡)有限公司 Chart display method and device, terminal device and storage medium
CN113177171B (en) * 2021-04-16 2024-05-28 百果园技术(新加坡)有限公司 Graph display method, device, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN112073487B (en) 2023-08-01

Similar Documents

Publication Publication Date Title
CN107566523B (en) Cross-platform multi-screen interaction method, device and system
CN109901938B (en) Interactive large-screen system based on WebSocket communication and visual display method
CN103516577A (en) Message transmission method in instant messaging system and equipment
EP2779571B1 (en) Distribution control system, distribution system, distribution control method, and computer-readable storage medium
CN108809800B (en) Multimedia data processing method, equipment and system thereof
CN107197342B (en) Data processing method, intelligent terminal and storage medium
EP2790383B1 (en) Distribution control system, distribution system, distribution control method, and computer-readable storage medium
CN112788273B (en) Augmented reality AR communication system and AR-based communication method
WO2014142343A1 (en) Distribution control system and distribution system
CN103354563A (en) Method of customizing EPG (electronic program guide) interface based on Internet television client and apparatus thereof
CN111090533A (en) Notice information sending method and device, electronic equipment and storage medium
CN111381749A (en) Image display and processing method, device, equipment and storage medium
CN112073487B (en) Signaling sending and signaling displaying method and device, electronic equipment and storage medium
KR20130065777A (en) Apparatus and method for sharing web contents using inspector script
CN113411620B (en) Live fragment display method and device, electronic equipment and storage medium
CN112788274A (en) Communication method and device based on augmented reality
CN107566881B (en) VR equipment control method, device and system
CN113766298A (en) Bullet screen display method, device and system
CN109600423A (en) Method of data synchronization, device, electronic equipment and storage medium
CN105490914B (en) LED automation server and interaction method
US20110283364A1 (en) Communication method, display apparatus, moderator terminal apparatus, user terminal apparatus, and multi-user communication system including the same
CN113301088B (en) Message processing method, device and system, electronic equipment and readable storage medium
CN110740337B (en) Live broadcast method and device, electronic equipment and storage medium
CN110336740B (en) Equipment management method, server and system
CN114840159A (en) Rendering and screen-loading method, device, equipment and medium

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