CN110830839B - Multi-pendant display method and device and storage medium - Google Patents

Multi-pendant display method and device and storage medium Download PDF

Info

Publication number
CN110830839B
CN110830839B CN201810894206.1A CN201810894206A CN110830839B CN 110830839 B CN110830839 B CN 110830839B CN 201810894206 A CN201810894206 A CN 201810894206A CN 110830839 B CN110830839 B CN 110830839B
Authority
CN
China
Prior art keywords
pendant
list
pendants
server
version number
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
CN201810894206.1A
Other languages
Chinese (zh)
Other versions
CN110830839A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810894206.1A priority Critical patent/CN110830839B/en
Publication of CN110830839A publication Critical patent/CN110830839A/en
Application granted granted Critical
Publication of CN110830839B publication Critical patent/CN110830839B/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/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • 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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • 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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • 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/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26291Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for providing content or additional data updates, e.g. updating software modules, stored at the client
    • 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
    • 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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • H04N21/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
    • 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/47End-user applications
    • H04N21/485End-user interface for client configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8166Monomedia components thereof involving executable data, e.g. software
    • H04N21/8173End-user applications, e.g. Web browser, game

Abstract

The embodiment of the invention discloses a multi-pendant display method, a device and a storage medium, wherein the multi-pendant display method comprises the following steps: loading a webpage view through a browser kernel; pulling a first pendant list configured for the webpage view from a server, wherein the first pendant list comprises the acquired addresses and layout information of a plurality of first pendants; acquiring a plurality of first pendants from the server according to the acquisition addresses included in the first pendant list; and displaying a plurality of first pendants in the webpage view according to the layout information included in the first pendant list. According to the embodiment of the invention, when multiple pendants are realized, the number of opened webpage views can be reduced, the memory occupation is reduced, and the problems of power consumption, blockage and the like are reduced.

Description

Multi-pendant display method and device and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a multi-pendant display method, a multi-pendant display device and a storage medium.
Background
With the development of computer technology and network technology, live webcast is widely popularized, live webcasts can be live webcast through live webcast application programs, and audiences can enter interested live webcasts rooms through the live webcast application programs to watch live webcast contents. In the existing live broadcast application program, a pendant function is generally provided, and activities, such as various competition activities, are operated through the pendant to improve income. As shown in fig. 1, the position indicated by the arrow is a pendant, which is essentially a page for data presentation and interaction. With the continuous abundance of activities, multiple activities may need to be performed simultaneously in a live broadcast room, which requires multiple pendants to be implemented simultaneously in the live broadcast room.
At present, a multi-pendant implementation scheme is mostly implemented by a terminal through a webpage view (webview), and the webpage view is a control for displaying a webpage in an Android system. Specifically, the method includes that a terminal opens a webpage view through an embedded browser kernel, a pendant is opened and displayed in the webpage view, one webpage view is used for displaying one pendant, when multiple pendants are realized, multiple webpage views need to be opened, the webpage view occupies more memory, and when multiple webpage views are opened by realizing multiple pendants, live broadcast application programs occupy more memory, so that the problems of power consumption, blockage and the like are caused.
Disclosure of Invention
In view of this, embodiments of the present invention provide a multi-pendant display method, apparatus, and storage medium, which can reduce the number of open web views, reduce memory usage, and reduce power consumption and jamming problems when implementing multi-pendants.
The multi-pendant display method provided by the embodiment of the invention can be applied to a terminal and comprises the following steps:
opening a webpage view in a browser kernel;
pulling a first pendant list configured for the webpage view from a server, wherein the first pendant list comprises the acquired addresses and layout information of a plurality of first pendants;
acquiring a plurality of first pendants from the server according to the acquisition addresses included in the first pendant list;
and displaying a plurality of first pendants in the webpage view according to the layout information included in the first pendant list.
Correspondingly, the embodiment of the invention also provides a multi-pendant display device, which comprises:
the loading unit is used for loading the webpage view through the browser kernel;
the pull unit is used for pulling a first pendant list configured for the webpage view from a server, wherein the first pendant list comprises the acquisition addresses and layout information of a plurality of first pendants;
an obtaining unit, configured to obtain, from the server, a plurality of first hangers according to an obtaining address included in the first hanger list;
and the display unit is used for displaying a plurality of first pendants in the webpage view according to the layout information included in the first pendant list.
The embodiment of the invention also provides a multi-pendant display method which can be applied to a server and comprises the following steps:
receiving a list acquisition request sent by a terminal, wherein the list acquisition request comprises identification information of a webpage view loaded by the terminal through a browser kernel;
acquiring a first pendant list configured for the webpage view according to the identification information, wherein the first pendant list comprises acquisition addresses and layout information of a plurality of first pendants;
sending the first pendant list to the terminal;
receiving a pendant obtaining request sent by the terminal according to the obtaining address included in the first pendant list;
and sending the plurality of first pendants to the terminal, so that the terminal displays the plurality of first pendants in the webpage view according to the layout information included in the first pendant list.
Optionally, in some embodiments, the method further includes:
receiving a data updating request periodically sent by the terminal according to an acquisition address included in the first pendant list;
and sending a data updating response to the terminal, wherein the data updating response comprises updating data of the plurality of first pendants, so that the terminal updates the corresponding first pendant shown in the webpage view according to the updating data of the plurality of first pendants.
Optionally, in some embodiments, the first pendant list has a first version number, and before sending the data update response to the terminal, the method further includes:
updating the first pendant list to obtain a second pendant list, and setting a second version number for the second pendant list;
the data update response includes the second version number, and after the data update response is sent to the terminal, the method further includes:
receiving a list updating request sent by the terminal, wherein the list updating request comprises identification information of the webpage view;
acquiring a second pendant list configured for the webpage view according to the identification information, wherein the second pendant list comprises acquisition addresses and layout information of a plurality of second pendants;
sending the second pendant list to the terminal;
receiving a pendant obtaining request sent by the terminal according to the obtaining address included in the second pendant list;
and sending the plurality of second pendants to the terminal, so that the terminal displays the plurality of second pendants in the webpage view according to the layout information included in the second pendant list.
Optionally, in some embodiments, the method further includes:
detecting whether a plurality of first pendants are updated or not;
if the webpage view is updated, pushing data updating information to the terminal, wherein the data updating information comprises updating data of the first pendants, so that the terminal can update the corresponding first pendant displayed in the webpage view according to the updating data of the first pendants.
Optionally, in some embodiments, the first pendant list has a first version number, and before pushing data update information to the terminal, the method further includes:
updating the first pendant list to obtain a third pendant list, and setting a third version number for the third pendant list;
the data update information includes the third version number, and after the data update information is pushed to the terminal, the method further includes:
receiving a list updating request sent by the terminal, wherein the list updating request comprises identification information of the webpage view;
acquiring a third pendant list configured for the webpage view according to the identification information, wherein the third pendant list comprises acquisition addresses and layout information of a plurality of third pendants;
sending the third pendant list to the terminal;
receiving a pendant obtaining request sent by the terminal according to the obtaining address included in the third pendant list;
and sending the plurality of third pendants to the terminal, so that the terminal displays the plurality of third pendants in the webpage view according to the layout information included in the third pendant list.
Correspondingly, the embodiment of the invention also provides a multi-pendant display device, which comprises:
the terminal comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a list acquisition request sent by the terminal, and the list acquisition request comprises identification information of a webpage view loaded by the terminal through a browser kernel;
the acquisition unit is used for acquiring a first pendant list configured for the webpage view according to the identification information, wherein the first pendant list comprises acquisition addresses and layout information of a plurality of first pendants;
the sending unit is used for sending the first pendant list to the terminal;
the receiving unit is further configured to receive a pendant acquisition request sent by the terminal according to an acquisition address included in the first pendant list;
the sending unit is further configured to send the plurality of first hangers to the terminal, so that the terminal displays the plurality of first hangers in the web page view according to the layout information included in the first hanger list.
Optionally, in some embodiments, the receiving unit is further configured to receive a data update request periodically sent by the terminal according to an acquisition address included in the first pendant list;
the sending unit is further configured to send a data update response to the terminal, where the data update response includes update data of the plurality of first hangers, so that the terminal updates the corresponding first hanger shown in the web page view according to the update data of the plurality of first hangers.
Optionally, in some embodiments, the first pendant list has a first version number, and the apparatus further includes:
the first updating unit is used for updating the first pendant list to obtain a second pendant list, setting a second version number for the second pendant list, and the data updating response comprises the second version number;
the receiving unit is further configured to receive a list update request sent by the terminal, where the list update request includes identification information of the web page view;
the acquiring unit is further configured to acquire a second pendant list configured for the web page view according to the identification information, where the second pendant list includes acquisition addresses and layout information of a plurality of second pendants;
the sending unit is further configured to send the second pendant list to the terminal;
the receiving unit is further configured to receive a pendant obtaining request sent by the terminal according to the obtaining address included in the second pendant list;
the sending unit is further configured to send the plurality of second hangers to the terminal, so that the terminal displays the plurality of second hangers in the web page view according to the layout information included in the second hanger list.
Optionally, in some embodiments, the apparatus further comprises:
the detection unit is used for detecting whether the first pendants are updated or not;
the pushing unit is used for pushing data updating information to the terminal when the plurality of first pendants are updated, wherein the data updating information comprises updating data of the plurality of first pendants, so that the terminal updates the corresponding first pendant displayed in the webpage view according to the updating data of the plurality of first pendants.
Optionally, in some embodiments, the first pendant list has a first version number, and the apparatus further includes:
a second updating unit, configured to update the first pendant list to obtain a third pendant list, set a third version number for the third pendant list, where the data update information includes the third version number;
the receiving unit is further configured to receive a list update request sent by the terminal, where the list update request includes identification information of the web page view;
the acquiring unit is further configured to acquire a third pendant list configured for the web page view according to the identification information, where the third pendant list includes acquisition addresses and layout information of a plurality of third pendants;
the sending unit is further configured to send the third pendant list to the terminal;
the receiving unit is further configured to receive a pendant obtaining request sent by the terminal according to the obtaining address included in the third pendant list;
the sending unit is further configured to send the plurality of third hangers to the terminal, so that the terminal displays the plurality of third hangers in the web page view according to the layout information included in the third hanger list.
In addition, an embodiment of the present invention further provides a storage medium, where a plurality of instructions are stored, and the instructions are suitable for being loaded by a processor to perform any one of the steps in the multi-pendant display method provided in the embodiment of the present invention.
In the embodiment of the invention, the corresponding pendant list can be configured for the webpage view at the server side, after the terminal loads the webpage view through the browser kernel, the pendant list configured for the loaded webpage view can be pulled from the server, the configured pendant list comprises the acquisition addresses and the layout information of a plurality of pendants, then the terminal can acquire the plurality of pendants from the server according to the acquisition addresses in the pendant list, the plurality of pendants are displayed in the webpage view according to the layout information in the pendant list, and the display of the plurality of pendants in one webpage view is realized by configuring the pendant list for the webpage view.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic view of a pendant presentation interface in a live room.
Fig. 2 is a schematic diagram of a multi-pendant showing effect in the prior art.
Fig. 3 is a schematic view of a scene of the multiple pendant display system according to the embodiment of the present invention.
Fig. 4 is a schematic flow chart of a multi-pendant display method according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of a multi-pendant display effect provided by an embodiment of the invention.
Fig. 6 is another flow chart of a multi-pendant display method according to an embodiment of the present invention.
Fig. 7 is a schematic signaling interaction diagram provided in an embodiment of the present invention.
Fig. 8 is a schematic structural diagram of a multi-pendant display device according to an embodiment of the present invention.
Fig. 9 is another schematic structural diagram of a multi-pendant display device according to an embodiment of the present invention.
Fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Fig. 11 is another schematic flow chart diagram of a multi-pendant displaying method according to an embodiment of the present invention.
Fig. 12 is a schematic structural diagram of a multi-pendant display device according to an embodiment of the present invention.
Fig. 13 is a schematic view of another structure of the multiple pendant display apparatus according to the embodiment of the present invention.
Fig. 14 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
In the description that follows, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the application have been described in language specific to above, it is not intended to be limited to the specific form set forth herein, and it will be recognized by those of ordinary skill in the art that various of the steps and operations described below may be implemented in hardware.
The term module, as used herein, may be considered a software object executing on the computing system. The various components, modules, engines, and services described herein may be viewed as objects implemented on the computing system. The apparatus and method described herein may be implemented in software, but may also be implemented in hardware, and are within the scope of the present application.
The terms "first", "second", and "third", etc. in this application are used to distinguish between different objects and not to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Because the existing multi-pendant display scheme is as shown in fig. 2, one web page view is only used for displaying one pendant, when multiple pendants are realized, multiple web page views need to be opened, one web page view occupies at least 20 megabytes of memory, and opening multiple web page views can cause more memory occupation, thus causing the problems of power consumption, blocking and the like. Therefore, the embodiment of the invention provides a multi-pendant display method, which can reduce the number of open webpage views, reduce memory occupation, reduce power consumption, and solve the problems of blocking and the like when displaying multiple pendants. The multi-pendant display method provided by the embodiment of the invention can be realized in a terminal or other equipment which is provided with a storage unit and a microprocessor and has computing capability.
Taking an example that the multi-pendant display method is implemented in a terminal, please refer to fig. 3, where fig. 3 is a scene schematic diagram of a multi-pendant display system provided in an embodiment of the present invention, where the multi-pendant display system includes a terminal and a server, and the terminal may be, for example: the server can be a background server of the pendant, namely a pendant server. In the embodiment of the present invention, the terminal may also display the pendant by using the web page view, that is, the terminal may load the web page view through a browser kernel, and then pull the pendant list configured for the web page view from the server (the server may configure the pendant list for the web page view in advance, or may configure the pendant list for the web page view in real time), where the pulled pendant list is the first pendant list, the first pendant list includes the acquisition addresses and the layout information of a plurality of first pendants, the plurality of first pendants may be used to operate different activities, and the acquisition addresses included in the first pendant list include, for example: uniform Resource Locator (URL), layout information included in the first pendant list, such as: displaying information of the width, height and the like of the pendant; the terminal can obtain a plurality of first pendants from the server according to the obtaining address and display the first pendants in the webpage view according to the layout information, so that the plurality of pendants can be displayed in one webpage view, the number of opened webpage views can be reduced when the plurality of pendants are displayed, the memory occupation is reduced, and the problems of power consumption blockage and the like are solved.
It should be noted that the scene schematic diagram of the multi-pendant display system shown in fig. 3 is only an example, and the multi-pendant display system and the scene described in the embodiment of the present invention are for more clearly illustrating the technical solution of the embodiment of the present invention, and do not form a limitation on the technical solution provided by the embodiment of the present invention.
The following are detailed below.
In this embodiment, a multi-pendant display method provided in an embodiment of the present invention will be described from the perspective of a multi-pendant display device, where the multi-pendant display device may be integrated in a terminal, as shown in fig. 4, the multi-pendant display method of this embodiment may include the following steps:
and step S101, loading a webpage view through a browser kernel.
The web view (webview) is a control for displaying a web page in an Android system, and in this embodiment, the web view is used to display a pendant, which is essentially a page for data display and interaction, and the web view is analogized to a large page, and displaying multiple pendants in one web view is equivalent to displaying multiple small pages in one large page.
The pendant in this embodiment may be applied to a preset application program to operate various activities, and generally speaking, one pendant may be used to operate one activity. The preset applications are for example: live applications, social applications; activities such as: various competitions, such as, for example, a ranking contest, xx season contests, xx year contests, etc.; therefore, the pendant of the embodiment can be used for displaying relevant data of the corresponding activity, such as activity ranking, activity support rate, activity participation number, and the like.
For example, a live application program can be installed on the terminal, and after a user enters a live room through the live application program, if the terminal finds that activities which need to be operated through the pendant, such as a ranking match activity, an xx season and the like, are arranged in the live room, the terminal can load a webpage view through a browser kernel so as to display the pendant of the operation activity by using the loaded webpage view.
In this embodiment, the browser kernel may include multiple web page views, the terminal may send a web page view list acquisition request to the server to acquire a web page view list (also referred to as a pull container list) from the server, where the web page view list includes identification information of a web page view to be loaded, where the identification information may be a name, an Identification (ID) number, and the like of the web page view, and the terminal may load a corresponding web page view through the browser kernel according to the acquired identification information of the web page view.
The number of the loaded webpage views can be one or more, and when the number of the loaded webpage views is multiple, the multiple webpage views can be distributed on two sides of the terminal screen to reserve a middle zone of the screen, so that a user can click, slide and the like in the middle zone of the screen.
In this embodiment, in order to avoid excessive loaded web page views from causing excessive internal memory occupation and to give consideration to the display effect of multiple pendants and user operations, two web page views, that is, a first web page view and a second web page view, may be loaded through a browser kernel, where the first web page view may be located on the left side of a terminal screen and the second web page view may be located on the right side of the terminal screen, and certainly, the other way around is also possible. Two web page views are loaded through a browser kernel instead of one web page view, because when one web page view is used for displaying all pendants, a display area usually needs to cross a middle zone of a screen, so that an operation area of a user is occupied, and inconvenience is brought to the operation of the user.
Step S102, a first pendant list configured for the webpage view is pulled from a server, wherein the first pendant list comprises the acquisition addresses and layout information of a plurality of first pendants.
In this embodiment, an example of any web page view loaded through a browser kernel is taken as an example for explanation, specifically, a terminal may send a list acquisition request to a server, where the list acquisition request may include identification information of a web page view. The server may configure a pendant list for the web page view in advance, and after receiving a list acquisition request sent by the terminal, the server may acquire the pendant list configured for the web page view in advance, that is, a first pendant list, according to the identification information of the web page view (in this embodiment, the pendant list configured for the first time for the web page view is referred to as a first pendant list, and if the pendant list configured for the first time is updated, the pendant list obtained by updating may be referred to as a second pendant list and a third pendant list); of course, the server may also configure the first tab list for the web page view in real time after receiving the list obtaining request, which is not specifically limited herein. The server may send the first tab list configured for the web page view to the terminal, and the terminal pulls the first tab list configured for the web page view by the server.
The first pendant list may include the acquired addresses and layout information of the multiple first pendants, and of course, the first pendant list may also include other information, such as identification information of the web page view, identification information of the multiple first pendants, and identification information of the pendant may be information such as names and numbers of the pendants. The plurality of first pendants included in the first pendant list need to be shown in the same webpage view (i.e., the webpage view), and the plurality of first pendants may be used to operate different activities, and the obtaining addresses included in the first pendant list include: URL, layout information included in the first pendant list such as: the width and height of the pendant are high, and information is displayed.
When a plurality of web page views are loaded through the browser kernel, the terminal can pull the first pendant list configured for each web page view from the server simultaneously or sequentially.
In a specific embodiment, for example, the terminal loads the first web page view and the second web page view through the browser kernel, and the obtained first tab list configured for the first web page view may be as shown in table 1:
Figure BDA0001757691780000111
TABLE 1
The obtained first tab list configured for the second web page view may be as shown in table 2:
Figure BDA0001757691780000112
TABLE 2
Step S103, acquiring the plurality of first pendants from the server according to the acquisition address included in the first pendant list.
In specific implementation, the terminal may send a pendant obtaining request to the server, where the pendant obtaining request may include obtaining addresses of a plurality of first pendants that need to be shown in the web view, identification information of the first pendants, and the like, so as to obtain the plurality of first pendants that need to be shown in the web view from the server. The terminal can obtain all first pendants needing to be displayed in the webpage view from the server through one request by taking the webpage view as a unit; for example, for the first web page view in the above example, the terminal may obtain the pendant 11 and the pendant 12 from the server through a pendant obtaining request, so that the number of requests may be reduced, and the system signaling overhead may be saved.
Step S104, displaying a plurality of first pendants in the webpage view according to the layout information included in the first pendant list.
In the specific implementation, the terminal obtains the multiple first pendants from the server, and the page text data of the multiple first pendants are transmitted to the corresponding webpage views through the terminal, so that the page text data are analyzed and rendered through the corresponding webpage views, the multiple first pendants are obtained, and then the multiple first pendants are opened and displayed in the corresponding webpage views according to the layout information of the multiple first pendants, and therefore the multiple pendants are displayed in one webpage view.
Taking as an example that the terminal loads the first web page view and the second web page view through the browser kernel, the first pendant list configured for the first web page view is shown in table 1, and the first pendant list configured for the second web page view is shown in table 2, the display effect of the multiple pendants in this embodiment can be as shown in fig. 5, and displaying four pendants only requires opening two web page views. Comparing fig. 5 and fig. 2, it can be seen that, in the prior art, four web page views need to be opened to display the four pendants, and compared with the prior art, the number of the opened web page views can be reduced, and the number of the web page views reduced by the present invention is more significant when the number of the pendants to be displayed is more.
Further, since the activities operated by the pendants are continuously performed and the data related to the activities are continuously updated, the corresponding pendants also need to be continuously updated. In this embodiment, the terminal may send a data update request to the server periodically (for example, every 1 second or every 3 seconds) according to the acquisition address included in the first pendant list, the data update request is used for requesting update data of a plurality of first pendants shown in the webpage view, the data updating request may include identification information of the web page view, identification information of the plurality of first hangers, obtaining addresses of the plurality of first hangers, and the like, and the server may collect updating data of the plurality of first hangers after receiving the data updating request, generating a data updating response according to the updating data of the first pendants, wherein the data updating response comprises the updating data of the first pendants, in addition, the data updating response also can comprise identification information of a webpage view, the identification information of the first pendants and the like, and the server returns the data updating response to the terminal; and the terminal receives a data updating response returned by the server, and updates the first pendant displayed in the corresponding webpage view according to the updating data of the plurality of first pendants in the data updating response.
When data updating is carried out, the terminal can still obtain the updating data of all the first hangers shown in one webpage view by taking the webpage view as a unit through one request; for example, for the first web page view in the above example, the terminal may obtain the update data of the pendant 11 and the pendant 12 from the server through one data update request, so that the number of requests may be reduced, the system signaling overhead may be reduced, and the update efficiency may be improved.
In addition, as time goes by, the pendant list that is initially configured for the web page view may be updated on the server side. For example, with the continuous enrichment of activities, there may be new activities that need to be operated by the pendant, and when a new activity comes online, the server needs to add a new pendant to the pendant list of the web page view, that is, the acquisition address and layout information of the new pendant need to be added to the pendant list; or some activities need to be offline, and the server needs to delete the pendant operating the activity from the pendant list of the webpage view; or the layout information of a plurality of pendants is changed on the server side. Therefore, in order to distinguish and identify the pendant list before and after updating, in this embodiment, the server may set a version number for the pendant list.
In a specific embodiment, the server may set a first version number for the first tab list, if the first tab list configured for the first time is updated subsequently to obtain a second tab list, set a second version number for the second tab list, each time the server returns a data update response to the terminal, the server may send the latest version number (for example, the second version number) of the tab list configured for the corresponding web page view to the terminal, the terminal may determine whether the first version number and the second version number of the tab list of the web page view are consistent, if not, it indicates that the tab list of the web page view is updated, and may send a list update request to the server, where the list update request may include identification information, the second version number, and the like of the web page view, so as to pull the updated tab list of the web page view, that is, the second tab list from the server, the second pendant list comprises the acquired addresses and layout information of a plurality of second pendants; after the second pendant list is pulled, the terminal can update the first pendant list owned by the terminal to the second pendant list, acquire a plurality of second pendants from the server according to the acquisition addresses in the second pendant list, and display the plurality of second pendants in the webpage view according to the layout information in the second pendant list; after that, the terminal may further obtain, according to the obtaining address included in the second pendant list, update data of the plurality of second pendants from the server periodically, so as to update the plurality of second pendants displayed in the web page view periodically. In addition, if the first version number of the pendant list of the webpage view is consistent with the second version number, the pendant list of the webpage view is not updated, and the pendant list of the webpage view does not need to be pulled again.
For example, the server may set the version number of the pendant list configured for the first webpage view to 1.0, and then, if the pendant list of the first webpage view is updated, after each update, 1 may be added to the last set version number to serve as the version number of the pendant list obtained after the update; for example, after the pendant list with the version number of 1.0 is updated, the version number of the pendant list obtained after updating may be set to 2.0; after the pendant list with the version number of 2.0 is updated, the version number of the pendant list obtained after updating can be set to be 3.0, and so on; the server can carry the version number of the pendant list of the latest version of the first webpage view owned by the server in the data updating response sent to the terminal every time, so that the terminal side only needs to judge whether the version number of the pendant list of the newly received first webpage view is larger than the version number of the pendant list of the existing first webpage view, and if the version number of the pendant list of the newly received first webpage view is larger than the version number of the pendant list of the existing first webpage view, the pendant list is pulled for the first webpage view again. For example, when the version number of the latest version pendant list of the first web page view owned by the server is 2.0, the data update response sent by the server may include: and 2.0, if the version number of the pendant list of the first webpage view currently owned by the terminal side is 1.0, the terminal may request the server to acquire the pendant list with the version number of 2.0 for the first webpage view after receiving the data update response.
In addition, when it is detected that a certain first pendant is updated, the server can also actively push data updating information to the terminal, the data updating information includes updating data of the first pendant, the terminal receives the data updating information, and the corresponding first pendant is updated according to the updating data included in the data updating information. For example, for the pendant 11 in the foregoing example, when the server detects that the data of the pendant 11 is updated, the server may push the updated data of the pendant 11 to the terminal.
In this embodiment, when detecting that a certain first pendant has an update, the server may further search (may search according to a pendant list configured for the web page view) whether other first pendants displayed in the same web page view as the first pendant have an update, and if other first pendants have an update, merge and push update data of the first pendant and update data of the other first pendants, that is, update information pushed to the terminal by the server may include update data of a plurality of first pendants displayed in the same web page view, and in addition, the data update information may further include identification information of the web page view, identification information of the first pendant, and the like; after receiving the data updating information, the terminal may update the first hangers shown in the corresponding web view according to the updating data of the plurality of first hangers. For example, for the pendant 11 in the foregoing example, if the server detects that the pendant 11 is updated, it may detect whether the pendant 12 displayed in the same webpage view as the pendant 11 is updated according to table 1, and if the pendant 12 is also updated, merge and push update data of the pendants 11 and 12 to the terminal. By combining the push modes, the number of push information can be reduced, signaling interaction is reduced, and meanwhile, the updating efficiency of the terminal side is improved.
In addition, when the server pushes the data updating information to the terminal, the data updating information can also carry the version number of the pendant list of the latest version of the webpage view owned by the server. For example, if the server updates the first tab list configured for the web page view for the first time before pushing the data update information to the terminal to obtain a third tab list, and sets a third version number for the third tab list, the server may send the third version number to the terminal with the data update information, and the terminal may determine whether the first version number of the pendant list of the web page view owned by the terminal is consistent with the received third version number, and if not, indicating that the pendant list of the web page view is updated, a list update request may be sent to the server, where the list update request may include the identification information, the third version number, and the like of the web page view, so as to obtain the updated pendant list of the web page view from the server, namely a third pendant list, wherein the third pendant list comprises the acquired addresses and layout information of a plurality of third pendants; after the third pendant list is pulled, the terminal can update the first pendant list owned by the terminal to the third pendant list, acquire a plurality of third pendants from the server according to the acquisition addresses in the third pendant list, and display the plurality of third pendants in the webpage view according to the layout information in the third pendant list; after that, the terminal may further obtain, according to the obtaining address included in the third pendant list, update data of the plurality of third pendants from the server periodically, so as to update the plurality of third pendants displayed in the web page view periodically. In addition, if the first version number is consistent with the third version number, the pendant list of the webpage view is not updated, and the pendant list does not need to be pulled again.
In this embodiment, the second version number and the third version number are only used to distinguish the cases where the version numbers are carried in different information (data update response and data update information), and in practical applications, for the same web page view, the second version number and the third version number may be the same, and the second pendant list and the third pendant list may also be the same.
In addition, the first pendant, the second pendant, and the third pendant in this embodiment are only for distinguishing the pendants in the different-version pendant lists, and in practice, the different-version pendant lists may include the same pendant, that is, the first pendant, the second pendant, and the third pendant may actually refer to the same pendant. For example, the first hangers in the first hanger list are hangers 11 and 12, the second hangers in the second hanger list are hangers 11, 12 and 13, and the third hangers in the third hanger list are hangers 11 and 13, so that the three hanger lists include the same hanger 11.
In this embodiment, the pendant list configured for the web page view is usually large in data volume and infrequent in change, and if a method of regularly pulling and updating is adopted, network resources are greatly wasted, so in this embodiment, the pendant list is pulled again only when the version list is updated by pushing the version number, that is, the server carries the version number of the pendant list of the latest version of the web page view in information (such as data update response and data update information) sent to the terminal, and the terminal determines whether the version number is the pendant list to be pulled again for the web page view by judging the version number.
In this embodiment, a corresponding pendant list may be configured for a web page view at a server side, after a terminal loads the web page view through a browser kernel, the terminal may pull the pendant list configured for the web page view from the server, where the pendant list includes an acquisition address and layout information of a plurality of pendants, and then the terminal may acquire the plurality of pendants from the server according to the acquisition address, and display the plurality of pendants in the web page view according to the layout information, that is, by configuring the pendant list for the web page view, display of the plurality of pendants in one web page view is realized at the terminal side.
The method described in the above embodiment will be further described in detail by way of example in the present embodiment, where the present embodiment takes a live application scenario as an example, as shown in fig. 6, the method of the present embodiment includes the following steps:
and step S201, entering a corresponding live broadcast room according to user selection.
For example, a live application program can be installed on the terminal, after the user selects a live broadcast room through the live broadcast application program, the terminal can enter the corresponding live broadcast room according to the user selection, a live broadcast interface of the live broadcast room is pulled from a live broadcast server and displayed, and the live broadcast interface can be used for main broadcast exhibition talent skills, such as singing, dancing and the like.
Step S202, determining whether an activity operated by a pendant exists in the live broadcast room, and if the activity operated by the pendant exists in the live broadcast room, executing step S203; otherwise, ending the processing and continuously displaying the live broadcast interface.
Because on the live platform, it has a large amount of users to collect, in order to reach purposes such as pulling business income, popularization, marketing, can hold various activities in the live room usually, for example: ranking, xx season, xx year, etc. After the user enters the live broadcast room, the terminal may determine whether the activities are held in the live broadcast room entered by the user, if so, the activities need to be operated through the pendant, and relevant data of the activities are displayed, such as: activity ranking, activity support rate, number of activity participants, and the like.
Step S203, obtaining the identification information of the webpage view to be loaded from the server.
And step S204, loading the webpage view on a live broadcast interface of the live broadcast room through a browser kernel according to the identification information.
In this embodiment, two web views, namely a first web view and a second web view, can be loaded on the live interface through the browser kernel, the first web view can be located on the left side of the live interface, the second web view can be located on the right side of the live interface, and vice versa, so that the user operation is facilitated, and the display effects of the pendant and the live interface are optimized.
Step S205, a first pendant list configured for the web page view is pulled from a server, where the first pendant list includes the acquired addresses and layout information of the plurality of first pendants.
In a specific implementation, after the terminal loads the web page view, a list acquisition request may be sent to the pendant server, where the list acquisition request may include identification information of the loaded web page view, so as to pull the first pendant list configured for the web page view from the pendant server.
The first pendant list may include the acquired addresses and layout information of the plurality of first pendants, and of course, the first pendant list may also include other information, such as identification information of the web page view, identification information of the plurality of first pendants, and the like. The plurality of first pendants included in the first pendant list need to be shown in the same webpage view (i.e., the webpage view), and the plurality of first pendants may be used to operate different activities, and the obtaining addresses included in the first pendant list include: URL, layout information included in the first pendant list such as: the width and height of the pendant are high, and information is displayed.
Step S206, obtaining a plurality of first pendants from the server according to the obtaining addresses included in the first pendant list.
In specific implementation, the terminal may send a pendant obtaining request to the pendant server, where the pendant obtaining request may include obtaining addresses of a plurality of first pendants that need to be shown in the web view, identification information of the first pendants, and the like, so as to obtain the plurality of first pendants that need to be shown in the web view from the pendant server. That is, the terminal may obtain all the first hangers that need to be displayed in the web page view from the hanger server by one request in units of the web page view.
Step S207, displaying a plurality of first hangers in the web page view according to the layout information included in the first hanger list.
In the specific implementation, the terminal obtains the multiple first pendants from the pendant server, page text data of the multiple first pendants are transmitted to the corresponding webpage views through the terminal, the page text data of the multiple first pendants are analyzed and rendered through the corresponding webpage views, the multiple first pendants are obtained, then the multiple first pendants are opened and displayed in the corresponding webpage views according to the layout information of the multiple first pendants, and therefore the multiple pendants are displayed in one webpage view.
For example, a live broadcast room where a user enters holds four activities, namely activity 1, activity 2, activity 3 and activity 4, which need to be operated by using four pendants, namely a pendant 11, a pendant 12, a pendant 21 and a pendant 22, respectively, and a terminal loads a webpage view I and a webpage view II on a live broadcast interface of the live broadcast room through a browser kernel; the method comprises the steps that a pendant list of a 1.0 version configured for a webpage view I, which is acquired from a pendant server, is shown in table 1, namely the pendant list of the 1.0 version configured for the webpage view I comprises acquisition addresses and layout information of a pendant 11 and a pendant 12, a terminal can acquire the pendant 11 and the pendant 12 from the pendant server according to the acquisition addresses of the pendant 11 and the pendant 12, and display the pendant 11 and the pendant 12 in the webpage view I according to the layout information of the pendant 11 and the pendant 12; the pendant list of the version 1.0 configured for the second webpage view, acquired from the pendant server, is shown in table 2, that is, the pendant list of the version 1.0 configured for the second webpage view includes the acquisition addresses and layout information of the pendant 21 and the pendant 22, the terminal can acquire the pendant 21 and the pendant 22 from the pendant server according to the acquisition addresses of the pendant 21 and the pendant 22, and display the pendant 21 and the pendant 22 in the second webpage view according to the layout information of the pendant 21 and the pendant 22.
And then, the terminal can also acquire the update data of the pendant from the pendant server and update the corresponding pendant shown in the corresponding webpage view according to the acquired update data. Taking the pendant 11 and the pendant 12 shown in the first webpage view as an example for updating, the terminal may actively request the pendant server for the update data of the pendant 11 and the pendant 12, or passively receive the update data of the pendant 11 and the pendant 12 pushed by the pendant server, and update the pendant 11 and the pendant 12 shown in the first webpage view according to the update data of the pendant 11 and the pendant 12.
In addition, when the terminal acquires the update data of the pendant from the server, the terminal can also acquire the latest version number of the pendant list of each webpage view pushed by the pendant server. For example, when a new activity 5 needs to be performed in the live broadcast room by using the pendant 13, the server may add the acquired address and layout information of the pendant 13 to the pendant list of version 1.0 configured for the first webpage view, and obtain the pendant list of version 2.0 configured for the first webpage view, and then the server may: the information such as the first webpage view and the version 2.0 is pushed to the terminal, after the terminal receives the information, the pendant list configured for the first webpage view and having the version number of 2.0 can be pulled from the pendant server, in a specific embodiment, the pendant list configured for the first webpage view and having the version number of 2.0 can be shown in table 3 and comprises the acquisition addresses and the layout information of the pendants 11, the pendants 12 and the pendants 13, the terminal can acquire the three pendants 11, the pendants 12 and the pendants 13 from the pendant server according to the acquisition addresses contained in the pendant list configured for the first webpage view and having the layout addresses contained in the pendant list configured for the first webpage view and having the version 2.0, and the pendants 11, the pendants 12 and the pendants 13 are displayed in the first webpage view.
Figure BDA0001757691780000181
Figure BDA0001757691780000191
TABLE 3
The multiple-pendant display method provided in the embodiment of the present invention will be described below with reference to a signaling interaction process between a terminal and a server, where the server may refer to a pendant server, and the signaling interaction process between the terminal and the server may be as shown in fig. 7, where a web view module belongs to a terminal side, modules such as a pendant service module, a management background module, a merge push module, a pendant service module and the like belong to a server side, all data transmitted by the server side to the terminal side need to pass through the pendant service module, the management background module is mainly used for asynchronously updating the configuration of pendants in the pendant service module, the merge push module is mainly used for merging and pushing related data of multiple pendants in the same web view, and the pendant service module is mainly used for providing related data of multiple pendants.
Specifically, in this embodiment, after a user enters a live broadcast room through a live broadcast application on a terminal, if an activity operated by a pendant is held in the live broadcast room, the terminal may pull a web view list (i.e., pull a container list) from the pendant service module, where the pulled container list includes identification information of a web view to be loaded, and the terminal may locally load a corresponding web view through a browser kernel according to the identification information of the web view; and then the terminal can pull the pendant list configured for the webpage view from the pendant service module through the loaded webpage view, pull a plurality of pendants from the pendant business service module according to the pendant list, and display the plurality of pendants in the webpage view.
And then, the terminal can merge and pull the update data of the plurality of pendants from the pendant business service module periodically through the webpage view, and the webpage view updates the plurality of pendants displayed in the webpage view according to the pulled update data of the plurality of pendants. When the webpage view pulls the updating data, the pendant service module can also return the version number of the pendant list of the latest version of the webpage view currently owned by the server side for the webpage view; after the webpage view obtains the version number, if the version number of the pendant list owned at present is found to be inconsistent with the newly obtained version number, the pendant list is pulled from the pendant service module again, and a plurality of pendants are pulled again according to the newly pulled pendant list.
Meanwhile, when the pendant is updated, the pendant business service module can send the update data of the pendant to the merging and pushing module, the merging and pushing module can search the update data of other pendants displayed in the same webpage view with the pendant, the searched update data of the multiple pendants are merged and pushed to the terminal, and the update data received by the terminal is transmitted to the corresponding webpage view, so that the corresponding webpage view updates the multiple pendants displayed in the webpage view. In addition, when the update data is pushed, the pendant service module can also return the version number of the pendant list of the latest version of the webpage view currently owned by the server side for the webpage view; after the webpage view obtains the version number, if the version number of the pendant list owned at present is found to be inconsistent with the newly obtained version number, the pendant list is pulled from the pendant service module again, and a plurality of pendants are pulled again according to the newly pulled pendant list.
In addition, the data pushed to the terminal by the server side may further include identification information of the web view, and if the terminal side finds that the web view identified by the identification information of the web view included in the data pushed by the server side is not loaded, the terminal may pull the container list from the pendant service module again and reload the web view.
In this embodiment, a corresponding pendant list may be configured for a web page view at a server side, after a terminal loads a web page view through a browser kernel, a pendant list configured for the loaded web page view may be pulled from the server, the configured pendant list includes an acquisition address and layout information of a plurality of pendants, then the terminal may acquire the plurality of pendants from the server according to the acquisition address included in the pendant list, the plurality of pendants are displayed in the web page view according to the layout information included in the pendant list, and the display of the plurality of pendants in one web page view is achieved by configuring the pendant list for the web page view.
In order to better implement the above method, an embodiment of the present invention provides a multiple pendant display apparatus, as shown in fig. 8, the apparatus includes a loading unit 301, a pulling unit 302, an obtaining unit 303, and a display unit 304, as follows:
a loading unit 301, configured to load a web page view through a browser kernel;
a pulling unit 302, configured to pull, from a server, a first pendant list configured for the web page view, where the first pendant list includes acquired addresses and layout information of a plurality of first pendants;
an obtaining unit 303, configured to obtain, according to an obtaining address included in the first pendant list, a plurality of first pendants from the server;
a displaying unit 304, configured to display a plurality of first hangers in the web page view according to the layout information included in the first hanger list.
In one embodiment, as shown in fig. 9, the apparatus further comprises:
a sending unit 305, configured to send a data update request to the server periodically according to the acquisition address included in the first pendant list;
a first receiving unit 306, configured to receive a data update response returned by the server, where the data update response includes update data of a plurality of first hangers;
the first updating unit 307 is configured to update the corresponding first pendant shown in the web page view according to the update data of the plurality of first pendants.
In an embodiment, the first tab list has a first version number, and the page update response includes a second version number, as shown in fig. 9, the apparatus further includes:
a first determining unit 308, configured to determine whether the first version number is consistent with the second version number;
the pulling unit 302 is further configured to, when the first version number is not consistent with the second version number, pull a second pendant list configured for the web page view from the server, and update the first pendant list to the second pendant list, where the second pendant list has the second version number, and the second pendant list includes acquired addresses and layout information of a plurality of second pendants;
the obtaining unit 303 is further configured to obtain a plurality of second pendants from the server according to an obtaining address included in the second pendant list;
the displaying unit 304 is further configured to display a plurality of second hangers in the web page view according to the layout information included in the second hanger list.
In one embodiment, as shown in fig. 9, the apparatus further comprises:
a second receiving unit 309, configured to receive data update information pushed by the server, where the data update information includes update data of a plurality of first hangers;
the second updating unit 310 is configured to update the corresponding first pendant shown in the web page view according to the update data of the plurality of first pendants.
In an embodiment, the first pendant list has a first version number, and the data update information includes a third version number, as shown in fig. 9, the apparatus further includes:
a second determining unit 311, configured to determine whether the first version number is consistent with the third version number;
the pulling unit 302 is further configured to, when the first version number is not consistent with the third version number, pull a third pendant list configured for the web page view from the server, and update the first pendant list to the third pendant list, where the third pendant list has the third version number, and the third pendant list includes acquired addresses and layout information of a plurality of third pendants;
the obtaining unit 303 is further configured to obtain, from the server, a plurality of third pendants according to obtaining addresses included in the third pendant list;
the displaying unit 304 is further configured to display the plurality of third hangers in the web page view according to the layout information included in the third hanger list.
In one embodiment, as shown in fig. 9, the apparatus further comprises:
an entering unit 312, configured to enter a corresponding live broadcast room according to user selection;
a determination unit 313 configured to determine whether an activity operated by a pendant is held in the live broadcast room;
if an activity operated by a pendant exists in the live broadcast room, the loading unit 301 loads the web page view through a browser kernel.
In an embodiment, the pendant shown in the webpage view is used for showing relevant data of the corresponding activity.
In one embodiment, as shown in fig. 9, the loading unit 301 includes:
an obtaining subunit 3011, configured to obtain, from the server, identification information of a web view to be loaded;
and a loading subunit 3012, configured to load, according to the identification information, the web page view in a live interface of the live broadcast room through a browser kernel.
In an embodiment, the loading subunit 3012 loads, through a browser kernel, a first web view and a second web view on a live interface of the live broadcast room according to the identification information, where the first web view is located on the left side of the live interface of the live broadcast room, and the second web view is located on the right side of the live interface of the live broadcast room.
It should be noted that, when the multiple pendant display device provided in the foregoing embodiment displays multiple pendants, only the division of the functional modules is illustrated, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the multi-pendant display device provided by the above embodiment and the corresponding multi-pendant display method belong to the same concept, and the specific implementation process is detailed in the method embodiment, and is not described herein again.
In this embodiment, a corresponding pendant list may be configured for a web page view at a server side, after a loading unit loads the web page view through a browser kernel, a pull unit may pull the pendant list configured for the loaded web page view from the server, where the pendant list includes an acquisition address and layout information of a plurality of pendants, and then the acquisition unit may acquire the plurality of pendants from the server according to the acquisition address, and a display unit displays the plurality of pendants in the web page view according to the layout information.
Accordingly, an embodiment of the present invention further provides a terminal, as shown in fig. 10, which shows a schematic structural diagram of the terminal according to the embodiment of the present invention, specifically:
the terminal may include Radio Frequency (RF) circuitry 401, memory 402 including one or more computer-readable storage media, input unit 403, display unit 404, processor 405 including one or more processing cores, and so on. Those skilled in the art will appreciate that the terminal structure shown in fig. 10 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 401 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink information of a base station and then sending the received downlink information to the one or more processors 408 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 401 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 401 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 402 may be used to store software programs and modules, and the processor 408 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 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 by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 402 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 volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 408 and the input unit 403 access to the memory 402.
The input unit 403 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in a particular embodiment, the input unit 403 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection terminal according to a preset program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 408, and can receive and execute commands from the processor 408. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 403 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 404 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 404 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 408 to determine the type of touch event, and then the processor 408 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 10 the touch sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement input and output functions.
The processor 405 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the terminal. Optionally, processor 405 may include one or more processing cores; preferably, the processor 405 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 405.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 405 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 405 runs the application programs stored in the memory 402, thereby implementing various functions:
loading a webpage view through a browser kernel;
pulling a first pendant list configured for the webpage view from a server, wherein the first pendant list comprises the acquired addresses and layout information of a plurality of first pendants;
acquiring a plurality of first pendants from the server according to the acquisition addresses included in the first pendant list;
and displaying a plurality of first pendants in the webpage view according to the layout information included in the first pendant list.
In some embodiments, the processor 405 is further configured to perform the steps of:
according to the acquired address included in the first pendant list, a data updating request is sent to the server periodically;
receiving a data updating response returned by the server, wherein the data updating response comprises updating data of a plurality of first pendants;
and updating the corresponding first pendant displayed in the webpage view according to the updating data of the plurality of first pendants.
In some embodiments, the first pendant list has a first version number, the data update response includes a second version number, and after receiving the data update response returned by the server, the processor 405 is further configured to perform the following steps:
judging whether the first version number is consistent with the second version number;
if not, pulling a second pendant list configured for the webpage view from the server, and updating the first pendant list into the second pendant list, wherein the second pendant list has the second version number, and the second pendant list comprises the acquired addresses and layout information of a plurality of second pendants;
acquiring a plurality of second pendants from the server according to the acquisition addresses included in the second pendant list;
and displaying a plurality of second pendants in the webpage view according to the layout information included in the second pendant list.
In some embodiments, the processor 405 is further configured to perform the steps of:
receiving data updating information pushed by the server, wherein the data updating information comprises updating data of a plurality of first pendants;
and updating the corresponding first pendant displayed in the webpage view according to the updating data of the plurality of first pendants.
In some embodiments, the first pendant list has a first version number, the data update information includes a third version number, and after receiving the data update information pushed by the server, the processor 405 is further configured to perform the following steps:
judging whether the first version number is consistent with the third version number;
if not, pulling a third pendant list configured for the webpage view from the server, and updating the first pendant list into the third pendant list, wherein the third pendant list has the third version number, and the third pendant list comprises the acquired addresses and layout information of a plurality of third pendants;
acquiring a plurality of third pendants from the server according to the acquisition addresses included in the third pendant list;
and displaying the plurality of third pendants in the webpage view according to the layout information included in the third pendant list.
In some embodiments, before loading the web page view through the browser kernel, the processor 405 is further configured to perform the following steps:
entering a corresponding live broadcast room according to user selection;
determining whether an activity operated through a pendant exists in the live broadcast room;
and if the activity operated by the pendant exists in the live broadcast room, loading the webpage view through a browser kernel.
In some embodiments, the pendant displayed in the webpage view is used for displaying the related data of the corresponding activity.
In some embodiments, when loading the web page view through the browser kernel, the processor 405 is specifically configured to perform the following steps:
acquiring identification information of a webpage view to be loaded from the server;
and loading the webpage view on a live interface of the live broadcast room through a browser inner core according to the identification information.
In some embodiments, when the web page view is loaded on the live interface of the live broadcast room through the browser kernel according to the identification information, the processor 405 is specifically configured to execute the following steps:
and loading a first webpage view and a second webpage view on a live broadcast interface of the live broadcast room through a browser kernel according to the identification information, wherein the first webpage view is positioned on the left side of the live broadcast interface of the live broadcast room, and the second webpage view is positioned on the right side of the live broadcast interface of the live broadcast room.
The terminal of the embodiment can pull the pendant list configured for the loaded webpage view from the server after the webpage view is loaded through the browser kernel, the configured pendant list comprises the acquisition addresses and the layout information of the multiple pendants, then the terminal can acquire the multiple pendants from the server according to the acquisition addresses included in the pendant list, the multiple pendants are displayed in the webpage view according to the layout information included in the pendant list, and the multiple pendants are displayed in one webpage view in a mode of configuring the pendant list for the webpage view.
In this embodiment, a multi-pendant showing method provided in the embodiment of the present invention will be described from the perspective of a multi-pendant showing device, where the multi-pendant showing device may be integrated in a server, as shown in fig. 11, and the method of this embodiment includes the following steps:
step S501, receiving a list acquisition request sent by a terminal, wherein the list acquisition request includes identification information of a webpage view loaded by the terminal through a browser kernel.
In this embodiment, the web page view is used to display the pendant, the pendant is essentially a page used for data display and interaction, the web page view is analogized to a large page, and displaying multiple pendants in one web page view is equivalent to displaying multiple small pages in one large page.
The pendant in this embodiment may be applied to a preset application program to operate various activities, and generally speaking, one pendant may be used to operate one activity. The preset applications are for example: live applications, social applications; activities such as: various competitions, such as, for example, a ranking contest, xx season contests, xx year contests, etc.; therefore, the pendant of the embodiment can be used for displaying relevant data of the corresponding activity, such as activity ranking, activity support rate, activity participation number, and the like.
For example, a live application program can be installed on the terminal, and after a user enters a live room through the live application program, if the terminal finds that activities which need to be operated through the pendant, such as a ranking match activity, an xx season and the like, are arranged in the live room, the terminal can load a webpage view through a browser kernel so as to display the pendant of the operation activity by using the loaded webpage view.
In this embodiment, a browser kernel of the terminal may include multiple web page views, before performing step S501, the server may receive a web page view list acquisition request sent by the terminal, and send a web page view list to the terminal, where the web page view list includes identification information of a web page view to be loaded, where the identification information may be a name, an Identification (ID) number, and the like of the web page view, and the terminal may load a corresponding web page view through the browser kernel according to the identification information of the web page view. After the corresponding webpage views are loaded, the terminal sends a list obtaining request to the server, the list obtaining request comprises identification information of the loaded webpage views, and the server receives the list obtaining request sent by the terminal.
Step S502, a first pendant list configured for the webpage view is obtained according to the identification information, and the first pendant list comprises the obtaining addresses and layout information of a plurality of first pendants.
In a specific implementation, a server may configure a pendant list for the web page view in advance, and after receiving a list acquisition request sent by a terminal, the server may acquire, according to identification information of the web page view, a pendant list configured for the web page view in advance, that is, a first pendant list (in this embodiment, a pendant list configured for the web page view for the first time is referred to as a first pendant list, and subsequently, if the pendant list configured for the first time is updated, it may be referred to as a second pendant list and a third pendant list); of course, the server may also configure the first tab list for the web page view and acquire the first tab list in real time after receiving the list acquisition request, which is not specifically limited herein, and the server may send the first tab list configured for the web page view to the terminal.
The acquisition addresses included in the first pendant list are, for example: URL, layout information included in the first pendant list such as: the width and height of the pendant are high, and information is displayed. The first pendant list may include, in addition to the acquisition addresses and layout information of the plurality of first pendants, other information, such as identification information of the web page view, where the identification information of the plurality of first pendants may be information such as names and numbers of the pendants.
And step S503, sending the first pendant list to the terminal.
Step S504, receiving a pendant acquisition request sent by the terminal according to the acquisition address included in the first pendant list.
Step S505, sending the plurality of first hangers to the terminal, so that the terminal displays the plurality of first hangers in the web page view according to the layout information included in the first hanger list.
After the first pendant list is sent to the terminal, the terminal may send, to the server, a pendant obtaining request according to obtaining addresses included in the first pendant list, where the pendant obtaining request may include obtaining addresses of a plurality of first pendants that need to be shown in the web view, identification information of the first pendants, and the like, and after the pendant obtaining request is received by the server, the server may send a pendant obtaining response to the terminal, where the pendant obtaining response may include the plurality of first pendants that need to be shown in the web view, the identification information of the plurality of first pendants, and the like, and the terminal may show the plurality of first pendants in the web view according to layout information included in the first pendant list. That is, the server can send all the first pendants which need to be displayed in the webpage view to the terminal through one response by taking the webpage view as a unit, so that the response times can be reduced, and the system signaling overhead can be saved.
Further, since the activities operated by the pendants are continuously performed and the data related to the activities are continuously updated, the corresponding pendants also need to be continuously updated. In this embodiment, the terminal may send a data update request to the server periodically (for example, every 1 second or every 3 seconds) according to the acquisition address included in the first pendant list, the data update request is used for requesting update data of a plurality of first pendants shown in the webpage view, the data updating request may include identification information of the web page view, identification information of the plurality of first hangers, obtaining addresses of the plurality of first hangers, and the like, and the server may collect updating data of the plurality of first hangers after receiving the data updating request, generating a data updating response according to the updating data of the first pendants, wherein the data updating response comprises the updating data of the first pendants, in addition, the data updating response also can comprise identification information of a webpage view, the identification information of the first pendants and the like, and the server returns the data updating response to the terminal; and the terminal receives a data updating response returned by the server, and updates the first pendant displayed in the corresponding webpage view according to the updating data of the plurality of first pendants in the data updating response.
In addition, as time passes, the list of pendants that the server first configured for the web page view may be updated. For example, with the continuous enrichment of activities, there may be new activities that need to be operated by the pendant, and when a new activity comes online, the server needs to add a new pendant to the pendant list of the web page view, that is, the acquisition address and layout information of the new pendant need to be added to the pendant list; or some activities need to be offline, and the server needs to delete the pendant operating the activity from the pendant list of the webpage view; or the layout information of a plurality of pendants is changed on the server side. Therefore, in order to distinguish and identify the pendant list before and after updating, in this embodiment, the server may set a version number for the pendant list.
In a specific embodiment, the server may set a first version number for the first tab list, if the first tab list configured for the first time is updated subsequently to obtain a second tab list, set a second version number for the second tab list, each time the server returns a data update response to the terminal, the server may send the latest version number (for example, the second version number) of the tab list configured for the corresponding web page view to the terminal, the terminal may determine whether the first version number and the second version number of the tab list of the web page view are consistent, if not, it indicates that the tab list of the web page view is updated, and may send a list update request to the server, where the list update request may include identification information, the second version number, and the like of the web page view, so as to pull the updated tab list of the web page view, that is, the second tab list from the server, the second pendant list comprises the acquired addresses and layout information of a plurality of second pendants; after the second pendant list is pulled, the terminal can update the first pendant list owned by the terminal into a second pendant list, a pendant obtaining request is sent to the server according to an obtaining address in the second pendant list, the server can send a plurality of second pendants to the terminal after receiving the pendant obtaining request, and the terminal can display the plurality of second pendants in the webpage view according to layout information in the second pendant list; after that, the terminal may also send a data update request to the server periodically according to the acquisition address included in the second pendant list, so as to acquire update data of the plurality of second pendants, so as to update the plurality of second pendants displayed in the web page view periodically. In addition, if the first version number of the pendant list of the webpage view is consistent with the second version number, the pendant list of the webpage view is not updated, and the terminal does not need to pull the pendant list of the webpage view again.
In addition, the server can also actively detect the updating conditions of a plurality of first pendants displayed in the webpage view, when a certain first pendant is detected to be updated, the server can also actively push data updating information to the terminal, the data updating information comprises the updating data of the first pendant, the terminal receives the data updating information, and the corresponding first pendant is updated according to the updating data contained in the data updating information.
In this embodiment, when detecting that a certain first pendant has an update, the server may further search (may search according to a pendant list configured for the web page view) whether other first pendants displayed in the same web page view as the first pendant have an update, and if other first pendants have an update, merge and push update data of the first pendant and update data of the other first pendants, that is, update information pushed to the terminal by the server may include update data of a plurality of first pendants displayed in the same web page view, and in addition, the data update information may further include identification information of the web page view, identification information of the first pendant, and the like; after receiving the data updating information, the terminal may update the first hangers shown in the corresponding web view according to the updating data of the plurality of first hangers. By combining the push modes, the number of push information can be reduced, signaling interaction is reduced, and meanwhile, the updating efficiency of the terminal side is improved.
In addition, when the server pushes the data updating information to the terminal, the data updating information can also carry the version number of the pendant list of the latest version of the webpage view owned by the server. For example, if the server updates the first tab list configured for the web page view for the first time before pushing the data update information to the terminal to obtain a third tab list, and sets a third version number for the third tab list, the server may send the third version number to the terminal with the data update information, and the terminal may determine whether the first version number of the pendant list of the web page view owned by the terminal is consistent with the received third version number, and if not, indicating that the pendant list of the web page view is updated, a list update request may be sent to the server, where the list update request may include the identification information, the third version number, and the like of the web page view, so as to obtain the updated pendant list of the web page view from the server, namely a third pendant list, wherein the third pendant list comprises the acquired addresses and layout information of a plurality of third pendants; after the third pendant list is pulled, the terminal can update the first pendant list owned by the terminal into a third pendant list, a pendant obtaining request is sent to the server according to an obtaining address in the third pendant list, the server can send a plurality of third pendants to the terminal after receiving the pendant obtaining request, and the terminal can display the plurality of third pendants in the webpage view according to layout information in the third pendant list; after that, the terminal may further send a data update request to the server periodically according to the acquisition address included in the third pendant list, so as to acquire update data of the plurality of third pendants from the server, so as to update the plurality of third pendants displayed in the web page view periodically. In addition, if the first version number is consistent with the third version number, the pendant list of the webpage view is not updated, and the pendant list does not need to be pulled again.
In this embodiment, the second version number and the third version number are only used to distinguish the cases where the version numbers are carried in different information (data update response and data update information), and in practical applications, for the same web page view, the second version number and the third version number may be the same, and the second pendant list and the third pendant list may also be the same.
In addition, the first pendant, the second pendant, and the third pendant in this embodiment are only for distinguishing the pendants in the different-version pendant lists, and in practice, the different-version pendant lists may include the same pendant, that is, the first pendant, the second pendant, and the third pendant may actually refer to the same pendant. For example, the first hangers in the first hanger list are hangers 11 and 12, the second hangers in the second hanger list are hangers 11, 12 and 13, and the third hangers in the third hanger list are hangers 11 and 13, so that the three hanger lists include the same hanger 11.
In this embodiment, the server is a pendant list configured for the web page view, generally, the data size is large and the change is not frequent, and if the terminal adopts a method of regularly pulling the update, network resources are greatly wasted, so in this embodiment, the method of pushing the version number by the server is adopted to realize that the terminal pulls the pendant list again only when the version list is updated, that is, the server carries the version number of the pendant list of the latest version of the web page view in the information (such as data update response and data update information) sent to the terminal, and the terminal determines whether to pull the pendant list again for the web page view by judging the version number, so that the pendant list is pulled again only when the pendant list is updated, the transmission amount of data can be reduced, and network resources can be saved.
In this embodiment, after receiving a list acquisition request sent by a terminal, a server may acquire a pendant list configured for a web page view, where the pendant list includes acquisition addresses and layout information of multiple pendants, and send the configured pendant list to the terminal, so that the terminal may acquire the multiple pendants from the server according to the acquisition addresses included in the pendant list and display the multiple pendants in the web page view according to the layout information included in the pendant list.
In order to better implement the above method, an embodiment of the present invention provides a multi-pendant display apparatus, as shown in fig. 12, the apparatus includes a receiving unit 601, an obtaining unit 602, and a sending unit 603, as follows:
a receiving unit 601, configured to receive a list acquisition request sent by a terminal, where the list acquisition request includes identification information of a web view loaded by the terminal through a browser kernel;
an obtaining unit 602, configured to obtain, according to the identification information, a first pendant list configured for the web page view, where the first pendant list includes obtained addresses and layout information of multiple first pendants;
a sending unit 603, configured to send the first pendant list to the terminal;
the receiving unit 601 is further configured to receive a pendant obtaining request sent by the terminal according to the obtaining address included in the first pendant list;
the sending unit 603 is further configured to send the plurality of first hangers to the terminal, so that the terminal displays the plurality of first hangers in the web page view according to the layout information included in the first hanger list.
In an embodiment, the receiving unit 601 is further configured to receive a data update request periodically sent by the terminal according to an acquisition address included in the first pendant list;
the sending unit 603 is further configured to send a data update response to the terminal, where the data update response includes update data of a plurality of first hangers, so that the terminal updates the corresponding first hanger shown in the web page view according to the update data of the plurality of first hangers.
In an embodiment, the first pendant list has a first version number, as shown in fig. 13, and the apparatus further includes:
a first updating unit 604, configured to update the first pendant list to obtain a second pendant list, set a second version number for the second pendant list, where the data update response includes the second version number;
the receiving unit 601 is further configured to receive a list update request sent by the terminal, where the list update request includes identification information of the web page view;
the obtaining unit 602 is further configured to obtain a second pendant list configured for the web page view according to the identification information, where the second pendant list includes obtaining addresses and layout information of a plurality of second pendants;
the sending unit 603 is further configured to send the second pendant list to the terminal;
the receiving unit 601 is further configured to receive a pendant obtaining request sent by the terminal according to the obtaining address included in the second pendant list;
the sending unit 603 is further configured to send the plurality of second hangers to the terminal, so that the terminal displays the plurality of second hangers in the web page view according to the layout information included in the second hanger list.
In one embodiment, as shown in fig. 13, the apparatus further comprises:
a detecting unit 605, configured to detect whether the plurality of first pendants are updated;
a pushing unit 606, configured to push data update information to the terminal when the plurality of first hangers are updated, where the data update information includes update data of the plurality of first hangers, so that the terminal updates the corresponding first hanger shown in the web page view according to the update data of the plurality of first hangers.
In an embodiment, the first pendant list has a first version number, as shown in fig. 13, and the apparatus further includes:
a second updating unit 607, configured to update the first pendant list to obtain a third pendant list, set a third version number for the third pendant list, where the data updating information includes the third version number;
the receiving unit 601 is further configured to receive a list update request sent by the terminal, where the list update request includes identification information of the web page view;
the obtaining unit 602 is further configured to obtain a third pendant list configured for the web page view according to the identification information, where the third pendant list includes obtaining addresses and layout information of a plurality of third pendants;
the sending unit 603 is further configured to send the third pendant list to the terminal;
the receiving unit 601 is further configured to receive a pendant obtaining request sent by the terminal according to the obtaining address included in the third pendant list;
the sending unit 603 is further configured to send the plurality of third hangers to the terminal, so that the terminal displays the plurality of third hangers in the web page view according to the layout information included in the third hanger list.
It should be noted that, when the multiple pendant display device provided in the foregoing embodiment displays multiple pendants, only the division of the functional modules is illustrated, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the multi-pendant display device provided by the above embodiment and the corresponding multi-pendant display method belong to the same concept, and the specific implementation process is detailed in the method embodiment, and is not described herein again.
In this embodiment, after the receiving unit receives a list acquisition request sent by the terminal, the acquiring unit may acquire a pendant list configured for the web page view, where the pendant list includes acquisition addresses and layout information of multiple pendants, and the sending unit sends the configured pendant list to the terminal, so that the terminal may acquire the multiple pendants from the server according to the acquisition addresses included in the pendant list, and display the multiple pendants in the web page view according to the layout information included in the pendant list, that is, by configuring the pendant list for the web page view, displaying the multiple pendants in one web page view is realized on the terminal side.
Accordingly, an embodiment of the present invention further provides a server, as shown in fig. 14, where the server may be an electronic device that is formed by a cluster system and is combined into one or each unit function separately for implementing each unit function, and the server at least includes a database for storing data and a processor for processing data, or includes a storage medium disposed in the identification server or a storage medium disposed separately.
As for the Processor for Processing data, when executing Processing, the Processor may be implemented by a microprocessor, a Central Processing Unit (CPU), a Digital Signal Processor (DSP), or a programmable logic Array (FPGA); for the storage medium, the storage medium contains operation instructions, which may be computer executable codes, and the operation instructions implement the steps in the flow of the application downloading method according to the above-described embodiment of the present invention.
Fig. 14 shows an example of a hardware entity 700 of the server, which includes a processor 701, a storage medium 702, and at least one external communication interface 703, where the processor 701, the storage medium 702, and the external communication interface 703 are all connected by a bus 704.
It should be noted that: the above description related to the server item is similar to the corresponding method description, and the description of the beneficial effects of the same method is not repeated here. For technical details not disclosed in the server embodiment of the present invention, refer to the description of the corresponding method embodiment of the present invention.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present invention provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the multiple pendant display methods provided in the embodiment of the present invention. For example, the instructions may perform the steps of:
opening a webpage view in a browser kernel; pulling a first pendant list configured for the webpage view from a server, wherein the first pendant list comprises the acquired addresses and layout information of a plurality of first pendants; acquiring a plurality of first pendants from the server according to the acquisition addresses included in the first pendant list; and displaying a plurality of first pendants in the webpage view according to the layout information included in the first pendant list.
The embodiment of the present invention further provides another storage medium, where a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the multiple pendant implementation methods provided in the embodiments of the present invention. For example, the instructions may perform the steps of:
receiving a list acquisition request sent by a terminal, wherein the list acquisition request comprises identification information of a webpage view loaded by the terminal through a browser kernel; acquiring a first pendant list configured for the webpage view according to the identification information, wherein the first pendant list comprises acquisition addresses and layout information of a plurality of first pendants; sending the first pendant list to the terminal; receiving a pendant obtaining request sent by the terminal according to the obtaining address included in the first pendant list; and sending the plurality of first pendants to the terminal, so that the terminal displays the plurality of first pendants in the webpage view according to the layout information included in the first pendant list.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any one of the multiple pendant display methods provided in the embodiments of the present invention, the beneficial effects that can be achieved by any one of the multiple pendant display methods provided in the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

Claims (14)

1. A multi-pendant display method is applied to a live application program, the live application program comprises a plurality of pendants, the pendants are realized through a webpage view webview, and the method comprises the following steps:
determining whether the live broadcast room selected by the user to enter has an activity operated by a pendant;
if activities operated by the pendants exist in the live broadcast room, sending a webpage view list acquisition request to a server to acquire a webpage view list from the server, wherein the webpage view list comprises identification information of at least one webpage view to be loaded;
loading a webpage view corresponding to the identification information in a plurality of webpage views of a browser kernel on a live broadcast page of the live broadcast room through the browser kernel;
sending a list acquisition request to the server to pull a first pendant list configured for the webpage view from the server, wherein the first pendant list comprises acquisition addresses and layout information of a plurality of first pendants;
acquiring a plurality of first pendants from the server according to the acquisition addresses included in the first pendant list;
and displaying a plurality of first pendants in the webpage view corresponding to the first pendant list according to the layout information included in the first pendant list, wherein at least one first pendant is displayed in one webpage view.
2. The multi-pendant display method of claim 1, further comprising:
according to the acquired address included in the first pendant list, a data updating request is sent to the server periodically;
receiving a data updating response returned by the server, wherein the data updating response comprises updating data of a plurality of first pendants;
and updating the corresponding first pendant displayed in the webpage view according to the updating data of the plurality of first pendants.
3. The method for displaying multiple pendants according to claim 2, wherein the first pendant list has a first version number, the data update response includes a second version number, and after receiving the data update response returned by the server, the method further includes:
judging whether the first version number is consistent with the second version number;
if not, pulling a second pendant list configured for the webpage view from the server, and updating the first pendant list into the second pendant list, wherein the second pendant list has the second version number, and the second pendant list comprises the acquired addresses and layout information of a plurality of second pendants;
acquiring a plurality of second pendants from the server according to the acquisition addresses included in the second pendant list;
and displaying a plurality of second pendants in the webpage view according to the layout information included in the second pendant list.
4. The multi-pendant display method of claim 1, further comprising:
receiving data updating information pushed by the server, wherein the data updating information comprises updating data of a plurality of first pendants;
and updating the corresponding first pendant displayed in the webpage view according to the updating data of the plurality of first pendants.
5. The method for displaying multiple pendants according to claim 4, wherein the first pendant list has a first version number, the data update information includes a third version number, and after receiving the data update information pushed by the server, the method further includes:
judging whether the first version number is consistent with the third version number;
if not, pulling a third pendant list configured for the webpage view from the server, and updating the first pendant list into the third pendant list, wherein the third pendant list has the third version number, and the third pendant list comprises the acquired addresses and layout information of a plurality of third pendants;
acquiring a plurality of third pendants from the server according to the acquisition addresses included in the third pendant list;
and displaying the plurality of third pendants in the webpage view according to the layout information included in the third pendant list.
6. The method for displaying multiple pendants according to claim 1, wherein the pendants displayed in the webpage view are used for displaying relevant data of corresponding activities.
7. The multi-pendant display method of claim 1, wherein said loading the web page view through the browser kernel comprises:
acquiring identification information of a webpage view to be loaded from the server;
and loading the webpage view on a live interface of the live broadcast room through a browser inner core according to the identification information.
8. The multi-pendant display method of claim 7, wherein the loading of the webpage view on a live interface of the live broadcast room through a browser kernel according to the identification information comprises:
and loading a first webpage view and a second webpage view on a live broadcast interface of the live broadcast room through a browser kernel according to the identification information, wherein the first webpage view is positioned on the left side of the live broadcast interface of the live broadcast room, and the second webpage view is positioned on the right side of the live broadcast interface of the live broadcast room.
9. A multi-pendant display device applied to a live application program, wherein the live application program comprises a plurality of pendants, and the pendants are realized through a web view webview, and the device comprises:
the loading unit is used for determining whether the live broadcast room selected by the user to enter has activities operated by the pendant; if activities operated by the pendants exist in the live broadcast room, sending a webpage view list acquisition request to a server to acquire a webpage view list from the server, wherein the webpage view list comprises identification information of at least one webpage view to be loaded; loading a webpage view corresponding to the identification information in a plurality of webpage views of the browser kernel through the browser kernel;
the pull unit is used for pulling a first pendant list configured for the webpage view from a server, wherein the first pendant list comprises the acquisition addresses and layout information of a plurality of first pendants;
an obtaining unit, configured to obtain, from the server, a plurality of first hangers according to an obtaining address included in the first hanger list;
and the display unit is used for displaying a plurality of first pendants in the webpage view according to the layout information included in the first pendant list, wherein at least one first pendant is displayed in one webpage view.
10. The multiple pendant display device of claim 9, wherein said device further comprises:
the sending unit is used for sending a data updating request to the server periodically according to the acquired address included in the first pendant list;
the first receiving unit is used for receiving a data updating response returned by the server, wherein the data updating response comprises updating data of a plurality of first pendants;
and the first updating unit is used for updating the corresponding first pendant displayed in the webpage view according to the updating data of the first pendants.
11. The multi-pendant display device of claim 10 wherein the first pendant list has a first version number and the data update response includes a second version number, the device further comprising:
a first judging unit, configured to judge whether the first version number is consistent with the second version number;
the pull unit is further configured to pull a second pendant list configured for the web page view from the server and update the first pendant list to the second pendant list when the first version number is not consistent with the second version number, where the second pendant list has the second version number, and the second pendant list includes acquired addresses and layout information of a plurality of second pendants;
the obtaining unit is further configured to obtain a plurality of second pendants from the server according to obtaining addresses included in the second pendant list;
the display unit is further configured to display the plurality of second hangers in the web page view according to layout information included in the second hanger list.
12. The multiple pendant display device of claim 9, wherein said device further comprises:
the second receiving unit is used for receiving data updating information pushed by the server, and the data updating information comprises updating data of a plurality of first pendants;
and the second updating unit is used for updating the corresponding first pendant displayed in the webpage view according to the updating data of the first pendants.
13. The multi-pendant display device of claim 12, wherein the first pendant list has a first version number, wherein the data update information includes a third version number, and wherein the device further comprises:
a second judging unit, configured to judge whether the first version number is consistent with the third version number;
the pull unit is further configured to pull a third pendant list configured for the web page view from the server and update the first pendant list to the third pendant list when the first version number is not consistent with the third version number, where the third pendant list has the third version number, and the third pendant list includes acquired addresses and layout information of a plurality of third pendants;
the obtaining unit is further configured to obtain a plurality of third pendants from the server according to obtaining addresses included in the third pendant list;
the display unit is further configured to display the plurality of third hangers in the web page view according to layout information included in the third hanger list.
14. A storage medium for storing a plurality of instructions adapted to be loaded by a processor and to perform the method according to any one of claims 1 to 8.
CN201810894206.1A 2018-08-08 2018-08-08 Multi-pendant display method and device and storage medium Active CN110830839B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810894206.1A CN110830839B (en) 2018-08-08 2018-08-08 Multi-pendant display method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810894206.1A CN110830839B (en) 2018-08-08 2018-08-08 Multi-pendant display method and device and storage medium

Publications (2)

Publication Number Publication Date
CN110830839A CN110830839A (en) 2020-02-21
CN110830839B true CN110830839B (en) 2022-03-08

Family

ID=69533758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810894206.1A Active CN110830839B (en) 2018-08-08 2018-08-08 Multi-pendant display method and device and storage medium

Country Status (1)

Country Link
CN (1) CN110830839B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111405300A (en) * 2020-02-28 2020-07-10 北京达佳互联信息技术有限公司 Pendant display method and device, electronic equipment and computer readable storage medium
CN111857908A (en) * 2020-06-15 2020-10-30 北京达佳互联信息技术有限公司 Pendant display control method, device and system, electronic equipment, server and storage medium
CN111857907A (en) * 2020-06-15 2020-10-30 北京达佳互联信息技术有限公司 Pendant display control method, device and system, electronic equipment, server and storage medium
CN113747207A (en) * 2021-08-11 2021-12-03 北京达佳互联信息技术有限公司 Data transmission method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105549806A (en) * 2014-11-04 2016-05-04 阿里巴巴集团控股有限公司 Method and system for implementing mixed type client interface
CN105898438A (en) * 2016-04-07 2016-08-24 广州华多网络科技有限公司 Live broadcasting room dynamic configuration method, device, system and server
CN106792188A (en) * 2016-12-06 2017-05-31 腾讯数码(天津)有限公司 A kind of data processing method of live page, device and system
CN107018450A (en) * 2017-03-17 2017-08-04 北京潘达互娱科技有限公司 A kind of page display method and device
CN107918643A (en) * 2017-10-30 2018-04-17 福建天晴数码有限公司 A kind of Webpage display process and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006055983A2 (en) * 2004-11-22 2006-05-26 Truveo, Inc. Method and apparatus for a ranking engine
CN104063460B (en) * 2014-06-25 2018-10-09 北京奇虎科技有限公司 A kind of method and apparatus loading webpage in a browser
CN105354013B (en) * 2014-08-18 2019-07-23 阿里巴巴集团控股有限公司 Application interface rendering method and device
CN105955739A (en) * 2016-04-29 2016-09-21 腾讯科技(深圳)有限公司 Graphical interface processing method, apparatus and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105549806A (en) * 2014-11-04 2016-05-04 阿里巴巴集团控股有限公司 Method and system for implementing mixed type client interface
CN105898438A (en) * 2016-04-07 2016-08-24 广州华多网络科技有限公司 Live broadcasting room dynamic configuration method, device, system and server
CN106792188A (en) * 2016-12-06 2017-05-31 腾讯数码(天津)有限公司 A kind of data processing method of live page, device and system
CN107018450A (en) * 2017-03-17 2017-08-04 北京潘达互娱科技有限公司 A kind of page display method and device
CN107918643A (en) * 2017-10-30 2018-04-17 福建天晴数码有限公司 A kind of Webpage display process and terminal

Also Published As

Publication number Publication date
CN110830839A (en) 2020-02-21

Similar Documents

Publication Publication Date Title
CN110830839B (en) Multi-pendant display method and device and storage medium
CN106792188B (en) Data processing method, device and system for live broadcast page and storage medium
US20170311024A1 (en) Pre-roll advertisement playing method, terminal, and video server
CN108549567B (en) Animation display method, device, terminal, server and storage medium
CN110795666B (en) Webpage generation method, device, terminal and storage medium
CN110990741B (en) Page display method and device, electronic equipment, server and storage medium
CN104244032A (en) Method and device for pushing multimedia data
CN110222288B (en) Page display method, device and storage medium
CN111178012A (en) Form rendering method, device and equipment and storage medium
CN107612974B (en) Information recommendation method and device, mobile terminal and storage medium
CN108184143B (en) Method and device for acquiring resources
CN109328329A (en) Using the processing method of data, device and terminal device
CN102137191A (en) Method for providing information service on mobile phone
CN104281610B (en) The method and apparatus for filtering microblogging
US10757060B2 (en) Message notification method and terminal
CN110633438A (en) News event processing method, terminal, server and storage medium
CN109224455A (en) Interactive approach, device and the server of virtual pet
CN109683760B (en) Recent content display method, device, terminal and storage medium
CN112748970B (en) Message display method and terminal equipment
EP2897044B1 (en) Method and apparatus for providing help information and user device adapted to the method
CN112925878A (en) Data processing method and device
CN113220954A (en) Information display method and device and projection equipment
CN115023922A (en) Information pushing method and device, server and storage medium
CN112748835A (en) Terminal, server, recent task list display method and application recommendation method
CN112818143B (en) Page display method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40021679

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant