Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a stream guidance method according to an embodiment of the present invention, where the method is applicable to stream guidance on a live broadcast interface of a live broadcast room, and the method may be executed by a stream guidance device, where the stream guidance device may be implemented by software and/or hardware and is integrated in a data processing server. The method specifically comprises the following steps:
and S110, acquiring live broadcast information of the live broadcast room.
In the network live broadcast platform, a live broadcast room can be respectively created for each anchor broadcast so as to distinguish different anchor broadcasts. Each live broadcast room in the live broadcast platform corresponds to a live broadcast starting time and a live broadcast ending time. Typically, the number of live rooms currently being live is plural. In this embodiment, live broadcast information of each live broadcast room currently being live broadcast needs to be acquired. The live broadcast information can include but is not limited to a live broadcast state, a main broadcast name, a live broadcast room number, a channel number, a live broadcast type, a popularity index and a live broadcast interface layout, wherein the live broadcast state comprises a live broadcast state and a live broadcast closing state, and a live broadcast room in live broadcast can be screened through the live broadcast state; the live type may be, but is not limited to, a game type, a singing type, a dancing type, an outdoor type, a delicatessen type, a shopping type, and an education type; the popularity index refers to the current number of people watching in the live broadcast room.
And S120, matching the drainage information with the live broadcast information according to a preset matching rule, and determining a target live broadcast room corresponding to the drainage information in the live broadcast room currently live broadcast according to a matching result.
The drainage information may refer to promotion information that needs to be displayed on a live interface of a live broadcast room, such as game information or shopping information. The drainage information may include, but is not limited to, information identifier, information content, information type, information priority, and size information, wherein the information identifier refers to an identifier for distinguishing different drainage information, and the information identifier may be composed of one or more of letters, numbers, and symbols. The information content can refer to characters and/or pictures which need to be displayed on a live interface; the information type may be, but is not limited to, a game type, a singing type, a dancing type, an outdoor type, a cate type, a shopping type, and an education type. The preset matching rule is a rule for matching the drainage information with the live broadcast information. The preset matching rules can be configured in advance according to user requirements and actual conditions so as to realize diversity and flexibility of drainage and meet personalized requirements of users. The embodiment can match the stream guidance information with the live broadcast information corresponding to each live broadcast room currently live broadcast, and in all live broadcast rooms currently live broadcast, the live broadcast room successfully matched with the stream guidance information is determined as the target live broadcast room. The target live broadcast room in the embodiment can be one live broadcast room or a plurality of live broadcast rooms, so that the same stream guidance information can be displayed in the plurality of live broadcast rooms. Optionally, when a plurality of pieces of drainage information exist, the drainage information and the live broadcast information are matched one by one according to a preset matching rule, and a target live broadcast room corresponding to each piece of drainage information is determined according to a matching result.
Optionally, S120 includes:
matching the information type of the drainage information with the live broadcast type in the live broadcast information; and in the live broadcast room currently in live broadcast, determining the live broadcast room corresponding to the live broadcast type which is the same as the information type of the stream guidance information as a target live broadcast room corresponding to the stream guidance information.
The preset matching rule can be set to match the information type of the stream guidance information with the live broadcast type of the live broadcast information corresponding to each live broadcast room currently live broadcast, and all the live broadcast rooms corresponding to the live broadcast type with the same information type are determined as target live broadcast rooms. For example, assuming that the information type of a certain piece of stream guidance information is a game type, if the live broadcast type of five live broadcast rooms in all live broadcast rooms currently being live broadcast is a game type, determining the five live broadcast rooms as target live broadcast rooms corresponding to the stream guidance information. Through the matching according to the information type and the live broadcast type, the determined target live broadcast room has stronger drainage pertinence, and thus the drainage popularization effect is enhanced.
Optionally, S120 includes:
and matching with the popularity index in the live broadcast information according to the information priority of the drainage information, and determining a target live broadcast room corresponding to the drainage information in the live broadcast room currently live broadcast according to a matching result.
The information priority of the drainage information can be preset according to user requirements, and the information priority can be used for representing the importance degree of the drainage information. The popularity index in the live broadcast information may refer to the number of people watching in the live broadcast room, and illustratively, the larger the number of people watching in the live broadcast room, the higher the popularity index corresponding to the live broadcast room. This embodiment can match through the popularity index in the live broadcast information that corresponds with every live broadcast room that is currently broadcasting the information priority of drainage information to can carry out the drainage in the high live broadcast room of popularity index with the drainage information that the information priority is high, make the drainage effect of important drainage information strengthen greatly, and improved the flexibility of drainage.
Optionally, matching the popularity index in the live broadcast information according to the information priority of the drainage information, and determining a target live broadcast room corresponding to the drainage information in a live broadcast room currently being live broadcast according to a matching result, including:
determining the drainage priority of the live broadcast room according to the popularity index in the live broadcast information; and in the live broadcast room currently in live broadcast, determining the live broadcast room corresponding to the drainage priority matched with the information priority of the drainage information as the target live broadcast room corresponding to the drainage information.
And determining the streaming priority of each live broadcast room according to the popularity index in the live broadcast information corresponding to each live broadcast room currently live broadcast. The drainage priority in this embodiment may be used to characterize a recommendation degree for drainage in the live broadcast room. Optionally, the stream guidance priority of each live broadcast room may be determined according to a preset partition rule and a popularity index of each live broadcast room, where the preset partition rule includes a popularity index range corresponding to each stream guidance priority. For example, the streaming priority of the live broadcast room may include, but is not limited to, three priorities, namely a first priority, a second priority and a third priority, and the recommendation degree of the corresponding live broadcast room for streaming decreases in sequence. The preset division rule can be that the drainage priority corresponding to the live broadcast room with the popularity index range of more than 10 ten thousand is a first priority, the drainage priority corresponding to the live broadcast room with the popularity index range of 1-10 ten thousand is a second priority, and the drainage priority corresponding to the live broadcast room with the popularity index range of less than 1 ten thousand is a third priority. The embodiment can query the popularity index of each live broadcast room currently in live broadcast in a preset division rule, so that the streaming priority of each live broadcast room can be determined. In this embodiment, all live broadcast rooms corresponding to the drainage priority that is the same as the information priority of the drainage information may be determined as target live broadcast rooms, and also all live broadcast rooms corresponding to the drainage priority that is corresponding to the information priority of the drainage information may be determined as target live broadcast rooms according to a mapping relationship between the preset information priority and the drainage priority, where the information priority may correspond to one drainage priority, may also correspond to multiple drainage priorities, and may be set according to user requirements.
In this embodiment, if the number of levels of the information priority is the same as the number of levels of the stream guidance priority, the live broadcast room corresponding to the stream guidance priority that is the same as the information priority of the stream guidance information is determined as the target live broadcast room corresponding to the stream guidance information.
And S130, sending the drainage information to a user side corresponding to the target live broadcast room so as to display the drainage information in a live broadcast interface of the user side.
The user side refers to a terminal used when the user watches live video, such as: smart phones, tablet computers, desktop computers, and the like. And after receiving the drainage information, each user displays the drainage information on a live interface of the target live broadcast room on the user, so that each user watching the target live broadcast room can see the drainage information on the live broadcast interface, and the popularization effect of the information is achieved. Optionally, after each user side corresponding to the target live broadcast room receives the drainage information, each user side may generate a virtual key corresponding to the drainage information according to information content in the received drainage information, and display the virtual key in a live broadcast interface of the user side, so that an interested user may view a drainage information page corresponding to the virtual key by clicking the virtual key, thereby enabling display of the drainage information to be more convenient and smaller in interface space occupation.
Optionally, S130 includes:
determining target display position information of the drainage information on a live broadcast interface of the target live broadcast room according to the live broadcast interface layout in the live broadcast information of the target live broadcast room and the size information in the drainage information; and sending the drainage information and the target display position information to a user side corresponding to the target live broadcast room so as to display the drainage information at the target display position of a live broadcast interface of the user side.
The live interface layout in the live information refers to position information and blank position information of components such as characters and pictures in the live interface. The size information of the drainage information refers to the size of the space required for displaying the content of the drainage information. The embodiment can match the size information of the stream guidance information with the blank position information in the layout of the live interface, and determine the blank position information successfully matched with the size information in the layout of the live interface as the target display position information of the live interface. The user side can display the drainage information on the target display position of the live interface directly according to the received drainage information and the target display position information, so that the display position of the drainage information is more reasonable, and influence on user experience caused by shielding important information in the live interface is avoided.
According to the technical scheme, the stream guidance information is matched with the live broadcast information of the live broadcast room currently in live broadcast according to the preset matching rule, the target live broadcast room corresponding to the stream guidance information is determined in the live broadcast room currently in live broadcast according to the matching result, and the stream guidance information is sent to the user side corresponding to the target live broadcast room so as to display the stream guidance information in the live broadcast interface of the user side. Through the preset matching rule according to the configuration, one or more target live broadcast rooms corresponding to the drainage information can be automatically determined, and the drainage information is displayed on the user end corresponding to each target live broadcast room, so that the displayed drainage information is more targeted, a better popularization effect can be achieved, the situation that the drainage information can only be displayed in a fixed live broadcast room in the prior art is avoided, and the flexibility of drainage is enhanced.
Example two
Fig. 2 is a flowchart of a drainage method according to a second embodiment of the present invention, which is optimized based on the second embodiment: after sending the drainage information to the user side that the target live broadcast room corresponds, still include: if the drainage modification instruction is received, determining a modification mode and drainage information to be processed corresponding to the modification mode according to the drainage modification instruction; and carrying out drainage modification on the drainage information to be processed according to the modification mode.
The optimized drainage method specifically comprises the following steps:
s210, acquiring live broadcast information of each live broadcast room.
And S220, matching the drainage information with the live broadcast information according to a preset matching rule, and determining a target live broadcast room corresponding to the drainage information in the live broadcast room currently live broadcast according to a matching result.
And S230, sending the drainage information to a user side corresponding to the target live broadcast room so as to display the drainage information in a live broadcast interface of the user side.
S240, if the drainage modification instruction is received, determining a modification mode and drainage information to be processed corresponding to the modification mode according to the drainage modification instruction.
When a service party such as an advertiser wants to modify the drainage information, the service party can modify the drainage information by sending a drainage modification instruction to the drainage device. When the drainage device receives the drainage modification instruction, the drainage modification instruction is analyzed, and the modification mode of the drainage and the drainage information to be processed corresponding to the modification mode are determined. The modification modes in this embodiment may include, but are not limited to, an update mode, an addition mode, and a deletion mode.
And S250, carrying out drainage modification on the drainage information to be processed according to the modification mode.
The drainage information to be processed can be correspondingly and automatically modified according to the modification mode, and the problem that a drainage program needs to be manually modified by an administrator in the prior art is solved, so that the drainage modification efficiency is improved, and the maintenance cost is reduced.
Optionally, the modification mode includes an update mode, an addition mode and a deletion mode; accordingly, S250 includes:
if the modification mode is an updating mode, updating the existing drainage information consistent with the information identifier of the drainage information to be processed, and sending the updated existing drainage information to a user side in the target live broadcast room corresponding to the updated existing drainage information; if the modification mode is an addition mode, determining a target live broadcast room corresponding to the to-be-processed drainage information according to a preset matching rule, and sending the to-be-processed drainage information to a user side in the target live broadcast room corresponding to the to-be-processed drainage information; and if the modification mode is a deletion mode, deleting the existing drainage information consistent with the information identifier of the drainage information to be processed.
When the modification mode is the updating mode, the existing drainage information which is consistent with the information identifier of the drainage information to be processed is obtained, the existing drainage information is updated to the drainage information to be processed, and S220 and S230 are executed again according to the updated existing drainage information, so that each user side in the target live broadcast room can display the updated existing drainage information. And when the modification mode is the addition mode, indicating that the to-be-processed drainage information is new drainage information, and executing S220 and S230 again according to the to-be-processed drainage information, thereby determining a target live broadcast room corresponding to the to-be-processed drainage information and displaying the to-be-processed drainage information on a live broadcast interface of each user side corresponding to the target live broadcast room. And when the modification mode is a deletion mode, acquiring the existing drainage information consistent with the information identifier of the drainage information to be processed, and deleting the acquired existing drainage information so as to release the running space and improve the running speed.
According to the technical scheme, after the drainage information is sent to the user side corresponding to the target live broadcast room, whether the drainage modification instruction is received or not is detected, if yes, the modification mode and the to-be-processed drainage information corresponding to the modification mode are determined according to the drainage modification instruction, and the to-be-processed drainage information is subjected to drainage modification according to the modification mode, so that automatic modification of drainage is achieved, drainage modification efficiency is improved, and maintenance cost is reduced.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a drainage device according to a third embodiment of the present invention, where the present embodiment is applicable to a situation of drainage on a live broadcast interface of a live broadcast room, and the device includes: a live broadcast information obtaining module 310, a target live broadcast room determining module 320 and a stream guidance information sending module 330.
The live broadcast information acquiring module 310 is configured to acquire live broadcast information of each live broadcast room; the target live broadcast room determining module 320 is configured to match the live broadcast information with the drainage information according to a preset matching rule, and determine a target live broadcast room corresponding to the drainage information in a live broadcast room currently being live broadcast according to a matching result; and the drainage information sending module 330 is configured to send the drainage information to a user side corresponding to the target live broadcast room, so that the drainage information is displayed in a live broadcast interface of the user side.
Optionally, the target live broadcast room determining module 320 includes:
the information type matching unit is used for matching the information type of the stream guidance information with the live broadcast type in the live broadcast information;
and the first target live broadcast room determining unit is used for determining the live broadcast room corresponding to the live broadcast type with the same information type as the drainage information as the target live broadcast room corresponding to the drainage information in the live broadcast room currently in live broadcast.
Optionally, the target live broadcast room determining module 320 includes:
and the second target live broadcast room determining unit is used for matching the information priority of the drainage information with the popularity index in the live broadcast information and determining a target live broadcast room corresponding to the drainage information in the live broadcast room currently live broadcast according to the matching result.
Optionally, the second target live broadcast room determining unit is specifically configured to:
determining the drainage priority of the live broadcast room according to the popularity index in the live broadcast information; and in the live broadcast room currently in live broadcast, determining the live broadcast room corresponding to the drainage priority matched with the information priority of the drainage information as the target live broadcast room corresponding to the drainage information.
Optionally, the drainage information sending module 330 includes:
the target display position information determining unit is used for determining target display position information of the drainage information on a live broadcast interface of the target live broadcast room according to the live broadcast interface layout in the live broadcast information of the target live broadcast room and the size information in the drainage information;
and the information sending unit is used for sending the drainage information and the target display position information to a user side corresponding to the target live broadcast room so as to display the drainage information at the target display position of a live broadcast interface of the user side.
Optionally, the apparatus further comprises:
the modification information determining module is used for determining a modification mode and drainage information to be processed corresponding to the modification mode according to the drainage modification instruction if the drainage modification instruction is received after the drainage information is sent to a user side corresponding to the target live broadcast room;
and the drainage modification module is used for carrying out drainage modification on the drainage information to be processed according to the modification mode.
Optionally, the modification mode includes an update mode, an addition mode and a deletion mode; correspondingly, the drainage modification module is specifically configured to:
if the modification mode is an updating mode, updating the existing drainage information consistent with the information identifier of the drainage information to be processed, and sending the updated existing drainage information to a user side in the target live broadcast room corresponding to the updated existing drainage information;
if the modification mode is an addition mode, determining a target live broadcast room corresponding to the to-be-processed drainage information according to a preset matching rule, and sending the to-be-processed drainage information to a user side in the target live broadcast room corresponding to the to-be-processed drainage information;
and if the modification mode is a deletion mode, deleting the existing drainage information consistent with the information identifier of the drainage information to be processed.
The drainage device can execute the drainage method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the drainage method.
Example four
Fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present invention. Referring to fig. 4, the server includes:
one or more processors 410;
a memory 420 for storing one or more programs;
when executed by the one or more processors 410, cause the one or more processors 410 to implement the drainage method as set forth in any of the embodiments above.
In FIG. 4, a processor 410 is illustrated as an example; the processor 410 and the memory 420 in the server may be connected by a bus or other means, as exemplified by the bus connection in fig. 4.
The memory 420 serves as a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the stream guidance method in the embodiment of the present invention (for example, the live broadcast information acquiring module 310, the target live broadcast room determining module 320, and the stream guidance information sending module 330 in the stream guidance device). The processor 410 executes various functional applications of the server and data processing by executing software programs, instructions and modules stored in the memory 420, so as to implement the above-mentioned drainage method.
The memory 420 mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to the use of the server, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 420 may further include memory located remotely from processor 410, which may be connected to a server over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The server proposed by the present embodiment and the drainage method proposed by the above embodiment belong to the same inventive concept, and technical details that are not described in detail in the present embodiment can be referred to the above embodiment, and the present embodiment has the same beneficial effects as the drainage method.
EXAMPLE five
The fifth embodiment provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the drainage method according to any embodiment of the present invention.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer-readable storage medium may be, for example but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: 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 context of this document, 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.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, 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: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like 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 above example numbers are for description only and do not represent the merits of the examples.
It will be understood by those skilled in the art that the modules or steps of the invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and optionally they may be implemented by program code executable by a computing device, such that it may be stored in a memory device and executed by a computing device, or it may be separately fabricated into various integrated circuit modules, or it may be fabricated by fabricating a plurality of modules or steps thereof into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts in the embodiments are referred to each other.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.