CN103096133A - Obtaining method and device of data - Google Patents

Obtaining method and device of data Download PDF

Info

Publication number
CN103096133A
CN103096133A CN2013100105189A CN201310010518A CN103096133A CN 103096133 A CN103096133 A CN 103096133A CN 2013100105189 A CN2013100105189 A CN 2013100105189A CN 201310010518 A CN201310010518 A CN 201310010518A CN 103096133 A CN103096133 A CN 103096133A
Authority
CN
China
Prior art keywords
data
playing back
client end
acquisition facility
data acquisition
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.)
Granted
Application number
CN2013100105189A
Other languages
Chinese (zh)
Other versions
CN103096133B (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.)
LeTV Information Technology Beijing Co Ltd
Original Assignee
LeTV Information Technology Beijing 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 LeTV Information Technology Beijing Co Ltd filed Critical LeTV Information Technology Beijing Co Ltd
Priority to CN201310010518.9A priority Critical patent/CN103096133B/en
Publication of CN103096133A publication Critical patent/CN103096133A/en
Application granted granted Critical
Publication of CN103096133B publication Critical patent/CN103096133B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides an obtaining method of data. The obtaining method of the data comprises that a play order sent by a play client side is obtained by a data obtaining device; the data is downloaded by the data obtaining device according to the play order and a fixed data size is reached; and the data needed by the play client side is sent to the play client side by the data obtaining device according to the play order. According to the obtaining method of the data, the play client side can initiatively obtain the data from the data obtaining device according to requirements of the data client side and the data size downloaded is limited in a certain range so that the problem of stored data redundancy caused by unlimited downloading of the data by the data obtaining device is solved and the phenomena of corruption of the play client side are reduced.

Description

A kind of acquisition methods of data and device
Technical field
The invention belongs to areas of information technology, relate to a kind of acquisition methods and device of data.
Background technology
audio/video player system comprises client end of playing back and data acquisition facility, the acquisition methods of the data acquisition facility of prior art is, mainly all data that the passive receive data deriving means of client end of playing back sends, the method can cause data playback and downloading rate inconsistent, thereby cause some problems, for example client end of playing back stops playing, during no longer to the data acquisition facility request msg, data acquisition facility is downloading data ceaselessly still, the data of downloading according to the method, might not be the required data of client end of playing back greatly, then but still be downloaded and store, Internet resources and storage resources had so both been taken, might cause playing the phenomenon of collapse, make the experience variation of surfing the web of client end of playing back, make again these not take too much storage resources the playing video data poor efficiency, reduce the utilance of various data resources.
Summary of the invention
For defects of the prior art, the invention provides a kind of acquisition methods of data, comprise the following steps: data acquisition facility obtains the play command that client end of playing back sends; Described data acquisition facility is according to described play command downloading data, and reaches the fixed data amount; Described data acquisition facility is according to described play command, and the data that described client end of playing back is required send to described client end of playing back.
Preferably, described play command comprises broadcast point and playback volume.
Preferably, described fixed data amount is set according to broadcasting speed, bandwidth or network condition.
Preferably, described data acquisition facility comprises according to described play command downloading data: described data acquisition facility begins downloading data from described broadcast point.
Preferably, the described data acquisition facility data volume that described client end of playing back is required sends to described client end of playing back to comprise: described data acquisition facility will send to described client end of playing back from the data that equal described playback volume that broadcast point begins.
Preferably, the described data acquisition facility data volume that described client end of playing back is required also comprises after sending to described client end of playing back: described data acquisition facility reduces described playback volume with its described downloading data amount.
Preferably, after described data acquisition facility reduces described playback volume with its described downloading data amount, also comprise: described data acquisition facility judges that whether its described downloading data amount is less than described fixed data amount, if yes, described data acquisition facility continues downloading data until reach described fixed data amount.
The present invention also provides a kind of data acquisition facility, comprising: receiver module: be used for obtaining the play command that client end of playing back sends; Download module: the described play command downloading data that obtains according to described receiver module, and reach the fixed data amount; Sending module: according to described play command, the required data of described client end of playing back that described download module is downloaded send to described client end of playing back.
Preferably, described play command comprises broadcast point and playback volume.
Preferably, described fixed data amount is set according to broadcasting speed, bandwidth or network condition.
Preferably, described download module begins downloading data from described broadcast point.
Preferably, described sending module will send to described client end of playing back from the data that equal described playback volume that broadcast point begins.
Preferably, described download module is after the described sending module data that described client end of playing back is required send to described client end of playing back, and described download module reduces described playback volume with its described downloading data amount.
Preferably, after described download module reduces described playback volume with its described downloading data amount, whether described download module judges its described downloading data amount less than described fixed data amount, and if yes, described download module continues downloading data until reach described fixed data amount.
The acquisition methods of a kind of data of the present invention and device, make client end of playing back initiatively to obtain data to data acquisition facility according to himself demand, the data volume that download module is downloaded is defined within the specific limits, thereby avoid the problem of the internal storage data redundancy that the unrestricted downloading data of data acquisition facility causes, reduce the phenomenon of client end of playing back collapse.
Description of drawings
The present invention is further detailed explanation below in conjunction with the drawings and specific embodiments;
Fig. 1 is the flow chart of the acquisition methods of a kind of data provided by the invention;
Fig. 2 is the data acquisition sequential chart of the embodiment of the present invention;
Fig. 3 is the building-block of logic of a kind of data acquisition facility provided by the invention.
Embodiment
In order to make those skilled in the art person understand better the present invention program, and above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with embodiment and embodiment accompanying drawing.
Fig. 1 is the flow chart of the acquisition methods of a kind of data provided by the invention, and as shown in Figure 1, the acquisition methods of a kind of data provided by the invention comprises:
Step 1, data acquisition facility obtain the play command that client end of playing back sends.
play command comprises broadcast point and playback volume, broadcast point is active user's click, the broadcast time information of the video that drag operation generates, for example, current broadcast is 0:10:15 constantly, playback volume can for certain data volume of beginning from above-mentioned broadcast point or the certain hour section in video data, be preferably the data in the certain hour section, for example, the data of the 50M that begins from 0:10:15, data in the 5s that perhaps begins from 0:10:15, be also that client end of playing back informs that by broadcast point and playback volume data acquisition facility is about to the video data information of playing.
Step 2, data acquisition facility be according to the play command downloading data, and reach the fixed data amount.
Data acquisition facility is from the broadcast point downloading data, and downloads to fixing data volume.in network condition preferably in situation, the speed of data acquisition facility downloading data is greater than the broadcasting speed of client end of playing back, therefore the data of data acquisition facility download have certain accumulation, if the data of downloading are not limited, the data that data acquisition facility will all be downloaded send to client end of playing back, cause client end of playing back internal storage data redundancy, the waste memory headroom, even cause the client end of playing back collapse, therefore, the present invention is the fixed data amount by the downloading data amount of setting data deriving means, and the playback volume information according to the client end of playing back transmission, the downloading data amount of restricting data deriving means.
Step 3, data acquisition facility are according to play command, and the data that client end of playing back is required send to client end of playing back.
After client end of playing back plays current data volume, be transferred to next new broadcast point, this moment, client end of playing back just sent to data acquisition facility with new broadcast point and playback volume, and the data acquisition facility data of the playback volume that this broadcast point is corresponding again sends to client end of playing back to play.continuous propelling along with playing progress rate, client end of playing back constantly sends new broadcast point and data volume to data acquisition facility, data acquisition facility is constantly according to new broadcast point and data volume downloading data, if the data that new broadcast point place begins are downloaded, and the data volume size equals playback volume, data acquisition facility directly sends to client end of playing back with these data, if the data that new broadcast point place begins have been downloaded a part, the part that will download is issued client end of playing back, and remainder is downloaded in continuation, download and remainder is sent to client end of playing back after complete, if the data that new broadcast point place begins are also downloaded, begin to download from new broadcast point, downloading mode is with aforementioned data cell downloading mode.
After data acquisition facility will send to described client end of playing back from the data that equal playback volume that broadcast point begins, with the deletion of the data before these data and broadcast point, and judge that whether the downloading data amount is less than the fixed data amount, if yes, data acquisition facility continues downloading data until reach the fixed data amount, when the download data volume reached the fixed data amount, data acquisition facility is downloading data no longer.
Equally, with reference to above-described embodiment, data acquisition facility is from current broadcast 0:10:15 beginning constantly downloading data, take the data unit of data cell as downloading, for example download take the data of 1s as data cell, can send to client end of playing back to play after having downloaded 1s data (1 data unit), and download follow-up 4s data with data cell simultaneously, send in the manner described above client end of playing back to play, thereby the data volume of the 5S that sends according to client end of playing back sends to client end of playing back with above-mentioned data.
For further describing said process in detail, with reference to data acquisition sequential chart of the present invention shown in Figure 2.Wherein A point, B point are respectively two broadcast points according to playing sequence, and C, D, E, four points of F are for illustrating the aid illustration point of data downloading process.When broadcast point is positioned at the A point, client end of playing back sends to data acquisition facility with the moment and the required playback volume (A-B) of broadcast point A, after data acquisition facility obtains this information, from A point beginning downloading data, and the data between A-B are sent to client end of playing back, it is wherein above-mentioned fixed data amount between A-D, A-C is the current data volume of having downloaded, the data of having downloaded when data acquisition facility judgement are during less than fixed data amount A-D, during point, data acquisition facility namely stops downloading from the C downloading data to D in continuation.when broadcast point switches to the B point, data acquisition facility is deleted the data between A-B, this moment, existing downloading data amount was B-D, less than the fixed data amount between B-F, data acquisition facility namely continues downloading data to the F place from D, as shown in Figure 2, data volume between A-B is the playback volume of broadcast point when being the A point, the new data that the E-F playback volume that to be data acquisition facility order according to A is downloaded, both data volume is identical, in the time of can guaranteeing that like this broadcast point jumps to the B place, there are enough downloading datas to send to client end of playing back, also can make the data download needn't be too much, avoid taking too much storage resources.
The present invention also provides the data acquisition facility method that adopts above-mentioned data capture method, building-block of logic as shown in Figure 3, and this device comprises:
Receiver module: be used for obtaining the play command that client end of playing back sends;
Download module: the play command downloading data that obtains according to receiver module, and reach the fixed data amount;
Sending module: according to play command, the required data of client end of playing back that download module is downloaded send to client end of playing back.
Wherein, play command comprises broadcast point and playback volume.
Download module begins downloading data from described broadcast point.
Sending module will send to client end of playing back from the data that equal playback volume that broadcast point begins.Download module reduces playback volume with the downloading data amount after sending module data that client end of playing back is required are to client end of playing back.And preferably, whether download module judges its downloading data amount less than the fixed data amount, and if yes, download module continues downloading data until reach the fixed data amount.
According to above-mentioned data capture method and device, client end of playing back sends broadcast point and playback volume to data acquisition module incessantly according to the broadcasting speed of video, data acquisition facility constantly continues downloading data in the scope of fixed data amount according to broadcast point, optimum state is, after data acquisition facility sends to the client end of playing back desired data, be downloaded to the fixed data amount immediately within the time of the above-mentioned data of client end of playing back broadcast, thereby reach the state of dynamic equilibrium according to broadcasting speed.
Wherein, the setting of fixed data amount can be to be set as fixed numbers, also can dynamically adjust setting according to certain rule.
Embodiment 1: be set as fixed numbers, for example, set a concrete numerical value aKb for being the data volume of unit, when the data volume of data acquisition facility download reaches aKb, then after data acquisition facility obtains data and sends to the client end of playing back desired data according to playback rate, continue downloading data in the scope of fixed data amount aKb, reach certain dynamic equilibrium level.
Embodiment 2: set the fixed data amount according to the reproduction time of playback rate and downloading data, its playback rate of certain video is nKb/s, the reproduction time of the playback volume of client end of playing back is m second, the fixed data amount can be set to m*nkb so, and then data acquisition facility obtains data according to playback rate and makes the data of obtaining of data acquisition facility reach certain dynamic equilibrium level in the scope of fixed data amount m*nkb.
Embodiment 3: set the fixed data amount according to network condition, in the situation that network condition is good, set less fixed data amount, in the situation that the larger fixed data amount of the bad setting of network condition.The less network speed of the network bandwidth of certain client end of playing back is slower and unstable, at this moment in order to guarantee the smooth and easy displaying video of client, set a larger fixed data amount, be assumed to the played data amount of 2.5M or 3 minutes, then data acquisition facility obtains according to playback rate data of obtaining that data make data acquisition facility reach certain dynamic equilibrium level in the scope of the played data amount of fixed data amount 2.5M or 3 minutes.And the larger network speed of the network bandwidth of working as certain client is very fast and stable, reduce the EMS memory occupation to client, improve the utilization ratio of client resource, a less fixed data amount is set, be assumed to the played data amount of 1M or 1 minute, then data acquisition facility obtains according to playback rate data of obtaining that data make data acquisition facility reach certain dynamic equilibrium level in the scope of the played data amount of fixed data amount 1M or 1 minute.
Foregoing detailed description has been illustrated the various embodiment of device and/or process by embodiment and/or schematic diagram.With regard to these schematic diagrames and/or comprise with regard to one or more functions and/or operation, it will be understood by those skilled in the art that each function in these schematic diagrames or embodiment and/or operation can by various hardware, software, firmware or in fact its combination in any come individually and/or jointly realize.
Should be appreciated that, in method of the present invention, related hardware or software can adopt hardware or software applicable in any prior art, or realize in conjunction with both combination in due course.Therefore, method of the present invention, can adopt the program code that is included in tangible mediums such as floppy disk, CD-ROM, hard disk drive or any other machinable medium (namely, instruction) form, wherein, in the situation that carry out on programmable calculator, computing equipment generally includes processor, readable storage medium (comprising volatile memory and/or memory element), at least one input equipment and at least one output equipment of this processor when program code.One or more programs can be for example, and by using API, the process of describing in conjunction with the present invention is realized or utilized to reusable control etc.Such program preferably realizes with high level procedural or Object-Oriented Programming Language, to communicate by letter with computer system apparatus.Yet if necessary, this program can realize with assembler language or machine language.In any case, language can be compiler language or interpretative code, and realizes combining with hardware.
Abovely describe in detail in conjunction with specific embodiments of the invention, but be not to be limitation of the present invention.Every foundation technical spirit of the present invention all still belongs to the scope of technical solution of the present invention to any simple modification made for any of the above embodiments.

Claims (10)

1. the acquisition methods of data, is characterized in that, comprises the following steps:
Data acquisition facility obtains the play command that client end of playing back sends;
Described data acquisition facility is according to described play command downloading data, and reaches the fixed data amount;
Described data acquisition facility is according to described play command, and the data that described client end of playing back is required send to described client end of playing back.
2. method according to claim 1, is characterized in that, described play command comprises broadcast point and playback volume.
3. method according to claim 1, is characterized in that, described fixed data amount is set according to broadcasting speed, bandwidth or network condition.
4. according to claim 2 or 3 described methods, is characterized in that, described data acquisition facility comprises according to described play command downloading data:
Described data acquisition facility begins downloading data from described broadcast point.
5. method according to claim 4, is characterized in that, the described data acquisition facility data volume that described client end of playing back is required sends to described client end of playing back to comprise:
Described data acquisition facility will send to described client end of playing back from the data that equal described playback volume that broadcast point begins.
6. method according to claim 5, is characterized in that, the described data acquisition facility data volume that described client end of playing back is required also comprises after sending to described client end of playing back:
Described data acquisition facility reduces described playback volume with its described downloading data amount.
7. method according to claim 6, is characterized in that, described data acquisition facility also comprises after its described downloading data amount is reduced described playback volume:
Whether described data acquisition facility judges its described downloading data amount less than described fixed data amount, and if yes, described data acquisition facility continues downloading data until reach described fixed data amount.
8. data acquisition facility comprises:
Receiver module: be used for obtaining the play command that client end of playing back sends;
Download module: the described play command downloading data that obtains according to described receiver module, and reach the fixed data amount;
Sending module: according to described play command, the required data of described client end of playing back that described download module is downloaded send to described client end of playing back.
9. device according to claim 8, is characterized in that, described play command comprises broadcast point and playback volume.
10. device according to claim 8, is characterized in that, described fixed data amount is set according to broadcasting speed, bandwidth or network condition.
CN201310010518.9A 2013-01-11 2013-01-11 The acquisition methods of a kind of data and device Expired - Fee Related CN103096133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310010518.9A CN103096133B (en) 2013-01-11 2013-01-11 The acquisition methods of a kind of data and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310010518.9A CN103096133B (en) 2013-01-11 2013-01-11 The acquisition methods of a kind of data and device

Publications (2)

Publication Number Publication Date
CN103096133A true CN103096133A (en) 2013-05-08
CN103096133B CN103096133B (en) 2016-08-24

Family

ID=48208183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310010518.9A Expired - Fee Related CN103096133B (en) 2013-01-11 2013-01-11 The acquisition methods of a kind of data and device

Country Status (1)

Country Link
CN (1) CN103096133B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104159125A (en) * 2014-07-22 2014-11-19 乐视网信息技术(北京)股份有限公司 Video display method, virtual player and video player
CN104753988A (en) * 2013-12-26 2015-07-01 乐视网信息技术(北京)股份有限公司 Data download control method and device
CN105430425A (en) * 2015-11-18 2016-03-23 深圳Tcl新技术有限公司 Method and device for accelerating playing of single-fragment video
CN108111900A (en) * 2016-11-25 2018-06-01 杭州海康威视数字技术股份有限公司 A kind of broadcasting speed control method and device
WO2019227742A1 (en) * 2018-05-29 2019-12-05 北京字节跳动网络技术有限公司 Loading control method for media playback, apparatus, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798097A (en) * 2004-12-24 2006-07-05 腾讯科技(深圳)有限公司 Method for buffering data in stream media
CN101252600A (en) * 2008-03-31 2008-08-27 腾讯科技(深圳)有限公司 Method, system and equipment of stream medium order program
CN102439938A (en) * 2009-02-09 2012-05-02 拜特移动网络公司 Method for controlling download rate of real-time streaming as needed by media player
CN102571894A (en) * 2010-12-07 2012-07-11 中国电信股份有限公司 Transmission control method and player of online streaming media

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798097A (en) * 2004-12-24 2006-07-05 腾讯科技(深圳)有限公司 Method for buffering data in stream media
CN101252600A (en) * 2008-03-31 2008-08-27 腾讯科技(深圳)有限公司 Method, system and equipment of stream medium order program
CN102439938A (en) * 2009-02-09 2012-05-02 拜特移动网络公司 Method for controlling download rate of real-time streaming as needed by media player
CN102571894A (en) * 2010-12-07 2012-07-11 中国电信股份有限公司 Transmission control method and player of online streaming media

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104753988A (en) * 2013-12-26 2015-07-01 乐视网信息技术(北京)股份有限公司 Data download control method and device
CN104159125A (en) * 2014-07-22 2014-11-19 乐视网信息技术(北京)股份有限公司 Video display method, virtual player and video player
CN105430425A (en) * 2015-11-18 2016-03-23 深圳Tcl新技术有限公司 Method and device for accelerating playing of single-fragment video
CN105430425B (en) * 2015-11-18 2018-11-16 深圳Tcl新技术有限公司 Single fragment video playing accelerating method and device
CN108111900A (en) * 2016-11-25 2018-06-01 杭州海康威视数字技术股份有限公司 A kind of broadcasting speed control method and device
CN108111900B (en) * 2016-11-25 2020-11-13 杭州海康威视数字技术股份有限公司 Playing speed control method and device
WO2019227742A1 (en) * 2018-05-29 2019-12-05 北京字节跳动网络技术有限公司 Loading control method for media playback, apparatus, and storage medium
CN110545479A (en) * 2018-05-29 2019-12-06 北京字节跳动网络技术有限公司 Loading control method and device for media playing and storage medium
US11006192B2 (en) 2018-05-29 2021-05-11 Beijing Bytedance Network Technology Co., Ltd. Media-played loading control method, device and storage medium
CN110545479B (en) * 2018-05-29 2021-07-06 北京字节跳动网络技术有限公司 Loading control method and device for media playing and storage medium

Also Published As

Publication number Publication date
CN103096133B (en) 2016-08-24

Similar Documents

Publication Publication Date Title
CN110099134B (en) Video file downloading method and device, electronic equipment and storage medium
US10271112B2 (en) System and method for dynamic adaptive video streaming using model predictive control
CN103096133A (en) Obtaining method and device of data
CN106301865B (en) Data processing method and device applied to service providing device
CN106303674B (en) Data transmission method, device and intelligent television system
CN110765744A (en) Multi-person collaborative document editing method and system
CN106028092A (en) Television screenshot sharing method and device
CN112839238B (en) Screen projection playing method and device and storage medium
CN103475939A (en) Method, device and server for processing play record
US9313084B2 (en) Systems and methods for client-side media chunking
CN106533713A (en) Application deployment method and device
US10178431B2 (en) Hybrid stream delivery
WO2018233539A1 (en) Video processing method, computer storage medium, and device
CN103780925A (en) On-line video-on-demand method and system based on moving platform
CN105721889A (en) P2P data download method and device
CN106162022A (en) Method, system and the mobile terminal of a kind of quick broadcasting video
US9411809B1 (en) Remote content presentation queues
CN106331089A (en) Video play control method and system
CN105072480A (en) Video live broadcast method and device
CN113672748A (en) Multimedia information playing method and device
CN107959659B (en) Streaming media playing control method and device and electronic equipment
CN108063746B (en) Data processing method, client, server and system
CN109347967A (en) A kind of method and device obtaining audio, video data
CN105681823A (en) Method and device for transcoding video file online
CN104572133A (en) Method and equipment for executing operation of plurality of users in calculation task

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160824

Termination date: 20170111

CF01 Termination of patent right due to non-payment of annual fee