Interface notification message construction method, device, equipment and storage medium

By parsing and constructing the protocol messages of interface notification messages, and generating instance objects in response to interface calls, it solves the non-standardized problem of interface notification message processing in live broadcast room applications, and improves development efficiency and user experience.

CN112099795BActive Publication Date: 2024-09-24GUANGZHOU FANGGUI INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011040867.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-28
Publication Date
2024-09-24
Estimated Expiration
2040-09-28

AI Technical Summary

Technical Problem

In the existing technology, live broadcast room applications lack a standardized processing mechanism when processing interface notification messages, resulting in different types of business modules using different communication protocols, which increases the difficulty of development and maintenance and affects the user experience.

Method used

By parsing the protocol message of the encapsulated interface notification message, the object definition data, priority data and interface definition data are obtained, instantiating the predefined interface class to generate the corresponding instance object, modifying the properties of the instance object to construct the interface object, and responding Interface calls to realize the display and control of interface objects.

Benefits of technology

It implements standardized conversion and calling interfaces for interface notification messages, making it easier for different development teams to define interface notification messages, reducing the need for repeated development and version updates, and improving program development efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112099795B
    Figure CN112099795B
Patent Text Reader

Abstract

The present application discloses an interface notification message construction method, device, equipment and storage medium, the method comprising: parsing the protocol message encapsulating the interface notification message, obtaining the object definition data, priority data and interface definition data therein; instantiating the predefined interface class to generate the corresponding instance object, inheriting the predefined functional interface of the interface class; modifying the properties of the instance object, assembling the interface object according to the data provided by the protocol message, determining the level of the view layer of the interface object in the depth direction of the graphical user interface, and defining the active characteristics of the interface object; the instance object responds to the call of one of its functional interfaces and returns the control data of the interface object, the level of the view layer and the active characteristics. The present application performs local standardization on the interface notification message, which helps to unify the development of the common interface messages defined by different development teams of the same application project, and improve the efficiency of program development.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer control technology, and in particular to a method, device, equipment and storage medium for constructing an interface notification message. Background Art

[0002] With the development of network technology, people have more and more online entertainment projects. In recent years, live broadcast programs have gradually entered the public's field of vision, especially some excellent anchors' live broadcast programs are loved by the audience. In the live broadcast room, when the anchor's performance is wonderful, the audience often expresses their love for the program by leaving messages to the anchor, sending gifts, etc. In the live broadcast room business scenario, the live broadcast room displays various animations or broadcasts various notifications according to the actual business to feedback and stimulate the user's positive behavior in the live broadcast room, such as playing exquisite animations to give visual feedback in response to the user's gift-giving operation to the anchor, and giving exquisite animations or broadcasting in the live broadcast room for visual feedback of the results of the gift-giving or task-doing operation. Through these animations, the user's efforts are affirmed and the user's enthusiasm for interaction in the live broadcast room is stimulated, thereby improving the audience's experience in watching live broadcast programs. Similarly, the platform often sends various notifications to the live broadcast room users, which are also delivered to the user interface in the form of broadcasts for display.

[0003] It can be understood that there are many business modules involving dynamic effect information and broadcast information in the current live broadcast business scenarios. In the existing technology, different types of business modules use different communication protocols for data communication between clients and servers, and each new related business will also add a set of communication protocols. Each time various dynamic effect information is added or modified, it will correspond to the addition of new communication protocols or modifications to protocol specifications, and the protocol parsing mechanism is included in the application of the terminal device, so the application needs to be re-released, and the user can only parse the latest protocol after updating the application. If the terminal application is not updated, when it parses the data encapsulated by the new protocol, it is easy to cause parsing errors, which affects the user experience.

[0004] From this, we can see that if there is a lack of necessary terminal technical support, applications such as live broadcast rooms will remain in the existing old framework that is independently developed by their development team or in their own way when processing the display of various interface notification messages. In this case, the above-mentioned problems will inevitably continue to exist, which is not conducive to the long-term evolution of large-scale live broadcast room application projects. Summary of the invention

[0005] The primary purpose of this application is to provide a method for constructing an interface notification message so as to standardize the processing of interface notification messages.

[0006] As another object of the present application, an interface notification message construction device, electronic device, and non-volatile storage medium that are compatible with the aforementioned method are provided.

[0007] In order to meet the various objectives of this application, this application adopts the following technical solutions:

[0008] A method for constructing an interface notification message adapted to the primary purpose of this application comprises the following steps:

[0009] Parse the protocol message encapsulating the interface notification message to obtain the object definition data, priority data and interface definition data therein;

[0010] Instantiate the predefined interface class to generate the corresponding instance object, which inherits the predefined functional interface of the interface class;

[0011] Modify the properties of the instance object, assemble the interface object of the interface notification message according to the object definition data, define the level of the view layer of the interface object of the interface notification message in the depth direction of the graphical user interface according to the priority data, and define the activity characteristics of the interface object of the interface notification message according to the interface definition data;

[0012] The instance object returns the interface object in response to a call to its first functional interface, returns the hierarchy of the view layer in response to a call to its second functional interface, and returns control data for defining active characteristics of the interface object in response to a call to at least one other functional interface.

[0013] In one embodiment, the interface definition data includes display duration data of the interface object, and the instance object returns the display duration data as the control data in response to a call to its third functional interface, so as to control the activity duration of the interface object in the graphical user interface.

[0014] In another embodiment, the interface definition data includes a memory reclaim mark of the interface object, and the instance object returns the memory reclaim mark as the control data in response to a call to its fourth functional interface to implement control over the continued activity of the interface object in memory.

[0015] In another embodiment, the interface definition data includes interaction configuration data of the interface object, and the instance object returns the interaction configuration data as the control data in response to a call to its fifth functional interface, so as to implement control over the activities of the interface object in response to touch events in the graphical user interface.

[0016] In another embodiment, the interface definition data includes display strategy data of the interface object, and the instance object returns the display strategy data as the control data in response to a call to its sixth functional interface, so as to implement control over the activities of the interface object in the graphical user interface according to the display strategy.

[0017] In a further embodiment, after the step of modifying the attributes of the instance object, the instance object is first added to an object queue for queuing, accepting external scheduling and waiting to be called.

[0018] In a preferred embodiment, the priority data is consistent with the hierarchical encoding of the view layer.

[0019] An interface notification message construction device proposed to meet other purposes of the present application includes:

[0020] The message parsing module is used to parse the protocol message encapsulating the interface notification message and obtain the object definition data, priority data and interface definition data therein;

[0021] An instance creation module is used to instantiate a predefined interface class to generate a corresponding instance object, which inherits the predefined functional interface of the interface class;

[0022] An instance assignment module, used to modify the properties of the instance object, assemble the interface object of the interface notification message according to the object definition data, define the level of the view layer of the interface object of the interface notification message in the depth direction of the graphical user interface according to the priority data, and define the activity characteristics of the interface object of the interface notification message according to the interface definition data;

[0023] An instance response module is used to allow the instance object to return the interface object in response to a call to the first functional interface therein, return the hierarchy of the view layer in response to a call to its second functional interface, and return control data for defining the active characteristics of the interface object in response to a call to at least one other functional interface therein.

[0024] An electronic device provided to meet another purpose of the present application includes a central processing unit and a memory, wherein the central processing unit is used to call and run a computer program stored in the memory to execute the steps of the interface notification message construction method described in the present application.

[0025] A non-volatile storage medium is provided to meet another purpose of the present application, which stores a computer program implemented according to the interface notification message construction method. When the computer program is called and executed by a computer, the steps included in the method are executed.

[0026] Compared with the prior art, the advantages of the present application are as follows: the present application parses and converts the data packets encapsulating the interface notification messages, constructs an instance object for each interface notification message using a predefined interface class, and inherits the functional interface defined in the interface class through the instance object for external calls, including responding to one of the functional interfaces to transmit the interface notification message to the outside and the interface object suitable for display in the graphical user interface, responding to another interface for realizing the control of the display object, etc., thereby standardizing the conversion of the interface notification messages, and providing standardized conversion and calling interfaces for various types of interface notification messages defined by various development teams, so as to facilitate the formation of a standardized format definition for the interface notification messages. When the subsequent development teams need to define new interface notification messages, they can use this as the technical basis on the live broadcast application side to describe their interface notification messages on demand, without the need to repeatedly develop code for parsing and displaying their interface notification messages for the live broadcast application, which can not only improve the efficiency of program development, but also reduce the version replacement of applications.

[0027] Additional aspects and advantages of the present application will be partially given in the following description, which will become apparent from the following description, or will be understood through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0029] Figure 1 A schematic diagram of a typical network deployment architecture related to implementing the technical solution of this application;

[0030] Figure 2 This is a flowchart of a typical embodiment of the method for constructing an interface notification message of the present application;

[0031] Figure 3 This is a principle block diagram of a typical embodiment of the interface notification message construction device of the present application. DETAILED DESCRIPTION

[0032] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present application.

[0033] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0034] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with those in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.

[0035] It will be understood by those skilled in the art that the "client", "terminal" and "terminal device" used herein include both devices with wireless signal receivers, which are devices with only wireless signal receivers without transmission capabilities, and devices with receiving and transmitting hardware, which are devices with receiving and transmitting hardware capable of two-way communication on a two-way communication link. Such devices may include: cellular or other communication devices such as personal computers, tablet computers, which have single-line displays or multi-line displays or cellular or other communication devices without multi-line displays; PCS (Personal Communications Service, personal communication system), which can combine voice, data processing, fax and / or data communication capabilities; PDA (Personal Digital Assistant, personal digital assistant), which may include a radio frequency receiver, pager, Internet / intranet access, web browser, notepad, calendar and / or GPS (Global Positioning System, global positioning system) receiver; conventional laptop and / or palmtop computers or other devices, which have and / or include a conventional laptop and / or palmtop computer or other device with and / or including a radio frequency receiver. The "client", "terminal" and "terminal device" used herein may be portable, transportable, installed in a vehicle (air, sea and / or land), or suitable for and / or configured to run locally, and / or in a distributed form, at any other location on the earth and / or in space. The "client", "terminal" and "terminal device" used herein may also be a communication terminal, an Internet terminal, a music / video playing terminal, for example, a PDA, a MID (Mobile Internet Device) and / or a mobile phone with a music / video playing function, or a smart TV, a set-top box and other devices.

[0036] The hardware referred to by the names such as "server", "client", and "service node" in this application is essentially an electronic device with the equivalent capabilities of a personal computer. It is a hardware device with the necessary components revealed by the von Neumann principle, such as a central processing unit (including an arithmetic unit and a controller), a memory, an input device, and an output device. The computer program is stored in its memory, and the central processing unit calls the program stored in the external memory into the internal memory for execution, executes the instructions in the program, and interacts with the input and output devices to complete specific functions.

[0037] It should be pointed out that the concept of "server" referred to in this application can also be extended to the case of server clusters. According to the network deployment principle understood by those skilled in the art, the servers should be logically divided. In physical space, these servers can be independent of each other but can be called through interfaces, or integrated into a physical computer or a set of computer clusters. Those skilled in the art should understand this flexibility, and should not use it to restrict the implementation of the network deployment method of this application.

[0038] See also Figure 1 , the hardware foundation required for the implementation of the relevant technical solutions of this application can be deployed according to the architecture shown in the figure. The server 80 referred to in this application is deployed in the cloud. As a front-end application server, it can be responsible for further connecting relevant data servers, video streaming servers and other servers that provide relevant support, etc., so as to form a logically related service cluster to provide services for relevant terminal devices such as the smart phone 81 and personal computer 82 shown in the figure. The smart phone and personal computer can access the Internet through a well-known network access method, and establish a data communication link with the server 80 in the cloud, so as to run the terminal application related to the service provided by the server. In the relevant technical solutions of this application, the protocol message sent by the server 80 can be received by the smart phone 81 or the personal computer (collectively referred to as the terminal device or the local device), and the terminal device runs the corresponding application and performs corresponding processing on the protocol message.

[0039] It should be pointed out that in the server cluster supporting the operation of the live broadcast room, in some scenarios, the server supporting the live broadcast room message service and the server supporting the video stream synthesis of the live broadcast room are combined into the same server or the same network address. Sometimes, the same application server can establish the mutual association of the entire cluster independently, so that the same network address can be used to point to the server that is ultimately responsible for the service. Those skilled in the art should understand this.

[0040] In order to support the operation of the above-mentioned applications, the terminal device is equipped with relevant operating systems, such as IOS, HMS (Hongmeng), Android and other operating systems that provide equivalent functions. With the support of such operating systems, adaptively developed applications can run normally and realize human-computer interaction and remote interaction.

[0041] The method of the present application is programmed and built into the terminal device application that provides network live broadcast as its basic service function. The network live broadcast refers to a live broadcast room network service implemented based on the aforementioned network deployment architecture.

[0042] The live broadcast room referred to in this application refers to a video chat room implemented by Internet technology, which usually has audio and video broadcast control functions, including anchor users and audience users. Audience users can include registered users who have registered on the platform, or unregistered visitor users; they can be registered users who follow anchor users, or registered or unregistered users who do not follow anchor users. The anchor user and the audience user can interact with each other through well-known online interaction methods such as voice, video, and text. Generally, the anchor user performs programs for the audience users in the form of audio and video streams, and economic transactions can also be generated during the interaction. Of course, the application form of the live broadcast room is not limited to online entertainment, but can also be extended to other related scenarios, such as education and training scenarios, video conferencing scenarios, product promotion and sales scenarios, and any other scenarios that require similar interactions.

[0043] The application running on the terminal device of this application can trigger the display of interface notification messages according to the needs of its platform design. Currently, common interface notification messages are mainly used to play dynamic effect information or broadcast information, but of course they are not limited to this. Therefore, it can be understood that any behavior supported by the live broadcast room service, which is intended to output a certain notification message to the graphical user interface of the live broadcast room constructed when the application is running, can be understood as the interface notification message of this application.

[0044] The motion effect information, also called dynamic special effect information, interface special effect information, etc., is mainly used as a basis for playing animations in the graphical user interface of the live broadcast room, so as to play corresponding dynamic special effects and thus achieve message notification effects.

[0045] The broadcast information, like the animation information, is a notification message sent to the terminal user in order to notify a certain message. After it reaches the terminal device, it will eventually cause the relevant content to be displayed in the graphical user interface of the live broadcast room of the terminal device.

[0046] There are countless similar interface notification messages, and the classification criteria between various types are mainly based on the fact that each maintains a communication protocol to distinguish them, rather than necessarily on the content and form of the notification messages they display. At present, there are multiple such communication protocols in the active application products on the market provided by the industry, such as the live broadcast room entry effect communication protocol, the live broadcast room anchor level upgrade effect data communication protocol, the live broadcast room user level upgrade effect data communication protocol, the live broadcast room gift effect data communication protocol, the live broadcast room banner effect data communication protocol, other effects in the live broadcast room, broadcast data communication protocol, etc. It can be seen that all the above-mentioned types of notification messages can be summarized as the interface notification messages in this application.

[0047] Those skilled in the art should be aware that, although the various methods of the present application are described based on the same concept and thus present commonality to each other, unless otherwise specified, these methods can be independently executed. Similarly, for each embodiment disclosed in the present application, they are all proposed based on the same inventive concept, therefore, concepts with the same expression, and concepts that are appropriately changed for convenience despite different expressions, should be understood as equivalent.

[0048] See also Figure 2 The present invention provides an interface notification message construction method, which is programmed and implemented in a live broadcast application program to run in a terminal device. In a typical embodiment, the method comprises the following steps:

[0049] Step S11, parse the protocol message encapsulating the interface notification message, and obtain the object definition data, priority data and interface definition data therein:

[0050] The protocol message can be a protocol message encapsulated by a local process for an interface notification message to be output in response to the needs of human-computer interaction, or it can be a protocol message encapsulated and pushed by a remote server for an interface notification message generated by other users or the system itself. For the live broadcast room application, it uses this protocol message as the identification basis and obtains relevant data therein on this basis.

[0051] The specific form and content of the protocol message can be flexibly set. For the convenience of understanding the present application, the following exemplifies a format of a protocol message suitable for parsing by the present application. However, those skilled in the art should understand that the examples here are not intended to limit the scope of protection of the present application.

[0052] The exemplary protocol message may include a protocol header, an object definition part, an activity definition part, and a depth positioning part in its encapsulation structure:

[0053] The protocol header is mainly used to encapsulate the directional information of the receiving object of the corresponding interface notification message, including the protocol id (identity document) describing the identity of the universal data communication protocol itself, the main channel id describing the applicable main channel of the corresponding interface notification message, the sub-channel id describing the sub-channel subordinate to the main channel, and the user id describing the receiving user of the corresponding interface notification message.

[0054] The setting of the protocol id takes into account that there may be multiple communication protocols in the live broadcast room application. For example, the general data communication protocol in this application is applicable to the data transmission and communication of the live broadcast room interface notification message. Other types of services are processed by other communication protocols. Therefore, the protocol id in this embodiment is used as the identifier of the general data communication protocol, which is used for the parties in data communication to distinguish and identify each other at the business layer.

[0055] The setting of the main channel id and the sub-channel id takes into account that the live broadcast platform often divides its live broadcast platform into different main channels such as singing, dancing, calligraphy, sports, talk shows, etc., and there are even multiple different sub-channels under each main channel. Each main channel or sub-channel covers and is associated with multiple live broadcast rooms. Therefore, it is necessary to use a specific identity identifier to determine the range of the target live broadcast room that receives the interface notification message. Therefore, this embodiment jointly determines the target live broadcast room through the main channel id and the sub-channel id.

[0056] The setting of the user ID can provide a convenient setting item for receiving interface notification messages with a clear user range. In one way, when the user ID is specified as a host user, it can be parsed as an interface notification message announced in the live broadcast room of the host user; in another case, when the user ID is specified as one or more specific audience users, it can be parsed as a unicast or multicast to these audience users.

[0057] It can be seen that the main function of the protocol header is to clarify the delivery scope or delivery object of the interface notification message. It realizes the function of receiving object orientation by providing the main channel id, sub-channel id and user id, etc. Combined with these settings, its orientation function can be flexibly exerted. For example, providing the main channel id (or main channel id and sub-channel id) in the protocol message without providing the user id is mainly to take into account the need of the live broadcast room server to broadcast its interface notification message according to a certain channel coverage range, and to meet this need without specifying a specific user id. For another example, another application is to form a clear addressing and orientation relationship between the live broadcast room through the main channel id, sub-channel id and user id, so that the interface notification message is clearly transmitted to the live broadcast room corresponding to the anchor user referred to by the user id for announcement (of course, considering the uniqueness of the user id on the same platform, it is also possible to only provide the user id information of the anchor user). It can be understood that for the case where other settings such as user id can be used to clarify the recipient, the main channel id and sub-channel id can even be empty values.

[0058] In this typical embodiment, by flexibly providing the various identifiers for the protocol header, the protocol header's identification of protocol message types and its directional function can be enriched. In other embodiments, based on the same functions, technical personnel in this field can flexibly add, delete or define these identifiers as needed.

[0059] It can be understood that when a terminal device receives a protocol message, it can filter the protocol message according to its protocol header. When it determines that the protocol message is an object that needs to be processed, it will continue to access other parts of the protocol message.

[0060] The object definition unit is used to encapsulate resource configuration information related to the interface notification information. According to the description of the resource configuration information, the interface object used for display in the live broadcast room interface can be determined. The interface object can be described as any content itself (such as text) displayed in the live broadcast room interface or the path information for obtaining these contents (such as the reference name or link of the animation special effect). As mentioned above, when the audience user in the live broadcast room interacts with other users, the interactive behavior such as sending electronic gifts, barrage, or the operation results of performing a task feedback in the live broadcast room, etc., generally need to be displayed in the live broadcast room interface through exquisite animation, icons or text information and other visual effects. Different interactive behaviors lead to different interface objects being displayed in the live broadcast room interface, and the visual effects are also different. The party receiving the interface notification message first needs to clarify these interface objects. Therefore, the object definition unit of the protocol message can meet this demand and provide corresponding object definition data for generating interface objects according to the resource configuration information.

[0061] Specifically, the resource configuration information includes content information and optional content-attached information in some embodiments.

[0062] The content information is the main content in the interface notification message that needs to be displayed in the live studio interface, including a content type identifier for describing the type of content to be displayed, a resource source identifier for describing the source of the interface object resource, and a content text identifier for describing the text information of the content to be displayed. These identifiers can basically cover the resource definition requirements of various well-known interface notification messages. The content type identifier is to distinguish the different data generated by the above-mentioned different interactive behaviors, including but not limited to one or more combinations of ordinary text content, audio content, dynamic special effects, code tag content, etc. In general, in addition to text information, dynamic special effects, and code tags, the audio content will also carry corresponding visual information, so it is also suitable for display. The resource source identifier can be expressed in a variety of ways, for example, it can be expressed as an identifier, so that the recipient can use the identifier to determine its local animation special effects file as the corresponding resource, or it can be expressed as a URL hyperlink, which is parsed by the recipient and downloaded in the background for further use.

[0063] The content attachment information is mainly used to carry additional information needed when assembling the content related to the interface object, as a supplement to the content information, such as the text content that is dynamically changed in the animation when displaying SVGA animation.

[0064] In addition, the object definition part may also include visual information for controlling the visual process and effect of the interface object in the interface notification message. The visual information is mainly used to routinely describe the activities of the interface object in the graphical user interface, and generally includes a coordinate identifier for describing the position of the interface in the graphical user interface, a direction identifier for describing the movement mode or movement trajectory of the interface object, a size identifier for limiting the visible size of the interface object, etc. Since the descriptive specifications for visual effects are known to those skilled in the art, they will not be repeated here.

[0065] In this typical embodiment, by flexibly providing the various identifiers for the object definition unit, the descriptive ability of the resource reference of the interface object can be enhanced. In other embodiments, based on the same functions, technical personnel in this field can flexibly add, delete or define the design of these identifiers as needed.

[0066] The activity definition part is a collection of capability definition set and control definition set, which defines the activity characteristics of the interface object of the interface notification message encapsulated by the protocol message through various interface definition data jointly provided by the capability definition set and the control definition set, so as to provide relevant control data subsequently.

[0067] The capability definition set is mainly used to encapsulate the interaction configuration data related to the interface object. The receiver of the protocol message can construct the event response capability of the interface object according to the interaction configuration data.

[0068] In this embodiment, the interaction configuration data includes an interaction type identifier for describing the way in which a user can interact, an interaction range identifier for describing that the object type capable of interaction is a broadcast user and / or an audience user, a behavior type identifier for describing an event behavior triggered after a user performs an interaction operation, and a command identifier for describing a specific behavior command triggered after a user performs an interaction operation. The capability definition set can describe one aspect of the activity characteristics of the interface object through the cooperation of these identifiers, so as to provide control data related to these activity characteristics.

[0069] Generally speaking, the interaction type identifier includes but is not limited to any one or more of the touch interaction event types such as single click, double click, long press, etc.; the interaction scope identifier includes but is not limited to any one or more of the audience user and the anchor user. The behavior type identifier includes but is not limited to any one or more of jumping to the live broadcast room, jumping to the page, and executing other commands. The specific behavior command in the behavior command identifier is an instruction that can be executed by the live broadcast room application.

[0070] By providing the above-mentioned different identifiers for the capability definition set, a more comprehensive description of the interactive capabilities of the interface objects can be achieved, and the activity characteristics of one aspect of the interface objects can be given. The live broadcast room application can then construct the corresponding capabilities of the interface objects to respond to interactive events.

[0071] In this typical embodiment, by flexibly providing the various identifiers for the capability definition set, the descriptive ability of the interactive capabilities of the interface objects can be enhanced. In other embodiments, based on the same functions, technical personnel in this field can flexibly add, delete or define the designs of these identifiers as needed.

[0072] The control definition set is used to encapsulate a variety of other control data corresponding to other activity features of the interface object, and these control data can be used to control the memory recovery relationship, display duration, display strategy and display effect of the interface object, etc. For example, the following exemplary identifiers can be included as needed: a display duration identifier, which is used to describe and control the maximum display duration of the interface object in the interface notification message in the user's interface; a display strategy identifier, which is used to describe whether the display scope of the interface notification message belongs to the entire channel or a specified channel; a cache strategy identifier, which is used to describe and control the cache strategy of the interface object in the interface notification message in the live broadcast room, expressed as strategic instructions such as removal after switching the live broadcast room, no need to remove after switching the live broadcast room, removal after exiting the live broadcast room, and no need to remove after exiting the live broadcast room. The live broadcast room application processes the display of the corresponding interface object according to these instructions; a login control identifier, which is used to describe and control whether the interface object in the interface notification message is displayed to non-logged-in users for viewing; a cache control identifier, which is used to describe and control the cache survival time of the interface object in the interface notification message... and so on, can be flexibly added and deleted according to the needs of the interface object display strategy considered in program development.

[0073] These different identifiers of the capability definition set and the control definition set, each identifier or multiple identifiers are used together to describe the activity characteristics of one aspect of the interface object. Therefore, they actually encapsulate the control data of various activity characteristics. Different functional interfaces can be defined based on different aspects of the activity characteristics.

[0074] In a further improved embodiment, the protocol message also includes an extension part in structure, which is used to encapsulate valid information suitable for participating in the display process of the interface notification message described by the protocol message. Since the extension part encapsulates valid information suitable for participating in the display process of the interface notification message described by the protocol message, such as the aforementioned resource configuration information and interaction configuration data, when developing new services in the future, new interface notification message services can be added without adding new data communication protocols. As long as the terminal device and the server comply with the same protocol of this application, the control function of the interface object of the interface notification message displayed in the live broadcast room interface can be enriched by the same logic. It can be seen that the protocol message specified by this application is extensible, further highlighting its backward compatibility with different interface notification messages.

[0075] The depth definition part is mainly used to encapsulate the priority data of the interface objects. These priority data indicate the specific level of the interface objects in the depth direction of the Z-axis of the graphical user interface, so that different development teams can uniformly specify one or more specific view layers for the interface objects they define, or different view layers can be specified for different types of interface objects, and so on, to realize orderly calls to the view layers through protocol messages.

[0076] In a typical embodiment, a single view layer index identification field may be provided, in which the view layer index number is recorded. This view layer index may be subsequently converted into an interface object. When the relevant functional interface is called, the specific view layer index is returned. This view layer index may be used to locate the target view layer of the corresponding level in the graphical user interface, and the interface object may be displayed in the target view layer.

[0077] In other embodiments, multiple priority identifiers may also be set. For example, the first-level priority identifier is used to correspond to different message queues, which can be applied to applications where multiple message queues are queued, so that the priority data of the first-level priority identifier of the interface notification message is classified into message queues of different levels, and the terminal device subsequently coordinates the correspondence between these interface notification messages according to the inherent priority of the message queue itself. A second-level priority identifier is further set to correspond to the level of the view layer, that is, as described in the aforementioned typical embodiment, the view layer index can be used as the priority data in the second-level priority identifier, so that the corresponding target view layer can be determined later according to the view layer index.

[0078] The above is a complete reminder of the specific structure and specific functions of the protocol message of the typical embodiment of the present application, and also reveals various change processing ideas and examples regarding the specific structure of the protocol message. It can be understood that the specific structure of the protocol message of the typical embodiment and the addition, deletion and changes of the specific identification of its various parts, etc., in other embodiments, can be appropriately adjusted according to the actual application scenario, and appropriate additions and deletions can be made on the basis of the typical embodiment according to actual needs without affecting the implementation of the present application.

[0079] The protocol messages implemented in accordance with the above various implementation methods are obviously sufficient to have the ability to standardize the description of any known type of interface notification messages used to display interface objects in the live broadcast room, and are scalable.

[0080] It is understandable that after receiving various interface notification messages continuously, the terminal device can parse them according to the protocol agreement. After each interface notification message is parsed, the object definition data, priority data and interface definition data therein are obtained.

[0081] Step S12: Instantiate the predefined interface class to generate a corresponding instance object, inheriting the predefined functional interface of the interface class:

[0082] In order to realize the local processing of interface notification messages and the conversion of interface notification information into instance objects so that they can be subsequently objectified by computers and finally realize interface output, developers adapt to the specifications of the unified protocol in the programming interface and provide a template for the interface object accordingly. The template provides a definition specification of an interface class. By operating the interface class, an instance object can be obtained, and the instance object continues the various functional interfaces pre-defined in the interface class. After various data related to the interface notification message are converted into attributes of the instance object, the instance object can play its role in carrying the local operation performance of the interface notification message.

[0083] In this step, after each protocol message is parsed, the interface class will be called and instantiated to obtain the corresponding instance object. The instance object will be called in the memory, and the conversion of the interface notification message to the interface object can be achieved by modifying the properties of the instance object. At the same time, since the instance object inherits the various functional interfaces pre-defined by the interface class, the instance object also has the ability to execute inherent functions.

[0084] Step S13, modifying the properties of the instance object, assembling the interface object of the interface notification message according to the object definition data, defining the level of the view layer of the interface object of the interface notification message in the depth direction of the graphical user interface according to the priority data, and defining the activity characteristics of the interface object of the interface notification message according to the interface definition data:

[0085] In this step, the interface object and its activity features are constructed in memory by using various data parsed from the interface notification message and assigning attributes to the instance object. Specifically, in a typical embodiment of the present application, priority is given to constructing the following aspects of processing:

[0086] First, the interface object to be displayed by the interface notification message is defined in the instance object. As mentioned above, the protocol message contains the object definition data, which is suitable for describing various resource configuration information of the interface object through the setting of multiple identifiers. The instance object has attribute items corresponding to these identifiers through the definition of its interface class. The values ​​of various identifiers contained in the object definition data are assigned to the relevant attribute items of the instance object, so as to realize the assembly construction of the interface object. The interface class also pre-defines a first functional interface that is convenient for calling the interface object, so as to facilitate the subsequent reference to the interface object.

[0087] Secondly, the specific level of the view layer that the interface object needs to occupy when it is output and displayed is determined according to the priority data in the protocol message, so that the interface object can be displayed in the specified target view layer later. In some embodiments of the protocol message as mentioned above, the case where a specific view layer index number is included in the priority identifier has been disclosed. It can be understood that in this case, the view layer index will be directly indexed in the priority data. Therefore, after assigning this data to the corresponding item of the instance object, the view layer index corresponding to the interface object can be obtained through the corresponding second functional interface provided by the instance object, and the specific target view layer is determined according to the view layer index for displaying the interface object. For more complex situations where the priority data is expressed in other forms, the priority data can be first converted into the corresponding view layer index based on the preset conversion relationship and then assigned to the corresponding attribute item of the instance object, which can also achieve the same effect. It can be seen that the priority data can be used to determine which specific level in the Z-axis depth direction of the graphical user interface the target view layer that the interface object needs to occupy belongs to. Different development teams can specify the priority data of the interface notification message in the protocol message to specify one or more specific view layers they want to occupy in advance, without having to develop code for processing interface notification messages on the terminal device side. When the priority data in the protocol message is consistent with the hierarchical encoding of the existing view layer in the terminal device, subsequent access and display are more efficient and direct, and the corresponding target view layer can be determined directly by using the priority data as the view layer index.

[0088] In addition, one or more activity characteristics of the interface object are defined according to the interface definition data in the protocol message. For example, in the above description of the protocol message, the interface definition data provided by each identifier of the capability definition set can be used to define the ability of the interface object to respond to user interactions and execute user instructions; the interface definition data can be provided through the relevant identifiers in the control definition set such as display duration, display strategy, memory recovery relationship, etc. to correspond to the display duration, display strategy, cache recovery and other activity controls of the interface object. In essence, these interface definition data are also a kind of control data about the activity characteristics of the interface object in the cache and interface. By transferring these data to the corresponding attribute items of the instance object, the control function of defining the activity characteristics of the interface object with the instance object can be realized.

[0089] It can be seen that, in general, the active features of the interface object of the interface notification message can be defined according to the interface definition data. Specifically, when it comes to interface definition data, the scope it covers is relatively wide. According to the further enrichment of the interface definition data, further multiple embodiments of the present application can be expanded. Correspondingly, these embodiments expanded due to the enrichment of the interface definition data's ability to describe the active features of the interface object will also be associated with the execution of the subsequent steps of the present application, that is, the control data of a certain aspect of the active features obtained in this step will be correspondingly called in the subsequent steps of the present application to give full play to the functions that these control data should have.

[0090] It is precisely because the standardized packaging of interface notification messages in the localization is realized through instance objects that this application is suitable for serving multi-type and multi-source interface notification messages in the prior art, and can meet the requirements of providing standardized interface notification message parsing, conversion, output display, etc. for live broadcast room applications.

[0091] Step S14, the instance object returns the interface object in response to a call to the first functional interface, returns the level of the view layer in response to a call to the second functional interface, and returns control data for defining the activity characteristics of the interface object in response to a call to at least one other functional interface:

[0092] Adapting to the assignment of the attribute items of the instance object in the previous step, the instance object constructs the interface object corresponding to the interface notification message, and because the instance object inherits the various functional interfaces pre-defined by its interface class, the introduction of relevant attribute items can be achieved by accessing these functional interfaces. Therefore, the standardized call of the interface notification message can be achieved by only accessing the instance object.

[0093] To adapt to the construction of the interface object, a typical embodiment of the present application provides the first functional interface. When the first functional interface is called, the caller can reference the interface object for loading into the target view layer for display.

[0094] To adapt to the determination of the level of the view layer, the typical embodiment of the present application provides the second functional interface. After the second functional interface is called, the instance object responds, and the call is convenient for obtaining the level of the specific view layer specified by the interface notification message, that is, determining the specific view layer index, and then determining the specific target view layer. In a further improved embodiment, if the view layer corresponding to the view layer index does not exist, the view layer can also be created on demand to achieve dynamic management of the view layer.

[0095] In an embodiment in which the interface definition data includes the display duration data of the interface object, the third functional interface of the instance object can make an effective response. When the third functional interface is called, the instance object responds to the call to its third functional interface and returns the display duration data as the control data, so that the caller can control the activity duration of the interface object in the graphical user interface.

[0096] In an embodiment in which the interface definition data includes a memory reclaim mark of the interface object, the fourth functional interface of the instance object can make an effective response. When the fourth functional interface is called, the instance object responds to the call to its fourth functional interface and returns the memory reclaim mark as the control data, so that the caller can control the continued activity of the interface object in the memory.

[0097] In an embodiment in which the interface definition data includes the interaction configuration data of the interface object, the fifth functional interface of the instance object can make an effective response, and it returns the interaction configuration data as the control data in response to the call to its fifth functional interface, so as to realize the control of the activities of the interface object in response to touch events in the graphical user interface.

[0098] In an embodiment in which the interface definition data includes display policy data of the interface object, the sixth functional interface of the instance object can make an effective response, and it returns the display policy data as the control data in response to the call to its sixth functional interface, so as to enable the caller to control the activities of the interface object in the graphical user interface according to the display policy.

[0099] It can be understood that the different embodiments provided above to adapt to the number of control data on activity features contained in the interface definition data are mainly applicable according to the richness of the description capabilities in the protocol message. The data carried by the relevant identifiers recorded in the protocol message will generally be encapsulated as attribute items of the instance object during local processing, and provided to the caller for reference through the corresponding functional interface provided by the instance object.

[0100] The caller is a local execution program responsible for outputting the corresponding interface object to a target view layer by calling various attribute items of the instance object. It can also be implemented by adaptive programming by those skilled in the art according to the capabilities of the instance object, without affecting the existence or extinction of the creative spirit of this application. For the caller, in theory, it only needs to consider the reference of various functional interfaces for each instance object that needs to be processed, and output the interface of the interface object contained in the instance object according to the various data provided by these functional interfaces.

[0101] As for the view layer, it is usually represented by a view container. The caller can prepare multiple view layers and number these view layers. These numbers can also serve as view layer indexes, so that a view layer can be determined by the view layer index. The view containers of these view layers can be associated with a custom root container to organize the orderly tree structure to facilitate memory management. When implementing programming, it can be derived and developed based on the existing view container-related classes of the operating system to achieve the customization.

[0102] For example, the root container, its corresponding class can be customized by the developer, for example, it can be customized and developed on demand based on Android's View or ViewGroup base class, so that it has the ability of ViewGroup to support view containers (such as View) and ViewGroup, that is, the root container is suitable for associating and managing the view container of the next level, and the view container can be instantiated from the same customized class as the root container. In theory, since the root container has the same ability as ViewGroup, the root container can further associate and manage the parent container of the next level. The parent container and the root container are derived from the same customized class and have the same ability of the root container to support the next level View. Through this tree structure constructed based on the class derivation relationship, it is possible to organize and call a variety of view containers. In general, on the basis of the root container, associating a single-layer view container can meet the general number of view layer usage requirements. If the developer knows that there are many view layers required, multi-layer cascading can also be implemented to meet the needs. When customizing the root container and its associated custom classes of the view container, developers can expand some properties or interfaces to meet other needs to enrich the functionality of the view container, as long as such implementation does not affect the implementation of this application, which should be understood by those skilled in the art.

[0103] In one embodiment, in order to make the management of instance objects more orderly, an object queue can be set for the processing of instance objects, and a continuous interface display message is converted into an instance object and added to the object queue one after another, and the caller reads each instance object from the object queue for processing and output to the graphical user interface for display according to the queue's inherent first-in-first-out access rule - the tail enters the queue and the head leaves the queue. Therefore, each instance object will be added to the object queue for queuing, and in the queuing process, it will accept the external scheduling implemented by the caller and wait to be called. When it reaches the head of the queue, it will be processed by the caller and output for display.

[0104] Furthermore, by functionalizing each step in the method disclosed in the above embodiments, an interface notification message construction device of the present application can be constructed. According to this idea, please refer to Figure 3In a typical embodiment, the device comprises:

[0105] The message parsing module 11 is used to parse the protocol message encapsulating the interface notification message, and obtain the object definition data, priority data and interface definition data therein;

[0106] An instance creation module 12 is used to instantiate a predefined interface class to generate a corresponding instance object, which inherits the functional interface predefined by the interface class;

[0107] An instance assignment module 13, used to modify the properties of the instance object, assemble the interface object of the interface notification message according to the object definition data, define the level of the view layer of the interface object of the interface notification message in the depth direction of the graphical user interface according to the priority data, and define the activity characteristics of the interface object of the interface notification message according to the interface definition data;

[0108] The instance response module 14 is used to allow the instance object to return the interface object in response to a call to the first functional interface therein, return the hierarchy of the view layer in response to a call to its second functional interface, and return control data for defining the active characteristics of the interface object in response to a call to at least one other functional interface therein.

[0109] Further, to facilitate the execution of the present application, the present application provides an electronic device, including a central processing unit and a memory, wherein the central processing unit is used to call and run a computer program stored in the memory to execute the steps of the interface notification message construction method described in the aforementioned embodiments.

[0110] It can be seen that the memory is suitable for using a non-volatile storage medium. By implementing the aforementioned method as a computer program and installing it in an electronic device such as a mobile phone or a computer, the relevant program code and data are stored in the non-volatile storage medium of the electronic device. The program is further run through the central processing unit of the electronic device, and it is transferred from the non-volatile storage medium to the memory for execution, so that the desired purpose of the present application can be achieved. Therefore, it can be understood that in one embodiment of the present application, a non-volatile storage medium can also be provided, in which a computer program implemented according to each embodiment of the interface notification message construction method is stored. When the computer program is called and executed by the computer, the steps included in the method are executed.

[0111] In summary, this application performs local standardization on interface notification messages, which helps to unify the development of common interface messages defined by different development teams of the same application project and improve program development efficiency.

[0112] It will be understood by those skilled in the art that the present application includes devices for performing one or more of the operations and methods described in the present application. These devices may be specially designed and manufactured for the desired purpose, or may also include known devices in general-purpose computers. These devices have computer programs stored in their memory, which are selectively activated or reconstructed. Such computer programs may be stored in a device (e.g., computer) readable medium or in any type of medium suitable for storing electronic instructions and coupled to a bus, respectively, the computer readable medium including but not limited to any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or optical card. That is, the readable medium includes any medium that stores or transmits information in a readable form by a device (e.g., computer).

[0113] Those skilled in the art will appreciate that each block in these structure diagrams and / or block diagrams and / or flow charts and combinations of blocks in these structure diagrams and / or block diagrams and / or flow charts can be implemented using computer program instructions. Those skilled in the art will appreciate that these computer program instructions can be provided to a general-purpose computer, a professional computer, or a processor of other programmable data processing methods to implement, thereby executing the scheme specified in the block or multiple blocks of the structure diagrams and / or block diagrams and / or flow charts disclosed in this application through the processor of the computer or other programmable data processing method.

[0114] Those skilled in the art will appreciate that the various operations, methods, steps, measures, and schemes in the processes discussed in this application may be alternated, altered, combined, or deleted. Further, other steps, measures, and schemes in the various operations, methods, and processes discussed in this application may also be alternated, altered, rearranged, decomposed, combined, or deleted. Further, the steps, measures, and schemes in the prior art that are similar to those disclosed in this application may also be alternated, altered, rearranged, decomposed, combined, or deleted.

[0115] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for constructing an interface notification message, characterized in that: Applied in the live broadcast room application, it includes the following steps: Parse the protocol message encapsulating the interface notification message, and when the directional information of the protocol header in the protocol message indicates that it is an object that the live broadcast room application needs to process, obtain the object definition data, priority data and interface definition data in the protocol message, the protocol message includes a protocol header, an object definition part, an activity definition part and a depth positioning part, and the protocol header is used to encapsulate the directional information of the receiving object of the corresponding interface notification message; The object definition part is used to encapsulate the resource configuration information related to the interface notification message, and provides the object definition data through the resource configuration information; the depth positioning part is used to encapsulate the priority data of the interface object, and indicates the specific level of the interface object in the depth direction of the graphical user interface through these priority data; the activity definition part provides the interface definition data through the capability definition set and the control definition set; Instantiate a predefined interface class according to the definition specification of the interface class to generate a corresponding instance object for computer object-oriented operation, and inherit the predefined functional interface of the interface class; Modify the properties of the instance object, assemble the interface object of the interface notification message according to the object definition data, define the level of the view layer of the interface object of the interface notification message in the depth direction of the graphical user interface according to the priority data, and define the activity characteristics of the interface object of the interface notification message according to the interface definition data; The instance object returns the interface object in response to a call to its first functional interface, returns the hierarchy of the view layer in response to a call to its second functional interface, and returns control data for defining active characteristics of the interface object in response to a call to at least one other functional interface.

2. The method according to claim 1, characterized in that: The interface definition data includes display duration data of the interface object, and the instance object returns the display duration data as the control data in response to a call to its third functional interface, so as to control the activity duration of the interface object in the graphical user interface.

3. The method according to claim 1, characterized in that The interface definition data includes a memory reclaim mark of the interface object, and the instance object returns the memory reclaim mark as the control data in response to a call to its fourth functional interface, so as to control the continued activity of the interface object in the memory.

4. The method according to claim 1, characterized in that: The interface definition data includes interaction configuration data of the interface object, and the instance object returns the interaction configuration data as the control data in response to a call to its fifth functional interface, so as to control the activities of the interface object in response to touch events in the graphical user interface.

5. The method according to claim 1, characterized in that The interface definition data includes display strategy data of the interface object, and the instance object returns the display strategy data as the control data in response to the call to its sixth functional interface, so as to control the activities of the interface object in the graphical user interface according to the display strategy.

6. The method according to any one of claims 1 to 5, characterized in that After the step of modifying the attributes of the instance object, the instance object is first added to the object queue for queuing, accepting external scheduling and waiting to be called.

7. The method according to any one of claims 1 to 5, characterized in that: The priority data is consistent with the hierarchical encoding of the view layer.

8. An interface notification message construction device, characterized in that: Applied in live studio applications, it includes: The message parsing module is used to parse the protocol message encapsulating the interface notification message, and when the directional information of the protocol header in the protocol message indicates that it is an object that the live broadcast room application needs to process, the object definition data, priority data and interface definition data in the protocol message are obtained. The protocol message includes a protocol header, an object definition part, an activity definition part and a depth positioning part. The protocol header is used to encapsulate the directional information of the receiving object of the corresponding interface notification message; the object definition part is used to encapsulate the resource configuration information related to the interface notification message, and the object definition data is provided through the resource configuration information; the depth positioning part is used to encapsulate the priority data of the interface object, and the specific level of the interface object in the depth direction of the graphical user interface is indicated through these priority data; the activity definition part provides the interface definition data through the capability definition set and the control definition set; An instance creation module is used to instantiate a predefined interface class according to the definition specification of the interface class to generate a corresponding instance object for computer object-oriented operation, and inherit the predefined functional interface of the interface class; An instance assignment module, used to modify the properties of the instance object, assemble the interface object of the interface notification message according to the object definition data, define the level of the view layer of the interface object of the interface notification message in the depth direction of the graphical user interface according to the priority data, and define the activity characteristics of the interface object of the interface notification message according to the interface definition data; An instance response module is used to allow the instance object to return the interface object in response to a call to the first functional interface therein, return the hierarchy of the view layer in response to a call to its second functional interface, and return control data for defining the active characteristics of the interface object in response to a call to at least one other functional interface therein.

9. An electronic device, comprising a central processing unit and a memory, characterized in that: The central processing unit is used to call and run a computer program stored in the memory to execute the steps of the interface notification message construction method as described in any one of claims 1 to 7.

10. A non-volatile storage medium, characterized in that: It stores a computer program implemented according to the interface notification message construction method described in any one of claims 1 to 7, and when the computer program is called and run by a computer, the steps included in the method are executed.