CN110753268B - Page card data generation method and device and electronic equipment - Google Patents

Page card data generation method and device and electronic equipment Download PDF

Info

Publication number
CN110753268B
CN110753268B CN201910983673.6A CN201910983673A CN110753268B CN 110753268 B CN110753268 B CN 110753268B CN 201910983673 A CN201910983673 A CN 201910983673A CN 110753268 B CN110753268 B CN 110753268B
Authority
CN
China
Prior art keywords
video
data
page
page card
playing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910983673.6A
Other languages
Chinese (zh)
Other versions
CN110753268A (en
Inventor
王兆仲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201910983673.6A priority Critical patent/CN110753268B/en
Publication of CN110753268A publication Critical patent/CN110753268A/en
Application granted granted Critical
Publication of CN110753268B publication Critical patent/CN110753268B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4782Web browsing, e.g. WebTV
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • H04N21/25875Management of end-user data involving end-user authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44204Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention provides a page card data generation method, which comprises the following steps: judging whether the video to be played is a preset hot-play video or not according to the video information in the data acquisition request sent by the client, if so, acquiring page card fixed data of a playing page where the video to be played is positioned, collecting page card data related to the user represented by the user information from a third-party server according to the user information, and transmitting the page card fixed data and the page card non-fixed data to the client, since the page card fixed data of the hot-cast video has been previously collected from the third-party server, when the client requests to obtain page card data, it is no longer necessary to collect page card fixed data from the third party server, while the collection of all data can be completed by only collecting the unfixed data of the page card, therefore, the collection time of the page card data is saved, and the loading speed of the page card data is increased.

Description

Page card data generation method and device and electronic equipment
Technical Field
The present invention relates to the field of page generation technologies, and in particular, to a page card data generation method and apparatus, and an electronic device.
Background
With the rapid development of internet technology, the internet has penetrated into the aspects of life, more and more people are willing to watch videos through the internet, in order to meet the requirements of different people for watching videos, a user firstly enters a playing page after clicking to watch the videos, one part of the playing page is a player for playing the videos in the playing page, and the other part of the playing page is a page card (card) which is mainly used for displaying data related to the played videos, wherein the data comprises video details, video collection information, recommended videos, recommendation information and the like.
In the prior art, when a user clicks and enters a video playing page, a client sends a request for acquiring page card data to a server, the server receives the request for acquiring the page card data sent by the client, collects page card data related to video playing of the client from other third-party servers or databases according to the received request, sends the collected page card data to the client, and the client receives the page card data sent by the server and displays the page card in the playing page based on the page card data.
The inventor finds that the prior art at least has the following problems in the process of implementing the invention:
after receiving a request sent by a client, a server needs to collect page card data related to video played by the client from other third-party servers or databases, the collection process needs to spend a certain amount of time and system resources, and when a hot-cast video occurs, the server needs to frequently collect various data related to the hot-cast video, so that the pressure of the server is increased, the performance is reduced, and the loading speed of the page card data is affected.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, and an electronic device for determining page card data, so as to increase a loading speed of the page card data. The specific technical scheme is as follows:
the embodiment of the invention provides a page card data generation method, which comprises the following steps:
receiving a data acquisition request for acquiring page card data sent by a client, wherein the data acquisition request carries user information and video information of a video to be played;
judging whether the video to be played is a preset hot-play video or not according to the video information;
if so, acquiring page card fixed data of a playing page where the video to be played is located, wherein the page card fixed data is page card data which is collected from a third-party server in advance and is related to the video to be played;
according to the user information, collecting page card data related to the user represented by the user information from the third-party server, wherein the page card data is used as page card non-fixed data of the playing page;
and sending the page card fixed data and the page card non-fixed data to the client, so that the client can display the page card of the playing page according to the page card fixed data and the page card non-fixed data.
Further, the page card fixed data is stored in a cache memory;
the acquiring of the page card fixed data of the playing page where the video to be played is located includes:
and according to the video information, acquiring page card fixed data of a playing page where the video to be played is located from the cache memory.
Further, the sending, to the client, the page card fixed data and the page card non-fixed data includes:
merging the page card fixed data and the page card non-fixed data into page card data of the playing page;
and sending the page card data of the playing page to the client.
Further, the preset hot-broadcast video is determined by adopting the following steps:
counting the playing times of each video within a preset time period;
and determining the video with the playing times reaching the preset condition as the hot-playing video.
Further, the counting the playing times of each video in the preset time period includes:
inquiring a service log in a preset time period, counting the times of data requests including video information of the video recorded in the service log aiming at each video, and taking the times of the data requests as the playing times of the video; alternatively, the first and second electrodes may be,
and storing the data request into a cache redis each time the data request for acquiring the page card data is received within a preset time period, accumulating and counting the receiving times in the data request in the cache redis, and taking the accumulated result as the playing times of the video represented by the video information in the data request.
Further, determining the video with the playing times reaching the preset condition as a hot-play video includes:
determining the video with the playing times larger than a first threshold value as a hot-playing video; and/or the presence of a gas in the gas,
and ranking the videos according to the playing times, and determining the videos with the ranking larger than a second threshold value as the hot-playing videos.
Further, after the video with the playing time reaching the preset condition is determined as a hot-play video, the method further includes:
for each hot-broadcast video, sending video information of the hot-broadcast video to the third-party server;
receiving page card fixed data corresponding to the hot-broadcast video searched according to the video information of the hot-broadcast video and sent by the third-party server;
and storing the page card fixed data corresponding to the received hot-play video into the cache memory.
An embodiment of the present invention further provides a page card data generating device, where the device includes:
the request receiving module is used for receiving a data acquisition request for acquiring page card data sent by a client, wherein the data acquisition request carries user information and video information of a video to be played;
the hot-play video judging module is used for judging whether the video to be played is a preset hot-play video or not according to the video information;
the data acquisition module is used for acquiring page card fixed data of a playing page where the video to be played is located if the video to be played is located, wherein the page card fixed data is page card data which is collected from a third-party server in advance and is related to the video to be played;
a data collection module, configured to collect, from the third-party server, page card data related to the user indicated by the user information according to the user information, where the page card data is used as non-fixed data of the page card of the played page;
a data sending module, configured to send the page card fixed data and the page card non-fixed data to the client, so that the client may display the page card of the playing page according to the page card fixed data and the page card non-fixed data.
Further, the page card fixed data is stored in a cache memory;
the data obtaining module is specifically configured to obtain, from the cache memory, page card fixed data of a playing page where the video to be played is located according to the video information.
Further, the data sending module is specifically configured to combine the page card fixed data and the page card non-fixed data into page card data of the playing page, and send the page card data of the playing page to the client.
Further, the hot-play video judgment module is further configured to count the playing times of each video within a preset time period, and determine the video with the playing times reaching a preset condition as the hot-play video.
Further, the hot-playing video determination module is specifically configured to query a service log within a preset time period, count, for each video, the number of times of data requests including video information of the video recorded in the service log, and use the number of times of the data requests as the number of times of playing the video; or, in a preset time period, each time a data request for acquiring the page card data is received, the data request is stored into a cache redis, and in the cache redis, the number of times of reception in the data request is counted in an accumulating manner, and the accumulated result is used as the number of times of playing the video represented by the video information in the data request.
Further, the hot-play video determination module is specifically configured to determine a video with a playing frequency greater than a first threshold as a hot-play video; and/or ranking the videos according to the playing times, and determining the videos with the ranking larger than a second threshold value as the hot-playing videos.
Further, the method also comprises the following steps:
and the data storage module is used for sending video information of the hot-broadcast video to the third-party server, receiving page card fixed data which is sent by the third-party server and corresponds to the hot-broadcast video and is searched according to the video information of the hot-broadcast video, and storing the received page card fixed data corresponding to the hot-broadcast video into the high-speed buffer memory after the hot-broadcast video judgment module executes the step of determining the video with the playing times reaching the preset condition as the hot-broadcast video.
The embodiment of the invention also provides electronic equipment which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
and a processor for implementing the steps of the method for generating the card data of any page when executing the program stored in the memory.
The present invention also provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps of any of the above-mentioned page card data generation methods are implemented.
Embodiments of the present invention also provide a computer program product containing instructions that, when run on a computer, cause the computer to perform any of the above-described page card data generation methods.
In the scheme, a data acquisition request for acquiring page card data sent by a client is received, the data acquisition request carries user information and video information of a video to be played, whether the video to be played is a preset hot-playing video is judged according to the video information, if yes, page card fixed data of a playing page where the video to be played is acquired, the page card fixed data is page card data which is collected from a third-party server in advance and is related to the video to be played, page card data which is related to a user and is represented by the user information is collected from the third-party server according to the user information and is used as page card non-fixed data of the playing page, the page card fixed data and the page card non-fixed data are sent to the client, so that the client can acquire the page card fixed data and the page card non-fixed data according to the page card fixed data and the page card non-fixed data, the page card of the playing page is displayed, because the page card fixed data of the hot-playing video is collected from the third-party server in advance, when the client requests to acquire the page card data, the page card fixed data does not need to be collected from the third-party server any more, and the collection of all data can be completed only by collecting the page card non-fixed data, so that the collection time of the page card data is saved, and the loading speed of the page card data is further improved.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a flowchart of a page card data generation method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a half-screen display page according to an embodiment of the present invention;
FIG. 3 provides a schematic diagram of an interaction process according to an embodiment of the invention;
fig. 4 is a flowchart of a hot-cast video determination method according to an embodiment of the present invention;
FIG. 5 provides another interaction process diagram for one embodiment of the present invention;
fig. 6 is a schematic structural diagram of a page card data generating device according to another embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to provide an implementation scheme for increasing the loading speed of page card data, embodiments of the present invention provide a page card data generation method, a page card data generation device, and an electronic device, and the following describes embodiments of the present invention with reference to the accompanying drawings in the specification. And the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
In an embodiment of the present invention, a method for generating page card data is provided, as shown in fig. 1, the method includes the following steps:
s101: and receiving a data acquisition request for acquiring page card data sent by a client, wherein the data acquisition request carries user information and video information of a video to be played.
In this step, in practical application, the client in the present invention may be an electronic device with a display function, such as a desktop/notebook computer, a smart television, a smart phone, and a tablet computer.
In an embodiment, when receiving an operation of entering a video playing page, a client first sends a page data request for acquiring page data to a server, which may be used to acquire data related to a video to be played.
Optionally, the page data request sent by the client may include a data obtaining request for obtaining the page card data, and in an embodiment, the client may also send a data obtaining request for obtaining the page card data to the server separately.
Those skilled in the art can understand that the data acquisition request for acquiring the page card data sent by the client and received by the server may carry user information and video information of a video to be played, where the user information may be a user ID (Identity Document) currently logging in a current video playing platform through the client, or other information that may be used to identify a user Identity. The video information may be a video identifier of a video to be played, and may be, for example, a video ID, a video hash value, or a video number allocated by the video server to the video to be played.
S102: and judging whether the video to be played is a preset hot-play video or not according to the video information.
In this step, the hot-air video may be a preset video, for example, the hot-air video may be a video which is currently played and has a relatively explosive effect, may be a video whose playing frequency shows a continuously rising trend although the total playing frequency is not high, and may also be a video which is preset by a video service provider and has a hot-drama potential.
In an embodiment, when the video information is a video identifier, for example, a video ID, a data table may be pre-established, a video ID of preset hot-play data is recorded in the data table, whether the video to be played is a hot-play video is determined by searching the video ID of the video to be played in the data table, when the video ID of the video to be played is found in the data table, the video to be played is determined to be a hot-play video, otherwise, the video to be played is a non-hot-play video.
Illustratively, the data table is pre-recorded with video IDs of two hot-air videos, TVID 1: 2302362 and TVID 2: 4416236. when the video ID of the video to be played is 2302362, it can be determined that the video ID of the video to be played is the same as the TVID1 by looking up the data table, and thus it is determined that the video to be played is a hot-play video.
In one embodiment, whether the video to be played is the hot-play video may also be determined by the hot-play video identifier, for example, when each video is determined as the hot-play video, the server may send the hot-play video identifier of the video that is currently determined as the hot-play video to each client list, and when the client sends the data acquisition request for acquiring the page card data to the server, the hot-play video identifier may be added to the video information included in the data acquisition request of the hot-play video, and the server determines whether the video to be played is the hot-play video by determining whether the video information included in the received data acquisition request includes the hot-play video identifier.
When it is determined that the video to be played is the preset hot-play video, step S103 may be executed, otherwise, according to the prior art, the step of collecting the page card fixed data and the page card non-fixed data from the third-party server is executed.
S103: and acquiring the page card fixed data of the playing page where the video to be played is positioned.
In this step, the page card fixed data is page card data related to the video to be played, which is collected from the third-party server in advance.
It is known to those skilled in the art that, for a video to be played, the page card data associated with the video to be played does not change frequently, for example: the introduction of the video to be played, the information of the actors participating, the date of release of the video, etc., are mostly certain and invariable, so that it is possible to collect such page card fixed data from the third party server in advance, thereby avoiding starting to collect data only after receiving a data acquisition request.
The third-party server may be a server accessed through an intra-group interface service and an extra-group interface service, or a server remotely called through an RPC (Remote Procedure Call Protocol).
Optionally, the fixed data of the page card may also be data with low real-time requirement, such as a peripheral video of the video to be played, e.g., other videos in which actors play in the video to be played, or may also include episode data of the video to be played, e.g., the video to be played is an episode of a tv show or a variety program, where the episode data of the video to be played may be data of the tv show or other episodes of the variety program.
In one embodiment, the page card fixed data may be obtained in advance through interface services, including an intra-group interface service and an extra-group interface service, or an RPC service, or a cache service.
Alternatively, the page card fixed data may be stored in the cache memory, and at this time, the page card fixed data may be acquired by:
according to the video information, the page card fixed data of the playing page where the video to be played is located is obtained from the cache memory.
Optionally, the video information is sent to a cache memory, and the cache memory searches for data corresponding to the received video information from the cached data according to the received video information, and returns the searched data.
S104: according to the subscriber information, page card data related to the subscriber indicated by the subscriber information is collected from the third-party server as page card non-fixed data of the playback page.
This step may be performed in synchronization with step S103, or may be performed after step S103 is performed.
Alternatively, other data than the page card fixed data in the playing page, such as the page card data associated with the subscriber, may be collected from the third-party server according to the subscriber information.
In one embodiment, the page card non-fixed data may include recommendation data, such as promotional data customized based on user personalization, and may also include comment data.
S105: and sending the page card fixed data and the page card non-fixed data to the client, so that the client can display the page card of the playing page according to the page card fixed data and the page card non-fixed data.
In this step, the page card fixed data and the page card non-fixed data may be sent to the client, or the page card fixed data and the page card non-fixed data may be merged into page card data of the playing page, and then the page card data of the playing page may be sent to the client.
In one embodiment, the page card fixed data and the page card non-fixed data may be transcoded according to a predetermined format and then merged into page card data, and after the page card data is obtained by merging, the obtained page card data may be further sent to the client, so that the client may display the page card of the video playing page according to the page card data.
In one embodiment, as shown in fig. 2, a schematic diagram of a half-screen playing page is provided, in fig. 2, a video playing half-screen is used for playing a video to be played, and a page card data box located in a half-screen below the video playing half-screen is used for displaying received page card data.
In an embodiment, the method for generating page card data provided in the foregoing embodiment of the present invention may be applied to a page card data generation system, where the system includes a client, a half-screen server, a cache server, and a third-party server, as shown in fig. 3, an interaction process diagram of the page card data generation system provided in the foregoing embodiment of the present invention is provided, and a basic interaction process thereof includes:
step 301: a client sends a data acquisition request to a half-screen server; step 302: the method comprises the steps that when a half-screen server receives a data acquisition request sent by a client and determines that a corresponding video to be played is a hot-cast video, page card fixed data are acquired from a cache server; step 303: the cache server sends page card fixed data to the half-screen server; step 304: the half-screen server acquires non-fixed data of the page card from a third-party server; step 305: the third-party server sends page card non-fixed data to the half-screen server; step 306: the half-screen server transmits the received page card fixed data and page card fixed data to the client as page card data.
In the above method for generating page card data provided by the embodiment of the present invention, a data obtaining request for obtaining page card data sent by a client is received, where the data obtaining request carries user information and video information of a video to be played, and according to the video information, it is determined whether the video to be played is a preset hot-play video, and if so, page card fixed data of a playing page where the video to be played is located is obtained, where the page card fixed data is page card data related to the video to be played and collected from a third-party server in advance, and according to the user information, page card data related to a user and represented by the user information is collected from the third-party server and is used as page card non-fixed data of the playing page, and the page card fixed data and the page card non-fixed data are sent to the client, so that the client can obtain the page card data according to the page card fixed data and the page card non-fixed data, the page card of the playing page is displayed, because the page card fixed data of the hot-playing video is collected from the third-party server in advance, when the client requests to acquire the page card data, the page card fixed data does not need to be collected from the third-party server, and the collection of all data can be completed only by collecting the page card non-fixed data, so that the collection time of the page card data is saved, and the loading speed of the page card data is further improved.
In an embodiment of the present invention, there is further provided a hot-play video determining method for determining a hot-play video preset in step S102, as shown in fig. 4, the method including the following steps:
s401: and counting the playing times of each video in a preset time period.
In this step, the preset time period may be a time period determined empirically, for example, may be 3:00 to 3:00 of the second day of each day as a set time period, so as to count the number of times of playing each video received in this time period. In one embodiment, the number of playing times of each video can be counted by the following two ways, including:
in the first way, service logs in a preset time period can be queried, and for each video, the number of data requests including video information of the video recorded in the service logs is counted, and the number of data requests is taken as the playing number of the video. In one embodiment, the service log may be data containing video information that is generated after the server sends the video playing content to the client, and the playing times of the video corresponding to each piece of video information are determined by counting the number of data requests of each piece of video information recorded in the service log.
In the second way, it is also possible to store the data request into the cache redis each time a data request for acquiring the page card data is received within a preset time period, and in the cache redis, count the number of times of reception in the data request in an accumulating manner, and use the accumulated result as the number of times of playing the video represented by the video information in the data request.
In an embodiment, each time a data request for acquiring page card data is received, the data request is sent to a message mq queue, the data request is sent to a message processing cluster through the mq queue, a video ID is determined in the video message through the message processing cluster, and finally the video ID is stored in a cache redis, in the cache redis, counting is performed according to each video ID, when one video ID is stored each time, the number of times of receiving the video ID is increased by 1 in the cache redis, the count is accumulated, and the accumulated result is used as the number of times of playing the video represented by the video ID.
S402: and determining the video with the playing times reaching the preset condition as the hot-playing video.
In this step, among the obtained play times of each video, the video whose play times reach the preset condition may be determined as a hot-play video, and in one embodiment, the hot-play video may be determined in the following two ways:
in the first mode, the video with the playing times larger than the first threshold value is determined as the hot-playing video. The first threshold may be empirically determined, for example, may be one hundred thousand times, and when the number of times of playing a certain video is greater than one hundred thousand times, it may be determined that the video is a hot-playing video.
In the second mode, the videos are ranked according to the playing times, and the video with the ranking larger than the second threshold value is determined as the hot-playing video. Where the first threshold may be empirically determined, e.g., the second threshold may be 101, then a video ranked within 1-100 is determined to be a hot-cast video.
Those skilled in the art will appreciate that the hot-play video may also be a preset video, which is a video with a low playing time but a content playing time in a continuous time period showing a rising trend, or may also be a hot-play video, and in one embodiment, the hot-play video may also be a video with a hot-play potential preset by a video service provider.
In one embodiment, after determining which videos are hot-cast videos, page card fixed data of the hot-cast video may be collected for each hot-cast video, where the page card fixed data is data in the page card of the hot-cast video that is fixed and unchangeable, and in one embodiment, the collected page card fixed data may be stored in a database or a cache.
In the hot-play video determination method shown in fig. 4 provided in an embodiment of the present invention, the number of times of playing each video in a preset time period is counted, and a video whose number of times of playing reaches a preset condition is determined as a hot-play video. The hot-broadcast video can be accurately determined, so that the one-page card data generation method has more positive alignment.
Optionally, after determining the video meeting the preset condition as a hot-air video, for each hot-air video, sending video information of the hot-air video to the third-party server, receiving the page card fixed data, which is sent by the third-party server and is searched according to the video information of the hot-air video, corresponding to the hot-air video, and storing the received page card fixed data corresponding to the hot-air video into the cache memory.
In an embodiment, the hot-cast video determination method provided by the foregoing embodiment of the present invention may be applied to a hot-cast video determination system, where the hot-cast video determination system includes a client, a half-screen server, a cache server, a statistics server, a control service desk, and a third-party server, as shown in fig. 5, another interaction process diagram provided by the embodiment of the present invention is a basic interaction process thereof, and includes:
step 501: a client sends a data acquisition request to a half-screen server; step 502: after receiving a data acquisition request sent by a client, a half-screen server forwards the data acquisition request to a statistical server; step 503: the statistical server can judge whether the video to be played is the hot-playing video or not and feed back the judgment result to the half-screen server. Step 504: when receiving a video to be played, which is fed back by the statistical server, and is a hot-cast video, the half-screen server acquires page card fixed data from a third-party server; step 505: the third-party server sends page card fixed data to the half-screen server; step 506: the half-screen server stores the received page card fixed data in the cache server. In one embodiment, the modification of the hot-cast video may also be performed by the control server station, thus comprising the steps of: step 507: and the control service desk sends control information to the statistical server so that the statistical server determines the hot-cast video according to the control information.
The hot-play video determining method provided by the above embodiment of the present invention may count the playing times of each video in a preset time period, and determine the video whose playing times meet the preset condition as the hot-play video.
Based on the same inventive concept, according to the page card data generation method provided in the embodiment of the present invention, an embodiment of the present invention further provides a page card data generation apparatus, as shown in fig. 6, the apparatus includes:
a request receiving module 601, configured to receive a data obtaining request for obtaining page card data sent by a client, where the data obtaining request carries user information and video information of a video to be played;
the hot-play video judgment module 602 is configured to judge whether a video to be played is a preset hot-play video according to the video information;
a data obtaining module 603, configured to, if yes, obtain page card fixed data of a page where the video to be played is located, where the page card fixed data is page card data that is collected from a third-party server in advance and is related to the video to be played;
a data collection module 604, configured to collect, from the third-party server, page card data related to the user indicated by the user information according to the user information, as non-fixed page card data of the playing page;
a data sending module 605, configured to send the page card fixed data and the page card non-fixed data to the client, so that the client may display the page card of the playing page according to the page card fixed data and the page card non-fixed data.
Further, the page card fixed data is stored in the cache memory;
the data obtaining module 603 is specifically configured to obtain, from the cache memory, page card fixed data of a playing page where the video to be played is located according to the video information.
Further, the data sending module 605 is specifically configured to combine the page card fixed data and the page card non-fixed data into page card data of the playing page, and send the page card data of the playing page to the client.
Further, the hot-air video determining module 602 is further configured to count playing times of each video within a preset time period, and determine a video with the playing times reaching a preset condition as a hot-air video.
Further, the hot-playing video determining module 602 is specifically configured to query a service log within a preset time period, count, for each video, the number of times of data requests including video information of the video recorded in the service log, and use the number of times of the data requests as the playing number of times of the video; or, in a preset time period, each time a data request for acquiring the page card data is received, the data request is stored into a cache redis, and in the cache redis, the number of times of reception in the data request is counted in an accumulating manner, and the accumulated result is used as the number of times of playing the video represented by the video information in the data request.
Further, the hot-play video determining module 602 is specifically configured to determine a video with a playing frequency greater than a first threshold as a hot-play video; and/or ranking the videos according to the playing times, and determining the videos with the ranking larger than the second threshold value as the hot-playing videos.
Further, the method also comprises the following steps:
a data storage module 606, configured to, after the hot-play video determination module 602 performs the step of determining the video whose play frequency reaches the preset condition as the hot-play video, send, for each hot-play video, video information of the hot-play video to a third-party server, receive the page card fixed data, which is sent by the third-party server and is searched according to the video information of the hot-play video, corresponding to the hot-play video, and store the received page card fixed data corresponding to the hot-play video in a cache.
An embodiment of the present invention further provides an electronic device, as shown in fig. 7, including a processor 701, a communication interface 702, a memory 703 and a communication bus 704, where the processor 701, the communication interface 702, and the memory 703 complete mutual communication through the communication bus 704,
a memory 703 for storing a computer program;
the processor 701 is configured to implement the following steps when executing the program stored in the memory 703:
receiving a data acquisition request for acquiring page card data sent by a client, wherein the data acquisition request carries user information and video information of a video to be played;
judging whether the video to be played is a preset hot-play video or not according to the video information;
if so, acquiring page card fixed data of a playing page where the video to be played is located, wherein the page card fixed data is page card data which is collected from a third-party server in advance and is related to the video to be played;
according to the user information, collecting page card data related to the user represented by the user information from the third-party server, wherein the page card data is used as page card non-fixed data of the playing page;
and sending the page card fixed data and the page card non-fixed data to the client, so that the client can display the page card of the playing page according to the page card fixed data and the page card non-fixed data.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In a further embodiment of the present invention, a computer-readable storage medium is also provided, in which a computer program is stored, which, when being executed by a processor, implements the steps of any of the above-mentioned page card data generating methods.
In a further embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to carry out any of the above-described page card data generating methods.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus, the electronic device, the computer-readable storage medium, and the computer program product, since they are substantially similar to the method embodiments, the description is simple, and the relevant points can be referred to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (15)

1. A method for generating page card data, comprising:
receiving a data acquisition request for acquiring page card data sent by a client, wherein the data acquisition request carries user information and video information of a video to be played;
judging whether the video to be played is a preset hot-play video or not according to the video information;
if so, acquiring page card fixed data of a playing page where the video to be played is located, wherein the page card fixed data is page card data which is collected from a third-party server in advance and is related to the video to be played;
according to the user information, collecting page card data related to the user represented by the user information from the third-party server, wherein the page card data is used as page card non-fixed data of the playing page;
and sending the page card fixed data and the page card non-fixed data to the client, so that the client can display the page card of the playing page according to the page card fixed data and the page card non-fixed data.
2. Method according to claim 1, characterized in that said page card fixed data are stored in a cache memory;
the acquiring of the page card fixed data of the playing page where the video to be played is located includes:
and according to the video information, acquiring page card fixed data of a playing page where the video to be played is located from the cache memory.
3. Method according to claim 1 or 2, characterized in that said sending of said page card fixed data and said page card non-fixed data to said client comprises:
merging the page card fixed data and the page card non-fixed data into page card data of the playing page;
and sending the page card data of the playing page to the client.
4. The method of claim 1, wherein the predetermined hotspots are determined by:
counting the playing times of each video within a preset time period;
and determining the video with the playing times reaching the preset condition as the hot-playing video.
5. The method according to claim 4, wherein the counting the number of playing times of each video in the preset time period comprises:
inquiring a service log in a preset time period, counting the times of data requests including video information of the video recorded in the service log aiming at each video, and taking the times of the data requests as the playing times of the video; alternatively, the first and second electrodes may be,
and storing the data request into a cache redis each time the data request for acquiring the page card data is received within a preset time period, accumulating and counting the receiving times in the data request in the cache redis, and taking the accumulated result as the playing times of the video represented by the video information in the data request.
6. The method according to claim 4, wherein the determining the video with the playing times reaching the preset condition as a hot-playing video comprises:
determining the video with the playing times larger than a first threshold value as a hot-playing video; and/or the presence of a gas in the gas,
and ranking the videos according to the playing times, and determining the videos with the ranking larger than a second threshold value as the hot-playing videos.
7. The method according to claim 4, wherein after determining the video with the playing number reaching the preset condition as the hot-play video, the method further comprises:
for each hot-broadcast video, sending video information of the hot-broadcast video to the third-party server;
receiving page card fixed data corresponding to the hot-broadcast video searched according to the video information of the hot-broadcast video and sent by the third-party server;
and storing the page card fixed data corresponding to the received hot-play video into a cache memory.
8. A page card data generating apparatus, comprising:
the request receiving module is used for receiving a data acquisition request for acquiring page card data sent by a client, wherein the data acquisition request carries user information and video information of a video to be played;
the hot-play video judging module is used for judging whether the video to be played is a preset hot-play video or not according to the video information;
the data acquisition module is used for acquiring page card fixed data of a playing page where the video to be played is located if the video to be played is located, wherein the page card fixed data is page card data which is collected from a third-party server in advance and is related to the video to be played;
a data collection module, configured to collect, from the third-party server, page card data related to the user indicated by the user information according to the user information, where the page card data is used as non-fixed data of the page card of the played page;
a data sending module, configured to send the page card fixed data and the page card non-fixed data to the client, so that the client may display the page card of the playing page according to the page card fixed data and the page card non-fixed data.
9. The apparatus according to claim 8, wherein said page card fixed data is stored in a cache memory;
the data obtaining module is specifically configured to obtain, from the cache memory, page card fixed data of a playing page where the video to be played is located according to the video information.
10. The apparatus according to claim 8 or 9, wherein the data sending module is specifically configured to combine the page card fixed data and the page card non-fixed data into the page card data of the playing page, and send the page card data of the playing page to the client.
11. The apparatus of claim 8, wherein the hot-play video determining module is further configured to count playing times of each video within a preset time period, and determine a video with a playing time reaching a preset condition as a hot-play video.
12. The apparatus according to claim 11, wherein the hot-play video determining module is specifically configured to query a service log within a preset time period, and count, for each video, a number of data requests including video information of the video recorded in the service log, and use the number of data requests as a number of playing times of the video; or, in a preset time period, each time a data request for acquiring the page card data is received, the data request is stored into a cache redis, and in the cache redis, the number of times of reception in the data request is counted in an accumulating manner, and the accumulated result is used as the number of times of playing the video represented by the video information in the data request.
13. The apparatus according to claim 11, wherein the hot-play video determining module is specifically configured to determine a video with a playing time greater than a first threshold as a hot-play video; and/or ranking the videos according to the playing times, and determining the videos with the ranking larger than a second threshold value as the hot-playing videos.
14. The apparatus of claim 11, further comprising:
and the data storage module is used for sending video information of the hot-broadcast video to the third-party server, receiving page card fixed data which is sent by the third-party server and is searched according to the video information of the hot-broadcast video, and storing the received page card fixed data corresponding to the hot-broadcast video into a high-speed buffer memory after the hot-broadcast video judgment module executes the step of determining the video with the playing times reaching the preset condition as the hot-broadcast video.
15. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 7 when executing a program stored in the memory.
CN201910983673.6A 2019-10-16 2019-10-16 Page card data generation method and device and electronic equipment Active CN110753268B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910983673.6A CN110753268B (en) 2019-10-16 2019-10-16 Page card data generation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910983673.6A CN110753268B (en) 2019-10-16 2019-10-16 Page card data generation method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110753268A CN110753268A (en) 2020-02-04
CN110753268B true CN110753268B (en) 2022-03-04

Family

ID=69278568

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910983673.6A Active CN110753268B (en) 2019-10-16 2019-10-16 Page card data generation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110753268B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491393A (en) * 2013-09-23 2014-01-01 华为技术有限公司 Video service processing method and device
CN105898612A (en) * 2015-12-31 2016-08-24 乐视网信息技术(北京)股份有限公司 Video display page generation method and device
CN110213671A (en) * 2019-06-04 2019-09-06 北京奇艺世纪科技有限公司 A kind of short-sighted frequency of hot spot determines method and apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9952742B2 (en) * 2013-03-14 2018-04-24 Google Llc Providing trending information to users
CN106686428A (en) * 2016-12-30 2017-05-17 广东欧珀移动通信有限公司 Video playing method and device
CN108848401B (en) * 2018-07-26 2021-01-19 聚好看科技股份有限公司 Video playing starting method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491393A (en) * 2013-09-23 2014-01-01 华为技术有限公司 Video service processing method and device
CN105898612A (en) * 2015-12-31 2016-08-24 乐视网信息技术(北京)股份有限公司 Video display page generation method and device
CN110213671A (en) * 2019-06-04 2019-09-06 北京奇艺世纪科技有限公司 A kind of short-sighted frequency of hot spot determines method and apparatus

Also Published As

Publication number Publication date
CN110753268A (en) 2020-02-04

Similar Documents

Publication Publication Date Title
US10051341B2 (en) Supplementing live broadcast with relevant information streams
US10326715B2 (en) System and method for updating information in an instant messaging application
US11757749B2 (en) Fusing online media monitoring data with secondary online data feeds to generate ratings data for online media exposure
US8819035B2 (en) Providing search results based on keyword detection in media content
US9396258B2 (en) Recommending video programs
WO2015139538A1 (en) Video information push method and device
US11522932B2 (en) Using messaging associated with adaptive bitrate streaming to perform media monitoring for mobile platforms
US11423096B2 (en) Method and apparatus for outputting information
US10356035B1 (en) Recommendation system based on common interests in social networks
JP2019514084A (en) Viewing time clustering for video search
KR20200020990A (en) Combined activities history on a device
CN110674345A (en) Video searching method and device and server
CN110753268B (en) Page card data generation method and device and electronic equipment
CN111427914A (en) Data obtaining method and device
US11086905B1 (en) Method and system for presenting stories
CN117596438A (en) Video stream processing system and method

Legal Events

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