BRIEF SUMMARY OF THE PRESENT DISCLOSURE
The embodiment of the disclosure provides an information pushing method, an information pushing device, a server and a storage medium, so that the server can completely display a group of banner images according to a set sequence, and the display effect of the banner images in the same group is improved.
In a first aspect, an embodiment of the present disclosure provides an information pushing method, including:
providing a target video to be pushed to a typesetting component, wherein the typesetting component is used for mixing and typesetting the target video and recommendation information, the recommendation information comprises at least one banner image group, each banner image group comprises a set number of banner images, and each banner image has a set typesetting number;
extracting image group typesetting results corresponding to the banner image groups from the typesetting results fed back by the typesetting component;
and updating the image group typesetting result included in the typesetting result according to the number of the banner images and the typesetting number of each banner image included in the image group typesetting result, and displaying the updated typesetting result.
Optionally, before providing the target video to be pushed to the composition component, the method further includes:
acquiring a target video matched with a video stream viewing request according to the video stream viewing request of a client;
displaying the updated typesetting result, comprising:
and providing the updated typesetting result for the client to display.
Optionally, before updating the layout result of the image group included in the layout result according to the number of the banner images included in the layout result of the image group and the layout number of each banner image, the method further includes:
pre-creating a preset number of banner image groups, and storing a corresponding display information table for each banner image group, wherein the display information table stores a group identifier and typesetting position information of each banner image in the group;
updating the image group typesetting result included in the typesetting result according to the number of the banner images and the typesetting number of each banner image included in the image group typesetting result, which specifically comprises the following steps:
acquiring a display information table corresponding to the banner image group according to the group identifier of the banner image group included in the image group typesetting result;
updating the image group typesetting result included in the typesetting result according to the number of the banner images, the typesetting number of each banner image and the typesetting position information of each banner image in the group included in the image group typesetting result.
Optionally, updating the image group layout result included in the layout result according to the number of the banner images, the layout number of each banner image, and the layout position information of each banner image in the group included in the image group layout result, including:
determining the number of the banner images in the banner image group according to the typesetting position information of each banner image in the group in the display information table;
deleting the image group typesetting result in the typesetting result if the number of the banner images included in the image group typesetting result is inconsistent with the number of the banner images included in the banner image group;
if the number of the banner images included in the image group layout result is consistent with the number of the banner images included in the banner image group, and the layout number of each banner image included in the image group layout result is inconsistent with the layout position information of each banner image in the group in the display information table, the layout number of each banner image is adjusted according to the layout position information of each banner image in the group.
In a second aspect, an embodiment of the present disclosure further provides an information pushing apparatus, including:
the typesetting module is used for providing the target video to be pushed to the typesetting component, the typesetting component is used for mixing and typesetting the target video and the recommendation information, the recommendation information comprises at least one banner image group, each banner image group comprises a set number of banner images, and each banner image has a set typesetting number;
the extraction module is used for extracting the image group typesetting result corresponding to the banner image group from the typesetting results fed back by the typesetting component;
and the updating module is used for updating the image group typesetting result included in the typesetting result according to the number of the banner images and the typesetting number of each banner image included in the image group typesetting result, and displaying the updated typesetting result.
Optionally, the method further includes:
the video request module is used for acquiring a target video matched with a video stream viewing request according to the video stream viewing request of the client before the target video to be pushed is provided for the typesetting component;
the update module specifically includes:
and the display unit is used for providing the updated typesetting result for the client to display.
Optionally, the method further includes:
the preprocessing module is used for pre-creating a preset number of banner image groups before updating the image group typesetting result included in the typesetting result according to the number of the banner images and the typesetting number of each banner image included in the image group typesetting result, and storing a corresponding display information table for each banner image group, wherein the display information table stores a group identifier and typesetting position information of each banner image in the group;
the update module specifically includes:
a display information table acquisition unit, configured to acquire a display information table corresponding to the banner image group according to the group identifier of the banner image group included in the image group layout result;
and the image group typesetting updating unit is used for updating the image group typesetting result included in the typesetting result according to the number of the banner images included in the image group typesetting result, the typesetting number of each banner image and the typesetting position information of each banner image in the group in the display information table.
Optionally, the image group layout updating unit is specifically configured to:
determining the number of the banner images in the banner image group according to the typesetting position information of each banner image in the group in the display information table;
deleting the image group typesetting result in the typesetting result if the number of the banner images included in the image group typesetting result is inconsistent with the number of the banner images included in the banner image group;
if the number of the banner images included in the image group layout result is consistent with the number of the banner images included in the banner image group, and the layout number of each banner image included in the image group layout result is inconsistent with the layout position information of each banner image in the group in the display information table, the layout number of each banner image is adjusted according to the layout position information of each banner image in the group.
In a third aspect, an embodiment of the present disclosure further provides a server, where the server includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the information push method provided by any embodiment of the disclosure.
In a fourth aspect, the embodiments of the present disclosure further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the information pushing method provided in any of the embodiments of the present disclosure.
According to the technical scheme of the embodiment of the disclosure, the target video to be pushed is provided for the typesetting component, the typesetting component is used for mixing and typesetting the target video and the recommendation information, the recommendation information comprises at least one banner image group, each banner image group comprises a set number of banner images, and each banner image has a set typesetting number; extracting image group typesetting results corresponding to the banner image groups from the typesetting results fed back by the typesetting component; according to the number of the banner images and the layout number of each banner image in the image group layout result, the image group layout result in the layout result is updated, and the updated layout result is displayed, so that the problem that the banner images in the same group cannot be completely and correctly displayed in the prior art is solved, the server can completely display a group of banner images according to the set sequence, and the display effect of the banner images in the same group is improved.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the disclosure and are not limiting of the disclosure. It should be further noted that, for the convenience of description, only some of the structures relevant to the present disclosure are shown in the drawings, not all of them.
Example one
Fig. 1 is a schematic diagram of an information push method in a first embodiment of the present disclosure, where the present embodiment is applicable to a case where banner images in a same group are displayed, and the method may be executed by an information push apparatus, where the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be configured in a server providing an information push service. As shown in fig. 1, the method specifically includes the following steps:
and step 110, providing the target video to be pushed to a typesetting component, wherein the typesetting component is used for mixing and typesetting the target video and the recommendation information, the recommendation information comprises at least one banner image group, each banner image group comprises a set number of banner images, and each banner image has a set typesetting number.
In the embodiment of the disclosure, in order to achieve the purpose of advertising while pushing a target video to a client, recommendation information such as an image advertisement and a campaign advertisement may be inserted into the target video to be recommended to a user. Specifically, the target video and the recommendation information can be provided to the composition component, the target video and the recommendation information are mixed and composed through the composition component, and the composition result can be used for indicating the client to display the target video and the recommendation information recommended by the server in sequence, namely indicating the insertion position of the recommendation information in the target video.
In the embodiment of the present disclosure, the recommendation information includes at least one banner image group, each banner image group corresponds to one advertisement image, specifically, each banner image in the group corresponds to a part of an advertisement image, and all banner images included in each banner image group are arranged according to a set type-setting number, so that a complete advertisement image can be obtained.
For example, assuming that an advertisement image is divided into two rows and two columns for 4, the banner image group corresponding to the advertisement image includes 4 banner images, and each banner image has a set layout number, for example, the layout number of the first banner image is 1, which corresponds to the first row and first column position in the display page, the layout number of the second banner image is 2, which corresponds to the first row and second column position in the display page, the layout number of the third banner image is 3, which corresponds to the second row and first column position in the display page, and the layout number of the fourth banner image is 4, which corresponds to the second row and second column position in the display page.
Optionally, before providing the target video to be pushed to the composition component, the method may further include: and acquiring a target video matched with the video stream viewing request according to the video stream viewing request of the client.
In the embodiment of the disclosure, the target video to be pushed is a video which is acquired by the server according to the video stream viewing request and is possibly interested by the user after the server receives the video stream viewing request sent by the client, and the probability that the user watches the video and the recommendation information in the video can be increased by recommending the target video which is interested by the user.
And 120, extracting an image group typesetting result corresponding to the banner image group from the typesetting results fed back by the typesetting component.
In the embodiment of the disclosure, in order to ensure that the banner image group included in the recommendation information is correctly typeset after the target video and the recommendation information are mixed and typeset by the typesetting component, an image group typesetting result corresponding to the banner image group needs to be extracted from the typesetting result fed back by the typesetting component, so as to compare a preset display effect with the image group typesetting result, and verify the correctness of the image group typesetting result.
Step 130, updating the image group layout result included in the layout result according to the number of the banner images and the layout number of each banner image included in the image group layout result, and displaying the updated layout result.
In the embodiment of the present disclosure, if the image group layout result can achieve the preset display effect, the image group layout result is considered to be correct, at this time, the image group layout result in the layout result does not need to be modified, and if the image group layout result cannot achieve the preset display effect, the image group layout result is considered to be incorrect, and the image group layout result needs to be correspondingly updated according to the type of the error.
Optionally, before updating the image group layout result included in the layout result according to the number of the banner images included in the image group layout result and the layout number of each banner image, the method may further include: the method comprises the steps of creating a preset number of banner image groups in advance, storing a corresponding display information table for each banner image group, wherein group identification and typesetting position information of each banner image in a group are stored in the display information table.
In the embodiment of the disclosure, in order to recommend image advertisements synchronously when recommending videos to users, a preset number of banner image groups are created in advance, and each banner image group is recommended according to a preset recommendation order, wherein the preset number is equal to the number of image advertisements to be recommended. And in order to enable each banner image group to achieve the best display effect, each banner image group is created by storing a corresponding display information table, group identifiers in the display information table are used for distinguishing different banner image groups, and the layout position information of each banner image in the group in the display information table is used for defining the best display effect of the banner image group. In this embodiment, one display information table may be separately stored for each banner image group, or one display information table may be shared by a preset number of banner image groups.
Optionally, updating the image group layout result included in the layout result according to the number of the banner images and the layout number of each banner image included in the image group layout result, specifically including: acquiring a display information table corresponding to the banner image group according to the group identifier of the banner image group included in the image group typesetting result; updating the image group typesetting result included in the typesetting result according to the number of the banner images, the typesetting number of each banner image and the typesetting position information of each banner image in the group included in the image group typesetting result.
In the embodiment of the present disclosure, in order to verify whether the composition effect of the current banner image group is correct, a display information table corresponding to the current banner image group needs to be obtained from a preset number of display information tables stored in advance according to a group identifier of the banner image group included in the image group composition result. And then judging whether the typesetting effect of the current banner image group is correct or not according to the number of the banner images, the typesetting number of each banner image and the typesetting position information of each banner image in the group in the image group typesetting result, and if not, updating the image group typesetting result in the typesetting result.
Optionally, updating the image group layout result included in the layout result according to the number of the banner images, the layout number of each banner image, and the layout position information of each banner image in the group in the display information table included in the image group layout result, which may include: determining the number of the banner images in the banner image group according to the typesetting position information of each banner image in the group in the display information table; deleting the image group typesetting result in the typesetting result if the number of the banner images included in the image group typesetting result is inconsistent with the number of the banner images included in the banner image group; if the number of the banner images included in the image group layout result is consistent with the number of the banner images included in the banner image group, and the layout number of each banner image included in the image group layout result is inconsistent with the layout position information of each banner image in the group in the display information table, the layout number of each banner image is adjusted according to the layout position information of each banner image in the group.
In the embodiment of the present disclosure, whether the banner image group is correctly laid out may be verified from two aspects, namely, the number of banner images in the group and the layout position of each banner image in the group. For the number of banner images included in the banner image group, the number of banner images that can form a complete image advertisement needs to be determined according to the layout position information of each banner image in the group in the corresponding display information table, then the number of banner images included in the image group layout result is compared with the number of banner images included in the banner image group, if the number of banner images included in the image group layout result is inconsistent with the number of banner images included in the banner image group, the group of banner image group is not completely displayed, for example, a group of banner image group includes 4 banner images, but only 2 banner images are displayed, resulting in incomplete display of the corresponding image advertisement, at this time, the image group layout result in the layout result is directly deleted.
If the two are in agreement, the set of banner images is fully presented. When the banner images are not lacked in the banner image group, continuously judging whether the typesetting number of each banner image included in the image group typesetting result is consistent with the typesetting position information of each banner image in the group in the display information table, if so, correctly typesetting the banner image group, thereby achieving the preset optimal display effect without updating the image group typesetting result; if the two images are not consistent, the display sequence of each banner image in the banner image group is not correct, which may cause the corresponding image advertisement to look disordered, at this time, the layout number of each banner image in the image group layout result may be adjusted according to the preset layout position information of each banner image in the group, so as to correct the display sequence of each banner image in the group.
Optionally, displaying the updated layout result may include: and providing the updated typesetting result for the client to display.
In the embodiment of the disclosure, after the typesetting result fed back by the typesetting component is updated, the updated typesetting result is provided for the client, so that the client is instructed to display the recommended target video and the recommended information according to the updated typesetting result, and the optimal display effect is achieved.
According to the technical scheme of the embodiment of the disclosure, the target video to be pushed is provided for the typesetting component, the typesetting component is used for mixing and typesetting the target video and the recommendation information, the recommendation information comprises at least one banner image group, each banner image group comprises a set number of banner images, and each banner image has a set typesetting number; extracting image group typesetting results corresponding to the banner image groups from the typesetting results fed back by the typesetting component; according to the number of the banner images and the layout number of each banner image in the image group layout result, the image group layout result in the layout result is updated, and the updated layout result is displayed, so that the problem that the banner images in the same group cannot be completely and correctly displayed in the prior art is solved, the server can completely display a group of banner images according to the set sequence, and the display effect of the banner images in the same group is improved.
Example two
Fig. 2 is a schematic structural diagram of an information pushing apparatus in a second embodiment of the present disclosure, where this embodiment is applicable to a case where banner images in the same group are displayed, the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be configured in a server providing an information pushing service. As shown in fig. 2, the apparatus may include:
a typesetting module 210, configured to provide the target video to be pushed to a typesetting component, where the typesetting component is configured to perform mixed typesetting on the target video and recommendation information, the recommendation information includes at least one banner image group, each banner image group includes a set number of banner images, and each banner image has a set typesetting number;
an extracting module 220, configured to extract, from the typesetting results fed back by the typesetting component, a typesetting result of the image group corresponding to the banner image group;
and an updating module 230, configured to update the layout result of the image group included in the layout result according to the number of the banner images included in the layout result of the image group and the layout number of each banner image, and display the updated layout result.
According to the technical scheme of the embodiment of the disclosure, the target video to be pushed is provided for the typesetting component, the typesetting component is used for mixing and typesetting the target video and the recommendation information, the recommendation information comprises at least one banner image group, each banner image group comprises a set number of banner images, and each banner image has a set typesetting number; extracting image group typesetting results corresponding to the banner image groups from the typesetting results fed back by the typesetting component; according to the number of the banner images and the layout number of each banner image in the image group layout result, the image group layout result in the layout result is updated, and the updated layout result is displayed, so that the problem that the banner images in the same group cannot be completely and correctly displayed in the prior art is solved, the server can completely display a group of banner images according to the set sequence, and the display effect of the banner images in the same group is improved.
Optionally, the method further includes:
the video request module is used for acquiring a target video matched with a video stream viewing request according to the video stream viewing request of the client before the target video to be pushed is provided for the typesetting component;
the updating module 230 specifically includes:
and the display unit is used for providing the updated typesetting result for the client to display.
Optionally, the method further includes:
the preprocessing module is used for pre-creating a preset number of banner image groups before updating the image group typesetting result included in the typesetting result according to the number of the banner images and the typesetting number of each banner image included in the image group typesetting result, and storing a corresponding display information table for each banner image group, wherein the display information table stores a group identifier and typesetting position information of each banner image in the group;
the updating module 230 specifically includes:
a display information table acquisition unit, configured to acquire a display information table corresponding to the banner image group according to the group identifier of the banner image group included in the image group layout result;
and the image group typesetting updating unit is used for updating the image group typesetting result included in the typesetting result according to the number of the banner images included in the image group typesetting result, the typesetting number of each banner image and the typesetting position information of each banner image in the group in the display information table.
Optionally, the image group layout updating unit is specifically configured to:
determining the number of the banner images in the banner image group according to the typesetting position information of each banner image in the group in the display information table;
deleting the image group typesetting result in the typesetting result if the number of the banner images included in the image group typesetting result is inconsistent with the number of the banner images included in the banner image group;
if the number of the banner images included in the image group layout result is consistent with the number of the banner images included in the banner image group, and the layout number of each banner image included in the image group layout result is inconsistent with the layout position information of each banner image in the group in the display information table, the layout number of each banner image is adjusted according to the layout position information of each banner image in the group.
The information pushing device provided by the embodiment of the present disclosure and the information pushing method provided by the embodiment of the present disclosure belong to the same inventive concept, and technical details that are not described in detail in the embodiment of the present disclosure may be referred to the above embodiment, and the information pushing device of the embodiment of the present disclosure and the information pushing method provided by the above embodiment have the same beneficial effects.
EXAMPLE III
The disclosed embodiment provides a server, and referring to fig. 3 below, a schematic structural diagram of a server 300 suitable for implementing the disclosed embodiment is shown. The server shown in fig. 3 is only an example, and should not bring any limitation to the function and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, the server 300 may include a processing device (e.g., central processing unit, graphics processor, etc.) 301 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage device 306 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the server 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 306 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the server 300 to communicate wirelessly or by wire with other devices to exchange data. While fig. 3 illustrates a server 300 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 309, or installed from the storage means 306, or installed from the ROM 302. The computer program performs the above-described functions defined in the information push method of the embodiment of the present disclosure when executed by the processing apparatus 301.
Example four
Embodiments of the present disclosure also provide a computer readable storage medium, which may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the apparatus; or may be separate and not incorporated into the device.
The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: providing a target video to be pushed to a typesetting component, wherein the typesetting component is used for mixing and typesetting the target video and recommendation information, the recommendation information comprises at least one banner image group, each banner image group comprises a set number of banner images, and each banner image has a set typesetting number; extracting image group typesetting results corresponding to the banner image groups from the typesetting results fed back by the typesetting component; and updating the image group typesetting result included in the typesetting result according to the number of the banner images and the typesetting number of each banner image included in the image group typesetting result, and displaying the updated typesetting result.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. For example, the updating module may be further described as a module that updates the layout result of the image group included in the layout result and displays the updated layout result according to the number of the banner images included in the layout result of the image group and the layout number of each banner image.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.