CN106658067B - The method and apparatus of caching are set - Google Patents

The method and apparatus of caching are set Download PDF

Info

Publication number
CN106658067B
CN106658067B CN201611267955.9A CN201611267955A CN106658067B CN 106658067 B CN106658067 B CN 106658067B CN 201611267955 A CN201611267955 A CN 201611267955A CN 106658067 B CN106658067 B CN 106658067B
Authority
CN
China
Prior art keywords
caching
user
habit
operating
capacity
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
CN201611267955.9A
Other languages
Chinese (zh)
Other versions
CN106658067A (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.)
China Mobile Communications Group Co Ltd
China Mobile Group Jiangsu Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Jiangsu 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 China Mobile Communications Group Co Ltd, China Mobile Group Jiangsu Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201611267955.9A priority Critical patent/CN106658067B/en
Publication of CN106658067A publication Critical patent/CN106658067A/en
Application granted granted Critical
Publication of CN106658067B publication Critical patent/CN106658067B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/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/432Content retrieval operation from a local storage medium, e.g. hard-disk
    • H04N21/4325Content retrieval operation from a local storage medium, e.g. hard-disk by playing back content from the storage medium
    • 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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2387Stream processing in response to a playback request from an end-user, e.g. for trick-play
    • 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/25891Management of end-user data being end-user preferences
    • 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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Graphics (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a kind of method and apparatus of setting caching.This method comprises: obtaining operating parameter when user watches video;Based on operating parameter, the operating habit of the user is identified;Based on operating habit, the amount of capacity of caching is set.The embodiment of the present invention is accustomed to not only agreeing with user demand, but also save the quantity flow of terminal resource and user, and the normal use of Logistics networks resource the size of buffer memory capacity is arranged depending on the user's operation by identifying the operating habit of user.

Description

The method and apparatus of caching are set
Technical field
The present invention relates to computer field more particularly to a kind of method and apparatus of setting caching.
Background technique
With the fast development of Internet technology, people have been accustomed to obtaining more information by internet.It is same in this When, digital video technology and the widely available of intelligent terminal allow users to be seen by intelligent terminal acquisition network video It sees.
Currently, more and more users watch video by various websites online.For this online video-see, lead to Often video cache can be set in the processing of the Streaming Media of terminal and playout software, under pre- to the video progress after current playing point It carries, so that user is able to maintain smooth viewing.
In addition, caching can be when user closes terminal applies or more lag certain time unification is deleted, so as to currently broadcast Data before putting a little can still be buffered in terminal and play back for user.Video after current playing point generally also will not infinitely add It carries, but can be downloaded according to the preset data volume of terminal, on the one hand ensure that user smooth can watch and support appropriate fast Into on the other hand avoiding excessively caching the resource overhead for increasing meaningless customer flow or increasing terminal and flow.
In common buffer setting method at present, the size of population of buffer area be it is fixed, cache the acquisition of Streaming Media Mode and filling mode are also fixed.In the fixed buffer area of size of population, video can be carried out by front and back search It plays.However, when the range of user's F.F. search is beyond caching range, then being needed if backward buffer area is arranged too small User waits to re-read;If backward buffer area setting is too much, can a large amount of occupied terminal resources, while may also Cause a large amount of content users of pre-download not need, wastes floating resources.Similarly, if forward direction buffer area is arranged It greatly, then can a large amount of memory source of occupied terminal;If forward direction buffer area is arranged too small (having seen deleting), may influence to use The content that family plays before reviewing.
In existing caching method, buffer size is fixed, will be tight when forward or backward buffer setting is unreasonable Ghost image rings user's viewing experience.
Summary of the invention
In view of one or more problems described above, the embodiment of the invention provides the methods and dress of a kind of setting caching It sets.
In a first aspect, providing a kind of method of setting caching, comprising the following steps:
Obtain operating parameter when user watches video;
Based on operating parameter, the operating habit of the user is identified;
Based on operating habit, the amount of capacity of caching is set.
Second aspect provides a kind of device of setting caching, comprising:
Module is obtained, for obtaining operating parameter when user watches video;
Identification module identifies the operating habit of the user for being based on operating parameter;
The amount of capacity of caching is arranged for being based on operating habit in first setup module.
The operating parameter when embodiment of the present invention watches video by obtaining user, identifies the user's based on operating parameter Operating habit, and be accustomed to not only agreeing with user demand, Er Qiejie the size of buffer memory capacity is arranged depending on the user's operation The about quantity flow of terminal resource and user, and the normal use of Logistics networks resource.In addition, passing through flexible setting buffer memory capacity Size, can dynamically distribute and adjust the cache resources of server end and terminal side, thus reduce terminal and server end burden, And existing network and terminal resource are made full use of, reach better user experience.
Detailed description of the invention
The present invention may be better understood from the description with reference to the accompanying drawing to a specific embodiment of the invention wherein, The same or similar appended drawing reference indicates the same or similar feature.
Fig. 1 is the method flow schematic diagram of the setting caching of one embodiment of the invention;
Fig. 2 is the method flow schematic diagram of the setting caching of another embodiment of the present invention;
Fig. 3 is the apparatus structure schematic diagram of the setting caching of one embodiment of the invention.
Fig. 4 is the apparatus structure schematic diagram of the setting caching of another embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention express to be more clearly understood, with reference to the accompanying drawing and specifically The present invention is further described in more detail for embodiment.
Fig. 1 is the flow diagram of the method for the setting caching of one embodiment of the invention.
As shown in Figure 1, the method for setting caching may comprise steps of: S110 obtains behaviour when user watches video Make parameter;S120 is based on operating parameter, identifies the operating habit of the user;S130 is based on operating habit, the appearance of caching is arranged Measure size.
In some embodiments, operating parameter may include in following item at least one of: searching times, the direction of search and Search rate.
In some embodiments, operating habit can also include: the habit of F.F. and/or the habit of rewind.
The operating parameter when embodiment of the present invention watches video by obtaining user, identifies the user's based on operating parameter Operating habit, and be accustomed to not only agreeing with user demand, Er Qiejie the size of buffer memory capacity is arranged depending on the user's operation The about quantity flow of terminal resource and user, and the normal use of Logistics networks resource.In addition, passing through flexible setting buffer memory capacity Size, can dynamically distribute and adjust the cache resources of server end and terminal side, thus reduce terminal and server end burden, And existing network and terminal resource are made full use of, reach better user experience.
In some embodiments, it is based on operating habit, the step of amount of capacity of caching is arranged (i.e. S130) may include: When the number of F.F. or frequency reach preset threshold value, increase before to buffer area size.
In some embodiments, the step of being based on operating habit, the amount of capacity of caching is arranged (i.e. S130) can also wrap It includes: when the number of operations of rewind or frequency reach preset threshold value, increasing the size of backward buffer area.
In some embodiments, the step of being based on operating parameter, identifying the operating habit of the user after (i.e. S120), It is further comprising the steps of: the account of the operating habit of user and user are bound.
In some embodiments, the tactful implementation for being arranged for user operation habits or adjusting buffer memory capacity can With are as follows:
It obtains user and watches the progress bar seek operation information during similar video, the including (F.F./fast of the direction seek Move back), seek number or seek frequency.It operates more frequent then corresponding size and ratio is bigger, analyze and record user's use Seek habit and feature.To seek buffer size before increasing when being operated before user's frequent progress to seek.When user's frequency To buffer size after increasing when after numerous progress to seek.
1) when being adjusted substantially without progress bar when a certain user watches video, using the cache policy of default;
The buffer setting parameter of default be the user obtained by server initial value or video APP it is preset initially Value, including buffer area size of population, forward direction/backward buffer size cache speed bit stream threshold value of acquisition etc..Wherein pass through clothes The initial value that business device obtains can be server and provide different templates according to different zones and user group.
2) when there is frequent forwarding operation when detecting that a certain user watches video, such as in 30 minutes video playings The number of F.F. reaches 5 times or more in time, then increases the size of user cached backward, or working as is that caching total amount is fixed When Circular buffer video, increase wherein caching accounting size backward.Similarly, if user frequently review before content, increase The size or caching accounting of forward direction caching.
3) in view of the buffer setting of default may have been able to the operation for meeting user's F.F. or rewind, terminal can be with Consider user's fast forwarding and fast rewinding operation the frequency on the basis of further detect, user's F.F. or step back fastly whether need to wait it is slow Load is deposited, such as (time point that request plays lags behind current play time point 10 when user only carries out F.F. by a small margin Second or so) existing cache policy can support the direct viewing of user's not Caton, if but user carries out significantly F.F. When (request play time point lag behind current play time point 10 minutes or so) terminal will perceive user and need to wait Caching reloads, i.e., existing cache policy is not able to satisfy the broadcasting habit of user.User's skip forward/back is recorded by analysis The frequency for waiting caching to load is needed afterwards and then the size or accounting of forward or backward caching are adjusted.
When operating after user's frequent progress to seek, terminal can tune up caching in threshold value on the basis of initial value and obtain Speed is to facilitate viewing to film source after quickly filling.And when more to seek operation before user, then suitably it can reduce or protect Hold constant terminal buffers acquisition speed.
Fig. 2 is the flow diagram of the method for the setting caching of another embodiment of the present invention.
As shown in Fig. 2, the method for setting caching may comprise steps of: S110 obtains behaviour when user watches video Make parameter;S120 is based on operating parameter, identifies the operating habit of the user;S140 is based on operating habit, current in conjunction with user Select the piece Source Type, piece source format and the amount of capacity for playing one or more setting cachings in situation of the video of viewing.
In some embodiments, it is based on operating habit, piece Source Type, the film source of the video of viewing are currently selected in conjunction with user (i.e. S140) may include: when film source class the step of the amount of capacity of one or more setting cachings in format and broadcasting situation When type is program request type, the total capacity of caching is dimensioned to fixed value.
In some embodiments, it is based on operating habit, piece Source Type, the film source of the video of viewing are currently selected in conjunction with user (i.e. S140) can also include: to work as film source the step of the amount of capacity of one or more setting cachings in format and broadcasting situation When type is live streaming, the total capacity of caching is dimensioned to change value.
In some embodiments, the step of total capacity of caching being dimensioned to change value may include: any increase The size of forward direction caching in caching.
In some embodiments, the method that caching is arranged can be executed for example by the caching identification module of terminal side, caching Module and Circular buffer area complete jointly.
In some embodiments, the caching identification module of terminal side is core, is responsible for identification, analysis and record terminal side Related played data, according to user's use habit (including the piece Source Type liked, the video including program request, live streaming and film source The seek carried out operation, such as number, direction and the frequency of seek are liked in format and content source), in conjunction with the net of active user side Network situation (for example, under different user use habit, the practical code stream acquisition speed in different content source, network delay and shake Situation etc.), provide the parameter recommendation of caching adjustment.
In some embodiments, the implementation for being arranged for piece Source Type or adjusting cache policy specifically can be as follows It is shown:
The piece Source Type played when determining user using the application program, as program request is still broadcast live, by order video Caching total amount is set as fixed value, i.e., the video of program request is handled by Circular buffer;The caching total amount of live video is set as changing Value, i.e., forward direction caching therein can infinitely increase, review at any time convenient for user.And it caches can be set to biggish fixation backward It is worth perhaps load as much as possible or the caching total amount of live video can also be also set as change value, but is greater than program request The caching total amount of video, and increase accordingly preceding to cache size.
A possibility that completely reviewing in view of order video user is little, therefore can save terminal using Circular buffer Memory source;And for live video, it is contemplated that user may be reviewed without the time during live streaming before segment, therefore To caching before wouldn't deleting, after terminating live streaming, user can mend see before the segment missed, and the backward caching being broadcast live (load i.e. as much as possible) without restriction, to guarantee the real-time of live streaming.
When most code rate is all that code rate is bigger than normal in the film source that user plays, terminal can be on the basis of initial value in threshold Caching acquisition speed is tuned up in value to facilitate viewing to film source after quickly filling.And when the film source major part code rate of user's broadcasting When less than normal, then terminal buffers acquisition speed suitably can be reduced or remain unchanged, when user plays big code rate film source just according to feelings Condition increases.
It in some embodiments, specifically can be as follows for the implementation of film source Format adjusting cache policy:
Because of the film source of various formats, its data volume is of different sizes, it is therefore desirable to based on piece source format dynamic adjustment video cache Size to guarantee operating time of the skip forward/back of user.Such as the caching of 100M can expire when film source is H.264 format Foot off-line browsing in 80 seconds, but when film source is H.265 format, the caching of 100M is able to satisfy off-line browsing in 160 seconds, in order to make The unobvious perception of user caches difference, needs a certain proportion of cache size by weight of piece source format is it.
When compression ratio most of in the film source that user plays is lower, terminal can tune up in threshold value on the basis of initial value Caching acquisition speed is to facilitate viewing to film source after quickly filling.And when the film source major part partial pressure shrinkage that user plays is higher When, then it suitably can reduce or remain unchanged terminal buffers acquisition speed.
It in some embodiments, specifically can be as follows for the mode of network condition adjustment cache policy:
When more network Caton and delay occurs in the film source that the user plays, notice caching execution module is suitably turned up Buffer area entirety size and caching acquisition speed, so that the bigger possibility read backward can be obtained during network fluctuation Property, and when the film source played the very smooth and few situation of Caton situation, it can suitably turn down cache size and caching obtains Speed reduces the expense of terminal overheads and server end.
The content in caching can be filled, and it is related to be responsible for feedback by caching execution module according to setting parameter Execute data.Circular buffer is filled backward first when the content of entire buffer area is less than.When entire buffer area Man Shi, then replaced the content of oldest caching by the content of newest caching, but the content replaced do not exceed video playing into Degree point.
The result of execution and relevant parameter can also be reported to server by caching execution module, it is especially desirable to report User operation habits are stated, because of this adjustment and user's strong correlation, and the maximum probability reasonability in order to keep parameter to adjust, other Several adjustable strategies be also all watched in the recent period to user content and network condition dynamic adjustment synthesis result it is related.Server obtains The user operation habits of each account and preservation are taken, when being logged in next time so as to user, the user operation habits deposited can be issued to Current registration terminal, so that present terminal is adjusted the cached parameters in the terminal according to user's habit and network condition.
Below by taking user watches video as an example, the implementation of buffer setting method is illustrated, this method includes following Step:
Step 1, user logs in, and obtains user account information;
Step 2, user cache setting is obtained;
If server side does not preserve the habit parameter of the user, user cache is set as region the type use at this time The default buffer setting at family, and to step 3;If server side has the operating habit parameter of the user, such as habit is frequently returned It sees, then the habit is issued to the application of user's present terminal, and to step 4;
Step 3, user watches order video, while carrying out frequent backward seek operation, and Network status is splendid at this time, this When can suitably reduce the buffer size of user terminal, it is appropriate be turned up after to seek buffer area ratio, while notifying server End suitably reduces caching code stream acquisition speed in range.
Step 4, user plays HLS type direct-broadcasting code stream, because user's habit is frequently reviewed, to caching before tuning up (or unlimited forward direction buffer memory);Again because Caton and delay situation it is more apparent, caching identification module notice caching execution module into One step big buffer size facilitates user to obtain in the case where code rate changes greatly to buffer area ratio before appropriate adjustment More forward direction cachings, optimization user play experience.
In the present embodiment, total size, forward direction cache size, backward cache size and terminal are specifically cached and obtains caching speed The implementing result of degree, the comprehensive generation of judging result with above situation 1, situation 2, situation 3 and situation 4, for example will always cache big It is small to be divided into 7 grades from 1 to 10, it becomes larger.Forward direction cache size is from 2 to 10, and backward cache size is from 0 to 8.Cache acquisition speed It is divided into 5 grades from a to e, becomes larger.So a certain item adjustment result by situation 1 factor * situation 1 coefficient+situation 2 because The coefficient of the factor * situation 4 of coefficient+situation 4 of the factor * situation 3 of coefficient+situation 3 of sub- * situation 2 obtains synthesis result.
Such as forward direction cache size, when a variety of situations occur simultaneously, for example situation 1 and situation 2 occur simultaneously, situation 1 User, which likes frequent forward direction, can see that operations factor is 2, and coefficient is defaulted as 2;The case where situation 2, user watches live streaming code rate, accounts for 90% or more, operations factor 2, coefficient is defaulted as 4;Situation 3 and situation 4 meet default situations, then to the shadow of caching before tuning up Ringing value is 12, to the size of caching before foundation reduced value suitably tunes up at this time.The film source that user plays in the recent period simultaneously frequently occurs Caton situation, operations factor 2, coefficient is defaulted as 2, then the influence value for tuning up buffer size on this basis is 4, that Can execution module can integrate and tunes up whole buffer area, while to the size and ratio of buffer area after being tuned up according to influence value.Tool The relationship of the operations factor of body, the calculation method of coefficient and influence value and parameter setting and implementing result all can be according to particular user Service condition and effect are preset and subsequent adjustment.
Can identify through the foregoing embodiment as a result, analyze to record terminal side related played data, made according to user With habit, (including the piece Source Type liked, video format and content source including program request, live streaming and film source like progress Seek (search) operation, such as number, direction and the frequency of seek), in conjunction with active user side network condition (for example, not With under user's use habit, the practical code stream acquisition speed in different content source, network delay and jitter conditions etc.), provide caching The parameter recommendation of adjustment.
Above-described embodiment can determine video flowing buffer setting according to each user operation habits.User's operation can also be practised It is used to be bound with user account, user operation habits are identified in time to be adjusted to caching, in addition, removing basis convenient for each terminal Outside user operation habits, herein in connection with respective flap Source Type, format or network condition to the caching expense at terminal and server end It is adjusted, achievees the purpose that maximum utilizes resource.
It should be noted that in the absence of conflict, the feature in each embodiment can be combined with each other.Fig. 1's and Fig. 2 The sequence of operating procedure is adjusted flexibly.For simplicity, details are not described herein this respect content.
Fig. 3 is the apparatus structure schematic diagram of the setting caching of one embodiment of the invention.
As shown in figure 3, the device 300 of setting caching may include: to obtain module 310, identification module 320 and the first setting Module 330.Wherein, the operating parameter for obtaining module 310 when can be used for obtaining user's viewing video;Identification module 320 can be with For being based on operating parameter, the operating habit of the user is identified;First setup module 330 can be used for based on operating habit, if Set the amount of capacity of caching.
It should be noted that functional unit shown in each embodiment or the implementation of functional module can be hard Part, software, firmware or their combination.When realizing in hardware, electronic circuit, dedicated integrated electricity may, for example, be Road (ASIC), firmware appropriate, plug-in unit, function card etc..When being realized with software mode, element of the invention is used to hold The program or code segment of task needed for row.Perhaps code segment can store in machine readable media or pass through load to program The data-signal carried in wave is sent in transmission medium or communication links." machine readable media " may include that can store Or any medium of transmission information.The example of machine readable media includes electronic circuit, semiconductor memory devices, ROM, sudden strain of a muscle It deposits, erasable ROM (EROM), floppy disk, CD-ROM, CD, hard disk, fiber medium, radio frequency (RF) link, etc..Code segment can It is downloaded with the computer network via internet, Intranet etc..
It is appreciated that the device 300 of setting caching can be terminal device, for example, mobile phone, tablet computer and computer Deng.Different degrees of combined application can be carried out for each functional unit in the device of the buffer setting of terminal, for letter It is bright, various combined implementations are repeated no more, those skilled in the art can be according to actual needs by above-mentioned each function Perhaps functional module such as is adjusted flexibly or carries out flexible combination at the operation to unit.In addition, in the above-mentioned each function of concrete configuration When unit or functional module, as long as can be realized specific function, model of specific manufacturing method or product etc. is no It is limited, the link position relationship of each functional unit or functional module is also with no restrictions.
Fig. 4 is the apparatus structure schematic diagram of the setting caching of another embodiment of the present invention.
As shown in figure 4, the device 400 of setting caching may include: to obtain module 310, the setting of identification module 320, first Module 330 and the second setup module 340.Wherein, the operation that obtaining module 310 can be used for obtaining when user watches video is joined Number;Identification module 320 can be used for identifying the operating habit of the user based on operating parameter;First setup module 330 can be used In being based on operating habit, the amount of capacity of caching is set;Second setup module 340 can be used for based on operating habit, in conjunction with Family currently selects the piece Source Type, piece source format and the capacity for playing one or more setting cachings in situation of the video of viewing Size.
Those of ordinary skill in the art may be aware that above-mentioned each functional unit or module, can with electronic hardware, The combination of computer software or the two is realized, in order to clearly illustrate the interchangeability of hardware and software, in above description In generally describe each exemplary composition and step according to function.These functions are actually with hardware or software mode It executes, specific application and design constraint depending on technical solution.Professional technician can specifically answer each For using different methods to achieve the described function, but such implementation should not be considered as beyond the scope of the present invention.
In some embodiments, operating parameter includes at least one in following item: searching times, the direction of search and search Frequency.
In some embodiments, operating habit includes: the habit of F.F. and/or the habit of rewind.
In some embodiments, the first setup module 330 is also used to: when the number or frequency of F.F. reach preset threshold When value, increase before to buffer area size.
In some embodiments, the first setup module 330 is also used to: when the number of operations or frequency of rewind reach default Threshold value when, increase the size of backward buffer area.
As an optional embodiment, binding unit can be increased on the basis of Fig. 2 Fig. 3.Binding unit can For the account of the operating habit of user and user to be bound.
In some embodiments, the second setup module 340 is also used to: when piece Source Type is program request type, by caching Total capacity is dimensioned to fixed value.
In some embodiments, the second setup module 340 is also used to: when piece Source Type is live streaming, by total appearance of caching Amount is dimensioned to change value.
In some embodiments, the second setup module 340 is also used to: any to increase caching when piece Source Type is live streaming In forward direction caching size.
In some embodiments, be arranged caching device may include: above-mentioned caching identification module, caching execution module with And Circular buffer area.
The above embodiment of the present invention, which is proposed, as a result, adjusts cache policy for user operation habits, is obtained and is used by terminal Progress bar seek operation information during video is watched at family, including the direction seek, seek number or seek frequency are (or further It detects whether to wait caching load).Operation more frequent (waiting more frequent) then adjusts the size of corresponding direction caching and ratio is got over Greatly.In addition, the above embodiment of the present invention, which is also disclosed, adjusts cache policy according to piece Source Type, piece source format or network condition Concrete scheme.In addition, terminal can be accustomed to adjustment buffer setting according to the viewing of user video, more agree with user demand.In Other adjustment strategies are combined on the basis of this, and buffer setting can be made flexible, existing network and terminal resource is made full use of, mention Rise user experience.
It should be noted that the device of the various embodiments described above can be used as the executing subject in the method for the various embodiments described above, The corresponding process in each method may be implemented, the content in above-mentioned each embodiment can be referred to mutually and be used, for sake of simplicity, Content repeats no more in this respect.
The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;Although referring to aforementioned each reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified, or equivalent substitution of some or all of the technical features;And These are modified or replaceed, and the essence of corresponding technical solution is not made to depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (16)

1. a kind of method of setting caching, which comprises the following steps:
Obtain operating parameter when user watches video;
Based on the operating parameter, the operating habit of the user is identified;
Based on the operating habit, the amount of capacity of caching is set;
The operating habit includes: the habit of F.F. and/or the habit of rewind;
Based on the operating habit, the step of amount of capacity of caching is arranged, includes:
When the number of F.F. or frequency reach preset threshold value, increase before to buffer area size.
2. the method according to claim 1, wherein this method further include:
Based on the operating habit, the piece Source Type, piece source format and broadcasting of the video of viewing are currently selected in conjunction with the user The amount of capacity of one or more setting cachings in situation.
3. the method according to claim 1, wherein the operating parameter includes at least one in following item: Searching times, the direction of search and search rate.
4. the method according to claim 1, wherein the amount of capacity of caching is arranged based on the operating parameter Step includes:
When the number of operations of rewind or frequency reach preset threshold value, increase the size of backward buffer area.
5. the method according to claim 1, wherein identifying the operation of the user being based on the operating parameter It is further comprising the steps of after the step of habit:
The account of the operating habit of the user and the user are bound.
6. according to the method described in claim 2, it is characterized in that, this method further include:
When described Source Type is program request type, the total capacity of the caching is dimensioned to fixed value.
7. according to the method described in claim 2, it is characterized in that, this method further include:
When described Source Type is live streaming, the total capacity of the caching is dimensioned to change value.
8. the method according to the description of claim 7 is characterized in that when described Source Type be live streaming when, by the caching Total capacity is dimensioned to the step of change value and includes:
When described Source Type is live streaming, arbitrarily increase the size of the forward direction caching in the caching.
9. a kind of device of setting caching characterized by comprising
Module is obtained, for obtaining operating parameter when user watches video;
Identification module identifies the operating habit of the user for being based on the operating parameter;
The amount of capacity of caching is arranged for being based on the operating habit in first setup module;
The operating habit includes: the habit of F.F. and/or the habit of rewind;
First setup module is also used to: when the number of F.F. or frequency reach preset threshold value, before increasing to it is slow Deposit the size in area.
10. device according to claim 9, which is characterized in that further include:
Second setup module currently selects the film source class of the video of viewing in conjunction with the user for being based on the operating habit Type, piece source format and the amount of capacity for playing one or more setting cachings in situation.
11. device according to claim 9, which is characterized in that the operating parameter includes at least one in following item: Searching times, the direction of search and search rate.
12. device according to claim 9, which is characterized in that the first setup module is also used to: when the number of operations of rewind Or frequency increases the size of backward buffer area when reaching preset threshold value.
13. device according to claim 9, which is characterized in that further include:
Binding unit, for binding the account of the operating habit of the user and the user.
14. device according to claim 10, which is characterized in that second setup module is also used to: when the film source When type is program request type, the total capacity of the caching is dimensioned to fixed value.
15. device according to claim 10, which is characterized in that second setup module is also used to: when the film source When type is live streaming, the total capacity of the caching is dimensioned to change value.
16. device according to claim 15, which is characterized in that second setup module is also used to: when the film source When type is live streaming, arbitrarily increase the size of the forward direction caching in the caching.
CN201611267955.9A 2016-12-31 2016-12-31 The method and apparatus of caching are set Active CN106658067B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611267955.9A CN106658067B (en) 2016-12-31 2016-12-31 The method and apparatus of caching are set

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611267955.9A CN106658067B (en) 2016-12-31 2016-12-31 The method and apparatus of caching are set

Publications (2)

Publication Number Publication Date
CN106658067A CN106658067A (en) 2017-05-10
CN106658067B true CN106658067B (en) 2019-11-12

Family

ID=58839052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611267955.9A Active CN106658067B (en) 2016-12-31 2016-12-31 The method and apparatus of caching are set

Country Status (1)

Country Link
CN (1) CN106658067B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110234020B (en) * 2018-03-06 2021-11-19 阿里巴巴(中国)有限公司 Video playing method and device
CN109067916B (en) * 2018-09-21 2021-05-11 深圳市九洲电器有限公司 Online multimedia file downloading method and device and electronic equipment
CN112631504A (en) * 2019-09-24 2021-04-09 北京京东尚科信息技术有限公司 Method and device for realizing local cache by using off-heap memory
CN110807106B (en) * 2019-10-31 2024-04-26 广州市网星信息技术有限公司 Multimedia data processing method and device, computer equipment and storage medium
CN114745572B (en) * 2022-04-14 2023-06-13 中国联合网络通信集团有限公司 Video cache control method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103442293A (en) * 2013-08-30 2013-12-11 武汉眸博科技有限公司 Method and system for quickly starting playing of network multimedia files
CN103442270A (en) * 2013-09-17 2013-12-11 北京奇艺世纪科技有限公司 Method and device for acquiring viewing data of user
CN103442267A (en) * 2013-08-20 2013-12-11 乐视网信息技术(北京)股份有限公司 User behavior information collection method and television
CN105144733A (en) * 2013-02-06 2015-12-09 微软技术许可有限责任公司 Dynamic buffer
CN105979346A (en) * 2015-12-03 2016-09-28 乐视致新电子科技(天津)有限公司 Method and device for playing streaming media

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105144733A (en) * 2013-02-06 2015-12-09 微软技术许可有限责任公司 Dynamic buffer
CN103442267A (en) * 2013-08-20 2013-12-11 乐视网信息技术(北京)股份有限公司 User behavior information collection method and television
CN103442293A (en) * 2013-08-30 2013-12-11 武汉眸博科技有限公司 Method and system for quickly starting playing of network multimedia files
CN103442270A (en) * 2013-09-17 2013-12-11 北京奇艺世纪科技有限公司 Method and device for acquiring viewing data of user
CN105979346A (en) * 2015-12-03 2016-09-28 乐视致新电子科技(天津)有限公司 Method and device for playing streaming media

Also Published As

Publication number Publication date
CN106658067A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN106658067B (en) The method and apparatus of caching are set
US20230127341A1 (en) Methods and apparatus to credit media presentations for online media distributions
EP3542537B1 (en) Leveraging aggregated network statistics for enhancing quality and user experience for live video streaming from mobile devices
US10264093B2 (en) Systems and methods for partial video caching
EP2901372B1 (en) Using digital fingerprints to associate data with a work
CN109302623B (en) QoE model-based dynamic adaptive video transmission method
US10225590B2 (en) Method and system of dynamic routing of aggregated online media streams
US9521178B1 (en) Dynamic bandwidth thresholds
CN112953922B (en) Self-adaptive streaming media control method, system, computer equipment and application
CN104969560A (en) Determining available media data for network streaming
CN105681827B (en) Poster generation method, system and the relevant apparatus of direct broadcast band
WO2013021097A1 (en) Methods, apparatuses and computer program products for enabling live sharing of data
CN110809167B (en) Video playing method and device, electronic equipment and storage medium
US11683541B2 (en) Scheme for zero-copy adaptive bitrate video streaming
CN106686409A (en) Streaming media code rate adaptive method and device, server and terminal
CN105245562A (en) Method for operating a cache arranged along a transmission path between client terminals and at least one server, and corresponding cache
EP2954687A1 (en) System and method for optimizing storage and transcoding costs in network dvr
CN107690093B (en) Video playing method and device
CN108881931A (en) A kind of data buffering method and the network equipment
WO2014152050A1 (en) System and method for optimizing storage and transcoding costs in network dvr
US20200186615A1 (en) Estimating video quality of experience metrics from encrypted network traffic
CN111131843A (en) Network live broadcast system and method
US20210390210A1 (en) Privacy-aware content recommendations
WO2014066975A1 (en) Methods and systems for controlling quality of a media session
CN107872424A (en) Stream media information viewing, live broadcasting method and device

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