CN112073487B - Signaling sending and signaling displaying method and device, electronic equipment and storage medium - Google Patents
Signaling sending and signaling displaying method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN112073487B CN112073487B CN202010887452.1A CN202010887452A CN112073487B CN 112073487 B CN112073487 B CN 112073487B CN 202010887452 A CN202010887452 A CN 202010887452A CN 112073487 B CN112073487 B CN 112073487B
- Authority
- CN
- China
- Prior art keywords
- signaling
- information
- display
- client
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/03—Protocol 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 displaying method, a signaling sending device, a signaling displaying device, electronic equipment 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 the first server and the second server, and the initial signaling comprises at least one display information; inquiring the display configuration information; in the initial signaling, modifying each piece of display information, generating signaling corresponding to the display configuration information, and sending the signaling to the client, wherein the corresponding signaling comprises 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
Technical Field
The disclosure relates to the field of information technology, and in particular, to a signaling sending method, a signaling displaying method, a signaling sending device, a signaling displaying device, electronic equipment 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 the client, and the service logic layer is used for processing complex service logic operation. Typically signaling is generated by the service logic layer and issued to the long connection layer, which in turn issues to a plurality of clients connected to the server.
When the signaling with the text content is issued, the business 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, clients have a need to display text in different languages. When the language of the text needs to be adjusted, the long connection layer needs to be readjusted, and even redeveloped.
Disclosure of Invention
The disclosure provides a signaling sending method, a signaling displaying device, an electronic device and a storage medium, so as to at least solve the problems of high complexity, high development cost and high maintenance cost of signaling operation for converting non-carried text content into carried text content by a long connection layer in the related technology. The technical scheme of the present disclosure is as follows:
According to a first aspect of an embodiment of the present disclosure, there is provided a signaling sending method, applied to a first server, including:
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 the first server and the second server, and the initial signaling comprises at least one display information;
inquiring the display configuration information;
in the initial signaling, modifying each piece of display information, generating signaling corresponding to the display configuration information, and sending the signaling to the client, wherein the corresponding signaling comprises the display information corresponding to the display configuration information.
Optionally, in the initial signaling, modifying each piece of presentation information to generate signaling corresponding to the presentation configuration information, including:
in the initial signaling, acquiring target display information corresponding to the display configuration information, wherein the display configuration information is used for configuring the content to be displayed included in the signaling sent to the client, and the target display information is used for indicating the client to display the content to be displayed matched with the display configuration information;
And deleting display information different from the target display information in the initial signaling, and generating signaling corresponding to the display configuration information.
Optionally, the deleting the display information different from the target display information, generating 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 in the communication protocol, adding the display information identification information to a position matched with the target display information, and generating 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 display information is text information, the display configuration information is language type information, the semantics of each display information are the same, the display configuration information is used for configuring a text to be displayed included in a signaling sent to the client, and the target display 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 identification information of a live broadcasting room from the initial signaling;
acquiring at least one target client matched with the identification information of the live broadcasting room from a plurality of clients for 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 client.
According to a second aspect of the embodiments of the present disclosure, there is provided a signaling sending method, applied to a second server, including:
acquiring 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 modifying each display information in the initial signaling by the first server, generating signaling corresponding to display configuration information and sending 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, the signaling data comprising: content configuration information, live room identification information, and at least one presentation information;
And arranging the signaling data according to a data structure included in the signaling protocol to generate 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 that the first server modifies at least one piece of display information included in an initial signaling to generate a signaling corresponding to display configuration information, and the display configuration information is sent to the first server in advance through the 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:
text content matching the language type information is generated and displayed 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;
a connection is established with the first server.
Optionally, the initial signaling is that the first server receives signaling sent by the second server according to a signaling protocol, and the signaling protocol is a signaling protocol established between the first server and the second server.
According to a fourth aspect of embodiments of the present disclosure, there is provided a signaling transmission device configured in a first server, including
The system comprises a client long connection establishment unit, a client long connection establishment unit and a client long connection establishment unit, wherein the client long connection establishment unit is configured to execute a long connection request sent by a receiving client, and the long connection request comprises display configuration information of the client;
a presentation configuration information storage unit configured to perform establishment of connection with the client and store presentation configuration information;
the system comprises a signaling protocol acquisition unit, a first server and a second server, wherein the signaling protocol acquisition unit is configured to execute and receive initial signaling sent by the second server according to a signaling protocol, the signaling protocol is established between the first server and the second server, and the initial signaling comprises at least one display information;
a presentation configuration information query unit configured to perform a query of the presentation configuration information;
the signaling issuing unit is configured to modify each piece of display information in the initial signaling, generate signaling corresponding to the display configuration information, and send the signaling to the client, wherein the corresponding signaling comprises the display information corresponding to the display configuration information.
Optionally, the signaling issuing unit includes:
the target display information screening subunit is configured to be executed in the initial signaling to acquire target display information corresponding to the display configuration information, wherein the display configuration information is used for configuring the content to be displayed included in the signaling sent to the client, and the target display information is used for indicating the client to display the content to be displayed matched with the display configuration information;
and a redundant display information deleting subunit configured to delete display information different from the target display information in the initial signaling, and generate signaling corresponding to the display configuration information.
Optionally, the redundant presentation information deleting subunit includes:
a server and client protocol acquisition subunit configured to perform acquisition of a communication protocol between the first server and the client;
and the display information identification information adding subunit is configured to acquire display information identification information included in the communication protocol, add the display information identification information to a position matched with the target display information, generate signaling corresponding to the display configuration information, and the display information identification information is used for the client to inquire the target display information.
Optionally, the display information is text information, the display configuration information is language type information, the semantics of each display information are the same, the display configuration information is used for configuring a text to be displayed included in a signaling sent to the client, and the target display 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 device further includes:
a live broadcasting room identification information acquisition unit configured to perform extraction of live broadcasting room identification information from an initial signaling sent by a second server according to a signaling protocol after receiving the initial signaling;
a multi-client connection establishment unit configured to perform acquiring at least one target client matched with the live broadcasting room identification information among a plurality of clients establishing a connection;
and each client side display configuration information query unit is configured to execute the query of the target display configuration information of each target client side, generate target signaling corresponding to each target display information and send the target signaling to the corresponding target client side.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a signaling sending device configured in a second server, including:
An initial signaling acquisition unit configured to perform acquisition of initial signaling including at least one presentation information;
the initial signaling issuing unit is configured to send the initial signaling to a first server according to a signaling protocol, the initial signaling is used for modifying each piece of display information in the initial signaling by the first server, signaling corresponding to display configuration information is generated and sent 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 initial signaling obtaining unit includes:
a signaling data acquisition unit configured to perform acquisition of signaling data including: content configuration information, live room identification information, and at least one presentation information;
and the signaling data combination unit is configured to execute the arrangement of the signaling data according to a data structure included in the signaling protocol, and generate initial signaling.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a signaling display device configured in a client, including:
the signaling receiving unit is configured to execute receiving signaling sent by a first server, wherein the signaling is that the first server modifies at least one piece of display information included in the initial signaling to generate signaling corresponding to display configuration information, and the display configuration information is sent to the first server in advance through the client;
A presentation information acquisition unit configured to perform extraction of presentation information from the signaling, the presentation information corresponding to presentation configuration information;
and the display content generation unit is configured to generate and 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 a live broadcasting room display subunit configured to perform generation of text content matched with the language type information and display in the live broadcasting room.
Optionally, the signaling display device further includes:
the display configuration information acquisition unit is configured to acquire display configuration information before receiving signaling sent by the 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 transmission of the long connection request to the first server;
a long connection establishment unit configured to perform establishment of a connection with the first server.
Optionally, the initial signaling is that the first server receives signaling sent by the second server according to a signaling protocol, and the signaling protocol is a signaling protocol established between the first server and the second server.
According to a seventh aspect of embodiments of the present disclosure, there is provided 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 embodiment of the disclosure.
According to an eighth aspect of embodiments of the present disclosure, there is provided a storage medium, instructions in which, when executed by a processor of an electronic device, enable the electronic device to perform a signaling method according to any one of the embodiments of the present disclosure.
According to a ninth aspect of embodiments of the present disclosure, there is provided a computer program product for use in connection with an electronic device, the computer program product comprising a computer readable storage medium and a computer program mechanism embedded therein, the program being loadable via a computer and executable to enable 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, recording display configuration information sent by the client, modifying at least one display information contained in an initial signaling when receiving the initial signaling sent by a second server, generating a signaling corresponding to the display configuration information, wherein the signaling comprises the display information corresponding to the display configuration information, realizing that a plurality 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 generating operation, sending the signaling to the client, so that the client obtains the display information corresponding to the display configuration information, solving the problems that in the prior art, the complexity of generating operation of the signaling carrying the text content is high, the development cost is high and the maintenance cost is high due to the fact that the first server assembles the signaling without the text content with the text content to generate the signaling carrying the text content, and the signaling sent by the second server is carried in the initial signaling, and selecting target text in the initial signaling, generating the signaling sent to the client, simplifying the signaling generating operation of the signaling required by the client, reducing the initial signaling modifying workload, improving the efficiency of the signaling required by the client, and reducing the complexity of the operation required by the client and lowering the service cost.
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 disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
Fig. 1 is a schematic diagram illustrating a signaling delivery application scenario according to an example embodiment.
Fig. 2 is a flow chart illustrating a signaling method according to an exemplary embodiment.
Fig. 3 is a flow chart illustrating a signaling method according to an exemplary embodiment.
Fig. 4 is a flow chart illustrating a signaling method according to an exemplary embodiment.
Fig. 5 is a flow chart illustrating a signaling presentation method according to an example embodiment.
Fig. 6 is a diagram illustrating interaction signaling between a client, a first server, and a second server, according to an example embodiment.
Fig. 7 is a block diagram illustrating a signaling transmission apparatus according to an exemplary embodiment.
Fig. 8 is a block diagram illustrating a signaling transmission apparatus according to an exemplary embodiment.
Fig. 9 is a block diagram illustrating a signaling presentation device according to an example embodiment.
Fig. 10 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of 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 foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
In the process of receiving signaling by the client, as shown in fig. 1, a service system is connected to the client, and the service system is used for providing business services, such as live broadcast services, for the client. The service system at least comprises: a first server and a second server. The first server establishes a connection with the client, and at the same time, the first server is connected with the second server, and the second server is not connected with the first server, and in general, the connection is a long connection, wherein the long connection is a connection capable of continuously maintaining a connection state for a long time, and a plurality of data packets can be continuously transmitted on the long connection. The second server is used for sending the business 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 signaling.
Fig. 2 is a flowchart illustrating a signaling method according to an exemplary embodiment, and as shown in fig. 2, the signaling method is used in a first server, and includes the following steps.
In step S11, a long connection request sent by a client is received, where the long connection request includes display configuration information of the client.
The long connection request is a request for establishing a long connection between the first server and the client. Typically the signalling is a command issued by the first server at the initiative and does not need to rely on the client's request. By establishing a long connection between the first server and the client, it is achieved that the first server actively issues signalling to the client. By configuring the first server to establish long connection with the client for communication, the number of times and time for requesting connection can be reduced, and the signaling issuing efficiency can be improved.
The display configuration information is used for determining the content to be displayed. The client and the display configuration information have a corresponding relation, and accordingly, the display configuration information is used for determining content and the like which need to be displayed on the corresponding client. More specifically, the presentation configuration information is data for distinguishing clients and screening the presentation information for the clients. The presentation configuration information may be represented by characters. Wherein the content may include at least one of the following content types, presentation styles, presentation positions, and the like. For example, the content may be text, the content type may be a language type, the presentation style may be a font size, the presentation position may be a position in the page, such as a top of the page or a bottom of the page, etc., and in addition, the content may further include other information, and may be specifically set as required, which is not specifically limited in this embodiment of the disclosure.
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 to the client when the connection is successfully established. After the connection is established, the first server may 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 can establish and maintain a corresponding relation table between the display configuration information and the client list, and corresponding relations between a plurality of clients and the corresponding display configuration information are stored.
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 be any other client, and 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, where the signaling protocol is a signaling protocol established between the first server and the second server, and the initial signaling includes at least one display information.
The initial signaling is a command for indicating the client to display the specified content on the interface, namely the initial signaling needs to specify the content to be displayed, and correspondingly, the initial signaling comprises display information, and the display information comprises data for generating the content to be displayed. Optionally, the initial signaling may further specify an interface for displaying, and correspondingly, the initial signaling further includes identification information of the interface. Initial signaling is transmitted between the first server and the second server. The signaling protocol is a protocol established between the first server and the second server and is used for specifying the data format and transmission mode of the initial signaling.
The second server is a server for providing business service for at least one client, the first server is a server 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 be in communication, for example, by a cable connection, to establish a communication connection. The second server is configured with service codes, and service data can be generated by executing the service codes to provide service for the client. For example, the second server executing the service code may generate an initial signaling displaying the specified presentation information on the specified interface of the client; for another example, execution of the business code by the second server may generate a hypertext markup language file, display a page on the client that matches the hypertext markup language file, and so on.
The presentation information may be information for generating visual contents such as text, image, and video. The presentation information may include at least one of the following, differentiated by type of visual content: 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 video addresses, for generating 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 words "welcome to my live room" at live room a.
In fact, in a user group using a client, the needs of each user are different, for example, the languages used by the users in different countries are different, and accordingly, the users in different countries need the client to display text contents in different languages, for example, chinese text, english text, russian text, etc.; for another example, users of different ages may see different font sizes, and accordingly, users of different ages may need the client to display text content of different font sizes, e.g., font number five or font number one, etc. The corresponding display information can be determined according to the user requirement of the user using the client and only provided for the client, so that the client generates the content adapting to the user requirement aiming at the display information.
In fact, the second server does not store information related to the client, at this time, the second server cannot detect the presentation information required by the client, and therefore, all the presentation information needs to be added to the initial signaling, and the initial signaling is provided to the first server, where the initial signaling includes at least one presentation information. And the first server screens out the display information of the adaptive client from all the display information to form a signaling and sends the signaling to the client.
The first server and the second server cooperate together to execute the tasks of generating and issuing the signaling, specifically, the tasks from the signaling generation to the signaling adjustment to the adaptation client and the sending to the client are divided into the tasks of generating the signaling, and the tasks of screening the display information of the adaptation client in the signaling and issuing to the client are independently executed by the first server and the second server respectively. The method has the advantages that the tasks for generating and issuing the signaling are divided into two sub-tasks and are respectively distributed to two independent servers for execution, so that the execution time of each sub-task can be shortened, meanwhile, the tasks for generating the signaling of the second server do not need to depend on information of a client, the tasks for generating a plurality of the signaling can be executed in parallel, the signaling generation efficiency is improved, the whole signaling generation and issuing efficiency is improved, and the situation that all the tasks are executed by one server in a concentrated mode is avoided, so that 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 identification information of a live broadcasting room from the initial signaling; acquiring at least one target client matched with the identification information of the live broadcasting room from a plurality of clients for 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 client.
The second server may be a live service server. Specifically, the second server may provide live data, for example, live video streaming data, and for example, page resource data for generating a live room page, etc. to the client. The identification information of the living broadcast room is information for identifying the living broadcast room, and the identification information of the living broadcast room can be a room number and is expressed by a character string.
The second server may provide live services for a plurality of clients, and accordingly, there may be a plurality of clients establishing long connections with the first server. At least one target client matched with the identification information of the living broadcast room can refer to a client browsing the same living broadcast room or a client browsing the same living broadcast room. Browsing a live room may be that a client generates a page of the live room and/or that a client plays a live video stream that matches the live room.
According to the technical scheme, the target signaling carrying the target display information of the adaptive client is generated rapidly in the live broadcast scene, the signaling issuing efficiency in the live broadcast process is improved, meanwhile, the signaling generation and the resource occupation amount issued are reduced, the overall resource consumption of a live broadcast system is reduced, the live broadcast service blocking is reduced, and the stability of the live broadcast service is improved.
In step S14, the presentation configuration information is queried.
When determining that signaling needs to be sent to a client, a first server inquires display configuration information, wherein the display configuration information corresponds to the client, and the client is the client to receive the signaling. Determining whether the client is a client to receive the signaling in various manners, and determining that the client is the client to receive the signaling in different service scenes, for example, in a live broadcast scene according to the identification information of the live broadcast room included in the initial signaling if the identification information of the live broadcast room displayed by a certain client is matched with the identification information of the live broadcast room; in another example, in the 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 is matched with the chat user identification information, it is determined that the client is the client to receive the signaling, and the like.
And if the client is the client to receive the signaling, inquiring the 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 is sent to the client, where the corresponding signaling includes display information corresponding to the display configuration information.
The signaling corresponding to the display configuration information is a command for indicating the client to display the display information corresponding to the display configuration information on the interface. The signaling corresponding to the display configuration information is different from the initial signaling in that the displayed content is specified in the signaling corresponding to the display configuration information, that is, the displayed information corresponding to the display configuration information is specified, and the initial signaling does not specify the displayed content, but provides all the displayed information. Accordingly, at least one presentation information is included in the initial signaling, and only one presentation information is included in the signaling corresponding to the presentation configuration information, and presentation information other than the presentation information corresponding to the presentation configuration information is not included. The initial signaling is modified, namely, the display information except the display information corresponding to the display configuration information is removed, and the display information corresponding to the display configuration information is reserved.
Modifying each display information, and generating signaling corresponding to the display configuration information can be achieved 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 the 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 into a 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. 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 the signaling corresponding to the display configuration information is sent to the client by being directly communicated with the client. In practice, the second server is configured to generate a command for controlling the client, and the first server is configured to interact with the client and convert the command into a command according to a user requirement, so as to instruct the client to display the presentation content according to the user requirement.
By configuring the second server to interact with the first server at the same time, only the task of modifying the initial signaling into the signaling of the adaptation client needs to be executed in the first server, so that the time for modifying the signaling is shortened, and the efficiency of generating the signaling corresponding to the display configuration information and transmitting the signaling is improved.
In a specific application scenario, optionally, the display information is text information, the display configuration information is language type information, semantics of each display information are the same, the display configuration information is used for configuring a text to be displayed included in a signaling sent to the client, and the target display 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, namely the display information is used for generating text content so as 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 each display information are the same, and the display configuration information is used for generating text contents with the same voice and different languages according to different display information. For example, the language type is Chinese, and the text content generated by the display information corresponding to the display configuration information is 'hello'; and for example, the language type is English, and 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, namely the display configuration information designates the text to be displayed which needs to be included in the signaling sent to the client, and therefore the text information which needs to be included in the signaling sent to the client is designated.
Specifically, the target display configuration information is target language type information, the language type information of the text information is designated as target language type information by the target display configuration information, and the display information included in the signaling corresponding to the target display configuration information is target display information. Accordingly, the target presentation may instruct the client to generate text to be displayed that matches the target language type information, e.g., text to be displayed in chinese.
By configuring the display information as text information and configuring the display configuration information as language type information, signaling corresponding to the display configuration information can be used for indicating the client to adapt to different languages, generating text content which can be understood by users adapting to different countries, flexibly adjusting the display content and improving the universality of the client.
In the prior art, a signaling generated by a second server does not include text content, a first server receives the signaling which does not include text content, acquires a target client to be transmitted, 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 transmits the signaling to the client. If the text content is changed, the corresponding relation between the language type and the text content stored in the second server needs to be updated in advance, and meanwhile, if the corresponding relation between other types and the text content is newly added, the second server needs to be changed 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 screens and retains the target display information, different initial signaling can be modified in a screening mode, the universality of the screening mode for modifying the initial signaling is improved, the signaling adjustment cost and complexity are reduced, and the signaling modification efficiency is improved.
According to the technical scheme, long connection is established between the first server and the client, meanwhile, display configuration information sent by the client is recorded, when an initial signaling sent by the second server is received, at least one display information included in the initial signaling is modified, signaling corresponding to the display configuration information is generated, the signaling includes the display information corresponding to the display configuration information, the signaling carrying a plurality of display information in the initial signaling is realized, the signaling generating operation is simplified by screening the display information corresponding to the display configuration information, the signaling is sent to the client, the client is enabled to obtain the display information corresponding to the display configuration information, the problems that in the prior art, the complexity of generating operation of the signaling carrying the text content is high, the development cost is high and the maintenance cost is high due to the fact that the first server assembles the signaling without the text content with the text content, the signaling carrying the text content is carried in the initial signaling, the signaling corresponding to the display configuration information is selected in the initial signaling, the signaling required by the client is generated, the generating operation of the signaling required by the client is simplified, the initial signaling modifying workload is reduced, the required signaling generating operation of the client is improved, the required signaling generating operation of the client is reduced, and the cost of the client is reduced, and the service cost is reduced.
Fig. 3 is a flowchart illustrating a signaling method according to an exemplary embodiment, which is a further refinement of the foregoing technical solution, where the technical solution in this embodiment may be combined with each of the alternatives in one or more embodiments described above. 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 display configuration information of the client.
Reference is made to the foregoing embodiments for a non-exhaustive description of this embodiment.
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, where the signaling protocol is a signaling protocol established between the first server and the second server, and the initial signaling includes at least one display 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 display information, each display information can generate a content to be displayed, and the content to be displayed generated by different display information is different. The content to be displayed may be different from the content to be displayed, and specifically, may be at least one of a type of the content to be displayed, a display style, a display position, and the like.
The display configuration information is used for configuring the content to be displayed included in the signaling sent to the client, namely the display configuration information designates the content to be displayed which needs to be included in the signaling sent to the client, and therefore designates the display information which needs to be included in the signaling sent to the client.
Specifically, the target display configuration information designates 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 can be a text to be displayed which is thickened at the top of the page.
When the display information is screened, the display configuration information can be configured through distinguishing features 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 display information corresponding to the display configuration information.
In the initial signaling, a correspondence between the display information and the display configuration information is established, for example, the initial signaling includes a data pair formed by the display information and the display configuration information. If the display configuration information corresponding to the client is the target display configuration information, and meanwhile, the display configuration information in the data pair is the same as the target display configuration information, the display information in the data pair is determined to be the target display information and is matched with the target display configuration information.
Illustratively, the initial signaling includes a data pair "zh": "welcome to My chat room", showing configuration information as: zh; the display information is as follows: welcome to join my chat room. For another example, the initial signaling includes data "en": "welcome to my chat room", showing configuration information as: en; the display information is as follows: welcome to my chat room. At this time, the initial signaling adopts a colon to distinguish the display configuration information from the display information, the character strings in front of the colon are the display configuration information, and the character strings behind the colon are the display information. In addition, the initial signaling may have other representation modes, such as comma separation for displaying configuration information and display information.
In the initial signaling, display information corresponding to the display configuration information can be queried and used as target display information. The target display information is used for indicating the client to generate the 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 corresponding to the display configuration information can be determined. By deleting the display information except the target display information, the information quantity carried by the signaling can be reduced, the data quantity transmitted 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, generating 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 in the communication protocol, adding the display information identification information to a position matched with the target display information, and generating 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 display information and also comprises the corresponding relation between each piece of display information and display 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 queried, and in the corresponding relation, the display information corresponding to the target display configuration information is used as target display information. Specifically, the initial signaling includes a plurality of data pairs, a data pair including target display configuration information is queried, and display information included in the data pair is used as target display information.
The identification information of the corresponding relation set is configured in the initial signaling, the corresponding relation set can be inquired through the identification information, for example, the corresponding relation set is obtained in the data adjacent to the identification information, so that each data pair is obtained, and further, the corresponding target display information is inquired according to the display configuration information of the client.
Illustratively, the identification information of the correspondence set is "a". The content of the correspondence set with the identification information "a" queried in the initial signaling is as follows:
the corresponding relation between the display information and the display configuration information is configured in a corresponding relation set 'A' of the initial signaling, each behavior is a data pair comprising one display configuration information and one display information, the character strings in front of the colon are the display configuration information, and the character strings behind the colon are the display information. In one specific example, if the target presentation configuration information is en, then the data pair hit "en": "welcome to my chat room" is determined, while welcome to my chat room is the target presentation information.
Among the plurality of presentation information, the presentation information other than the target presentation information is deleted, and the presentation configuration information is deleted.
Because the signaling protocol between the servers is different from the communication protocol between the client and the servers, besides the display information modification, the initial signaling is required to be modified according to the communication protocol between the client and the servers, so as to generate the signaling conforming to the regulation of the communication protocol between the client and the servers.
The display information identification information is information for inquiring display information, and the number of the display information is one, so that only one display information can be directly inquired according to the display information identification information and is determined to be target display information.
Specifically, the communication protocol specifies which part of the data is the target presentation information, so that the client can parse and extract the target presentation information from the signaling. The presentation information identification information is information for identifying the target presentation information, and a position of the presentation information identification information is associated with a position of the target presentation information, for example, the presentation information identification information is separated from the target presentation information by a colon. The matched position of the target display information is used for placing the display information identification information. The display information identification information may be configured to a designated location, so that the client may obtain the target display information matched with the designated location, specifically, the client may obtain the designated location, determine the associated location, and obtain the target display information at the associated location.
The manner of addition may be determined according to circumstances. For example, the number of the presentation information is usually one at this time, and accordingly, the identification information of the correspondence 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 relation set with the display information identification information. Or the identification information of the corresponding relation set can be modified to form display information identification information, for example, the identification information of the corresponding relation set is text, and the display information identification information is text, at this time, s can be deleted directly from the identification information of the corresponding relation set to form display information identification information.
Illustratively, the content of the initial signaling is as follows:
wherein, the type refers to content configuration information for describing the semantics of the content of which the initial signaling indicates the client to display, and the "WELCOME_MSG" refers to the initial signaling for indicating the client to generate the content as WELCOME information. Id is an interface identification parameter, e.g., the parameter value of the interface identification parameter is 123456, which may be represented as the room number of the live room is 123456.
The identification information of the corresponding relation set is "A", and the corresponding relation set comprises: displaying a data pair with configuration information of 'en' and display information of 'welcome to my chat room'; the presentation configuration information is "zh", and the presentation information is a data pair "welcome to my chat room".
The display information identification information is corresponding to the B, and the content of the modified signaling is as follows:
/>
illustratively, if the target presentation configuration information is en, then the data pair hit "en" to "welcome to my chat room" is determined, while welcome 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 deleted directly. And the identification information 'A' of the corresponding relation set is replaced by the display information identification information 'B', and unique display information can be inquired through the identification information 'B'. In practice, the identification information indicates that the data following the adjacent colon is the identification content, for example, the data following the colon adjacent to the display information identification information is the display information, or the data following 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, and thus, the presentation configuration information is redundant information and can be deleted entirely.
As can be seen from the above, the positions of a and B are the same, and the data included in the corresponding relation set may only retain the target display information, so that the identification information of the corresponding relation set may be directly updated to the display information identification information, to form signaling conforming to the communication protocol.
In addition, the initial signaling can be updated according to the corresponding relation set template to generate the signaling corresponding to the display configuration information. Wherein 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.
In general, the presentation information template is included in a signaling corresponding to the presentation configuration information, and the presentation information identification information, the data structure, and the position of the presentation information identification information in the signaling, etc. Illustratively, the presentation information template is "" B ":" XXXX ",", where XXXX refers to the filling location of the target presentation information. The presentation information template may be used to directly replace "A": { … … }. ,
the display information which is different from the target display information is deleted from the corresponding relation set comprising the display information, only the target display information is reserved, and display information identification information is added in the initial signaling according to a communication protocol between the client and the first server, so that the client queries the target display information according to the display information identification information, a signaling which accords with the communication protocol and corresponds to the display configuration information is generated, the signaling corresponding to the display configuration information is generated rapidly by modifying the initial signaling, 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, 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 assembly operation of the signaling carrying the text content and the signaling not carrying the text content is replaced, the generation operation of generating the signaling carrying the text content by assembly can be simplified, the generation speed of the signaling corresponding to the display configuration information is accelerated, and accordingly 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 exemplary embodiment. As shown in fig. 4, the signaling method is used in the second server, and includes the following steps.
In step S31, an initial signaling is acquired, the initial signaling including at least one presentation information.
Reference is made to the foregoing embodiments for a non-exhaustive description of this embodiment.
In step S32, the initial signaling is sent to a first server according to a signaling protocol, where the initial signaling is used for modifying each piece of display information in the initial signaling by the first server, generating signaling corresponding to display configuration information and sending the signaling to a client, where the display 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 comprise all the display information, so that the first server can query all the display information directly in the initial signaling without configuring logic operation for locally querying the display information and assembling the display information to the signaling, and the display information of the adaptive client is screened out from the initial signaling, and the assembling operation is simplified to be an editing operation, thereby simplifying the operation of the assembly signaling of the first server.
Moreover, the first server only needs to acquire and screen the display information in the initial signaling, the display information is not required to be maintained, the cost of the first server for storing and maintaining the display information can be reduced, meanwhile, when the display information is added, only the second server needs to be added in the initial signaling, the logic operation for changing the first server is not required, the adding cost of the display information can be reduced, the content of the display information is enriched, and the flexibility of adding and deleting the display information is improved.
Optionally, the acquiring the initial signaling includes: acquiring signaling data, the signaling data comprising: content configuration information, live room identification information, and at least one presentation information; and arranging the signaling data according to a data structure included in the signaling protocol to generate initial signaling.
The signaling data is data used for assembly to generate initial signaling. 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 the 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. In general, the signaling data includes all display information for displaying the content corresponding to the content configuration information, and accordingly, according to the signaling data, all display information may be added to the initial signaling, and the first server may be omitted from locally querying the display information, and the operation of assembling the display information according to the preset structure may be performed.
The signaling protocol includes a data structure comprising content configuration information, live broadcast room identification information and a corresponding relation set which are sequentially arranged. Meanwhile, the content configuration information is expressed in the following manner: identification information of the content configuration information: a character string representing the content; the representation mode of the identification information of the live broadcasting room is as follows: identification information of the live broadcasting room: a character string representing a live room; the display information is expressed in the following way: identification information of the correspondence set: { show configuration information: corresponding presentation information … ….
As in the previous example, the content configuration information is "type" and "WELCOME_MSG" indicates that the content displayed by the client is WELCOME information. The live room identification information is "Id" 123456, indicating that the room number of the live room where the client displays is 123456. The display configuration information is 'zh', the corresponding display information is 'welcome to enter My chat room', the language type corresponding to the client is Chinese, and the content displayed is 'welcome to enter 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 data comprises all display information corresponding to the content to be displayed through the signaling protocol, so that the first server can screen the display information of the adaptive client side through the display information, and the signaling generation efficiency is improved.
According to the technical scheme, the initial signaling comprising a plurality of display information is generated at the second server and is sent to the first server, so that the first server screens the display information matched with the client in 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, the generation efficiency of the signaling is improved, meanwhile, the initial signaling comprises a data structure of the plurality of display information, the cost of the first server for storing and maintaining the display information can be reduced, the logic operation of the first server is not needed to be relied on for editing the display information, the editing cost of the display information can be reduced only by editing the second server in the initial signaling, the content of the display information is enriched, and the flexibility of editing the display information is improved.
Fig. 5 is a flow chart illustrating a signaling presentation method according to an example embodiment. As shown in fig. 5, the signaling display method is used in the client, and the signaling display 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 display information included in an initial signaling, and generates a signaling corresponding to display configuration information, where the display configuration information is sent to the first server in advance through the client.
Reference is made to the foregoing embodiments for a non-exhaustive description of this embodiment.
In step S42, presentation information is extracted from the signaling, the presentation information corresponding to presentation configuration information.
The presentation information is information for the client to generate presentation content.
In step S43, display content matching the display information is generated and displayed, and the display content corresponds to the display configuration information.
The presentation content is visualized content generated based on the presentation information. The presentation content is for display on a display screen of the client. The display content is generated based on display information, the display information corresponds to display configuration information, and the display content corresponds to the display configuration information. Illustratively, the presentation information is text information, the presentation configuration information is a chinese language, and the presentation content is chinese text, such as "thank you.
Optionally, the generating and displaying the display content matched with the display information includes: text content matching the language type information is generated and displayed 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, a user may configure language type information for a client, and the signaling indicates that the content displayed by the client is text content that matches the language type information.
By generating and displaying the text content matched with the language type information according to the signaling in the live broadcasting room, the matching of 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 display content in the live broadcasting room is improved, and the stability of the live broadcasting 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; a connection is established with the first server.
By acquiring the display configuration information, the first server can be instructed to issue display information adapting to the client, accuracy of signaling and display content is improved, the display configuration information is added in a long connection request, long connection is established with the first server, the number of times and time of request connection can be reduced, and signaling receiving efficiency is improved.
Optionally, the initial signaling is that the first server receives signaling sent by the second server according to a signaling protocol, and the signaling protocol is a signaling protocol established between the first server and the second server.
The first server and the second server cooperate to execute the tasks for generating and issuing the signaling, divide the tasks for generating and issuing the signaling into two sub-tasks, and respectively distribute the tasks to the two independent servers for execution, so that the execution time of each sub-task can be shortened, meanwhile, the tasks for generating the signaling of the second server do not need to depend on the information of a client, the tasks for generating a plurality of the signaling can be executed in parallel, the efficiency of generating the signaling is improved, the efficiency of the whole signaling generation and issuing is improved, and the concentrated execution of all the tasks by one server is avoided, so that 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, an interactive signaling diagram 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 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.
May be stored in a user information table and maintained.
S403, the first server establishes a successful message to the client long connection.
S401 to S403 are flows for establishing a long connection.
S404, the second server generates an initial signaling, where the initial signaling includes a plurality of text information.
S405, the second server sends the initial signaling to the first server.
S406, the first server inquires the language type matched with the client.
The language type is queried in the user information table. And the first server determines that the client is the client for sending the signaling according to the initial signaling.
S407, the first server acquires text information matched with the language type from the initial signaling, and modifies the initial signaling according to the text information to form a target signaling.
And S408, the first server sends the target signaling to the client.
S404-S408 are flows of signaling delivery.
According to the technical scheme, the signaling sent by the first server is acquired through the client, the display information is extracted, the corresponding display content is generated and displayed, the display information of the adaptive client can be accurately acquired, the display content meeting the client configuration information is generated, the consistency of the content displayed by the client is improved, and the display content is accurately generated.
Fig. 7 is a block diagram of a signaling device according to an exemplary embodiment. Referring to fig. 7, the apparatus includes a client long connection establishment unit 121, a presentation configuration information storage unit 122, a signaling protocol acquisition unit 123, a presentation configuration information inquiry unit 124, and a signaling issuing unit 125.
A client long connection establishment unit 121 configured to perform 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 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, and the initial signaling includes at least one display information;
A presentation configuration information query unit 124 configured to perform a query for the presentation configuration information;
the signaling issuing unit 125 is configured to perform modifying each piece of the 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.
According to the technical scheme, long connection is established between the first server and the client, meanwhile, display configuration information sent by the client is recorded, when an initial signaling sent by the second server is received, at least one display information included in the initial signaling is modified, signaling corresponding to the display configuration information is generated, the signaling includes the display information corresponding to the display configuration information, the signaling carrying a plurality of display information in the initial signaling is realized, the signaling generating operation is simplified by screening the display information corresponding to the display configuration information, the signaling is sent to the client, the client is enabled to obtain the display information corresponding to the display configuration information, the problems that in the prior art, the complexity of generating operation of the signaling carrying the text content is high, the development cost is high and the maintenance cost is high due to the fact that the first server assembles the signaling without the text content with the text content, the signaling carrying the text content is carried in the initial signaling, the signaling corresponding to the display configuration information is selected in the initial signaling, the signaling required by the client is generated, the generating operation of the signaling required by the client is simplified, the initial signaling modifying workload is reduced, the required signaling generating operation of the client is improved, the required signaling generating operation of the client is reduced, and the cost of the client is reduced, and the service cost is reduced.
Optionally, the signaling issuing unit 125 includes:
the target display information screening subunit is configured to be executed in the initial signaling to acquire target display information corresponding to the display configuration information, wherein the display configuration information is used for configuring the content to be displayed included in the signaling sent to the client, and the target display information is used for indicating the client to display the content to be displayed matched with the display configuration information;
and a redundant display information deleting subunit configured to delete display information different from the target display information in the initial signaling, and generate signaling corresponding to the display configuration information.
Optionally, the redundant presentation information deleting subunit includes:
a server and client protocol acquisition subunit configured to perform acquisition of a communication protocol between the first server and the client;
and the display information identification information adding subunit is configured to acquire display information identification information included in the communication protocol, add the display information identification information to a position matched with the target display information, generate signaling corresponding to the display configuration information, and the display information identification information is used for the client to inquire the target display information.
Optionally, the display information is text information, the display configuration information is language type information, the semantics of each display information are the same, the display configuration information is used for configuring a text to be displayed included in a signaling sent to the client, and the target display 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 device further includes:
a live broadcasting room identification information acquisition unit configured to perform extraction of live broadcasting room identification information from an initial signaling sent by a second server according to a signaling protocol after receiving the initial signaling;
a multi-client connection establishment unit configured to perform acquiring at least one target client matched with the live broadcasting room identification information among a plurality of clients establishing a connection;
and each client side display configuration information query unit is configured to execute the query of the target display configuration information of each target client side, generate target signaling corresponding to each target display information and send the target signaling to the corresponding target client side.
The specific manner in which the individual units perform the operations in relation to the apparatus of the above embodiments has been described in detail in relation to the embodiments of the method and will not be described in detail here.
Fig. 8 is a block diagram of a signaling device according to an exemplary embodiment. Referring to fig. 8, the apparatus includes an initial signaling acquisition unit 221 and an initial signaling issuing unit 222.
An initial signaling acquisition unit 221 configured to perform acquisition of initial signaling including at least one presentation information;
an initial signaling issuing unit 222, configured to perform sending the initial signaling to a first server according to a signaling protocol, where the initial signaling is used for modifying each presentation information in the initial signaling by the first server, generating a signaling corresponding to presentation configuration information, and sending the signaling to a client, where the presentation configuration information is obtained from a long connection request sent by the client by the first server.
According to the technical scheme, the initial signaling comprising a plurality of display information is generated at the second server and is sent to the first server, so that the first server screens the display information matched with the client in 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, the generation efficiency of the signaling is improved, meanwhile, the initial signaling comprises a data structure of the plurality of display information, the cost of the first server for storing and maintaining the display information can be reduced, the logic operation of the first server is not needed to be relied on for editing the display information, the editing cost of the display information can be reduced only by editing the second server in the initial signaling, the content of the display information is enriched, and the flexibility of editing the display information is improved.
Optionally, the initial signaling obtaining unit 221 includes:
a signaling data acquisition unit configured to perform acquisition of signaling data including: content configuration information, live room identification information, and at least one presentation information;
and the signaling data combination unit is configured to execute the arrangement of the signaling data according to a data structure included in the signaling protocol, and generate initial signaling.
The specific manner in which the individual units perform the operations in relation to the apparatus of the above embodiments has been described in detail in relation to the embodiments of the method and will not be described in detail here.
Fig. 9 is a block diagram of a signaling presentation device, according to 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 signaling sent by a first server, where the signaling is that the first server modifies at least one display information included in an initial signaling, and generates signaling corresponding to display configuration information, where the display configuration information is sent to the first server in advance through the client;
A presentation information acquisition unit 322 configured to perform extraction of presentation information from the signaling, the presentation information corresponding to presentation configuration information;
and a presentation content generation unit 323 configured to perform generation and display of presentation content matching the presentation information, the presentation content corresponding to the presentation configuration information.
According to the technical scheme, the signaling sent by the first server is acquired through the client, the display information is extracted, the corresponding display content is generated and displayed, the display information of the adaptive client can be accurately acquired, the display content meeting the client configuration information is generated, the consistency of the content displayed by the client is improved, and the display content is accurately generated.
Optionally, the presentation content generating unit 323 includes:
and a live broadcasting room display subunit configured to perform generation of text content matched with the language type information and display in the live broadcasting room.
Optionally, the signaling display device further includes:
the display configuration information acquisition unit is configured to acquire display configuration information before receiving signaling sent by the 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 transmission of the long connection request to the first server;
a long connection establishment unit configured to perform establishment of a connection with the first server.
Optionally, the initial signaling is that the first server receives signaling sent by the second server according to a signaling protocol, and the signaling protocol is a signaling protocol established between the first server and the second server.
The specific manner in which the individual units perform the operations in relation to the apparatus of the above embodiments has been described in detail in relation to the embodiments of the method and will not be described in detail here.
Fig. 10 is a schematic structural view of an electronic device according to an exemplary embodiment, as shown in fig. 10, the electronic device including:
one or more of the processors 210 may be configured to,
one processor 210 is illustrated in fig. 10;
a memory 220;
the processor 210 and the memory 220 in the device may be connected by a bus or otherwise, for example in fig. 10.
The memory 220 is 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 program instructions/modules corresponding to a signaling transmission method in an embodiment of the present disclosure (e.g., the client long connection establishment unit 121, the presentation configuration information storage unit 122, the signaling protocol acquisition unit 123, the presentation configuration information query unit 124, and the signaling issue unit 125 shown in fig. 7, or the initial signaling acquisition unit 221 and the initial signaling issue unit 222 shown in fig. 8, or the signaling reception unit 321, the presentation information acquisition unit 322, and the presentation content generation unit 323 shown in fig. 9). The processor 210 executes various functional applications of the computer device and data processing by running software programs, instructions and modules stored in the memory 220, i.e. implements a signaling method of the above-described method embodiment, namely:
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 the first server and the second server, and the initial signaling comprises at least one display information;
inquiring the display configuration information;
in the initial signaling, modifying each piece of display information, generating signaling corresponding to the display configuration information, and sending the signaling to the client, wherein the corresponding signaling comprises the display information corresponding to the display configuration information.
Or a signaling sending method for implementing the method embodiment, namely:
acquiring 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 modifying each display information in the initial signaling by the first server, generating signaling corresponding to display configuration information and sending 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 method embodiment, namely:
receiving a signaling sent by a first server, wherein the signaling is that the first server modifies at least one piece of display information included in an initial signaling to generate a signaling corresponding to display configuration information, and the display configuration information is sent to the first server in advance through the 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.
Memory 220 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created according to the use of the computer device, etc. In addition, 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 optionally includes memory remotely located relative to 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 to generate key signal inputs related to user settings and function control of the server. The output means 240 may comprise a display device such as a display screen.
In an exemplary embodiment, a storage medium is also provided, such as a memory 220, comprising instructions executable by the processor 210 of the apparatus to perform the above-described method. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided for use in connection 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 via a computer and executed to enable a signaling method as described in any one 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 adaptations, 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 is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (24)
1. The signaling sending method is characterized by being applied to a first server and comprising 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 the first server and the second server, and the initial signaling comprises at least one display information;
inquiring the display configuration information;
in the initial signaling, each piece of display information is modified, and the initial signaling is modified according to a communication protocol between the first server and the client, so that signaling corresponding to the display configuration information is generated and sent to the client, and the corresponding signaling comprises display information corresponding to the display configuration information.
2. The signaling method according to claim 1, wherein modifying each presentation information in the initial signaling to generate signaling corresponding to the presentation configuration information includes:
in the initial signaling, acquiring target display information corresponding to the display configuration information, wherein the display configuration information is used for configuring the content to be displayed included in the signaling sent to the client, and the target display information is used for indicating the client to display the content to be displayed matched with the display configuration information;
and deleting display information different from the target display information in the initial signaling, and generating signaling corresponding to the display configuration information.
3. The signaling method according to claim 2, wherein the generating signaling corresponding to the presentation configuration information includes:
acquiring a communication protocol between a first server and a client;
and acquiring display information identification information included in the communication protocol, adding the display information identification information to a position matched with the target display information, and generating signaling corresponding to the display configuration information, wherein the display information identification information is used for the client to inquire the target display information.
4. The signaling transmission method according to claim 1, wherein the presentation information is text information, the presentation configuration information is language type information, semantics of each presentation information are the same, the presentation configuration information is used for configuring a text to be displayed included in a signaling transmitted to the client, and the target presentation information is used for indicating the client to display the text to be displayed matched with the target language type information.
5. The signaling method according to claim 1, further comprising, after receiving the initial signaling sent by the second server according to the signaling protocol:
extracting identification information of a live broadcasting room from the initial signaling;
acquiring at least one target client matched with the identification information of the live broadcasting room from a plurality of clients for establishing connection;
and respectively inquiring the target display configuration information of each target client, generating target signaling corresponding to each target display configuration information, and respectively sending the target signaling to the corresponding target client.
6. The signaling sending method is characterized by being applied to a second server and comprising the following steps:
acquiring initial signaling, wherein the initial signaling comprises at least one piece of display information;
The initial signaling is sent to a first server according to a signaling protocol, the initial signaling is used for modifying each piece of display information in the initial signaling by the first server, the initial signaling is modified according to a communication protocol between the first server and a client, signaling corresponding to display configuration information is generated and sent to the client, and the display configuration information is obtained from a long connection request sent by the client through the first server.
7. The signaling method according to claim 6, wherein the acquiring the initial signaling comprises:
acquiring signaling data, the signaling data comprising: content configuration information, live room identification information, and at least one presentation information;
and arranging the signaling data according to a data structure included in the signaling protocol to generate initial signaling.
8. The signaling display method is characterized by being applied to a client and comprising the following steps of:
receiving a signaling sent by a first server, wherein the signaling is that the first server modifies at least one piece of display information included in an initial signaling, and modifies the initial signaling according to a communication protocol between the first server and the client to generate a signaling corresponding to display configuration information, and the display configuration information is sent to the first server in advance through the 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.
9. The signaling presentation method of claim 8, wherein the generating and displaying presentation content matching the presentation information comprises:
text content matching the language type information is generated and displayed in the live broadcast room.
10. The signaling presentation method of claim 8, further comprising, prior to receiving the signaling sent by the first server:
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;
a connection is established with the first server.
11. The signaling display method according to claim 8, wherein the initial signaling is a signaling protocol established between the first server and the second server, wherein the first server receives signaling sent by the second server according to a signaling protocol.
12. A signaling transmission device, configured in a first server, comprising:
the system comprises a client long connection establishment unit, a client long connection establishment unit and a client long connection establishment unit, wherein the client long connection establishment unit is configured to execute a long connection request sent by a receiving client, and the long connection request comprises display configuration information of the client;
a presentation configuration information storage unit configured to perform establishment of connection with the client and store presentation configuration information;
the system comprises a signaling protocol acquisition unit, a first server and a second server, wherein the signaling protocol acquisition unit is configured to execute and receive initial signaling sent by the second server according to a signaling protocol, the signaling protocol is established between the first server and the second server, and the initial signaling comprises at least one display information;
a presentation configuration information query unit configured to perform a query of the presentation configuration information;
the signaling issuing unit is configured to execute modification on each piece of display information in the initial signaling, modify the initial signaling according to a communication protocol between the first server and the client, generate signaling corresponding to the display configuration information, and send the signaling to the client, wherein the corresponding signaling comprises display information corresponding to the display configuration information.
13. The signaling apparatus of claim 12, wherein the signaling issuing unit comprises:
the target display information screening subunit is configured to be executed in the initial signaling to acquire target display information corresponding to the display configuration information, wherein the display configuration information is used for configuring the content to be displayed included in the signaling sent to the client, and the target display information is used for indicating the client to display the content to be displayed matched with the display configuration information;
and a redundant display information deleting subunit configured to delete display information different from the target display information in the initial signaling, and generate signaling corresponding to the display configuration information.
14. The signaling apparatus of claim 13 wherein the redundant presentation information deletion subunit comprises:
a server and client protocol acquisition subunit configured to perform acquisition of a communication protocol between the first server and the client;
and the display information identification information adding subunit is configured to acquire display information identification information included in the communication protocol, add the display information identification information to a position matched with the target display information, generate signaling corresponding to the display configuration information, and the display information identification information is used for the client to inquire the target display information.
15. The signaling transmission device according to claim 12, wherein the presentation information is text information, the presentation configuration information is language type information, semantics of each presentation information are the same, the presentation configuration information is used for configuring a text to be displayed included in a signaling transmitted to the client, and the target presentation information is used for indicating the client to display the text to be displayed matching the target language type information.
16. The signaling apparatus of claim 12, further comprising:
a live broadcasting room identification information acquisition unit configured to perform extraction of live broadcasting room identification information from an initial signaling sent by a second server according to a signaling protocol after receiving the initial signaling;
a multi-client connection establishment unit configured to perform acquiring at least one target client matched with the live broadcasting room identification information among a plurality of clients establishing a connection;
and each client side display configuration information query unit is configured to perform query on the target display configuration information of each target client side respectively, generate target signaling corresponding to each target display configuration information and send the target signaling to the corresponding target client side respectively.
17. A signaling transmission device, which is configured in a second server, comprising:
an initial signaling acquisition unit configured to perform acquisition of initial signaling including at least one presentation information;
the initial signaling issuing unit is configured to send the initial signaling to a first server according to a signaling protocol, wherein the initial signaling is used for modifying each piece of display information in the initial signaling by the first server, modifying the initial signaling according to a communication protocol between the first server and a client, generating signaling corresponding to display configuration information and sending the signaling to the client, and the display configuration information is acquired from a long connection request sent by the client through the first server.
18. The signaling apparatus of claim 17, wherein the initial signaling acquisition unit comprises:
a signaling data acquisition unit configured to perform acquisition of signaling data including: content configuration information, live room identification information, and at least one presentation information;
and the signaling data combination unit is configured to execute the arrangement of the signaling data according to a data structure included in the signaling protocol, and generate initial signaling.
19. A signaling display device, configured in a client, comprising:
the signaling receiving unit is configured to perform receiving signaling sent by a first server, wherein the signaling is that the first server modifies at least one piece of display information included in initial signaling, modifies the initial signaling according to a communication protocol between the first server and the client, and generates signaling corresponding to display configuration information, and the display configuration information is sent to the first server in advance through the client;
a presentation information acquisition unit configured to perform extraction of presentation information from the signaling, the presentation information corresponding to presentation configuration information;
and the display content generation unit is configured to generate and display content matched with the display information, wherein the display content corresponds to the display configuration information.
20. The signaling display apparatus of claim 19 wherein the display content generation unit comprises:
and a live broadcasting room display subunit configured to perform generation of text content matched with the language type information and display in the live broadcasting room.
21. The signaling display apparatus of claim 19 further comprising:
the display configuration information acquisition unit is configured to acquire display configuration information before receiving the signaling sent by the 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 transmission of the long connection request to the first server;
a long connection establishment unit configured to perform establishment of a connection with the first server.
22. The signaling display device of claim 19, wherein the initial signaling is a signaling protocol established between the first server and the second server that the first server receives signaling sent by the second server according to the signaling protocol.
23. 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 of any one of claims 1 to 7 or to implement the signaling presentation method of any one of claims 8 to 11.
24. A storage medium, which when executed by a processor of an electronic device, enables the electronic device to perform the signaling method of any one of claims 1 to 7 or to implement the signaling presentation method of any one of claims 8 to 11.
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 CN112073487A (en) | 2020-12-11 |
CN112073487B true 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) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113177171B (en) * | 2021-04-16 | 2024-05-28 | 百果园技术(新加坡)有限公司 | Graph display method, device, terminal equipment and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019062193A1 (en) * | 2017-09-29 | 2019-04-04 | 北京金山安全软件有限公司 | Information display method and device |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10176271B2 (en) * | 2008-07-15 | 2019-01-08 | International Business Machines Corporation | Command line interface browser |
CN106453231B (en) * | 2016-08-08 | 2020-08-04 | 腾讯科技(深圳)有限公司 | Signaling acquisition and transmission method and device |
CN109388666A (en) * | 2018-09-28 | 2019-02-26 | 拉扎斯网络科技(上海)有限公司 | Service customization method and 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 |
CN109947512B (en) * | 2019-03-18 | 2020-06-05 | 北京字节跳动网络技术有限公司 | Text adaptive display method, 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 |
CN110545327B (en) * | 2019-09-20 | 2022-04-29 | 北京达佳互联信息技术有限公司 | 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 |
-
2020
- 2020-08-28 CN CN202010887452.1A patent/CN112073487B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019062193A1 (en) * | 2017-09-29 | 2019-04-04 | 北京金山安全软件有限公司 | Information display method and device |
Also Published As
Publication number | Publication date |
---|---|
CN112073487A (en) | 2020-12-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109218362B (en) | Internet content distribution method, device and system | |
CN103516577A (en) | Message transmission method in instant messaging system and equipment | |
US20150227496A1 (en) | Method and system for microblog resource sharing | |
CN108984170A (en) | The multilingual rendering method of the H5 page and device | |
CN110474794B (en) | Information conversion method and system of SDN framework | |
CN109901938B (en) | Interactive large-screen system based on WebSocket communication and visual display method | |
CN113254233A (en) | Data transmission method, device, equipment and readable storage medium | |
CN108833565B (en) | Method and device for monitoring server, server and storage medium | |
EP2779571B1 (en) | Distribution control system, distribution system, distribution control method, and computer-readable storage medium | |
CN102137126B (en) | System and method for updating web data | |
CN109462640B (en) | Metadata synchronization method, data terminal, interaction system and medium | |
EP2790383B1 (en) | Distribution control system, distribution system, distribution control method, and computer-readable storage medium | |
CN112073487B (en) | Signaling sending and signaling displaying method and device, electronic equipment and storage medium | |
CN113766298B (en) | Bullet screen display method, device and system | |
CN103354563A (en) | Method of customizing EPG (electronic program guide) interface based on Internet television client and apparatus thereof | |
CN112839067A (en) | Data synchronization method and device | |
CN111090533A (en) | Notice information sending method and device, electronic equipment and storage medium | |
CN110602171B (en) | Interaction method and device | |
JP2017054411A (en) | API conversion adapter, API conversion system, and API conversion program | |
CN107026887B (en) | rapid information interaction method and network transmission method in multimedia system | |
CN112533012B (en) | Transmission method, device, equipment and storage medium for interaction information of live broadcasting room | |
CN113411620A (en) | Live broadcast clip display method and device, electronic equipment and storage medium | |
CN101448136B (en) | Method for realizing video on-demand function and system thereof | |
CN113114557B (en) | Message sending method and device, electronic equipment and storage medium | |
CN110336740B (en) | Equipment management method, server and system |
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 |