CN109462769B - Live broadcast room pendant display method and device, terminal and computer readable medium - Google Patents

Live broadcast room pendant display method and device, terminal and computer readable medium Download PDF

Info

Publication number
CN109462769B
CN109462769B CN201811276096.9A CN201811276096A CN109462769B CN 109462769 B CN109462769 B CN 109462769B CN 201811276096 A CN201811276096 A CN 201811276096A CN 109462769 B CN109462769 B CN 109462769B
Authority
CN
China
Prior art keywords
pendant
view object
display
pendant view
priority
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811276096.9A
Other languages
Chinese (zh)
Other versions
CN109462769A (en
Inventor
汪刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201811276096.9A priority Critical patent/CN109462769B/en
Publication of CN109462769A publication Critical patent/CN109462769A/en
Application granted granted Critical
Publication of CN109462769B publication Critical patent/CN109462769B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/254Management at additional data server, e.g. shopping server, rights management server

Abstract

The embodiment of the invention discloses a method, a device, a terminal and a computer readable medium for displaying a pendant in a live broadcast room, wherein the method comprises the following steps: receiving a pendant display message sent by a server, triggering a pendant display function according to the pendant display message, and generating a pendant view object according to the pendant display function; adding the pendant view objects into a priority management object, determining the priority of each pendant view object in the priority management object, and sequencing each pendant view object according to the priority; and generating state information according to the sequencing result, and taking the pendant view object with the state information in the display state as a target pendant view object and displaying the target pendant view object. According to the method, the device, the terminal and the computer readable medium for displaying the pendant in the live broadcast room, provided by the embodiment of the invention, the code redundancy is reduced, the display logics of all pendants are decoupled, and the pendant display efficiency is improved.

Description

Live broadcast room pendant display method and device, terminal and computer readable medium
Technical Field
The embodiment of the invention relates to a data processing technology, in particular to a method, a device, a terminal and a computer readable medium for displaying a pendant in a live broadcast room.
Background
With the rapid development of the internet and streaming media technology, various live broadcast platforms come into play, and more wonderful and rich entertainment life and social experience are brought to users. Live broadcast room pendant type is different among the different live broadcast platforms, and the live broadcast room pendant can include precious case pendant, draw a lottery pendant, advertisement pendant and activity pendant etc. and because customer end display interface space restriction, each live broadcast room pendant sharing an entry position, therefore the demonstration between the live broadcast room pendant has mutual exclusion logic.
At present, a display method of a pendant in a live broadcast room generally includes that when a certain pendant needs to be displayed, all other pendants except the pendant are refreshed, when the other pendants do not need to be displayed, the pendant is displayed, and when the pendant needing to be displayed exists in the other pendants, priorities of all pendants needing to be displayed are compared, and the pendant with the high priority is displayed.
The existing method for displaying the pendants in the live broadcast room has the disadvantages that when a certain pendant needs to be displayed each time, all other pendants are refreshed, so that code redundancy is caused, the display logic of other pendants needs to be processed in the display logic of each pendant, the coupling of the display logic among the pendants is high, and the display efficiency of the pendants is low.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, a terminal, and a computer-readable medium for displaying a pendant in a live broadcast room, which reduce code redundancy, decouple display logic of each pendant, and improve pendant display efficiency.
In a first aspect, an embodiment of the present invention provides a method for displaying a pendant in a live broadcast room, including:
receiving a pendant display message sent by a server, triggering a pendant display function according to the pendant display message, and generating a pendant view object according to the pendant display function;
adding the pendant view objects into a priority management object, determining the priority of each pendant view object in the priority management object, and sequencing each pendant view object according to the priority;
and generating state information according to the sequencing result, and taking the pendant view object with the state information in the display state as a target pendant view object and displaying the target pendant view object.
Optionally, the generating a pendant view object according to the pendant display function includes:
acquiring pendant view parameters in a pendant display function, and generating an initial pendant view object according to the pendant view parameters;
judging whether the pendant display function contains animation display parameters or not;
if so, adding the animation display parameters to the initial pendant view object to generate a pendant view object; and if not, taking the initial pendant view object as the pendant view object.
Optionally, the adding the pendant view object to the priority management object, determining the priority of each pendant view object in the priority management object, and sorting each pendant view object according to the priority includes:
adding the pendant view object to the first empty storage position in the pendant array of the priority management object according to the index order;
determining the priority of each pendant view object in the pendant array according to a predefined pendant priority library;
and sequencing the view objects of the pendants at preset intervals according to the priority.
Optionally, the generating the state information according to the sorting result includes:
and determining the state information of the pendant view objects which are sequenced to the preset sequence as a display state, and determining the state information of other pendant view objects except the pendant view objects which are sequenced to the preset sequence as a hidden state.
Optionally, the taking and displaying the pendant view object with the display state information as the target pendant view object includes:
and taking the pendant view object with the display state information as a target pendant view object, acquiring the display times of the target pendant view object, and displaying the target pendant view object according to the display times.
Optionally, after the pendant view object with the display state information is taken as a target pendant view object and displayed, the method further includes:
when a removal message is received, calling a removal method of the priority management object to remove the pendant view object corresponding to the removal message;
and reordering the pendant views in the priority management object after the operation is removed, and selecting and displaying the target pendant view object according to the reordering result.
Further, the removal message is triggered when the target pendant view object finishes displaying or the non-displayed pendant view object is overtime;
correspondingly, the pendant view object corresponding to the removal message comprises a target pendant view object or an undisplayed pendant view object.
In a second aspect, an embodiment of the present invention provides a live broadcast room pendant display device, including:
the pendant view object generating module is used for receiving a pendant display message sent by the server, triggering a pendant display function according to the pendant display message, and generating a pendant view object according to the pendant display function;
the pendant view object sorting module is used for adding the pendant view objects into the priority management objects, determining the priority of each pendant view object in the priority management objects, and sorting each pendant view object according to the priority;
and the pendant view object display module is used for generating state information according to the sequencing result, and taking the pendant view object with the state information in the display state as a target pendant view object and displaying the target pendant view object.
In a third aspect, an embodiment of the present invention provides a terminal, including:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the live slot hanging display method according to any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a live telecast interface display method according to any embodiment of the present invention.
According to the method, the device, the terminal and the computer readable medium for displaying the pendant in the live broadcast room, the pendant display function is triggered according to the pendant display message sent by the server, and the pendant view object is generated according to the pendant display function; adding the pendant view objects into a priority management object, determining the priority of each pendant view object in the priority management object, and sequencing each pendant view object according to the priority; and generating state information according to the sequencing result, and taking the pendant view object with the state information in the display state as a target pendant view object and displaying the target pendant view object. The pendant view objects to be displayed are added into the priority management object and are sorted according to the priority, and the target pendant view objects can be obtained and displayed, so that code redundancy is reduced, display logics of all pendants are decoupled, and pendant display efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description will be given below of the drawings required for the embodiments or the technical solutions in the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a method for displaying a pendant in a live broadcast room according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a hanging display device in a live broadcast room according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a terminal according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described through embodiments with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Fig. 1 is a flowchart of a method for displaying a pendant in a live broadcast room according to an embodiment of the present invention, where this embodiment is applicable to a situation of displaying a pendant in a live broadcast room, and the method may be implemented by a terminal, and may be implemented by software and/or hardware in the terminal. Referring to fig. 1, the method for displaying the pendant in the live broadcast room includes the following steps:
s110, receiving a pendant display message sent by the server, triggering a pendant display function according to the pendant display message, and generating a pendant view object according to the pendant display function.
Wherein, the direct broadcast room pendant type diverse that different live broadcast platforms correspond, direct broadcast room pendant can be understood as getting into direct broadcast room back, in watching the anchor and carry out the direct broadcast interface in the view object that triggers demonstration, direct broadcast room pendant can include the treasure case pendant, draw a lottery the pendant, advertisement pendant and activity pendant etc. treasure case pendant can trigger when certain watch the live broadcast user and increase the main broadcast and deliver preset value gift, watch the live client interface of this anchor and all can carry out the display of treasure case pendant, the user can get the gift at random through clicking the treasure case pendant, can attract other users to get into this main broadcast direct broadcast room through treasure case pendant and watch the live broadcast, thereby increase direct broadcast room popularity. Due to the space limitation of the display interface of the client, the condition that a plurality of live broadcast room pendants share one entrance position exists.
The display message sent by the server may include a pendant identifier to be displayed, and the corresponding client may trigger a pendant display function according to the pendant identifier to be displayed in the display message, and generate a pendant view object according to the pendant display function for display. Illustratively, when the display message sent by the server includes the pendant identifier of the treasure box pendant, the client may trigger the display function of the treasure box pendant according to the treasure box pendant identifier in the display message when receiving the display message, and may generate the view object of the treasure box pendant according to the display function of the treasure box pendant, and display the view object of the treasure box pendant. In addition, the pendant identification can also be a lottery pendant identification, an advertisement pendant identification, a movable pendant identification and the like, and the corresponding client can generate and display a view object of the lottery pendant, a view object of the advertisement pendant and a view object of the movable pendant according to the lottery pendant identification, the advertisement pendant identification and the movable pendant identification.
Optionally, generating the pendant view object according to the pendant display function includes:
acquiring pendant view parameters in a pendant display function, and generating an initial pendant view object according to the pendant view parameters; judging whether the pendant display function contains animation display parameters or not; if so, adding the animation display parameters to the initial pendant view object to generate a pendant view object; and if not, taking the initial pendant view object as the pendant view object.
The view parameter of the pendant display function can be understood as a pendant view class, for example, the view parameter of the pendant of the treasure box can be a predefined treasure box view treacure boxview class; the generation of the initial pendant view object according to the pendant view parameters can be understood as the generation of the initial pendant view object of the pendant view class. For example, the initial treasure box view object for generating the treasure box pendant may specifically call a raw box view mtraw box view ═ new raw box view () statement, where mtraw box view is a name of the initial treasure box view object and may represent the initial treasure box view object, and the name of the initial treasure box view object is not limited to mtraw box view, that is, the initial treasure box view object may be generated by a predefined new method of the raw box view class.
After the initial pendant view object is generated, if the display function further includes the display animation parameter of the initial pendant view object, the animation display parameter may be added to the initial pendant view object, so that the initial pendant view object performs animation display. After the initial pendant view object is generated, if the display function does not include the display animation parameter of the initial pendant view object, the initial pendant view object is used as the pendant view object. For example, adding animation parameters to the initial treasure box view object may specifically call an mtreasurboxview. The animation display parameters can be added to the pendant view object through a view animation system; wherein the animation display parameters may include at least one of the following animation types: scaling animation, translation animation, gradient animation, and rotation animation.
And S120, adding the pendant view objects into the priority management objects, determining the priority of each pendant view object in the priority management objects, and sequencing each pendant view object according to the priority.
The priority management object is an object of a predefined priority management class, and can perform display management of each pendant view object stored in the priority management object. The pendant view object can be generated when a display message sent by the server is received, and the generated pendant view object is added to the priority management object. The priority management object can open up a memory space in advance for storing each pendant view object. The pendant view objects can be assigned to a variable parameter, and the variable parameter is stored in a memory space opened by the priority management object, so that the addition of the pendant view objects is completed. The priority management object can sort the pendant view objects according to the priority when the pendant view objects are added every time, and control the display and the hiding of each pendant view according to the sorting.
Optionally, adding the pendant view object to the priority management object, determining the priority of each pendant view object in the priority management object, and sorting each pendant view object according to the priority, including:
adding the pendant view object to the first empty storage position in the pendant array of the priority management object according to the index order; determining the priority of each pendant view object in the pendant array according to a predefined pendant priority library; and sequencing the view objects of the pendants at preset intervals according to the priority.
The priority management object opens up a memory space in advance, and specifically, the memory space can be opened up by predefining a pendant array; the adding of the pendant view object to the priority management object may specifically be adding the pendant view object to a storage location with a smallest index number in storage locations where data is not stored in the pendant array, that is, to a first empty storage location according to an index order. Illustratively, the length of the pendant array list is 10, and if a pendant is already stored in the first storage location list [0] and the second storage location list [1], the generated pendant view object is added to the storage location with the smallest index number in the storage locations where data is not stored, that is, the storage location with the smallest index number is added to the third storage location list [2], so as to conveniently perform the operation of sorting the rack view objects in the pendant array according to priority.
The predefined pendant priority library may be in a table form, may also be in a text form, and may also be stored to the system program through a global variable, which is not specifically limited herein; the pendant priority library can comprise a pendant view object, a priority identifier and a corresponding relation between the pendant view object and the priority identifier, and the preferred pendant view object and the priority identifier have a unique corresponding relation; the priority identification can be numbers, letters, characters or other identifications and can be used for representing the high-low order of the priority of each pendant view object; the pendant priority library can be updated in real time according to the service requirement of the operation side.
The preset time may be a fixed time set according to an actual display requirement, and may be, for example, 0.5s, 1s, or 2s, or may be proportional to the display time of the pendant view object, and may be, for example, 10%, 20%, or 50% of the display time of the pendant view object. By sequencing the pendant view objects according to the priority at preset intervals, the priority sequencing of the pendant view objects for multiple times when the client continuously receives multiple display messages can be avoided, and therefore the sequencing operation can be optimized to avoid abnormal operation caused by continuous multiple sequencing.
And S130, generating state information according to the sequencing result, and displaying the pendant view object with the state information in the display state as a target pendant view object.
The state information can be understood as the display and hiding states of the pendant view objects, and the pendant view objects can display the state information generated by the priority management object according to the display states of the callbacks after the status information is callbacked.
By setting the priority management object, the pendant view object can be added and the display management of each pendant view can be carried out when the server display message is received, so that the condition that all other pendants are refreshed when a certain pendant needs to be displayed is avoided, the code redundancy is reduced, the display logic of each pendant is decoupled, and the pendant display efficiency is improved.
Optionally, generating the state information according to the sorting result includes:
and determining the state information of the pendant view objects which are sequenced to the preset sequence as a display state, and determining the state information of other pendant view objects except the pendant view objects which are sequenced to the preset sequence as a hidden state.
When the pendant view objects are sorted from high to low according to the priority, the preset sorting can be N before the sorting, and when the pendant view objects are sorted from low to high according to the priority, the preset sorting can be N after the sorting; the number N included in the preset ranking is related to the number of entry positions in the client interface, and specifically, N may be equal to the number of entry positions in the client interface.
Optionally, the taking and displaying the pendant view object with the display state information as the target pendant view object includes:
and taking the pendant view object with the state information in the display state as a target pendant view object, acquiring the display times of the target pendant view object, and displaying the target pendant view object according to the display times.
When the pendant view object is in a display state, the pendant view object can be used as a target pendant view object to be displayed at the pendant entrance of the client, and can be displayed for multiple times according to the display times of the pendant display object.
Optionally, after the pendant view object with the display state information is taken as a target pendant view object and displayed, the method further includes:
when a removal message is received, calling a removal method of the priority management object to remove the pendant view object corresponding to the removal message; and reordering the pendant views in the priority management object after the operation is removed, and selecting and displaying the target pendant view object according to the reordering result.
The removal message may include a pendant view object identifier to be removed, and the corresponding pendant view object may be removed from the priority management object according to the pendant view object identifier to be removed; specifically, the pendant view object to be removed can be moved out of the priority management object by calling a remove function of the priority management object. After the pendant view object to be removed is moved out of the priority management object, the pendant views in the priority management object can be reordered according to the priority, and a target pendant view object is selected and displayed according to the reordering result.
Further, the removal message is triggered when the target pendant view object is finished displaying or the pendant view object which is not displayed is overtime; correspondingly, the pendant view object corresponding to the removal message comprises a target pendant view object or an undisplayed pendant view object.
When the target pendant view object finishes displaying or the non-displayed pendant view object times out, a removal message can be triggered, namely, the removal message is triggered each time the target pendant view object finishes displaying or other pendant views time out in the display process of the target pendant view object. The target pendant view object which is displayed last or the pendant view object which is not displayed overtime can be moved out from the priority management objects by removing the message, and the pendant view object with high priority in the priority management objects can be prevented from being displayed all the time, so that the display method of the pendant in the live broadcast room is optimized.
According to the method for displaying the pendant in the live broadcast room, a pendant display function is triggered according to a pendant display message sent by a server, and a pendant view object is generated according to the pendant display function; adding the pendant view objects into the priority management objects, determining the priority of each pendant view object in the priority management objects, and sequencing each pendant view object according to the priority; and generating state information according to the sequencing result, and taking the pendant view object with the state information in the display state as a target pendant view object and displaying the target pendant view object. The pendant view objects to be displayed are added into the priority management object and are sorted according to the priority, and the target pendant view objects can be obtained and displayed, so that code redundancy is reduced, display logics of all pendants are decoupled, and pendant display efficiency is improved.
Example two
Fig. 2 is a schematic structural diagram of a hanging display device in a live broadcast room according to a second embodiment of the present invention, which is applicable to hanging display in a live broadcast room.
Referring to fig. 2, the display device of the hanging part in the live broadcast room in this embodiment includes:
the pendant view object generating module 210 is configured to receive a pendant display message sent by the server, trigger a pendant display function according to the pendant display message, and generate a pendant view object according to the pendant display function;
the pendant view object sorting module 220 is configured to add the pendant view objects to the priority management objects, determine the priority of each pendant view object in the priority management objects, and sort the pendant view objects according to the priority;
and the pendant view object display module 230 is configured to generate state information according to the sorting result, and take the pendant view object with the state information in the display state as a target pendant view object and display the target pendant view object.
Optionally, the pendant view object generating module 210 includes:
the initial pendant view object generating submodule is used for acquiring pendant view parameters in the pendant display function and generating an initial pendant view object according to the pendant view parameters;
the animation display parameter judgment submodule is used for judging whether the pendant display function contains animation display parameters;
the pendant view object generation submodule is used for adding animation display parameters to the initial pendant view object to generate a pendant view object if the animation display parameters exist; and if the animation display parameters do not exist, taking the initial pendant view object as the pendant view object.
Optionally, the pendant view object sorting module 220 includes:
the pendant view object adding submodule is used for adding the pendant view object to the first empty storage position in the pendant array of the priority management object according to the index sequence;
the priority determining submodule is used for determining the priority of each pendant view object in the pendant array according to a predefined pendant priority library;
and the pendant view object sequencing submodule is used for sequencing each pendant view object according to the priority at preset intervals.
Optionally, the pendant view object display module 230 includes:
and the state information determining submodule is used for determining the state information of the pendant view objects which are sequenced to the preset sequence as a display state, and determining the state information of other pendant view objects except the pendant view objects which are sequenced to the preset sequence as a hidden state.
Optionally, the pendant view object display module 230 further includes:
and the pendant view object display submodule is used for taking the pendant view object with the state information in the display state as a target pendant view object, acquiring the display times of the target pendant view object and displaying the target pendant view object according to the display times.
Optionally, the hanging display device in the live broadcast room further includes:
the pendant view object removal module is used for calling a removal method of the priority management object to remove the pendant view object corresponding to the removal message when the removal message is received;
correspondingly, the pendant view object sorting module 220 is further configured to reorder the pendant views in the priority management object after the move-out operation; and the pendant view object display module 230 is further configured to select and display a target pendant view object according to the reordering result.
Further, the removal message is triggered when the target pendant view object is finished displaying or the pendant view object which is not displayed is overtime; correspondingly, the pendant view object corresponding to the removal message comprises a target pendant view object or an undisplayed pendant view object.
The device for displaying a pendant in a live broadcast room provided by the embodiment belongs to the same inventive concept as the method for displaying a pendant in a live broadcast room provided by the embodiment, and technical details not described in detail in the embodiment can be referred to as the embodiment one.
EXAMPLE III
The embodiment provides a terminal which can be used for hanging display in a live broadcast room. Fig. 3 is a schematic structural diagram of a terminal according to a third embodiment of the present invention. Referring to fig. 3, the terminal includes:
one or more processors 310;
a memory 320 for storing one or more programs;
when executed by the one or more processors 310, the one or more programs cause the one or more processors 310 to implement a live pendant display method as set forth in an embodiment.
In FIG. 3, a processor 310 is illustrated as an example; the processor 310 and the memory 320 may be connected by a bus or other means, such as the bus connection shown in FIG. 3.
The memory 320 is a computer-readable storage medium, and can be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the live broadcast hangar display method in the embodiment of the present invention. The processor 310 executes various functional applications and data processing of the terminal by running software programs, instructions and modules stored in the memory 320, that is, the live slot pendant display method described above is implemented.
The memory 320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 320 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 320 may further include memory located remotely from the processor 310, which may be connected to the terminal over 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 terminal and the method for displaying the pendant in the live broadcast room provided by the first embodiment belong to the same inventive concept, and technical details not described in detail in the first embodiment can be referred to in the first embodiment.
Example four
The present embodiment provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a live telecast hangar display method as set forth in an embodiment.
The computer-readable storage medium provided by the embodiment and the live broadcast room pendant display method provided by the first embodiment belong to the same inventive concept, and technical details not described in detail in the embodiment can be referred to the first embodiment, and the first embodiment and the second embodiment have the same beneficial effects.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. A hanging piece display method for a live broadcast room is characterized by comprising the following steps:
receiving a pendant display message sent by a server, triggering a pendant display function according to the pendant display message, and generating a pendant view object according to the pendant display function;
adding the pendant view objects into a priority management object, determining the priority of each pendant view object in the priority management object, and sequencing each pendant view object according to the priority;
generating state information according to the sequencing result, and taking the pendant view object with the state information in the display state as a target pendant view object and displaying the target pendant view object;
the generating of the state information according to the sorting result includes:
determining the state information of the pendant view objects which are sequenced to be the preset sequence as a display state, and determining the state information of other pendant view objects except the pendant view objects which are sequenced to be the preset sequence as a hidden state;
the preset ordering comprises:
when the pendant view objects are sorted from high to low according to the priority, the preset sorting is N before the sorting, and when the pendant view objects are sorted from low to high according to the priority, the preset sorting is N after the sorting; wherein the number N included in the predetermined ordering is related to the number of entry locations in the client interface.
2. The method of claim 1, wherein generating the pendant view object according to the pendant display function comprises:
acquiring pendant view parameters in a pendant display function, and generating an initial pendant view object according to the pendant view parameters;
judging whether the pendant display function contains animation display parameters or not;
if so, adding the animation display parameters to the initial pendant view object to generate a pendant view object; and if not, taking the initial pendant view object as the pendant view object.
3. The method according to claim 1, wherein the adding the pendant view objects to a priority management object, determining a priority of each pendant view object in the priority management object, and ordering each pendant view object according to the priority comprises:
adding the pendant view object to the first empty storage position in the pendant array of the priority management object according to the index order;
determining the priority of each pendant view object in the pendant array according to a predefined pendant priority library;
and sequencing the view objects of the pendants at preset intervals according to the priority.
4. The method according to claim 1, wherein the displaying the pendant view object with the display state information as the target pendant view object comprises:
and taking the pendant view object with the display state information as a target pendant view object, acquiring the display times of the target pendant view object, and displaying the target pendant view object according to the display times.
5. The method according to claim 1, wherein after the pendant view object whose state information is the display state is taken as a target pendant view object and displayed, the method further comprises:
when a removal message is received, calling a removal method of the priority management object to remove the pendant view object corresponding to the removal message;
and reordering the pendant views in the priority management object after the operation is removed, and selecting and displaying the target pendant view object according to the reordering result.
6. The method of claim 5, wherein the removal message is triggered when the target pendant view object ends displaying or an undisplayed pendant view object times out;
correspondingly, the pendant view object corresponding to the removal message comprises a target pendant view object or an undisplayed pendant view object.
7. The utility model provides a direct broadcast room pendant display device which characterized in that includes:
the pendant view object generating module is used for receiving a pendant display message sent by the server, triggering a pendant display function according to the pendant display message, and generating a pendant view object according to the pendant display function;
the pendant view object sorting module is used for adding the pendant view objects into the priority management objects, determining the priority of each pendant view object in the priority management objects, and sorting each pendant view object according to the priority;
the pendant view object display module is used for generating state information according to the sequencing result, and taking the pendant view object with the state information in the display state as a target pendant view object and displaying the target pendant view object;
the pendant view object display module comprises a state information determining submodule;
the state information determining submodule is used for determining the state information of the pendant view objects which are sequenced to be in the preset sequence as a display state, and determining the state information of other pendant view objects except the pendant view objects which are sequenced to be in the preset sequence as a hidden state;
the preset ordering comprises:
when the pendant view objects are sorted from high to low according to the priority, the preset sorting is N before the sorting, and when the pendant view objects are sorted from low to high according to the priority, the preset sorting is N after the sorting; wherein the number N included in the predetermined ordering is related to the number of entry locations in the client interface.
8. A terminal, characterized in that the terminal comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a live-hung display method as recited in any of claims 1-6.
9. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing a live-hung display method as claimed in any one of claims 1 to 6.
CN201811276096.9A 2018-10-30 2018-10-30 Live broadcast room pendant display method and device, terminal and computer readable medium Active CN109462769B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811276096.9A CN109462769B (en) 2018-10-30 2018-10-30 Live broadcast room pendant display method and device, terminal and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811276096.9A CN109462769B (en) 2018-10-30 2018-10-30 Live broadcast room pendant display method and device, terminal and computer readable medium

Publications (2)

Publication Number Publication Date
CN109462769A CN109462769A (en) 2019-03-12
CN109462769B true CN109462769B (en) 2021-03-16

Family

ID=65608824

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811276096.9A Active CN109462769B (en) 2018-10-30 2018-10-30 Live broadcast room pendant display method and device, terminal and computer readable medium

Country Status (1)

Country Link
CN (1) CN109462769B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109947488B (en) * 2019-03-19 2022-05-10 武汉斗鱼鱼乐网络科技有限公司 Object initialization method, device, equipment and storage medium of universal function module
CN110493629B (en) * 2019-08-22 2021-12-07 北京达佳互联信息技术有限公司 Live broadcast cover hanging part display method and device, electronic equipment and storage medium
CN111212314B (en) * 2020-01-17 2021-09-21 广州方硅信息技术有限公司 Method and device for displaying special effect of virtual gift and electronic equipment
CN111343493A (en) * 2020-02-20 2020-06-26 北京达佳互联信息技术有限公司 Live broadcast interface processing method and device, electronic equipment and storage medium
CN111405300A (en) * 2020-02-28 2020-07-10 北京达佳互联信息技术有限公司 Pendant display method and device, electronic equipment and computer readable storage medium
CN112463017B (en) * 2020-12-17 2021-12-14 中国农业银行股份有限公司 Interactive element synthesis method and related device
CN113157366A (en) * 2021-04-01 2021-07-23 北京达佳互联信息技术有限公司 Animation playing method and device, electronic equipment and storage medium
CN113645508B (en) * 2021-08-10 2023-09-19 北京读我科技有限公司 Message output method, device and system
CN115022699A (en) * 2022-04-29 2022-09-06 北京达佳互联信息技术有限公司 Business pendant display method and device, electronic equipment and storage medium
CN117119259B (en) * 2023-09-07 2024-03-08 北京优贝在线网络科技有限公司 Scene analysis-based special effect self-synthesis system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107908336A (en) * 2017-11-13 2018-04-13 平安科技(深圳)有限公司 Method for refreshing, device, storage medium and the terminal of list control
CN108228207A (en) * 2016-12-22 2018-06-29 珠海金山办公软件有限公司 control state updating method and device
CN108712672A (en) * 2018-04-28 2018-10-26 广州虎牙信息科技有限公司 Virtual present shows processing method, device, storage medium and the server of material

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7392483B2 (en) * 2001-09-28 2008-06-24 Ntt Docomo, Inc, Transformation of platform specific graphical user interface widgets migrated between heterogeneous device platforms
JP5252352B2 (en) * 2009-11-05 2013-07-31 クラリオン株式会社 Information terminal device, information terminal management system, and program
US20120110480A1 (en) * 2010-10-31 2012-05-03 Sap Portals Israel Ltd Method and apparatus for rendering a web page

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228207A (en) * 2016-12-22 2018-06-29 珠海金山办公软件有限公司 control state updating method and device
CN107908336A (en) * 2017-11-13 2018-04-13 平安科技(深圳)有限公司 Method for refreshing, device, storage medium and the terminal of list control
CN108712672A (en) * 2018-04-28 2018-10-26 广州虎牙信息科技有限公司 Virtual present shows processing method, device, storage medium and the server of material

Also Published As

Publication number Publication date
CN109462769A (en) 2019-03-12

Similar Documents

Publication Publication Date Title
CN109462769B (en) Live broadcast room pendant display method and device, terminal and computer readable medium
CN105763420B (en) A kind of method and device of automatic information reply
CN111190718A (en) Method, device and system for realizing task scheduling
CN113179206B (en) Session display method, session acquisition method, device, equipment, system and medium
KR20180009352A (en) Method and apparatus for data processing for mobile games
CN109726941B (en) Automatic marketing system and automatic marketing method of intelligent terminal
WO2013127359A1 (en) Method and device for processing contact persons, and mobile terminal
CN109840115A (en) RecyclerView paging loading method and device in a kind of android system
CN107172501A (en) Recommend methods of exhibiting and system in a kind of live room
CN105955992A (en) Picture processing method and apparatus
CN104811461B (en) Data push method and device
CN111209067A (en) Multimedia resource processing method and device, storage medium and computing equipment
CN107526636B (en) Resource identification method and device
CN109960487A (en) A kind of method and apparatus of extracting object
CN105610849B (en) Method and device for generating sharing label and method and device for displaying attribute information
CN106850707A (en) Method, apparatus and system that material batch is uploaded
CN104834728B (en) A kind of method for pushing and device for subscribing to video
US11855945B2 (en) Method, computer device, and non-transitory computer-readable recording medium to pick and display message in messaging-based social network service
CN106375363B (en) Method, system and device for eliminating message reminding in social application client
CN110413916A (en) The method and apparatus of the topic page for rendering
CN115185434A (en) Vehicle application scene processing method, device, equipment and storage medium
CN111767473B (en) Object selection method and computer readable storage medium
CN110232393B (en) Data processing method and device, storage medium and electronic device
CN108829824B (en) Resource processing method and device in internet operation activity
CN114816597A (en) Content display method and device and computer readable storage medium

Legal Events

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