Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first client may be referred to as a second client, and similarly, a second client may be referred to as a first client, without departing from the scope of the present invention. Both the first client and the second client are clients, but they are not the same client.
Fig. 1 is a schematic application environment diagram of an information delivery method and apparatus in an embodiment. As shown in fig. 1, the application environment includes aserver 110 and aterminal 120. Theserver 110 and theterminal 120 perform data communication through a network. Theserver 110 stores the information to be delivered and transmits the information to be delivered to theterminal 120. Theterminal 120 detects a blank area with a blank area larger than a preset space threshold in the page layout, and the blank area is used as an information release area, and the information to be released is drawn to the information release area, so that the information release is realized, the blank area in the page layout is reasonably utilized, the interface space is saved, and the utilization rate of the interface space is improved.
Fig. 2A is a schematic diagram of an internal structure of the terminal in one embodiment. As shown in fig. 2A, the terminal includes a processor, a non-volatile storage medium, an internal memory and a network interface, a display screen, and an input device, which are connected through a system bus. The terminal comprises a nonvolatile storage medium and an information release device, wherein the nonvolatile storage medium of the terminal stores an operating system, and the information release device is used for realizing an information release method. The processor is used for providing calculation and control capability and supporting the operation of the whole terminal. An internal memory in the terminal provides an environment for operation of the information delivery apparatus in the non-volatile storage medium, and the internal memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor can be caused to execute an information delivery method. The network interface is used for network communication with the server. The display screen of the terminal can be a liquid crystal display screen or an electronic ink display screen, and the input device can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a shell of the terminal, or an external keyboard, a touch pad or a mouse. The terminal can be a mobile phone, a tablet computer, a personal digital assistant or a wearable device. Those skilled in the art will appreciate that the configuration shown in fig. 2A is a block diagram of only a portion of the configuration relevant to the present application, and does not constitute a limitation on the terminal to which the present application is applied, and a particular terminal may include more or less components than those shown in the drawings, or may combine certain components, or have a different arrangement of components.
Fig. 2B is a schematic diagram of an internal structure of a server (or a cloud, etc.) in one embodiment. As shown in fig. 2B, the server includes a processor, a non-volatile storage medium, an internal memory, and a network interface connected by a system bus. The information release device is used for realizing an information release method suitable for the server. The processor of the server is used for providing calculation and control capacity and supporting the operation of the whole server. The internal memory of the server provides an environment for the operation of the information delivery apparatus in the non-volatile storage medium, and the internal memory may store computer-readable instructions, which, when executed by the processor, may cause the processor to execute an information delivery method. The network interface of the server is used for communication with an external terminal through a network connection. The server may be implemented as a stand-alone server or as a server cluster consisting of a plurality of servers. Those skilled in the art will appreciate that the architecture shown in fig. 2B is merely a block diagram of some of the structures associated with the present solution and does not constitute a limitation on the servers to which the present solution applies, and that a particular server may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
Fig. 3 is a flowchart of an information delivery method according to an embodiment. As shown in fig. 3, an information delivery method, described in terms of terminal angle, includessteps 302 to 310:
step 302, obtain the page layout and content display area.
In this embodiment, the page layout refers to the distribution of each component and the gaps between the components on the display interface after an application or a web page is opened. The components may include one or more of a control area, a search box area, a navigation bar area, a title area, and the like. The content presentation area refers to an area occupied by the presentation of the content on the page.
Step 304, identifying each blank area and the area of each blank area in the page layout according to the page layout and the content display area.
In this embodiment, each blank area in the page layout can be obtained according to the page layout and the content display area; and obtaining the area corresponding to each blank area according to the length and the width of each blank area.
Specifically, edge location blank areas such as borders, tops, etc. within the page layout may be identified. Each blank area is represented by a rectangular box.
FIG. 4 is a schematic diagram of blank regions in a page layout. As shown in FIG. 4, a blank area, which may be a firstblank area 42, is within the search box in the page layout; a blank area on the navigation bar, which may be a secondblank area 44; the interstitial area between the first content presentation area and the second content presentation area is a blank area, which may be a thirdblank area 46.
Step 306, if the area of the blank area is larger than the preset space threshold, determining that the blank area is an information delivery area.
In this embodiment, the area of each blank area is compared with a preset space threshold, and the blank areas with areas larger than the preset space threshold are information delivery areas, for example, the firstblank area 42, the secondblank area 44, and the thirdblank area 46 can all be information delivery areas. The preset space threshold value can be set according to needs and can also be set according to the minimum size of the information to be released.
And 308, acquiring information to be released.
Specifically, the information to be delivered may include one or more of text data, pictures, and rich media data.
In one embodiment, the step of obtaining information to be delivered includes: and obtaining the information with the highest click rate in the current page, and taking the information with the highest click rate as the information to be released.
In this embodiment, the click times of each piece of information in the current page may be obtained and counted to obtain the click rate of each piece of information, and the information with the highest click rate is screened out to be used as the information to be released.
In one embodiment, the step of obtaining information to be delivered includes: and acquiring current hotspot information, and taking the hotspot information as information to be released.
In this embodiment, a hot spot information base may be pre-established, and one or more pieces of hot spot information are recorded in the hot spot information base. The hot spot information refers to the topic which is focused by the user currently. The hotspot information recorded in the hotspot information base can be sorted from most to few or from few to many according to the attention times. And screening out the hotspot information with the most attention times from a hotspot information base as information to be released, or sorting out a predetermined number of hotspot information with the most attention times as the information to be released.
And updating the hotspot information base regularly. And updating the hotspot information base by continuously collecting the current hotspot information. The regular period may be one day, one week, etc.
In one embodiment, the step of obtaining information to be delivered includes: acquiring a user identifier, acquiring historical browsing data of the user identifier according to the user identifier, acquiring an information type corresponding to the user identifier according to the historical browsing data, acquiring hotspot information with the same information type from a hotspot information base, and taking the hotspot information with the same information type as information to be released.
In this embodiment, the user identifier is a character string used to uniquely represent the user identity. The string of characters may include one or more of letters, numbers, characters, and the like. The method comprises the steps that after a terminal acquires a user identifier and logs in, the user identifier is uploaded to a server, the server acquires corresponding historical browsing data from a mapping relation between the user identifier and the historical browsing data according to the user identifier, acquires an information type corresponding to the user identifier according to the historical browsing data, acquires hot spot information of the same type as the information type from a hot spot information base, and returns the hot spot information of the same type as the information type to the terminal as information to be released. By using the hotspot information with the same information type as the information to be released, the hotspot information more conforms to the attention requirement of the user, and the attention degree of the user to the information is improved.
In one embodiment, the step of obtaining information to be delivered includes: acquiring operation behavior data of a user on a current page; and acquiring corresponding information to be released according to the operation behavior data.
In this embodiment, the operation behavior data of the user on the current page may be clicking a certain link, an icon, a button control, or the like, the type of the information focused by the user may be obtained by analyzing the operation behavior data of the user, and the information to be delivered, which is the same as the type of the information focused by the user, may be found from the information to be delivered according to the type of the information focused by the user. The information type may be a movie, a television show, a variety program, a star, a game, a sport, etc.
Or analyzing the operation behavior data of the user to obtain the information concerned by the user, and searching the information to be released which is the same as or related to the information concerned by the user from the information to be released according to the information concerned by the user.
The information may be a television name, a movie name, a star, etc. The associated information to be delivered refers to information to be delivered which has a certain relationship with the information. For example, information related to a certain movie name may be a trailer, a first show, etc. of the movie name.
And step 310, drawing the information to be delivered to the information delivery area.
FIG. 5A is a diagram illustrating information to be posted drawn into a first blank area within a search box according to an embodiment; FIG. 5B is a diagram illustrating information to be posted drawn to a second blank area of the navigation bar, in accordance with an embodiment; fig. 5C is a schematic diagram of drawing the information to be placed to the third blank area of the first content display area and the second content display area. As shown in fig. 5A, the information to be placed is "the sixth season of the game of the right", and is drawn to the firstblank area 52. As shown in fig. 5B, the information to be delivered is "snowy head portrait", and is drawn to the secondblank area 54. As shown in fig. 5C, the information to be delivered is "snowy head portrait", and is drawn to the thirdblank area 56.
According to the information delivery method, the blank area in the page layout is obtained by obtaining the page layout and the content display area, the blank area with the area larger than the preset space threshold is obtained and used as the information delivery area, the information to be delivered is drawn into the information delivery area, the information is not required to be displayed in a full screen mode, the space of an interface is saved, and the utilization rate of the interface space of the mobile terminal is improved; and the information to be released can guide the user to search and check, so that the efficiency of searching the hotspot information by the user is improved.
In one embodiment, the information delivery method further includes (1) to (5):
(1) and when the page change is detected, acquiring the changed page layout and content display area.
In particular, detecting a page change may be detecting a user turning a page, or triggering a link to jump to a new page, etc.
(2) And identifying each blank area and the area of each blank area in the changed page layout according to the changed page layout and content display area.
In this embodiment, each blank area in the page layout can be obtained according to the changed page layout and content display area; and obtaining the area corresponding to each blank area according to the length and the width of each blank area.
(3) And if the area of the blank area is larger than the preset space threshold value, determining the blank area as a new information delivery area.
The new information delivery area refers to the information delivery area in the changed page.
(4) And acquiring the changed page data, and acquiring corresponding information to be released according to the changed page data.
Specifically, if the page changes, the page data also changes, the changed page data is obtained, and the corresponding information to be delivered is obtained according to the changed page data. The information to be delivered may include one or more of text data, pictures, rich media data.
The information with the highest click rate can be acquired from the changed page data as the information to be released, or the first information in the changed page data is acquired, and the corresponding information to be released is acquired from the information to be released according to the first information, and the like, but not limited thereto.
The operation behavior data of the page after the change of the user can also be obtained; and acquiring corresponding information to be released according to the operation behavior data.
The operation behavior data of the user on the current page can be a certain link or an icon or a button control, the type of the information concerned by the user can be obtained by analyzing the operation behavior data of the user, and the information to be released, which is the same as the type of the information concerned by the user, is searched from the information to be released according to the type of the information concerned by the user. The information type may be a movie, a television show, a variety program, a star, a game, a sport, etc.
Or analyzing the operation behavior data of the user to obtain the information concerned by the user, and searching the information to be released which is the same as or related to the information concerned by the user from the information to be released according to the information concerned by the user.
The information may be a television name, a movie name, a star, etc. The associated information to be delivered refers to information to be delivered which has a certain relationship with the information. For example, information related to a certain movie name may be a trailer, a first show, etc. of the movie name.
(5) And drawing the information to be released corresponding to the changed page data to a new information releasing area.
According to the information delivery method, when the page change is detected, the page layout and the content display area are acquired again for the changed page, the new information delivery area is determined, the new information to be delivered is acquired according to the changed page data, the new information to be delivered is drawn into the new information delivery area, and the corresponding information delivery is realized in real time according to the page change.
In one embodiment, the information delivery area is multiple.
After the step of obtaining the information to be delivered, or obtaining the changed page data, and obtaining the corresponding information to be delivered according to the changed page data, the information delivery method further includes: and matching the information to be released with a plurality of information releasing areas to obtain the information releasing areas matched with the information to be released.
Further, the step of matching the information to be delivered with a plurality of information delivery areas to obtain an information delivery area matched with the information to be delivered includes: acquiring the size of a carrier frame of the information to be released and the size of the information releasing area; and judging whether the difference between the size of the carrier frame and the size of the information release area is within an error range, if so, matching the information to be released with the information release area, and if not, mismatching the information to be released with the information release area.
In this embodiment, the carrier frame refers to a rectangular frame or an arc frame for carrying information. The error range can be determined according to the requirement, such as the error range is 0 to 1, or 0 to 2, etc., but is not limited thereto.
In one embodiment, the information delivery method further includes: when the information to be released is not matched with the information releasing area, the size of the carrier frame of the information to be released is larger than that of the information releasing area, and the carrier frame of the information to be released can be subjected to desalination treatment.
In one embodiment, the step of matching the information to be delivered with a plurality of information delivery areas to obtain an information delivery area matching the information to be delivered includes: acquiring the size of a carrier frame of the information to be released and the size of the information releasing area; and judging that the size of the information delivery area is larger than or equal to the size of the carrier frame, and matching the information delivery area with the information to be delivered.
In one embodiment, the information to be delivered includes text data required by the carrier box, a network address of the picture, and a carrier box size.
And storing the information to be released on the server in a JASON form. An array is adopted, and each element in the array is information to be released. Each piece of information to be put in the array comprises text data required by the carrier frame, the network address of the picture and the size of the carrier frame. For example, the specific storage form of three pieces of information to be delivered on the server is:
{“info”:[
{ "text": star "," Img ": a.png", "size": 100 × 200 "},
{“text”:”lady gaga“,“Img”:”B.png”,”size”:”200*200”},
{ "text": game of the right "," Img ": C.png", "size": 300 x 200 "}, ] }
The terminal downloads a JASON file containing the information to be launched from the server through an HTTP protocol or other protocols, analyzes the JASON file, and stores the analyzed data in a data table. The data table contains three columns "text data", "picture address" and "carrier box size". As shown in table 1.
| Text data | Picture address | Size of carrier frame |
| Star grandpa | A.png | 100*200 |
| lady gaga | B.png | 200*200 |
| Game of rights | C.png | 300*200 |
Fig. 6 is a flowchart of mapping information to be delivered to an information delivery area according to an embodiment. As shown in fig. 6, the step of mapping the information to be delivered to the information delivery area includessteps 602 to 610:
step 602, downloading the corresponding picture according to the network address of the picture.
In this embodiment, the terminal downloads the corresponding picture from the server according to the network address of the picture.
Step 604, drawing the picture.
And step 606, drawing the carrier frame on the upper layer of the picture.
And step 608, drawing the text data required by the carrier frame on the upper layer of the carrier frame.
In this embodiment, the upper layer of the drawing may cover the lower layer of the drawing, and the drawing may be performed by shifting a portion of the drawing and overlapping a portion of the drawing, as shown in fig. 7.
And step 610, rendering the drawn picture, the carrier frame and the text data to the information delivery area.
In this embodiment, the drawn picture, the carrier frame and the text data are rendered to the information delivery area for display.
By drawing layer by layer and overlapping a part of space, the space is saved.
The invention also provides an information delivery method, which is described in terms of a server, and comprises the following steps: issuing information to be released, drawing the information to be released to an information releasing area, wherein the information releasing area is an information releasing area obtained by acquiring a page layout and a content display area by a terminal, identifying each blank area and the area of each blank area in the page layout according to the page layout and the content display area, and acquiring the blank area with the area larger than a preset space threshold.
Fig. 8 is a block diagram of an information delivery apparatus according to an embodiment. As shown in fig. 8, an information delivery apparatus, which runs on a terminal, includes a first obtainingmodule 802, an identifyingmodule 804, a determiningmodule 806, a second obtainingmodule 808, and adrawing module 810. Wherein:
the first obtainingmodule 802 is used for obtaining a page layout and a content display area.
In this embodiment, the page layout refers to the distribution of each component and the gaps between the components on the display interface after an application or a web page is opened. The components may include one or more of a control area, a search box area, a navigation bar area, a title area, and the like. The content presentation area refers to an area occupied by the presentation of the content on the page.
The identifyingmodule 804 is configured to identify each blank area and an area of each blank area in the page layout according to the page layout and the content display area.
In this embodiment, the identifyingmodule 804 can obtain each blank area in the page layout according to the page layout and the content display area; and obtaining the area corresponding to each blank area according to the length and the width of each blank area.
Specifically, edge location blank areas such as borders, tops, etc. within the page layout may be identified. Each blank area is represented by a rectangular box.
The determiningmodule 806 is configured to determine that the blank area is an information delivery area if the area of the blank area is greater than a preset space threshold.
In this embodiment, the area of each blank region is compared with a preset space threshold, and the blank region with the area larger than the preset space threshold is an information delivery region. The preset space threshold value can be set according to needs and can also be set according to the minimum size of the information to be released.
The second obtainingmodule 808 is configured to obtain information to be delivered.
In an embodiment, the second obtainingmodule 808 is further configured to obtain information with a highest click rate in the current page, and use the information with the highest click rate as the information to be delivered.
In this embodiment, the click times of each piece of information in the current page may be obtained and counted to obtain the click rate of each piece of information, and the information with the highest click rate is screened out to be used as the information to be released.
In an embodiment, the second obtainingmodule 808 is further configured to obtain current hotspot information, and use the hotspot information as information to be released.
In this embodiment, a hot spot information base may be pre-established, and one or more pieces of hot spot information are recorded in the hot spot information base. The hot spot information refers to the topic which is focused by the user currently. The hotspot information recorded in the hotspot information base can be sorted from most to few or from few to many according to the attention times. And screening out the hotspot information with the most attention times from a hotspot information base as information to be released, or sorting out a predetermined number of hotspot information with the most attention times as the information to be released.
And updating the hotspot information base regularly. And updating the hotspot information base by continuously collecting the current hotspot information. The regular period may be one day, one week, etc.
In an embodiment, the second obtainingmodule 808 is further configured to obtain a user identifier, obtain historical browsing data of the user identifier according to the user identifier, obtain an information type corresponding to the user identifier according to the historical browsing data, obtain hotspot information of the same type as the information type from a hotspot information library, and use the hotspot information of the same type as the information to be released.
In this embodiment, the user identifier is a character string used to uniquely represent the user identity. The string of characters may include one or more of letters, numbers, characters, and the like. The method comprises the steps that after a terminal acquires a user identifier and logs in, the user identifier is uploaded to a server, the server acquires corresponding historical browsing data from a mapping relation between the user identifier and the historical browsing data according to the user identifier, acquires an information type corresponding to the user identifier according to the historical browsing data, acquires hot spot information of the same type as the information type from a hot spot information base, and returns the hot spot information of the same type as the information type to the terminal as information to be released. By using the hotspot information with the same information type as the information to be released, the hotspot information more conforms to the attention requirement of the user, and the attention degree of the user to the information is improved.
In an embodiment, the second obtainingmodule 808 is further configured to obtain operation behavior data of the user on the current page, and obtain corresponding information to be delivered according to the operation behavior data.
The operation behavior data of the user on the current page can be a certain link or an icon or a button control, the type of the information concerned by the user can be obtained by analyzing the operation behavior data of the user, and the information to be released, which is the same as the type of the information concerned by the user, is searched from the information to be released according to the type of the information concerned by the user. The information type may be a movie, a television show, a variety program, a star, a game, a sport, etc.
Or analyzing the operation behavior data of the user to obtain the information concerned by the user, and searching the information to be released which is the same as or related to the information concerned by the user from the information to be released according to the information concerned by the user.
The information may be a television name, a movie name, a star, etc. The associated information to be delivered refers to information to be delivered which has a certain relationship with the information. For example, information related to a certain movie name may be a trailer, a first show, etc. of the movie name.
Thedrawing module 810 is configured to draw the information to be delivered to the information delivery area.
According to the information release device, the blank area in the page layout is obtained by obtaining the page layout and the content display area, the blank area with the area larger than the preset space threshold is obtained and is used as the information release area, the information to be released is drawn in the information release area, the information does not need to be displayed in a full screen mode, the space of an interface is saved, and the utilization rate of the interface space of the mobile terminal is improved.
In one embodiment, the first obtainingmodule 802 is further configured to obtain the changed page layout and content display area when detecting the page change.
The identifyingmodule 804 is further configured to identify each blank region and an area of each blank region in the changed page layout according to the changed page layout and content display region.
The determiningmodule 806 is further configured to determine that the blank area is a new information delivery area if the area of the blank area is greater than a preset space threshold.
The new information delivery area refers to the information delivery area in the changed page.
The second obtainingmodule 808 is further configured to obtain the changed page data, and obtain the corresponding information to be released according to the changed page data.
Specifically, if the page changes, the page data also changes, the changed page data is obtained, and the corresponding information to be delivered is obtained according to the changed page data. The information to be delivered may include one or more of text data, pictures, rich media data.
The information with the highest click rate can be acquired from the changed page data as the information to be released, or the first information in the changed page data is acquired, and the corresponding information to be released is acquired from the information to be released according to the first information, and the like, but not limited thereto.
The operation behavior data of the page after the change of the user can also be obtained; and acquiring corresponding information to be released according to the operation behavior data.
The operation behavior data of the user on the current page can be a certain link or an icon or a button control, the type of the information concerned by the user can be obtained by analyzing the operation behavior data of the user, and the information to be released, which is the same as the type of the information concerned by the user, is searched from the information to be released according to the type of the information concerned by the user. The information type may be a movie, a television show, a variety program, a star, a game, a sport, etc.
Or analyzing the operation behavior data of the user to obtain the information concerned by the user, and searching the information to be released which is the same as or related to the information concerned by the user from the information to be released according to the information concerned by the user.
The information may be a television name, a movie name, a star, etc. The associated information to be delivered refers to information to be delivered which has a certain relationship with the information. For example, information related to a certain movie name may be a trailer, a first show, etc. of the movie name.
Thedrawing module 810 is further configured to draw the information to be delivered corresponding to the changed page data to a new information delivery area.
Fig. 9 is a block diagram showing a configuration of an information delivery apparatus according to another embodiment. As shown in fig. 9, an information delivery apparatus, which runs on a terminal, includes amatching module 812 in addition to a first obtainingmodule 802, an identifyingmodule 804, a determiningmodule 806, a second obtainingmodule 808, and adrawing module 810. Wherein:
the information delivery areas are multiple;
thematching module 812 is configured to match the information to be delivered with a plurality of information delivery areas after the information to be delivered is acquired, so as to obtain an information delivery area matched with the information to be delivered.
In this embodiment, thematching module 812 is further configured to obtain a size of a carrier frame of the information to be delivered and a size of the information delivery area, and determine whether a difference between the size of the carrier frame and the size of the information delivery area is within an error range, if so, the information to be delivered is matched with the information delivery area, and if not, the information to be delivered is not matched with the information delivery area.
In this embodiment, the carrier frame refers to a rectangular frame or an arc frame for carrying information. The error range can be determined according to the requirement, such as the error range is 0 to 1, or 0 to 2, etc., but is not limited thereto.
In one embodiment, the information delivery apparatus further includes: and the processing module is used for enabling the size of the carrier frame of the information to be released to be larger than that of the information releasing area when the information to be released is not matched with the information releasing area, and enabling the carrier frame of the information to be released to adopt desalination processing.
In one embodiment, thematching module 812 is further configured to obtain a size of the carrier frame of the information to be delivered and a size of the information delivery area; and judging that the size of the information delivery area is larger than or equal to the size of the carrier frame, and matching the information delivery area with the information to be delivered.
In one embodiment, the information to be delivered includes text data required by the carrier frame, a network address of the picture, and a size of the carrier frame;
the drawing module is further used for downloading a corresponding picture according to the network address of the picture, drawing the carrier frame on the upper layer of the picture, drawing text data required by the carrier frame on the upper layer of the carrier frame, and rendering the drawn picture, carrier frame and text data to the information delivery area.
And storing the information to be released on the server in a jason form. An array is adopted, and each element in the array is information to be released. Each piece of information to be put in the array comprises text data required by the carrier frame, the network address of the picture and the size of the carrier frame.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.