CN105992043A - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN105992043A
CN105992043A CN201510665936.0A CN201510665936A CN105992043A CN 105992043 A CN105992043 A CN 105992043A CN 201510665936 A CN201510665936 A CN 201510665936A CN 105992043 A CN105992043 A CN 105992043A
Authority
CN
China
Prior art keywords
data
buffered data
broadcasting
buffered
threshold value
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.)
Pending
Application number
CN201510665936.0A
Other languages
Chinese (zh)
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.)
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin 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 Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201510665936.0A priority Critical patent/CN105992043A/en
Publication of CN105992043A publication Critical patent/CN105992043A/en
Pending legal-status Critical Current

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/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/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/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2401Monitoring of the client buffer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used

Abstract

The invention provides a data processing method and a data processing device. The method includes the following steps that: in the playing process of a video, when the quantity of stored buffered data does not satisfy a preset playing condition, the playing of the buffered data is suspended; the data of the video are downloaded to generate buffered data, and the buffered data are stored; current buffer progress information is calculated based on currently stored buffered data; and the current buffer progress information is displayed. With the data processing method and the data processing device of the invention adopted, the current buffer progress information can be displayed intuitively when a user plays the video, and therefore, the user can obtain current buffer progress when the playing of the video is suspended.

Description

The method and device that a kind of data process
Technical field
The present invention relates to video technique field, particularly relate to a kind of method that data process, and a kind of The device that data process.
Background technology
Video buffer technology is in order to when user uses video player viewing video, it is possible to make video broadcast Put more smooth, enabled users to more preferable viewing experience.
Under Android 5.0 operating platform, when user uses video player viewing video, video is broadcast Put device can by video buffer technology the video play is buffered in advance locally buffered in, with use The video of smoothness can be watched in family, but in the process, because of network speed or other reason, buffering progress may Not catching up with the speed of broadcasting, arise that the phenomenon of pause during playing video data, user cannot Judge the buffering progress of current video.
Therefore, those skilled in the art need badly and solve the problem in that: provide a kind of method that data process, The buffering progress issue of current video cannot be judged with user in solution prior art.
Summary of the invention
The embodiment of the present invention provides the method and device that a kind of data process, in order to solve use in prior art The problem that family cannot judge the buffering progress issue of current video.
The method that a kind of data of the embodiment of the present invention process, including: in video display process, work as storage The data volume of buffered data when being unsatisfactory for presetting broadcasting condition, suspend the broadcasting to buffered data;Download The data genaration buffered data of video, stores buffered data;According to currently stored buffered data Calculate current buffering progress msg;Show current buffering progress msg.
Accordingly, the embodiment of the present invention also provides for the device that a kind of data process, including: judge module, For in video display process, when the data volume of the buffered data of storage is unsatisfactory for presetting broadcasting condition Time, suspend the broadcasting to buffered data;Download module, for the data genaration buffered data of foradownloaded video, Buffered data is stored;Computing module, for calculating current according to currently stored buffered data Buffering progress msg;Display module, for showing current buffering progress msg.
The method and device that a kind of data that the embodiment of the present invention provides process, by video buffer Buffered data is monitored in real time, it is thus achieved that amount of buffered data, pre-by judging whether amount of buffered data meets If broadcasting condition, determining broadcasting and the time-out of video, when being unsatisfactory for presetting broadcasting condition, time-out is broadcast Put, download buffered data, calculate buffering progress msg and show, thus show current buffering intuitively Progress msg so that user can know current buffering progress in video pause playing process.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that under, Accompanying drawing during face describes is some embodiments of the present invention, for those of ordinary skill in the art, On the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of steps of the method for a kind of data process of one embodiment of the invention;
Fig. 2 is the flow chart of steps of the method for the first data process of another embodiment of the present invention;
Fig. 3 is the flow chart of steps of the method for the second data process of another embodiment of the present invention;
Fig. 4 is the structured flowchart of the device of a kind of data process of one embodiment of the invention;
Fig. 5 is the structured flowchart of the device of the first data process of another embodiment of the present invention;
Fig. 6 is the structured flowchart of the device of the second data process of another embodiment of the present invention.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this Accompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention, Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on Embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise The every other embodiment obtained, broadly falls into the scope of protection of the invention.
Embodiment one
With reference to Fig. 1, it is shown that the steps flow chart of the method that a kind of data of one embodiment of the invention process Figure, specifically may include steps of:
Step S102, in video display process, when the data volume of buffered data of storage is unsatisfactory for pre- If during the condition of broadcasting, suspend the broadcasting to buffered data.
User, during playing video, plays and carries out with buffering asynchronous, and decoder needs foradownloaded video number According to generating buffered data, buffered data one frame frame is played out.
In playing process, often because the problem such as network speed or video source, video playback is made to occur stopping Stagnant, i.e. the data volume of Current buffer can not support that current video is play, and has therefore occurred as soon as and has suspended broadcasting Situation.
Preset broadcasting condition, according to broadcasting condition, broadcasting or the time-out of video are controlled, Qi Zhongbo The condition of putting includes the first broadcasting condition, and the first broadcasting condition performs time-out for the video controlling playing Or continue to play, if currently stored amount of buffered data is unsatisfactory for presetting the first broadcasting condition, can be because of Video buffer amount is not enough, suspends the broadcasting to video data.
Wherein, the first broadcasting condition includes but not limited to: meets the threshold range of data volume or meets broadcasting The threshold range of duration.
Step S104, the data genaration buffered data of foradownloaded video, store buffered data.
Above-mentioned because of video buffer amount deficiency, when suspending the situation of the broadcasting of video data, video when occurring There is suspending video playback mark in broadcast interface, meanwhile, continues foradownloaded video data by network, Video data after downloading stores relief area.
Step S106, calculate current buffering progress msg according to currently stored buffered data.
When because of buffering deficiency, when suspending the broadcasting to video data, while foradownloaded video data, it is The amount of buffered data downloading to relief area also can be monitored by system in real time, and wherein, monitoring includes buffering The size of data volume is monitored and supervises the playing duration that amount of buffered data is converted to correspondence Control.Calculate the buffering progress letter of currently stored buffered data according to the data of monitoring during buffering Breath, enables to display buffer progress msg in buffering course.
In one alternative embodiment of the present invention, broadcasting condition also includes the second broadcasting condition, and second plays bar Part continues tentative for the video data controlling paused broadcasting or commences play out, and wherein second plays condition Including: reach the buffer number weight range that can play, or reach the playing duration scope that can play.
The amount of buffered data of download and the data volume meeting preset broadcasting condition are compared, and calculates The amount of buffered data downloaded takes the ratio of the data volume of the preset broadcasting condition of foot, obtains current being buffered into Degree information;And,
By playing duration corresponding for the amount of buffered data of download and the playing duration meeting preset broadcasting condition Compare, calculate playing duration corresponding to the amount of buffered data of download and take the preset broadcasting condition of foot The ratio of playing duration, obtains current buffering progress msg.
Step S108, show current buffering progress msg.
The amount of buffered data of download is taken foot preset broadcasting condition data volume percent information or under Playing duration corresponding to amount of buffered data carried takes the ratio letter of the playing duration of the preset broadcasting condition of foot Breath, shows at video playback interface with percents.
Showing this buffering progress msg in the broadcast interface of video, this buffering progress msg can be one The residual buffer time etc. of percent or estimation, this is not construed as limiting by the embodiment of the present invention.User can be led to Cross buffering progress msg and obtain current buffering progress intuitively, thus the reasonable distribution time, as clear in left Look at webpage, or wait.Further, this buffering progress msg can also include current speed of download etc. other Information.
Implement the invention described above embodiment, by the buffered data in video buffer is monitored in real time, Obtain amount of buffered data, preset broadcasting condition by judging whether amount of buffered data meets, determine video Broadcasting and time-out, when be unsatisfactory for preset broadcasting condition time, suspend play, download buffered data, calculating Buffering progress msg also shows, thus shows current buffering progress msg intuitively so that user is regarding Frequency suspends in playing process can know current buffering progress.
Embodiment two
With reference to Fig. 2, it is shown that the step stream of the method that the first data of another embodiment of the present invention process Cheng Tu, specifically may include steps of:
Following embodiment is to preset a kind of situation of broadcasting condition, wherein with amount of buffered data and data volume threshold Value is basis for estimation, determines broadcasting and the time-out of video, and system only need to monitor the big of buffer area data volume Little achieve that the control to video playback.
Step S202, in video display process, when the data volume of buffered data of storage is less than first During data-quantity threshold, suspend the broadcasting to buffered data.
User, during playing video, plays and carries out with buffering asynchronous, and decoder needs foradownloaded video number According to generating buffered data, buffered data one frame frame is played out.
In playing process, often because the problem such as network speed or video source, video playback is made to occur stopping Stagnant, i.e. the data volume of Current buffer can not support that current video is play, and has therefore occurred as soon as and has suspended broadcasting Situation.
When default broadcasting condition includes the first broadcasting condition, wherein, the first broadcasting condition includes the slow of storage The data volume of strokes per minute evidence is more than the first data-quantity threshold, and the first broadcasting condition is for regarding that control is being play Frequency performs to suspend or continue to play, if currently stored amount of buffered data is unsatisfactory for presetting the first broadcasting bar During part, can be not enough because of video buffer amount, suspend the broadcasting to video data.
Step S204, foundation buffering list, the fragment data of foradownloaded video, obtain buffered data, will Buffered data stores in corresponding relief area.
Before video playback, need to add video to be play to playlist, such as, add TV Acute or live to playlist;After the addition was complete, system can be downloaded according to the video data burst added.
Slice of data after download i.e. buffered data, stores buffered data corresponding relief area, is used for Decoder is taken buffered data away and is supported the broadcasting of video from relief area.
Wherein, a video data includes one or more fragment data, and system monitors buffering list in real time Download situation, such as, the situation of slice of data is downloaded in monitoring, and and for example monitoring downloads to the number of relief area The situation of internal memory is accounted for according to amount.
Step S206, judge that the data volume of buffered data of storage is whether less than the second data-quantity threshold.
When the amount of buffered data of storage is more than the first data-quantity threshold, i.e. meet the first broadcasting condition, Now needing again to judge the amount of buffered data of storage, presetting the second broadcasting condition, second plays Condition includes: the data volume of the buffered data of storage is more than the second data-quantity threshold, wherein, the second data Amount threshold value is more than the first data-quantity threshold.
When meeting the second broadcasting condition, the data volume of the buffered data i.e. stored is more than the second data volume threshold During value, perform step S214;When being unsatisfactory for the second broadcasting condition, the number of the buffered data of its storage During according to amount less than the second data-quantity threshold, perform step S208.
Step S208, the data volume of currently stored buffered data and the second data-quantity threshold are carried out ratio Conversion.
Step S210, show that the data volume of currently stored buffered data accounts for the ratio of the second data-quantity threshold Information.
When the amount of buffered data of storage is more than first threshold and is less than Second Threshold, video playback is in temporarily Stopping state, now system can be analyzed according to the Current buffer data volume downloading to relief area.
Carry out ratiometric conversion according to preset computation rule, calculate the data drawing currently stored buffered data Amount accounts for the percent information of the second data-quantity threshold.
Wherein, preset computation rule may include that and sets the first data-quantity threshold L, the second data-quantity threshold For H, the data volume of currently stored buffered data is N, and computation rule is N/H*100%.
Such as: the first data-quantity threshold is 100B, the second data-quantity threshold is 500KB, currently stored The data volume of buffered data is 300KB, then percent information is 300KB/500KB*100%=60%.
It follows that current buffering progress msg is 60%.
Step S212, show current buffering progress msg.
The amount of buffered data of download is taken the percent information of data volume of the preset broadcasting condition of foot with percentage Show at video playback interface than form.
Showing this buffering progress msg in the broadcast interface of video, this buffering progress msg can be one The residual buffer time etc. of percent or estimation, this is not construed as limiting by the embodiment of the present invention.User can be led to Cross buffering progress msg and obtain current buffering progress intuitively, thus the reasonable distribution time, as clear in left Look at webpage, or wait.Further, this buffering progress msg can also include current speed of download etc. other Information.
Step S214, the startup broadcasting to buffered data.
Start two kinds of situations that the broadcasting of buffered data is included:
When one, percent information are 100%, cancelling the play mode suspended buffered data, entrance is broadcast Mode playback;
When two, percent information is beyond 100%, video playback enters play mode always.
According to above-mentioned two situations, it may be judged whether start the broadcasting to buffered data.
The preferred preset computation rule of one of the embodiment of the present invention may include that
If the first data-quantity threshold L, the second data-quantity threshold is H, the data of currently stored buffered data Amount is N, and computation rule is N/ (H L) * 100%.
Implement the invention described above embodiment, by the buffered data in video buffer is monitored in real time, Obtain amount of buffered data, by judging whether amount of buffered data meets the first data-quantity threshold, determine and regard The broadcasting of frequency and time-out, when being unsatisfactory for the first data-quantity threshold, suspend and play, download buffered data; Preset the second data-quantity threshold, when being unsatisfactory for the second data-quantity threshold, suspend and play, download buffer number According to, calculate buffering progress msg showing, thus show current buffering progress msg intuitively so that User can know current buffering progress in video pause playing process.
Embodiment three
With reference to Fig. 3, it is shown that the step stream of the method that another embodiment of the present invention the second data process Cheng Tu, specifically may include steps of:
Following embodiment is to preset the another kind of situation of broadcasting condition, wherein with corresponding the broadcasting of amount of buffered data Putting duration with duration amount threshold value is basis for estimation, determines broadcasting and the time-out of video, and system only needs monitoring The size of buffer area data volume correspondence playing duration achieves that the control to video playback.
Step S302, in video display process, when corresponding the working as of the data volume of buffered data of storage When front reproduction time is less than the first playing duration threshold value, suspend the broadcasting to buffered data.
User, during playing video, plays and carries out with buffering asynchronous, and decoder needs foradownloaded video number According to generating buffered data, buffered data one frame frame is played out.
In playing process, often because the problem such as network speed or video source, video playback is made to occur stopping Stagnant, i.e. the data volume of Current buffer can not support that current video is play, and has therefore occurred as soon as and has suspended broadcasting Situation.
When default broadcasting condition includes the first broadcasting condition, wherein, the first broadcasting condition includes the slow of storage The data volume correspondence playing duration of strokes per minute evidence is more than the first playing duration threshold value, and the first broadcasting condition is used for controlling The video that system is being play performs to suspend or continue to play, if currently stored amount of buffered data is unsatisfactory for When presetting the first broadcasting condition, can be not enough because of video buffer amount, suspend the broadcasting to video data.
Step S304, foundation buffering list, the fragment data of foradownloaded video, obtain buffered data, will Buffered data stores in corresponding relief area.
Before video playback, need to add video to be play to playlist, such as, add TV Acute or live to playlist;After the addition was complete, system can be downloaded according to the video data burst added.
Slice of data after download i.e. buffered data, stores buffered data corresponding relief area, is used for Decoder is taken buffered data away and is supported the broadcasting of video from relief area.
Wherein, a video data includes one or more fragment data, and system monitors buffering list in real time Download situation, such as, the situation of slice of data is downloaded in monitoring, and and for example monitoring downloads to the number of relief area The situation of internal memory is accounted for according to amount
Step S306, judge that currently playing duration corresponding to the data volume of buffered data of storage is the least In the second playing duration threshold value.
When the playing duration that the amount of buffered data of storage is corresponding is more than the first playing duration threshold value, the most satisfied First plays condition, and the playing duration now needing the amount of buffered data to storage corresponding is sentenced again Disconnected, preset the second broadcasting condition, the second broadcasting condition includes: the data volume of the buffered data of storage is corresponding Playing duration more than the second playing duration threshold value, wherein, the second playing duration threshold value is more than the first broadcasting Duration threshold value.
When meeting the second broadcasting condition, the playing duration that the data volume of the buffered data i.e. stored is corresponding is big When the second playing duration threshold value, perform step S314;When being unsatisfactory for the second broadcasting condition, it is deposited When playing duration corresponding to the data volume of buffered data of storage is less than the second playing duration threshold value, perform step S308。
Step S308, the data volume of currently stored buffered data is converted to the duration of corresponding broadcasting, right The corresponding duration play and the second playing duration threshold value carry out ratiometric conversion.
Step S310, show that the duration of corresponding broadcasting accounts for the percent information of the second playing duration threshold value.
When the playing duration corresponding to data volume of storage buffered data is more than the first playing duration threshold value and little When the second playing duration threshold value, carry out ratiometric conversion according to preset computation rule, calculate correspondence and broadcast The duration put accounts for the percent information of the second playing duration threshold value.
Wherein, preset computation rule may include that and sets the first playing duration threshold value as L ', and second plays Duration threshold value is H ', and the playing duration that the data volume of currently stored buffered data is corresponding is N ', calculates Rule is N '/H ' * 100%.
And for example: the first playing duration threshold value is 500ms, the second playing duration threshold value is 5s, currently deposits The playing duration that the data volume of storage buffered data is corresponding is 3s, then percent information is 3s/5s*100%=60%.
Step S312, show current buffering progress msg.
Playing duration corresponding for the amount of buffered data of download is taken the playing duration of the preset broadcasting condition of foot The percent information of threshold value shows at video playback interface with percents.
Showing this buffering progress msg in the broadcast interface of video, this buffering progress msg can be one The residual buffer time etc. of percent or estimation, this is not construed as limiting by the embodiment of the present invention.User can be led to Cross buffering progress msg and obtain current buffering progress intuitively, thus the reasonable distribution time, as clear in left Look at webpage, or wait.Further, this buffering progress msg can also include current speed of download etc. other Information.
Step S314, the startup broadcasting to buffered data.
Start two kinds of situations that the broadcasting of buffered data is included:
When one, percent information are 100%, cancelling the play mode suspended buffered data, entrance is broadcast Mode playback;
When two, percent information is beyond 100%, video playback enters play mode always.
According to above-mentioned two situations, it may be judged whether start the broadcasting to buffered data.
The preferred preset computation rule of one of the embodiment of the present invention may include that
If the first playing duration threshold value is L ', the second playing duration threshold value is H ', currently stored buffering The playing duration that the data volume of data is corresponding is N ', and computation rule is N '/(H '-L ') * 100%.
Implement the invention described above embodiment, by the buffered data in video buffer is monitored in real time, Obtain amount of buffered data, during by judging whether playing duration corresponding to amount of buffered data meets the first broadcasting Long threshold value, determines broadcasting and the time-out of video, and when being unsatisfactory for the first playing duration threshold value, time-out is broadcast Put, download buffered data;Preset the second playing duration threshold value, when being unsatisfactory for the second playing duration threshold value, Suspend and play, download buffered data, calculate buffering progress msg and show, thus display is current intuitively Buffering progress msg so that user can know current being buffered in video pause playing process Degree.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as one it be The combination of actions of row, but those skilled in the art should know, and the embodiment of the present invention is not by described The restriction of sequence of movement because according to the embodiment of the present invention, some step can use other orders or Person is carried out simultaneously.Secondly, those skilled in the art also should know, embodiment described in this description Belong to preferred embodiment, necessary to the involved action not necessarily embodiment of the present invention.
Embodiment four
With reference to Fig. 4, it is shown that the structured flowchart of a kind of data processing equipment of one embodiment of the invention, tool Body can include such as lower module:
Judge module 402, in video display process, when storage buffered data data volume not When meeting default broadcasting condition, suspend the broadcasting to buffered data;Download module 404, regards for download The data genaration buffered data of frequency, stores buffered data;Computing module 406, for according to working as The buffered data of front storage calculates current buffering progress msg;Display module 408, is used for showing currently Buffering progress msg.
According to embodiment of the method part, implement the invention described above embodiment, by delaying in video buffer Strokes per minute is according to monitoring in real time, it is thus achieved that amount of buffered data, presets by judging whether amount of buffered data meets Broadcasting condition, determines broadcasting and the time-out of video, when being unsatisfactory for presetting broadcasting condition, suspends and plays, Download buffered data, calculate buffering progress msg and show, thus show current buffering progress intuitively Information so that user can know current buffering progress in video pause playing process.
For device embodiment, due to itself and embodiment of the method basic simlarity, so the comparison described Simply, relevant part sees the part of embodiment of the method and illustrates.
Embodiment five
With reference to Fig. 5, it is shown that the structured flowchart of the first data processing equipment of another embodiment of the present invention, Specifically can include such as lower module:
First judges submodule 4022, and the data volume for the buffered data when storage is less than the first data volume During threshold value, suspend the broadcasting to buffered data;List submodule 4042, for foundation buffering list, under Carry the fragment data of video, obtain buffered data;Sub module stored 4404, for storing buffered data In corresponding relief area;Second judges submodule 4044, is used for judging whether amount of buffered data meets Two play condition;First calculating sub module 4062, for by the data volume of currently stored buffered data and the Two data-quantity threshold carry out ratiometric conversion, show that the data volume of currently stored buffered data accounts for the second data volume The percent information of threshold value;Playing module 410, is used for when amount of buffered data meets the second broadcasting condition, Start the broadcasting to buffered data;Display module 408, for showing current buffering progress msg.
Wherein, carry out ratiometric conversion according to preset computation rule, calculate and draw currently stored buffered data Data volume account for the percent information of the second data-quantity threshold.
Wherein, preset computation rule may include that and sets the first data-quantity threshold L, the second data-quantity threshold For H, the data volume of currently stored buffered data is N, and computation rule is N/H*100%.
Work as appearance:
When one, percent information are 100%, cancel the play mode suspended buffered data, play mould Block 410 enters play mode;
When two, percent information is beyond 100%, playing module 410 enters play mode always.
The preferred preset computation rule of one of the embodiment of the present invention may include that
If the first data-quantity threshold L, the second data-quantity threshold is H, the data of currently stored buffered data Amount is N, and computation rule is N/ (H L) * 100%.
According to embodiment of the method part, implement the invention described above embodiment, by delaying in video buffer Strokes per minute is according to monitoring in real time, it is thus achieved that amount of buffered data, by judging whether amount of buffered data meets first Data-quantity threshold, determines broadcasting and the time-out of video, when being unsatisfactory for the first data-quantity threshold, suspends Play, download buffered data;Preset the second data-quantity threshold, when being unsatisfactory for the second data-quantity threshold, Suspend and play, download buffered data, calculate buffering progress msg and show, thus display is current intuitively Buffering progress msg so that user can know current being buffered in video pause playing process Degree.
Embodiment six
With reference to Fig. 6, it is shown that the structural frames of the second data processing equipment of another embodiment of the present invention Figure, specifically may include that
First judges submodule 4022, for when corresponding currently playing of the data volume of buffered data of storage When time is less than the first playing duration threshold value, suspend the broadcasting to buffered data;List submodule 4042, For according to buffering list, the fragment data of foradownloaded video, obtaining buffered data;Sub module stored 4044, For buffered data is stored in corresponding relief area;Second judges submodule 4024, is used for judging to delay Rush whether data volume meets the second broadcasting condition;Second calculating sub module 4064, for by currently stored slow The data volume of strokes per minute evidence is converted to the duration of corresponding broadcasting, the duration playing correspondence and the second playing duration Threshold value carries out ratiometric conversion, show that the duration of corresponding broadcasting accounts for the percent information of the second playing duration threshold value; Playing module 410, for when amount of buffered data meets the second broadcasting condition, starts buffered data Play;Display module 408, for showing current buffering progress msg.
Wherein, carry out ratiometric conversion according to preset computation rule, calculate and draw currently stored buffered data Playing duration corresponding to data volume account for the percent information of the second playing duration threshold value.
Wherein, preset computation rule may include that and sets the first playing duration threshold value as L ', and second plays Duration threshold value is H ', and the playing duration that the data volume of currently stored buffered data is corresponding is N ', calculates Rule is N '/H ' * 100%.
Work as appearance:
When one, percent information are 100%, cancel the play mode suspended buffered data, play mould Block 410 enters play mode;
When two, percent information is beyond 100%, playing module 410 enters play mode always.
The preferred preset computation rule of one of the embodiment of the present invention may include that
If the first playing duration threshold value is L ', the second playing duration threshold value is H ', currently stored buffering The playing duration that the data volume of data is corresponding is N ', and computation rule is N '/(H '-L ') * 100%.
According to embodiment of the method part, implement the invention described above embodiment, by delaying in video buffer Strokes per minute is according to monitoring in real time, it is thus achieved that amount of buffered data, during by judging broadcasting corresponding to amount of buffered data Whether length meets the first playing duration threshold value, determines broadcasting and the time-out of video, broadcasts when being unsatisfactory for first When putting duration threshold value, suspend and play, download buffered data;Preset the second playing duration threshold value, when discontented During foot the second playing duration threshold value, suspend and play, download buffered data, calculate buffering progress msg and show Show, thus show current buffering progress msg intuitively so that user is in video pause playing process Current buffering progress can be known.
Device embodiment described above is only schematically, wherein said illustrates as separating component Module can be or may not be physically separate, the parts shown as module can be or Person may not be physical module, i.e. may be located at a place, or can also be distributed to multiple network In module.Some or all of module therein can be selected according to the actual needs to realize the present embodiment The purpose of scheme.Those of ordinary skill in the art are not in the case of paying performing creative labour, the most permissible Understand and implement.
Each embodiment in this specification all uses the mode gone forward one by one to describe, and each embodiment stresses Be all the difference with other embodiments, between each embodiment, identical similar part sees mutually ?.
Those skilled in the art are it should be appreciated that the embodiment of the embodiment of the present invention can be provided as method, dress Put or computer program.Therefore, the embodiment of the present invention can use complete hardware embodiment, completely Software implementation or the form of the embodiment in terms of combining software and hardware.And, the embodiment of the present invention Can use and can be situated between with storage at one or more computers wherein including computer usable program code The upper computer journey implemented of matter (including but not limited to disk memory, CD-ROM, optical memory etc.) The form of sequence product.
The embodiment of the present invention is with reference to method according to embodiments of the present invention, terminal unit (system) and meter The flow chart of calculation machine program product and/or block diagram describe.It should be understood that can be by computer program instructions Each flow process in flowchart and/or block diagram and/or square frame and flow chart and/or square frame Flow process in figure and/or the combination of square frame.Can provide these computer program instructions to general purpose computer, The processor of special-purpose computer, Embedded Processor or other programmable data processing terminal equipment is to produce One machine so that performed by the processor of computer or other programmable data processing terminal equipment Instruction produce for realizing at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The device of the function specified in multiple square frames.
These computer program instructions may be alternatively stored in and computer or other programmable datas can be guided to process In the computer-readable memory that terminal unit works in a specific way so that be stored in this computer-readable Instruction in memorizer produces the manufacture including command device, and this command device realizes flow chart one The function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded into computer or other programmable data processing terminals set Standby upper so that on computer or other programmable terminal equipment, to perform sequence of operations step in terms of producing The process that calculation machine realizes, thus the instruction performed on computer or other programmable terminal equipment provides and uses In realizing in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame The step of the function specified.
Although having been described for the preferred embodiment of the embodiment of the present invention, but those skilled in the art being once Know basic creative concept, then these embodiments can be made other change and amendment.So, Claims are intended to be construed to include preferred embodiment and fall into the institute of range of embodiment of the invention There are change and amendment.
Finally, in addition it is also necessary to explanation, in this article, the relational terms of such as first and second or the like It is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires Or imply relation or the order that there is any this reality between these entities or operation.And, art Language " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that Process, method, article or terminal unit including a series of key elements not only include those key elements, and Also include other key elements being not expressly set out, or also include for this process, method, article or The key element that person's terminal unit is intrinsic.In the case of there is no more restriction, statement " include one It is individual ... " key element that limits, it is not excluded that including the process of described key element, method, article or end End equipment there is also other identical element.
Above to a kind of data recording method provided by the present invention and a kind of data recording device, carry out Being discussed in detail, principle and the embodiment of the present invention are set forth by specific case used herein, Above example only in order to technical scheme to be described, is not intended to limit;Although with reference to aforementioned reality Execute example the present invention has been described in detail, it will be understood by those within the art that: it is still Technical scheme described in foregoing embodiments can be modified, or to wherein portion of techniques feature Carry out equivalent;And these amendments or replacement, do not make the essence of appropriate technical solution depart from this The spirit and scope of bright each embodiment technical scheme.

Claims (10)

1. the method that data process, it is characterised in that including:
In video display process, when the data volume of the buffered data of storage is unsatisfactory for presetting broadcasting condition Time, suspend the broadcasting to buffered data;
Download the data genaration buffered data of described video, described buffered data is stored;
Current buffering progress msg is calculated according to currently stored buffered data;
Show described current buffering progress msg.
Method the most according to claim 1, it is characterised in that described default broadcasting condition includes: First plays condition;
Wherein, described first broadcasting condition includes: the data volume of buffered data is more than the first data-quantity threshold, Or current play time corresponding to the data volume of buffered data is more than the first playing duration threshold value;
Described when the data volume of the buffered data of storage is unsatisfactory for the first broadcasting condition, suspend buffer number According to broadcasting, including:
When the data volume of the buffered data of described storage is less than the first data-quantity threshold, suspend buffer number According to broadcasting;Or,
When the current play time that the data volume of the buffered data of described storage is corresponding is play less than first During long threshold value, suspend the broadcasting to buffered data.
Method the most according to claim 1, it is characterised in that the number of the described video of described download According to generating buffered data, described buffered data is stored, including:
According to buffering list, download the fragment data of described video, obtain buffered data;
Described buffered data is stored in corresponding relief area.
Method the most according to claim 1, it is characterised in that described method also includes:
Judge whether described amount of buffered data meets the second broadcasting condition;
When described amount of buffered data meets the second broadcasting condition, start the broadcasting to buffered data;
Wherein, described second broadcasting condition includes: the data volume of buffered data is more than the second data-quantity threshold Or current play time corresponding to the data volume of buffered data is more than the second playing duration threshold value;Described second Data-quantity threshold is more than the first data-quantity threshold, and the second playing duration threshold value is more than the first playing duration threshold Value.
Method the most according to claim 4, it is characterised in that described according to currently stored buffering Data calculate current buffering progress msg, including:
The data volume of described currently stored buffered data and the second data-quantity threshold are carried out ratiometric conversion, The data volume going out described currently stored buffered data accounts for the percent information of described second data-quantity threshold;Or
The data volume of described currently stored buffered data is converted to the duration of corresponding broadcasting, to described correspondence Duration and the second playing duration threshold value play carry out ratiometric conversion, show that the described corresponding duration play accounts for The percent information of the second playing duration threshold value.
6. the device that data process, it is characterised in that including:
Judge module, in video display process, when the data volume of the buffered data of storage is unsatisfactory for When presetting broadcasting condition, suspend the broadcasting to buffered data;
Download module, for downloading the data genaration buffered data of described video, enters described buffered data Row storage;
Computing module, for calculating current buffering progress msg according to currently stored buffered data;
Display module, for showing described current buffering progress msg.
Device the most according to claim 6, it is characterised in that described default broadcasting condition includes: First plays condition;
Wherein, described first broadcasting condition includes: the data volume of buffered data is more than the first data-quantity threshold, Or current play time corresponding to the data volume of buffered data is more than the first playing duration threshold value;
Described judgement submodule, including:
First judges submodule, and the data volume for the buffered data when described storage is less than the first data volume During threshold value, suspend the broadcasting to buffered data;Or,
For broadcasting less than first when current play time corresponding to the data volume of the buffered data of described storage When putting duration threshold value, suspend the broadcasting to buffered data.
Device the most according to claim 6, it is characterised in that described download module, including:
List submodule, for according to buffering list, downloading the fragment data of described video, buffered Data;
Sub module stored, for storing described buffered data in corresponding relief area.
Method the most according to claim 6, it is characterised in that described device also includes:
Second judges submodule, is used for judging whether described amount of buffered data meets the second broadcasting condition;
Playing module, for when described amount of buffered data meets the second broadcasting condition, starts buffer number According to broadcasting;
Wherein, described second broadcasting condition includes: the data volume of buffered data is more than the second data-quantity threshold Or current play time corresponding to the data volume of buffered data is more than the second playing duration threshold value;Described second Data-quantity threshold is more than the first data-quantity threshold, and the second playing duration threshold value is more than the first playing duration threshold Value.
Device the most according to claim 9, it is characterised in that described computing module, including:
First calculating sub module, for by the data volume of described currently stored buffered data and the second data volume Threshold value carries out ratiometric conversion, show that the data volume of described currently stored buffered data accounts for described second data volume The percent information of threshold value;Or
Second calculating sub module, broadcasts for the data volume of described currently stored buffered data is converted to correspondence The duration put, carries out ratiometric conversion to the described corresponding duration play and the second playing duration threshold value, draws The described corresponding duration play accounts for the percent information of the second playing duration threshold value.
CN201510665936.0A 2015-10-15 2015-10-15 Data processing method and device Pending CN105992043A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510665936.0A CN105992043A (en) 2015-10-15 2015-10-15 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510665936.0A CN105992043A (en) 2015-10-15 2015-10-15 Data processing method and device

Publications (1)

Publication Number Publication Date
CN105992043A true CN105992043A (en) 2016-10-05

Family

ID=57039988

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510665936.0A Pending CN105992043A (en) 2015-10-15 2015-10-15 Data processing method and device

Country Status (1)

Country Link
CN (1) CN105992043A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792109A (en) * 2016-12-06 2017-05-31 青岛海信电器股份有限公司 Video broadcasting method, device and terminal
CN107145279A (en) * 2017-03-31 2017-09-08 北京猎豹移动科技有限公司 A kind of control method, device and equipment for being used to control player
CN107222776A (en) * 2017-05-19 2017-09-29 腾讯科技(深圳)有限公司 Video playing control method, browser, storage device and terminal
CN107493510A (en) * 2017-09-19 2017-12-19 武汉斗鱼网络科技有限公司 Live TV stream player method, device, computer-readable storage medium and equipment in direct broadcasting room
CN108037860A (en) * 2017-11-22 2018-05-15 北京川上科技有限公司 A kind of methods of exhibiting and device of video upload/download progress
CN108259998A (en) * 2018-03-01 2018-07-06 青岛海信电器股份有限公司 Player and control method for playing back, device, electronic equipment and play system
CN109168036A (en) * 2018-10-08 2019-01-08 联想(北京)有限公司 Playback method, system and electronic equipment
CN109474854A (en) * 2018-11-29 2019-03-15 广州市百果园信息技术有限公司 Video broadcasting method, the generation method of playlist and relevant device
CN109982159A (en) * 2017-12-27 2019-07-05 华为技术有限公司 The method and terminal of online playing stream media
CN110232092A (en) * 2019-04-26 2019-09-13 平安科技(深圳)有限公司 A kind of asynchronous solution of batch data based on data processing and relevant device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1622385A1 (en) * 2004-07-29 2006-02-01 Microsoft Corporation Media transrating over a bandwidth-limited network
CN101136815A (en) * 2006-08-31 2008-03-05 腾讯科技(深圳)有限公司 Method and system for broadcasting advertisement during network living broadcast buffering process
CN101341752A (en) * 2006-06-22 2009-01-07 索尼株式会社 Reproduction device, method, and program
CN102802075A (en) * 2012-08-24 2012-11-28 乐视网信息技术(北京)股份有限公司 Online play buffering system and method
CN103596036A (en) * 2013-11-12 2014-02-19 浪潮齐鲁软件产业有限公司 Method for intelligent buffering of streaming media player
CN103731720A (en) * 2013-11-25 2014-04-16 乐视致新电子科技(天津)有限公司 Method and device for caching multimedia data of smart television

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1622385A1 (en) * 2004-07-29 2006-02-01 Microsoft Corporation Media transrating over a bandwidth-limited network
CN101341752A (en) * 2006-06-22 2009-01-07 索尼株式会社 Reproduction device, method, and program
CN101136815A (en) * 2006-08-31 2008-03-05 腾讯科技(深圳)有限公司 Method and system for broadcasting advertisement during network living broadcast buffering process
CN102802075A (en) * 2012-08-24 2012-11-28 乐视网信息技术(北京)股份有限公司 Online play buffering system and method
CN103596036A (en) * 2013-11-12 2014-02-19 浪潮齐鲁软件产业有限公司 Method for intelligent buffering of streaming media player
CN103731720A (en) * 2013-11-25 2014-04-16 乐视致新电子科技(天津)有限公司 Method and device for caching multimedia data of smart television

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792109B (en) * 2016-12-06 2021-02-26 海信视像科技股份有限公司 Video playing method and device and terminal
CN106792109A (en) * 2016-12-06 2017-05-31 青岛海信电器股份有限公司 Video broadcasting method, device and terminal
CN107145279A (en) * 2017-03-31 2017-09-08 北京猎豹移动科技有限公司 A kind of control method, device and equipment for being used to control player
CN107222776A (en) * 2017-05-19 2017-09-29 腾讯科技(深圳)有限公司 Video playing control method, browser, storage device and terminal
CN107222776B (en) * 2017-05-19 2019-03-01 腾讯科技(深圳)有限公司 Video playing control method, browser, storage equipment and terminal
CN107493510B (en) * 2017-09-19 2020-03-17 武汉斗鱼网络科技有限公司 Live stream playing method and device in live broadcast room, computer storage medium and equipment
CN107493510A (en) * 2017-09-19 2017-12-19 武汉斗鱼网络科技有限公司 Live TV stream player method, device, computer-readable storage medium and equipment in direct broadcasting room
CN108037860A (en) * 2017-11-22 2018-05-15 北京川上科技有限公司 A kind of methods of exhibiting and device of video upload/download progress
CN109982159B (en) * 2017-12-27 2021-10-22 华为技术有限公司 Method and terminal for playing streaming media on line
CN109982159A (en) * 2017-12-27 2019-07-05 华为技术有限公司 The method and terminal of online playing stream media
CN108259998B (en) * 2018-03-01 2021-01-22 海信视像科技股份有限公司 Player, play control method and device, electronic equipment and play system
CN108259998A (en) * 2018-03-01 2018-07-06 青岛海信电器股份有限公司 Player and control method for playing back, device, electronic equipment and play system
CN109168036A (en) * 2018-10-08 2019-01-08 联想(北京)有限公司 Playback method, system and electronic equipment
CN109474854A (en) * 2018-11-29 2019-03-15 广州市百果园信息技术有限公司 Video broadcasting method, the generation method of playlist and relevant device
CN109474854B (en) * 2018-11-29 2021-09-14 广州市百果园信息技术有限公司 Video playing method, playlist generating method and related equipment
CN110232092A (en) * 2019-04-26 2019-09-13 平安科技(深圳)有限公司 A kind of asynchronous solution of batch data based on data processing and relevant device
CN110232092B (en) * 2019-04-26 2023-08-01 平安科技(深圳)有限公司 Batch data asynchronous solving method based on data processing and related equipment

Similar Documents

Publication Publication Date Title
CN105992043A (en) Data processing method and device
CN105915937B (en) Panoramic video playing method and device
US9278288B2 (en) Automatic generation of a game replay video
US9682313B2 (en) Cloud-based multi-player gameplay video rendering and encoding
WO2017193576A1 (en) Video resolution adaptation method and apparatus, and virtual reality terminal
CN105338394B (en) The processing method and system of caption data
US20150296215A1 (en) Frame encoding using hints
JP2020107264A5 (en)
CN104918120B (en) A kind of playback progress adjusting method and electronic equipment
CN105979346A (en) Method and device for playing streaming media
CN106658202A (en) Method and equipment for triggering interaction application
CN105979344A (en) Multimedia play method and player
CN105760238A (en) Graphic instruction data processing method, device and system
US20140362291A1 (en) Method and apparatus for processing a video signal
CN105597314B (en) Rendering system and method of 2D game and terminal equipment
CN108664228A (en) A kind of method for displaying image and mobile terminal
US9906818B2 (en) Method of providing broadcasting service and playing broadcast by using object state transmitting method
CN104753811B (en) A kind of streaming media service optimization method, equipment and system
US11935181B2 (en) In-game dynamic camera angle adjustment
CN113794924A (en) Video playing method, device, equipment and computer readable storage medium
CN105763744B (en) A kind of video playing control method of mobile terminal, device and mobile terminal
KR20070088807A (en) Image processor, image processing method and information storage medium
KR100766985B1 (en) Motion picture watching system, motion picture watching apparatus, method for controlling the same, and recording medium for recording program
CN106354419A (en) Screenshot control method and device
KR20100095777A (en) Apparatus and method for extracting thumbnail of contents in electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20161005