CN112711726B - Method, device, computer equipment and storage medium for caching video data - Google Patents

Method, device, computer equipment and storage medium for caching video data Download PDF

Info

Publication number
CN112711726B
CN112711726B CN202011501507.7A CN202011501507A CN112711726B CN 112711726 B CN112711726 B CN 112711726B CN 202011501507 A CN202011501507 A CN 202011501507A CN 112711726 B CN112711726 B CN 112711726B
Authority
CN
China
Prior art keywords
video data
video
display area
cached
information
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
CN202011501507.7A
Other languages
Chinese (zh)
Other versions
CN112711726A (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 CN202011501507.7A priority Critical patent/CN112711726B/en
Publication of CN112711726A publication Critical patent/CN112711726A/en
Application granted granted Critical
Publication of CN112711726B publication Critical patent/CN112711726B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application relates to a method, a device, a computer device and a storage medium for caching video data. The method comprises the following steps: acquiring page information of an information flow page, wherein the information flow page comprises a visible area and an invisible area; acquiring a video identification set of video data contained in a cache pool and total duration to be cached; calculating estimated time length according to the position difference of the video display area of the visible area and the invisible area; when the estimated time length is smaller than the total time length to be cached and the video data corresponding to the video display area without the invisible area is not packaged in the cache pool, adding the video data into the cache pool, and caching the video data through the cache pool. All videos in a visible area in the information flow page are cached, whether the invisible videos are cached or not is determined through the sliding time length and the caching time length, the problem that cache data is insufficient or too much when a fixed caching strategy is adopted is avoided, and the balance of product performance while watching experience of a user is ensured.

Description

Method, device, computer equipment and storage medium for caching video data
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a computer device, and a storage medium for caching video data.
Background
When watching video, if the video content is not cached in advance, when a user wants to watch the corresponding video, the opening speed is influenced, so that the watching experience is influenced. To avoid affecting the viewing experience of the user, this problem is currently mainly solved by buffering a fixed number of video information. However, when a fixed amount of video data is cached, if the cached video data is too much, system resources are wasted, system performance is affected, and if the cached video data is too little, user experience is also affected, so that the problems of user experience and wasted system resources cannot be effectively balanced.
Disclosure of Invention
In order to solve the technical problems, the application provides a method, a device, computer equipment and a storage medium for caching video data, wherein the method, the device, the computer equipment and the storage medium are used for guaranteeing the viewing experience of a user and balancing the performance of a product.
In a first aspect, the present application provides a method of buffering video data, comprising:
acquiring page information of an information stream page, wherein the information stream page comprises the current display area and an area to be displayed, the current display area is an area where the information stream page is displayed on a terminal, the page information comprises a video display area, position information of the video display area and video identification of video data corresponding to the video display area, and the area to be displayed comprises a first video display area;
Acquiring a video data identification set of video data contained in a cache pool;
acquiring the total duration to be cached of the video data in the cache pool;
calculating estimated time length of the first video display area according to the position information of the current display area and the position difference of the position information of the first video display area;
and when the estimated time length is smaller than the total time length to be cached and the video data identification set does not contain the first video identification corresponding to the first video display area, adding the first video identification into the video data identification set so as to cache the video data corresponding to each video identification in the video data identification set through the cache Chi Huancun.
In a second aspect, the present application provides an apparatus for buffering video data, comprising:
the information acquisition page is used for acquiring page information of an information flow page, the information flow page comprises the current display area and an area to be displayed, the current display area is an area where the information flow page is displayed on a terminal, the page information comprises a video display area, position information of the video display area and a video identifier of video data corresponding to the video display area, and the area to be displayed comprises a first video display area;
A data identifier acquisition page for acquiring a video data identifier set of video data contained in the cache pool;
the total duration to be cached obtaining module is used for obtaining the total duration to be cached of the video data in the cache pool;
the estimated time length calculation module is used for calculating the estimated time length of the first video display area according to the position information of the current display area and the position difference of the position information of the first video display area;
and the caching module is used for adding the first video identifier into the video data identifier set when the estimated time length is smaller than the total time length to be cached and the video data identifier set does not contain the first video identifier corresponding to the first video display area, so that video data corresponding to each video identifier in the video data identifier set is cached Chi Huancun.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the above method of buffering video data when executing the computer program.
A computer readable storage medium having stored thereon a computer program which when executed by a processor implements the above-described method of buffering video data.
The method, the device, the computer equipment and the storage medium for caching video data comprise the following steps: acquiring page information of an information stream page, wherein the information stream page comprises a current display area and an area to be displayed, the current display area is an area of the information stream page displayed on a terminal, the page information comprises a video display area, position information of the video display area and video identification of video data corresponding to the video display area, and the area to be displayed comprises a first video display area; acquiring a video data identification set of video data contained in a cache pool; acquiring the total duration to be cached of video data in a cache pool; calculating estimated time length of the first video display area according to the position information of the current display area and the position difference of the position information of the first video display area; when the estimated time length is smaller than the total time length to be cached and the video data identification set does not contain the first video identification corresponding to the first video display area, adding the first video identification into the video data identification set so as to cache video data corresponding to each video identification in the video data identification set through the caching pool. And (3) entering an information flow page, caching all video information in a visible area, and caching invisible video information through a sliding caching strategy, namely determining whether to cache video data in the invisible area or not according to whether the sliding time length is longer than the caching time length, so that the problem of insufficient caching data or excessive caching data when a fixed caching strategy is adopted is avoided, and the balance of product performance while the user watching experience is ensured.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a flow chart of a method of buffering video data in one embodiment;
FIG. 2 is a flow chart of a method of buffering video data in one embodiment;
FIG. 3 is a schematic diagram of an information flow page in one embodiment;
FIG. 4 is a block diagram of an apparatus for buffering video data in one embodiment;
fig. 5 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
As shown in fig. 1, in one embodiment, a method of buffering video data is provided. Referring to fig. 1, the method for buffering video data specifically includes the following steps:
step S201, acquiring page information of an information stream page.
In this embodiment, the information flow page includes a current display area and an area to be displayed, where the current display area is an area where the information flow page is displayed on the terminal, the page information includes a video display area, position information of the video display area, and a video identifier of the video display area corresponding to the video data, and the area to be displayed includes a first video display area.
Specifically, the information flow page is a page for carrying information. The current display area refers to an area where any one of the current time information stream pages is displayed on the terminal. Including but not limited to mobile terminals, desktop terminals, and the like. The region to be displayed refers to a region which is not displayed on the terminal at the current moment in the information flow page, and the region to be displayed can be displayed by sliding the information flow page. The area to be displayed refers to an area which can be displayed after sliding along the information flow page in a preset direction. The preset direction refers to a direction in which the sliding distance of the information flow page is increased. The page information may include display areas of various forms of content, position information corresponding to each display area, display content corresponding to each display area, and the like. The information flow page comprises a video display area, a text display area, a picture display area and the like. The video display area is used for displaying video content, the picture display area is used for displaying pictures, and the text display area is used for displaying text information. Each type of presentation area of the information flow page contains a corresponding data identifier, e.g., there is a corresponding video data identifier for each video presentation area. The video identification is used to uniquely identify the video data. The first video display area refers to an area for displaying video data in the area to be displayed. The video display area corresponding to the area to be displayed may include one or more, wherein the first video display area may refer to one or more video display areas closest to the current display area. The distance may refer to a distance in a height direction or a width direction of the information flow page, the distance in the height direction refers to a position of the region to be displayed below/above the current display region, and the distance in the width direction refers to a position of the region to be displayed to the left/right of the current display region. The height and width of the information flow page are not completely consistent with those of the terminal, for example, the height of the display screen of the terminal may be the width of the information flow page, and the width of the display screen of the terminal may be the height of the information flow page.
Step S202, a video data identification set of video data contained in the buffer pool is acquired.
Specifically, the buffer pool refers to a data buffer for buffering video data. And if the cache pool contains video data, acquiring video data identifiers corresponding to the video data contained in the cache pool, and obtaining a video identifier set. If the video data does not exist in the cache pool, the video identification set does not contain the video identification. Each video presentation area corresponds to a video data, which may refer to a episode of a television show, a movie fragment, a television show fragment, etc.
Step S203, obtaining the total duration to be cached of the video data in the cache pool.
Specifically, the total duration to be cached refers to the duration required for caching the video data which is not cached in the complete cache pool. The duration may be determined according to the occupied memory size of the video data contained in the buffer pool that is not buffered and the buffer rate. The buffer rate may be determined according to a network download rate at the current time, or may be determined according to a download rate of the video data that has been buffered. According to the downloading rate of the cached video data, the average caching rate obtained by calculation can be estimated to obtain the caching rate according to the memory size of the video data which is cached completely and the total caching time. Or may be selected from among the buffer rates of the single completed buffered video data, such as selecting the minimum buffer rate among them. If the video data which are not cached completely does not exist in the cache pool, the total duration to be cached is a preset duration, and the duration can be calculated according to the size of a terminal display screen, the maximum sliding speed of an information flow page and the like, and can also be set manually.
Step S204, calculating estimated time length of the first video display area according to the position information of the current display area and the position difference of the position information of the first video display area.
Specifically, the first video display area belongs to an invisible area, and the time when the first video display area is likely to be displayed is determined according to the position difference between the current display area and the first video display area. The farther the first video display area is from the current display area, the longer the estimated duration is, and vice versa. The estimated time length can be defined manually, can be determined according to the maximum sliding speed and the position difference of the information flow page, can also be determined by counting the historical sliding speed of the user and is determined according to the historical sliding speed of the user. If the fastest sliding speed and the position difference in the using process of the user are selected, the estimated duration is calculated.
Step S205, when the estimated time length is less than the total time length to be cached and the video data identification set does not contain the first video identification corresponding to the first video display area, adding the first video identification into the video data identification set so as to cache the video data corresponding to each video identification in the video data identification set through the cache pool.
Specifically, the estimated time length is smaller than the total time length to be cached, which means that the user may slide to the first video display area within the estimated time length, and at this time, if the video data corresponding to the first video display area is not cached, the video playing speed is affected, so that the viewing experience of the user is affected. And if the estimated time length is smaller than the total time length to be cached and the video data corresponding to the first video display area is not cached in the cache pool, namely the first video identifier is not found in the video identifier set, adding the first video identifier into the video identifier set so as to cache the video data corresponding to each video identifier in the video identifier set through the cache pool. If the first video identifier is found in the video identifier set, the video data corresponding to the video identifier is indicated to be added into the cache pool without repeated addition.
In one embodiment, each video data in the cache pool is cached in a uniform memory size. I.e. each video data buffers the same size data. The memory of the data cache can be effectively controlled, if the whole video data is cached, the required caching time is long when the memory of the video data is large, the content occupied by the cache is large, and resources are wasted.
According to the method for caching video data, whether the video data in the invisible area are cached is determined according to whether the time length of the video data seen is smaller than the total time length of the cache needed by the data in the cache pool, so that the problem that the cache data is insufficient or too much when a fixed cache strategy is adopted is avoided, and the balance of product performance while the user watching experience is ensured.
In one embodiment, the current display area includes a second video display area, and before the total duration to be cached of the video data in the cache pool is obtained, the method further includes: and when the video data identification set does not contain the second video identification corresponding to the second video display area, adding the second video identification into the video data identification set.
Specifically, the second video display area refers to an area located in the current display area for displaying video data. The video display area included in the current display area includes one or more than one second video display area, that is, the second video display area may be one or more than one second video display area, if a plurality of second video display areas exist, the video identifier corresponding to each second video display area is matched with the video identifier set, and if the video identifier corresponding to any one second video display area exists in the video identifier set, it is indicated that the video data corresponding to the second video display area is added into the buffer pool, and no re-addition is needed. If the video identifier corresponding to any one of the second video display areas does not exist in the video identifier set, the video data corresponding to the second video display areas are not added into the cache pool, the video identifier corresponding to the second video display areas is added into the video identifier set, and the video data corresponding to the video identifier is stored in the cache pool.
If the video display area exists in the visible area and the video data corresponding to the video display area is not added into the cache pool, all video data which is not added into the cache pool in the visible area is added into the cache pool, and the playing of the video corresponding to the video display area in the visible area is possibly larger, so that if the video data which is not cached exists in the visible area, the video data needs to be cached in time.
In one embodiment, obtaining a total duration to be cached of video data in a cache pool includes: if the unfinished cached video data exist in the cache pool, calculating the sum of the time length to be cached of each unfinished cached video data in the cache pool to obtain the total time length to be cached.
In particular, the video data that is not buffered includes a complete uncached and a partial buffered. The buffer memory of the video data can be represented by a buffer memory state, the buffer memory state can be customized, the defined buffer memory state comprises three types of buffer memory to be buffered, buffer memory and buffered, the buffer memory is used for representing that the video data is completely not buffered, the buffer memory is used for representing that the video data is partially buffered, and the buffer memory is used for representing that the video data is completely buffered. Obtaining the buffer time length required by each unfinished buffered video data in the buffer pool, and calculating the sum of the buffer time lengths required by each unfinished buffered video data to obtain the total time length to be buffered. The buffer time required for each unfinished buffered video data is an estimated time. The estimated time length can be estimated according to the time length of the video data which is cached, and also can be estimated according to the current network downloading speed.
In one embodiment, obtaining a total duration to be cached of video data in a cache pool includes: if the unfinished cached video data exist in the cache pool, calculating the duration to be cached of each unfinished cached video data in the cache pool and the sum of the first preset duration to obtain the total duration to be cached.
Specifically, the first preset duration is a preset duration, and the total duration to be cached is equal to the sum of the caching duration required by the completion of all the unfinished cached video data estimated and the first preset duration. The first preset duration is set because the network environment changes at any time, and more time is reserved for caching data when one preset duration is added.
In one embodiment, obtaining a total duration to be cached of video data in a cache pool includes: if the video data in the cache pool are cached, taking the second preset time length as the total time length to be cached.
Specifically, if no uncached video data exists in the cache pool, that is, the caching is completed, or no video data exists, the preset second preset duration is taken as the total duration to be cached. The second preset duration may be determined according to a previous sliding speed of the user and a display screen height of the terminal, may be predefined, may be determined according to a maximum sliding speed of the information stream page and a display screen height/width of the terminal, and may be determined according to a duration required by the video data that has been buffered. If the second preset duration is equal to the ratio of the height/width of the display screen to the maximum sliding speed, the second preset duration may also be equal to the maximum buffering duration in all the video data which have been buffered.
In one embodiment, when the video data which has completed the buffering exists in the buffering pool, counting the memory size of the video data which has completed the buffering, counting the total buffering time, calculating the ratio of the memory size to the buffering time to obtain the buffering rate, and calculating the required buffering time of the unfinished buffering data according to the buffering rate to obtain the total time to be buffered.
In one embodiment, when the video data which has completed buffering exists in the buffering pool, before the total duration to be buffered of the video data in the buffering pool is obtained, the method further comprises: acquiring the memory size and the buffering duration of each video data which is buffered completely; calculating a cache rate according to the memory size and the cache duration of each video data which is cached completely; and calculating to obtain the total duration to be cached according to the minimum caching rate and the memory size of the video data which is not cached in the caching pool.
Specifically, the buffer rate of each video data which has completed buffering is calculated, that is, the buffer efficiency corresponding to the video data is calculated according to the memory size and the corresponding buffer time length of each video data which has completed buffering, and the minimum buffer efficiency is selected from the buffer efficiencies of the video data which has completed buffering. And predicting the buffer time required by the video data which is not buffered by adopting the minimum buffer efficiency. And obtaining the total duration to be cached according to the minimum cache efficiency of the memory size ratio of the video data which is not cached. The minimum buffering rate is employed because it represents the maximum buffering time required for video data that has completed buffering.
In one embodiment, the size of the memory to be cached of each video data in the cache pool is the same, and before the total duration to be cached of the video data in the cache pool is obtained when the video data which has been cached is in the cache pool, the method further includes: obtaining the maximum caching duration in each video data which is cached completely; calculating a cache rate according to the memory to be cached and the maximum cache duration; and calculating to obtain the total duration to be cached according to the caching rate and the memory size of the unfinished cached video in the caching pool.
Specifically, since the memory size of each video data that has completed buffering is the same. The memory to be cached refers to the cache memory size of each video data, and the memory size can be set according to requirements, and different sizes can be set in different scenes. If the video display area is large in interval, the value of the memory to be cached corresponding to less video display area can be smaller than the value of the memory to be cached corresponding to more video display area and smaller interval. Under the condition that the memory to be cached is fixed, the larger the caching duration is, the smaller the caching speed is, so that the maximum caching duration in the video data which is cached is selected, the caching speed is calculated according to the ratio of the memory to be cached to the maximum caching duration, and the caching duration required by the unfinished cached video in the caching pool is calculated according to the caching speed, so that the total duration to be cached is obtained. And counting the memory size of the video data which is not cached in the cache pool, wherein the memory size is longer than the upper cache rate by the total duration to be cached.
In one embodiment, the size of the memory to be cached of each video data in the cache pool is the same, when the cached video data exists in the cache pool and the video data in the cache pool are all cached, the method includes the steps of: obtaining the maximum caching duration in each video data which is cached completely; and taking the maximum caching duration as the total duration to be cached.
Specifically, if there is no unfinished cached video data in the cache pool and there is cached video data, selecting a maximum cache duration from the cache durations corresponding to the cached video data, and taking the maximum cache duration as the total duration to be cached. The maximum buffer time length is selected as the total time length to be buffered, because if the video data corresponding to the first video identifier needs to be buffered, the time length required for completing the video data is estimated to be the maximum buffer time length. If the estimated time length of the first video display area being displayed is smaller than the time length (the maximum buffer time length) when the video data corresponding to the first video display area is required to be completed, the video data can be added into a buffer pool, and the video data can be buffered in advance.
In one embodiment, the position information of the current display area includes height information of the current display area on the information flow page, and the position information of the first video display area includes height information of the first video display area on the information flow page; according to the position information of the current display area and the position difference between the position information of the first video display area, calculating the estimated time length of the first video display area, including: acquiring the screen height of a terminal display screen; calculating to obtain a first sliding distance according to the height information of the current display area on the information flow page, the screen height and the height information of the first video display area on the information flow page; and calculating according to the first sliding distance and the preset sliding speed to obtain the estimated time length.
Specifically, the height information of the information flow page refers to the height of the side corresponding to the movable direction of the information flow page, if the information flow page can slide up and down, the height information is the distance between the upper side and the lower side of the information flow page, if the information flow page can slide left and right, the height information is the distance between the left side and the right side of the information flow page. The screen height refers to a height corresponding to an edge parallel to the height direction of the information stream. If the height information of the current display area is the slid distance of the information flow page, calculating the sum of the slid distance and the screen height, and subtracting the sum from the height information of the first video display area to obtain a first slid distance. If the height information of the current display area comprises the sum of the sliding distance and the screen height, the height information of the current display area is directly subtracted from the height information of the first video display area to obtain a first sliding distance. And calculating according to the first sliding distance and the preset sliding speed to obtain the estimated time length. The preset sliding speed can be customized, for example, defined as the maximum sliding speed of the information flow page. The maximum slip speed is a limit slip speed obtained by a preliminary test. The preset sliding speed may also be obtained by performing a statistical analysis on the historical sliding speed of the user. And calculating by adopting the maximum sliding speed to obtain the shortest estimated time. The shortest estimated duration represents the fastest time for which the first video presentation area is presented. I.e. the video data corresponding to the first video presentation area may be cached before the first video presentation area is presented.
In one embodiment, when a sliding operation for the information flow page is detected, a second sliding distance and a sliding direction corresponding to the sliding operation are obtained; when the second sliding distance is greater than a preset distance threshold and the sliding direction is consistent with the first direction, updating the current display area according to the second sliding distance and the sliding direction, taking the updated current display area as the current display area, and executing a video data identification set for acquiring video data contained in the cache pool, wherein the first direction is the direction pointing to the first side of the information stream display page.
In this embodiment, when the second sliding distance is greater than the preset distance threshold and the sliding direction is consistent with the second direction, the current display area is updated according to the second sliding distance and the sliding direction, and the updated current display area is used as the current display area, where the second direction is a direction pointing to a second edge of the information flow display page, and the first edge is opposite to the second edge.
Specifically, the sliding operation for the information flow page means that the sliding operation is used to slide the information flow page. And determining the sliding distance of the information flow page according to the sliding operation, and obtaining a second sliding distance. Judging whether the sliding distance is larger than a preset distance threshold value, if so, indicating that the sliding operation is effective, and updating the current display area. And detecting the sliding direction of the sliding operation, wherein the sliding direction is the direction pointing to a first side or a second side of the information flow page, the first side and the second side are opposite sides, the first side can be any one pass for the purpose of upper, lower, left and right sides, and the second side is the opposite side to the first side, namely, the first side is the left side, and the second side is the right side. When the sliding direction is the direction pointing to the first side, the sliding distance of the information flow page is increased, whereas when the sliding direction is the second side, the sliding distance of the information flow page is decreased.
For ease of illustration, the first side is taken as the left side and the second side is taken as the right side. When the second sliding distance is greater than a preset distance threshold and the sliding direction is the direction pointing to the left (sliding to the left), updating the current display page according to the second sliding distance and the sliding direction to obtain an updated current display area, determining whether the area to be displayed corresponding to the updated current display area contains a video display area, if so, determining whether to add the video data corresponding to the video display area contained in the new area to be displayed into the cache pool according to the total time length to be cached of the video data contained in the cache pool and the estimated time length of the video display area contained in the new area to be displayed. If the second sliding distance is greater than the preset distance threshold and the sliding direction is the direction pointing to the right (sliding to the right), updating the current display page according to the second sliding distance and the sliding direction to obtain an updated current display area. Only when sliding leftwards, that is, when the sliding distance of the information flow page is increased after sliding, the cache judgment is performed on the video data corresponding to the video display area of the area to be displayed, and when the sliding distance of the information flow page is reduced, the cache judgment is not performed on the video data corresponding to the video display area of the area to be displayed, because in general, the sliding distance is reduced, and the possibility that the subsequent video data is cached is high.
In one embodiment, the method for buffering video data includes:
step S301, entering an information flow page, defining whether the characteristics contained in each piece of information are unique identification, coordinate points, video information and cached, defining the maximum caching time, wherein the default value of the maximum caching time is the caching time of caching the fixed memory size data information under the current network condition, and creating a video caching pool.
Step S302, whether a video presentation area exists. And judging whether the information flow page has a video display area, if so, entering step S303, and otherwise, ending.
Step S303, traversing page information of the information flow page. And dividing the video display area according to the traversing result. Video data corresponding to a video display area contained in a visible area (current display area) on a terminal display screen, and video identification of uncached video data are added to a first array, video data corresponding to a video display area contained in an invisible area (to-be-displayed area), and video identification of uncached video data are added to a second array.
In this embodiment, step S303 includes:
in step S3031, the first information is fetched. The first information is any piece of information in the information flow page.
In step S3032, the first information is null. If the signal is empty, the process ends, and if not, the process proceeds to step S3033.
Step S3033, if the video display area is included, the process proceeds to step S3034, and otherwise returns to step S3031.
Step S3034, it determines whether the buffer is not stored. And judging whether the video data corresponding to the video display area contained in the first information is cached, if not, entering step S3035, otherwise, returning to step S3031.
Step S3035, whether it is visible in the screen. Whether the video display area included in the first information is visible in the screen (current display area) is determined, if so, the step S3036 is entered, and if not, the step S3037 is entered.
In step S3036, a first array is added. And adding the video identification corresponding to the video display area visible in the screen into the first array.
In step S3037, a second array is added. And adding the video identification corresponding to the invisible video display area in the screen into a second array.
Step S304, adding into a cache pool. And adding video data corresponding to the video data identification in the first array into a cache pool.
Step S305, calculating the total duration to be cached. And obtaining the caching duration required by the video data which is not cached in the caching pool, and obtaining the total duration to be cached.
Step S306, a second array is acquired.
In this embodiment, step S306 includes:
step S3061, the second information is fetched. The second information is any piece of information in the second array.
In step S3062, the second information is empty. If yes, the process ends, otherwise, the process proceeds to step S3063.
Step 3063, predicting whether the duration is smaller than the sum of the total duration to be cached and the maximum caching duration. If so, the process proceeds to step S3064, and otherwise, the process ends. The estimated time length refers to the estimated time length of the second information to be displayed, and the maximum buffer time length refers to the longest buffer time length in the video data which is completely buffered in the buffer pool. Wherein the memory size of the cache of each video data in the cache pool is the same.
In step S3064, a third array is added. And adding the video data identifier with the estimated time length in the video display area corresponding to the video data identifier in the second array being smaller than the sum of the total time length to be cached and the maximum caching time length into a third array.
Step S3065, accumulating the maximum caching duration for the total duration to be cached. If the second array further includes information, then the second array is obtained and proceeds to step 3061.
Step S307, a third array is acquired.
Step S308, adding into the cache pool. And adding video data corresponding to the video identifications in the third array into a cache pool.
In this embodiment, step S308 includes:
step S3081, de-duplication is performed according to the video identification. And de-duplicating the video in the cache pool and the identification of the video data of the first array and the third array according to the defined video identification, if the video exists in the cache pool, not repeatedly adding the video, otherwise adding the video data, and marking the cache state of the video data as to-be-cached.
In step S3082, video data in the buffer pool is loaded.
Step S3083, the mark is cached. The loaded video data is modified to be cached.
In step S3084, the maximum buffer time length is updated. And updating the maximum buffer time according to the buffer time of the loaded video data, namely, taking the maximum value of the buffer time of the loaded video data as the maximum buffer time. And finding out the maximum value of the buffer time according to the buffer time of the buffered video data in the buffer pool, and assigning the maximum buffer time.
In step S3085, the total duration to be cached is updated. And calculating the total duration to be cached according to the video data which are not cached in the cache pool.
Step S309, leave the information flow page.
Step S310, the cache pool is cleared and destroyed. When leaving the information flow page, the buffer pool is emptied and destroyed, so that traceless use is realized, and the increase of an App running memory is effectively reduced.
In a specific embodiment, the method for buffering video data includes:
defining that each piece of information in the information flow contains a unique identifier ItemId of a characteristic field, a coordinate point P (x, y), whether the information is video information isVideoInfo and whether isCached is cached; defining a maximum cache time-Max; defining total cache time length TotalCacheTime; defining a first Array1, a second Array2 and a third Array3; a cache pool CachePool is created.
Traversing the information flow, referring to fig. 3, fig. 3 is a schematic diagram of an information flow page. It is known whether or not in the visible region from the vertical coordinate point P.y, and a definition is made using boolean value isVisibleInfo, with the isVisibleInfo and isVideoInfo values YES, the information with the isCached NO being added to Array1, the information with the isVisibleInfo and isCached NO being added to Array2.
Defining that the cached video information in the cache pool comprises a unique identifier ItemId of a characteristic field, information flow information InfoItem, whether cached and a cache time length cacheTime; the method comprises the steps of comparing and de-duplicating information in an Array1 with information in a cache pool according to ItemId, adding the information into the cache pool for caching, setting cached information isCached as YES, and updating cached information cacheTime; total CacheTime is the sum of the cacheTimes of the uncached information, and when both cache pool information isCached are YES, the total CacheTime is zero.
And finding out the maximum value of a cache time length according to the cacheTime of the cached video information in the CachePool, and assigning the maximum value to the cacheTime-Max.
The known device has a slid height of ScrolledHeight and a screen height of Screen Height; the limiting slip speed maxstrolrspeed of the device is known.
Traversing Array2, defining H as the height of a piece of information from a visible area, and defining the time length for sliding to the information as ScrollTime; yielding H equal to P.y minus scritledHeight and minus scrieneHeight; the ScrollTime is equal to H divided by MaxScrollSped, and if the ScrollTime is less than Total CacheTime plus CacheTime-Max, indicating that there is insufficient time within the ScrollTime to cache this information, then this information is added to Array3, total CacheTime accumulates CacheTime-Max; otherwise, stopping traversing.
The information in the Array3 and the information in the CachePool are subjected to contrast and duplication removal according to the ItemId, and then added to the CachePool for caching, the cached information isCached is set as YES, and the cacheTime of the cached information is updated; total CacheTime is the sum of the cacheTimes of uncached information, and when all information isCached in Cachepool is YES, total CacheTime is zero.
Monitoring a system sliding notice when a sliding information flow list starts, and after sliding the list upwards for a certain distance, re-determining a new display area, executing a caching strategy, and dividing a first array, a second array and a third array from the new one until determining whether corresponding video data in each array is added into a caching pool; the caching policy is not enforced when the list is slid down; while scritledHeight accumulates scrillDistance.
When all video information iscched in the information flow list is YES, the caching policy flow is not executed.
When leaving the information flow list page, the CachePool is emptied and destroyed.
The method for caching video data is packaged in a management class, is applicable to all information flow list pages, increases reusability and portability, and improves development efficiency. The method for caching video data selectively caches videos by using the sliding speed and the caching duration, reduces the caching quantity, improves the product performance, ensures that the videos watched by the user are cached, and can directly start playing the cached videos without waiting. The cache data is stored in the running memory and cannot be stored in a local disk, so that the size and the volume of a packet after the application is used are effectively reduced, a cache pool can be emptied and destroyed when the information flow page is left, traceless use is realized, and the increase of the running memory of the application is effectively reduced.
Fig. 1 is a flow chart of a method of buffering video data in one embodiment. It should be understood that, although the steps in the flowchart of fig. 1 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 1 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of other steps or sub-steps of other steps.
In one embodiment, as shown in fig. 4, there is provided an apparatus 200 for buffering video data, comprising:
the information acquisition page 201 is configured to acquire page information of an information flow page, where the information flow page includes a current display area and an area to be displayed, the current display area is an area where the information flow page is displayed on a terminal, the page information includes a video display area, position information of the video display area, and a video identifier of video data corresponding to the video display area, and the area to be displayed includes a first video display area;
a data identifier obtaining module 202, configured to obtain a video data identifier set of video data contained in the cache pool;
the total duration to be cached obtaining module 203 is configured to obtain total duration to be cached of video data in the cache pool;
the estimated time length calculation module 204 is configured to calculate an estimated time length of the first video display area according to the position information of the current display area and the position difference of the position information of the first video display area;
and the caching module 205 is configured to add the first video identifier to the video data identifier set when the estimated duration is less than the total duration to be cached and the video data identifier set does not include the first video identifier corresponding to the first video display area, so as to cache video data corresponding to each video identifier in the video data identifier set through the cache pool.
In one embodiment, the current presentation area comprises a second video presentation area,
the above-mentioned caching module 205 is further configured to add the second video identifier to the video data identifier set when the video data identifier set does not include the second video identifier corresponding to the second video display area.
In one embodiment, the total duration to be cached obtaining module 203 is specifically configured to calculate a sum of the duration to be cached of each piece of video data that is not cached in the cache pool if there is video data that is not cached in the cache pool, so as to obtain the total duration to be cached.
In one embodiment, the total duration to be cached obtaining module 203 is specifically configured to calculate a total duration to be cached of each video data to be cached that is not yet cached in the cache pool and a sum of the first preset duration if there is video data to be cached that is not yet cached in the cache pool.
In an embodiment, the total duration to be cached obtaining module 203 is specifically configured to take the second preset duration as the total duration to be cached if all the video data in the cache pool have been cached.
In one embodiment, the total duration to be cached obtaining module 203 is further configured to obtain, when the cached video data already completed exists in the cache pool, a memory size and a cache duration of each of the video data already completed; calculating a cache rate according to the memory size and the cache duration of each video data which is cached completely; and calculating to obtain the total duration to be cached according to the minimum caching rate and the memory size of the video data which is not cached in the caching pool.
In one embodiment, the size of the memory to be cached for each video data in the cache pool is the same,
the total duration to be cached obtaining module 203 is further configured to obtain a maximum cache duration in each video data that has been cached when there is video data that has been cached in the cache pool; calculating a cache rate according to the memory to be cached and the maximum cache duration; and calculating to obtain the total duration to be cached according to the caching rate and the memory size of the unfinished cached video in the caching pool.
In one embodiment, the size of the memory to be cached of each video data in the cache pool is the same, when the video data which has been cached in the cache pool exists, and the video data in the cache pool has been cached, the total duration to be cached obtaining module 203 is further configured to obtain the maximum duration of the video data which has been cached; and taking the maximum caching duration as the total duration to be cached.
In one embodiment, the estimated duration calculation module 204 is configured to calculate, based on the estimated duration calculation module, the position information of the current display area including the height information of the current display area on the information stream page, and the position information of the first video display area including the height information of the first video display area on the information stream page; acquiring the screen height of a terminal display screen; calculating to obtain a first sliding distance according to the height information of the current display area on the information flow page, the screen height and the height information of the first video display area on the information flow page; and calculating according to the first sliding distance and the preset sliding speed to obtain the estimated time length.
In one embodiment, the apparatus 200 for buffering video data further includes:
the sliding operation detection module is used for acquiring a second sliding distance and a sliding direction corresponding to the sliding operation when the sliding operation for the information flow page is detected;
the page updating module is used for updating the current display area according to the second sliding distance and the sliding direction when the second sliding distance is larger than a preset distance threshold value and the sliding direction is consistent with the first direction, taking the updated current display area as the current display area, and executing the video data identification set for acquiring the video data contained in the cache pool, wherein the first direction is the direction pointing to the first side of the information stream display page;
and the page updating module is further used for updating the current display area according to the second sliding distance and the sliding direction when the second sliding distance is larger than a preset distance threshold value and the sliding direction is consistent with the second direction, and taking the updated current display area as the current display area, wherein the second direction is the direction pointing to the second side of the information flow display page, and the first side is opposite to the second side.
In one embodiment, the apparatus 200 for buffering video data further includes:
And the cache pool creation module is used for creating a cache pool when the entering operation of the information flow page is detected and the information flow page contains the video display area.
In one embodiment, the apparatus 200 for buffering video data further includes:
and the cache destroying module is used for emptying and destroying the cache pool when the closing of the information flow page is detected.
FIG. 5 illustrates an internal block diagram of a computer device in one embodiment. As shown in fig. 5, the computer device is connected to the processor, memory, network interface, input device and display screen via a system bus. The memory includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program which, when executed by a processor, causes the processor to implement a method of buffering video data. The internal memory may also have stored therein a computer program which, when executed by the processor, causes the processor to perform a method of buffering video data. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 5 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, the apparatus for buffering video data provided by the present application may be implemented in the form of a computer program that is executable on a computer device as shown in fig. 5. The memory of the computer device may store various program modules constituting the apparatus for caching video data, for example, the information acquisition page 201, the data identifier acquisition module 202, the total duration to be cached acquisition module 203, the estimated duration calculation module 204, and the cache module 205 shown in fig. 4. The computer program of each program module causes a processor to execute the steps of the method of buffering video data of each embodiment of the present application described in the present specification.
For example, the computer device shown in fig. 5 may execute, by using the information acquisition page 201 in the apparatus for caching video data as shown in fig. 4, acquiring page information of an information flow page, where the information flow page includes a current display area and an area to be displayed, the current display area is an area where the information flow page is displayed on the terminal, the page information includes a video display area, location information of the video display area, and a video identifier of the video display area corresponding to the video data, and the area to be displayed includes a first video display area. The computer device may perform, via the data identifier acquisition module 202, acquiring a set of video data identifiers for video data included in a cache pool for caching video data corresponding to each video identifier in the set of video data identifiers. The computer device may perform obtaining the total duration to be cached of the video data in the cache pool through the total duration to be cached obtaining module 203. The computer device may calculate the estimated time length of the first video display area according to the position information of the current display area and the position difference of the position information of the first video display area through the estimated time length calculation module 204. The computer device may execute, through the caching module 205, when the estimated duration is less than the total duration to be cached, and the video data identifier set does not include the first video identifier corresponding to the first video display area, and add the first video identifier to the video data identifier set, so as to cache, through the cache pool, video data corresponding to each video identifier in the video data identifier set.
In one embodiment, a computer device is provided that includes a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps in any one of the embodiments of the method of caching video data described above when the computer program is executed by the processor.
In an embodiment, a computer readable storage medium is provided, on which a computer program is stored which, when executed by a processor, implements the steps of any of the embodiments of the method of caching video data described above.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It should be noted that in this document, relational terms such as "first" and "second" and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a specific embodiment of the invention to enable those skilled in the art to understand or practice the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (12)

1. A method of buffering video data, the method comprising:
acquiring page information of an information stream page, wherein the information stream page comprises a current display area and an area to be displayed, the current display area is an area where the information stream page is displayed on a terminal, the page information comprises a video display area, position information of the video display area and video identification of video data corresponding to the video display area, and the area to be displayed comprises a first video display area;
acquiring a video data identification set of video data contained in a cache pool;
acquiring the total duration to be cached of the video data in the cache pool;
calculating estimated time length of the first video display area according to the position information of the current display area and the position difference of the position information of the first video display area;
when the estimated time length is smaller than the total time length to be cached and the video data identification set does not contain a first video identification corresponding to the first video display area, adding the first video identification into the video data identification set so as to cache the video data corresponding to each video identification in the video data identification set through the Chi Huancun;
The position information of the current display area comprises the height information of the current display area on the information flow page, and the position information of the first video display area comprises the height information of the first video display area on the information flow page;
the calculating the estimated duration of the first video display area according to the position information of the current display area and the position difference of the position information of the first video display area includes:
acquiring the screen height of the terminal display screen;
calculating to obtain a first sliding distance according to the height information of the current display area on the information flow page, the screen height and the height information of the first video display area on the information flow page;
and calculating the estimated time length according to the first sliding distance and the preset sliding speed.
2. The method of claim 1, wherein the current presentation area includes a second video presentation area, and wherein prior to the obtaining the total length of time to be cached for the video data in the cache pool, further comprising:
and when the video data identification set does not contain the second video identification corresponding to the second video display area, adding the second video identification into the video data identification set.
3. The method of claim 1, wherein the obtaining the total duration to be cached of the video data in the cache pool comprises:
if the unfinished cached video data exist in the cache pool, calculating the sum of the time length to be cached of each unfinished cached video data in the cache pool to obtain the total time length to be cached; or (b)
If the unfinished cached video data exist in the cache pool, calculating the duration to be cached of each unfinished cached video data in the cache pool and the sum of the first preset duration to obtain the total duration to be cached.
4. The method of claim 3, wherein the obtaining the total duration to be cached of the video data in the cache pool comprises:
and if the video data in the cache pool are cached, taking the second preset time length as the total time length to be cached.
5. The method according to claim 1, wherein the size of the memory to be cached of each video data in the cache pool is the same, and before the obtaining the total duration to be cached of the video data in the cache pool when the cached video data exists in the cache pool, further comprises:
Obtaining the maximum caching duration in each piece of video data which is cached completely;
calculating a cache rate according to the memory to be cached and the maximum cache duration;
and calculating the total duration to be cached according to the caching rate and the memory size of the unfinished cached video in the caching pool.
6. The method of claim 1, wherein the size of the memory to be cached for each video data in the cache pool is the same, and when the cache pool has video data that has been cached and the video data in the cache pool has all been cached, the obtaining the total duration to be cached for the video data in the cache pool includes:
obtaining the maximum caching duration in each piece of video data which is cached completely;
and taking the maximum caching duration as the total duration to be cached.
7. The method according to claim 1, wherein the method further comprises:
when the sliding operation for the information flow page is detected, acquiring a second sliding distance and a sliding direction corresponding to the sliding operation;
when the second sliding distance is greater than a preset distance threshold and the sliding direction is consistent with a first direction, updating the current display area according to the second sliding distance and the sliding direction, taking the updated current display area as the current display area, and executing a video data identification set for acquiring video data contained in a cache pool, wherein the first direction is a direction pointing to a first side of the information stream display page;
When the second sliding distance is greater than the preset distance threshold and the sliding direction is consistent with the second direction, updating the current display area according to the second sliding distance and the sliding direction, and taking the updated current display area as the current display area, wherein the second direction is the direction pointing to the second side of the information flow display page, and the first side is opposite to the second side.
8. The method according to claim 1, wherein the method further comprises:
and when the entering operation of the information flow page is detected, and the information flow page comprises the video display area, creating the cache pool.
9. The method according to claim 1, wherein the method further comprises:
and when the information flow page is detected to be closed, the cache pool is emptied and destroyed.
10. An apparatus for buffering video data, the apparatus comprising:
the information acquisition page is used for acquiring page information of an information flow page, the information flow page comprises a current display area and an area to be displayed, the current display area is an area where the information flow page is displayed on a terminal, the page information comprises a video display area, position information of the video display area and a video identifier of video data corresponding to the video display area, and the area to be displayed comprises a first video display area;
The data identification acquisition page is used for acquiring a video data identification set of video data contained in a cache pool, and the cache pool is used for caching video data corresponding to each video identification in the video data identification set;
the total duration to be cached obtaining module is used for obtaining the total duration to be cached of the video data in the cache pool;
the estimated time length calculation module is used for calculating the estimated time length of the first video display area according to the position information of the current display area and the position difference of the position information of the first video display area;
the caching module is configured to add the first video identifier to the video data identifier set when the estimated duration is less than the total duration to be cached and the video data identifier set does not include the first video identifier corresponding to the first video display area, so as to cache, by the cache Chi Huancun, video data corresponding to each video identifier in the video data identifier set;
the position information of the current display area comprises the height information of the current display area on the information flow page, and the position information of the first video display area comprises the height information of the first video display area on the information flow page;
The estimated duration calculation module is specifically configured to:
acquiring the screen height of the terminal display screen;
calculating to obtain a first sliding distance according to the height information of the current display area on the information flow page, the screen height and the height information of the first video display area on the information flow page;
and calculating the estimated time length according to the first sliding distance and the preset sliding speed.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 9 when the computer program is executed by the processor.
12. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 9.
CN202011501507.7A 2020-12-17 2020-12-17 Method, device, computer equipment and storage medium for caching video data Active CN112711726B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011501507.7A CN112711726B (en) 2020-12-17 2020-12-17 Method, device, computer equipment and storage medium for caching video data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011501507.7A CN112711726B (en) 2020-12-17 2020-12-17 Method, device, computer equipment and storage medium for caching video data

Publications (2)

Publication Number Publication Date
CN112711726A CN112711726A (en) 2021-04-27
CN112711726B true CN112711726B (en) 2023-09-01

Family

ID=75544472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011501507.7A Active CN112711726B (en) 2020-12-17 2020-12-17 Method, device, computer equipment and storage medium for caching video data

Country Status (1)

Country Link
CN (1) CN112711726B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205680A (en) * 2021-12-01 2022-03-18 广州方硅信息技术有限公司 Video cover display method and device, equipment, medium and product thereof

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1227029A (en) * 1996-07-01 1999-08-25 太阳微系统公司 Video delivery system and method which displays slider bar on subscriber video screen for indexing into video stream
CN105095200A (en) * 2014-04-16 2015-11-25 北大方正集团有限公司 Method and device for displaying picture in waterfall flow manner
CN107066632A (en) * 2017-06-05 2017-08-18 厦门美柚信息科技有限公司 The method and device that a kind of info web is preloaded
CN108416000A (en) * 2018-02-27 2018-08-17 百度在线网络技术(北京)有限公司 Method for exhibiting data, device, equipment and storage medium
CN109815367A (en) * 2019-01-24 2019-05-28 北京字节跳动网络技术有限公司 The interaction control method and device of displayed page
CN110276032A (en) * 2019-06-26 2019-09-24 深圳市迅雷网络技术有限公司 Information data acquisition methods, device, system and computer storage medium to be presented
CN111083217A (en) * 2019-12-11 2020-04-28 北京达佳互联信息技术有限公司 Method and device for pushing Feed stream and electronic equipment
CN111580732A (en) * 2020-05-06 2020-08-25 北京奇艺世纪科技有限公司 Page content display method and device, electronic equipment and computer storage medium
CN111966887A (en) * 2019-05-20 2020-11-20 北京沃东天骏信息技术有限公司 Dynamic caching method and device, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060168631A1 (en) * 2005-01-21 2006-07-27 Sony Corporation Method and apparatus for displaying content information
US8497867B2 (en) * 2008-11-20 2013-07-30 Canon Kabushiki Kaisha Information processing system, information processing apparatus, display processing method therefor, and computer-readable storage medium
US9094714B2 (en) * 2009-05-29 2015-07-28 Cognitive Networks, Inc. Systems and methods for on-screen graphics detection
CA2761553C (en) * 2011-12-09 2019-03-05 Ibm Canada Limited - Ibm Canada Limitee Logical buffer pool extension

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1227029A (en) * 1996-07-01 1999-08-25 太阳微系统公司 Video delivery system and method which displays slider bar on subscriber video screen for indexing into video stream
CN105095200A (en) * 2014-04-16 2015-11-25 北大方正集团有限公司 Method and device for displaying picture in waterfall flow manner
CN107066632A (en) * 2017-06-05 2017-08-18 厦门美柚信息科技有限公司 The method and device that a kind of info web is preloaded
CN108416000A (en) * 2018-02-27 2018-08-17 百度在线网络技术(北京)有限公司 Method for exhibiting data, device, equipment and storage medium
CN109815367A (en) * 2019-01-24 2019-05-28 北京字节跳动网络技术有限公司 The interaction control method and device of displayed page
CN111966887A (en) * 2019-05-20 2020-11-20 北京沃东天骏信息技术有限公司 Dynamic caching method and device, electronic equipment and storage medium
CN110276032A (en) * 2019-06-26 2019-09-24 深圳市迅雷网络技术有限公司 Information data acquisition methods, device, system and computer storage medium to be presented
CN111083217A (en) * 2019-12-11 2020-04-28 北京达佳互联信息技术有限公司 Method and device for pushing Feed stream and electronic equipment
CN111580732A (en) * 2020-05-06 2020-08-25 北京奇艺世纪科技有限公司 Page content display method and device, electronic equipment and computer storage medium

Also Published As

Publication number Publication date
CN112711726A (en) 2021-04-27

Similar Documents

Publication Publication Date Title
CN111159436B (en) Method, device and computing equipment for recommending multimedia content
CN106610993B (en) Video preview display method and device
US20220261129A1 (en) Display controlling method, terminal, information processing apparatus, and storage medium
CN108259939B (en) New video push control method and device and server
KR102047568B1 (en) Measuring web page rendering time
WO2017173781A1 (en) Video frame capturing method and device
TWI671647B (en) Method, device and electronic device for calculating the duration of the first screen of a page
CN109388317B (en) Picture loading method, terminal device and storage medium
US20160292189A1 (en) System and method for managing content deletion
BR112012030176B1 (en) apparatus and method of display control, and, recording media
CN105872713B (en) Method and device for displaying additional media information
WO2016107325A1 (en) Page resource loading method and device based on mobile terminal
CN108021590A (en) A kind of destination object attribute determining method, attribute update method and device
CN110780939B (en) Method, device, computer equipment and storage medium for loading resource file
CN112822560B (en) Virtual gift giving method, system, computer device and storage medium
EP3408752B1 (en) Object management and visualization using a computing device
CN115098803A (en) Book recommendation algorithm and system based on mobile library
CN111538557B (en) Barrage rendering method based on cascading style sheet and related equipment
CN112711726B (en) Method, device, computer equipment and storage medium for caching video data
CN106649313A (en) Method and equipment for processing cache data
CN110806840A (en) Flash memory card data storage method based on multiple data streams, flash memory card and equipment
CN110401869A (en) A kind of net cast method, system and electronic equipment and storage medium
CN105989012B (en) page display method, device, mobile terminal and system
CN111698548B (en) Video playing method and device
CN112541140A (en) List loading method, terminal device, electronic device and storage medium

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