CN106686036A - Multimedia data downloading method and system, client and server - Google Patents

Multimedia data downloading method and system, client and server Download PDF

Info

Publication number
CN106686036A
CN106686036A CN201510762818.1A CN201510762818A CN106686036A CN 106686036 A CN106686036 A CN 106686036A CN 201510762818 A CN201510762818 A CN 201510762818A CN 106686036 A CN106686036 A CN 106686036A
Authority
CN
China
Prior art keywords
server
data
client
code check
file
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
CN201510762818.1A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201510762818.1A priority Critical patent/CN106686036A/en
Priority to PCT/CN2016/105164 priority patent/WO2017080450A1/en
Publication of CN106686036A publication Critical patent/CN106686036A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a multimedia data downloading method. The method comprises the following steps that when the client detects that the network bandwidth is changed, a first code rate corresponding to the changed network bandwidth is determined; sub-segment data, which is downloaded at present, of a segment file of multimedia data is determined; the client monitors a boundary identification of the determined the sub-segment data; and when downloaded data reaches the boundary identification, the client downloads next sub-segment data corresponding to the segment file under the first code rate from a server. The invention also discloses the client, the server and a multimedia downloading system. According to the invention, the multimedia file is downloaded by switching the code rate rapidly according to the network bandwidth, and the code rate switching efficiency is improved.

Description

Method for downloading multimedia data, client, server and system
Technical field
The present invention relates to multimedia technology field, more particularly to a kind of method for downloading multimedia data, client End, server and system.
Background technology
With the development of communication technology, the application of multimedia technology is more and more wider.Under multi-medium data In load and playing process, if the network bandwidth there occurs change, download terminal has to wait for dividing for current download Segment file is downloaded when completing, and could download the suitable next segmental file of code check according to the network bandwidth.Using Traditional method for down loading often causes the switching of code check to lag behind the change of client network bandwidth, code check The poor real of switching, and then cause Consumer's Experience to reduce.
Therefore, in existing multi-medium data downloading process, how to improve when the network bandwidth changes The problem of code check switching efficiency, problems demand inventor in this respect solves.
The above is only used for auxiliary and understands technical scheme, does not represent and recognizes that the above is Prior art.
The content of the invention
Present invention is primarily targeted at solving in existing multi-medium data downloading process, to work as the network bandwidth How the problem of code check switching efficiency is improved when changing.
For achieving the above object, the present invention provides a kind of method for downloading multimedia data, the multimedia number Comprise the following steps according to method for down loading:
Client is when detecting the network bandwidth and changing, it is determined that the network bandwidth after change corresponding the One code check, and determine the sub- segment data of the segmental file of the multi-medium data currently downloaded;
The boundary marking of sub- segment data determined by the client control;
The client downloads described first when the data downloaded reach the boundary marking from server The next sub- segment data of corresponding segments file under code check.
Preferably, the client is downloaded when the data downloaded reach the boundary marking from server Include the step of next sub- segment data of corresponding segments file under first code check:
The client calculates right under first code check when the data downloaded reach the boundary marking Answer the position of the next sub- segment data of segmental file;
The client generates first request according to the positional information for calculating;
The client sends the described first request to the server, and receives the server return First code check under corresponding segments file next sub- segment data.
Preferably, the client is when detecting the network bandwidth and changing, it is determined that the network after change Corresponding first code check of bandwidth, and determine the son point of the segmental file of the multi-medium data currently downloaded Before the step of segment data, also include:
The client sends second and asks to the server, to download many matchmakers from the server The index file of volume data;
The client receives the index file that the server is returned;
The client sends a request to successively the server according to the index file, and receives described Each segmental file under the second code check that server is returned.
Preferably, the client is downloaded when the data downloaded reach the boundary marking from server Under first code check the step of next sub- segment data of corresponding segments file after, also include:
The next sub- segment data of client corresponding segments file under first code check is downloaded and completed When, the sub- segment data downloaded is played according to first code check.
Preferably, the client sends second and asks to the server, to download from the server Before the step of index file of the multi-medium data, also include:
The server generates index file and multiple segmental files according to the multi-medium data;
The server adds corresponding decoded information in the original position of each segmental file;
The server is identified according to each described decoded information and can carry out in corresponding segments file code check The sub- segment data of switching;
The server adds the positional information of each sub- segment data into the index file, for visitor Family end carries out code check switching according to the network bandwidth when downloading the multi-medium data between sub- segment data.
Additionally, for achieving the above object, the present invention also provides a kind of client, and the client includes:
Determining module, for when detecting the network bandwidth and changing, it is determined that the network bandwidth after change Corresponding first code check, and determine the sub- segments of the segmental file of the multi-medium data currently downloaded According to;
Monitoring module, for the boundary marking of sub- segment data determined by monitoring;
Download module, during for reaching the boundary marking in the data downloaded, downloads described from server The next sub- segment data of corresponding segments file under first code check.
Preferably, the download module includes computing unit, signal generating unit and receiving unit;
Computing unit, during for reaching the boundary marking in the data downloaded, calculates first code check The position of the next sub- segment data of lower corresponding segments file;
Signal generating unit, for generating first request according to the positional information for calculating;
Receiving unit, for the described first request to be sent to the server, and receives the server The next sub- segment data of corresponding segments file under first code check for returning.
Preferably, the download module, is additionally operable to send and second asks to the server, with from described Server downloads the index file of the multi-medium data;
The download module, is additionally operable to receive the index file that the server is returned;
The download module, is additionally operable to send a request to the server successively according to the index file, And receive each segmental file under the second code check that the server is returned.
Preferably, the client also includes playing module;
The playing module, for the next sub- segment data of the corresponding segments file under first code check When download is completed, the sub- segment data downloaded is played according to first code check.
Additionally, for achieving the above object, the present invention also provides a kind of server, and the server includes:
Generation module, for generating index file and multiple segmental files according to the multi-medium data;
Add module, for adding corresponding decoded information in the original position of each segmental file;
Mark module, can be carried out for being identified in corresponding segments file according to each described decoded information The sub- segment data of code check switching;
The add module, is additionally operable to add the positional information of each sub- segment data to the index file In, for being carried out between sub- segment data according to the network bandwidth during multi-medium data described in client downloads Code check switches.
Additionally, for achieving the above object, the present invention also provides a kind of multi-media data downloading system, described Multi-media data downloading system includes client as above and server as above.
The present invention is monitored when multi-medium data is downloaded to the network bandwidth, is detecting the network bandwidth When changing, the sub- segment data download for waiting the segmental file of the current multi-medium data downloaded is completed, Another code check is can switch to, the next sub- segment data of corresponding segmental file under another code check is downloaded. All download without waiting for the segmental file currently downloaded and complete, you can quickly carry out code check switching. Simultaneously corresponding code check is determined according to the network bandwidth after change, realize and be switched fast according to the network bandwidth Code check carries out the download of multimedia file, improves code check switching efficiency.
Description of the drawings
Fig. 1 is the schematic flow sheet of the first embodiment of method for downloading multimedia data of the present invention;
Fig. 2 is the schematic flow sheet of the second embodiment of method for downloading multimedia data of the present invention;
Fig. 3 is the schematic flow sheet of the 3rd embodiment of method for downloading multimedia data of the present invention;
Fig. 4 is the schematic flow sheet of the fourth embodiment of method for downloading multimedia data of the present invention;
Fig. 5 is the high-level schematic functional block diagram of the first embodiment of client of the present invention;
Fig. 6 is the high-level schematic functional block diagram of the second embodiment of client of the present invention;
Fig. 7 is the high-level schematic functional block diagram of the preferred embodiment of server of the present invention;
Fig. 8 is the high-level schematic functional block diagram of the preferred embodiment of multi-media data downloading system of the present invention.
The realization of the object of the invention, functional characteristics and advantage will be done referring to the drawings further in conjunction with the embodiments Explanation.
Specific embodiment
It should be appreciated that specific embodiment described herein is not used to limit only to explain the present invention The fixed present invention.
The primary solutions of the embodiment of the present invention are:Client when detecting the network bandwidth and changing, It is determined that corresponding first code check of the network bandwidth after change, and determine the multi-medium data currently downloaded Segmental file sub- segment data;The boundary marking of sub- segment data determined by the client control; The client downloads first code check when the data downloaded reach the boundary marking from server The next sub- segment data of lower corresponding segments file.
In existing multi-medium data downloading process, how to improve code check when the network bandwidth changes and cut Change the problem of efficiency.
Based on the problems referred to above, the present invention provides a kind of method for downloading multimedia data.
With reference to Fig. 1, Fig. 1 is the schematic flow sheet of the first embodiment of method for downloading multimedia data of the present invention.
In the present embodiment, the method for downloading multimedia data includes:
Step S10, client is when detecting the network bandwidth and changing, it is determined that the network bandwidth after change Corresponding first code check, and determine the sub- segments of the segmental file of the multi-medium data currently downloaded According to;
The client is the terminal unit downloaded for multi-medium data, and the client can be such as Mobile phone, smart phone, notebook computer, PDA (personal digital assistant), PAD (panel computer), The mobile terminal of PMP (portable media player) etc. and such as numeral TV, desk computer Etc. fixed terminal.
The multi-medium data is stored in server, so that client is downloaded.The multi-medium data Including the multiple segmental files under index file and different code checks.In embodiments of the present invention, described in each Segmental file includes many sub- segment datas.
The client determines when detecting the network bandwidth and changing according to the index file downloaded Corresponding first code check of the network bandwidth after change, and determine dividing for the multi-medium data currently downloaded The sub- segment data of segment file.First code check is the corresponding code check of the network bandwidth after change, herein Use the description of " first " only for being conducive to explanation of the invention, itself do not have specific meaning. For example:Segmental file under the client downloads 800kbps code check, detects network and changes, and becomes The network bandwidth after change meets 2000kbps code checks, then correspondence under the client downloads 2000kbps code check Segmental file.
Step S20, the boundary marking of sub- segment data determined by the client control;
The boundary marking is for judging the labelling of sub- segment data scope in segmental file.Preferably, The boundary marking can include origin identification and end of identification, in the present embodiment, currently download Sub- segment data boundary marking be the sub- segment data end of identification.
Step S30, the client is downloaded when the data downloaded reach the boundary marking from server The next sub- segment data of corresponding segments file under first code check.
The client is when the data downloaded reach the boundary marking, it is determined that the current son segmentation downloaded Data are downloaded and completed, and the client downloads described first according to the index file downloaded from server The next sub- segment data of corresponding segments file under code check.Next sub- segment data herein, is according to rope The order of setting has currently downloaded the corresponding next sub- segment data of the sub- segment data for completing in quotation part. Specifically, for example:The first sub- segment data under 800kbps code checks is downloaded when completing, and carries out code check Switching, downloads the second sub- segment data under 2000kbps code checks, and under 2000kbps code checks first is sub Segment data is corresponding with the first sub- segment data under 800kbps code checks, and only code check is different.
Further, the client can be with next son of the corresponding segments file under first code check Segment data is downloaded when completing, and the sub- segment data downloaded is played according to first code check.
The present embodiment is monitored when multi-medium data is downloaded to the network bandwidth, is detecting Netowrk tape When width changes, the sub- segment data for waiting the segmental file of the current multi-medium data downloaded has been downloaded Into, you can another code check is switched to, the next sub- segments of corresponding segmental file under another code check is downloaded According to.All download without waiting for the segmental file currently downloaded and complete, you can quickly carry out code check and cut Change.Simultaneously corresponding code check is determined according to the network bandwidth after change, realized quick according to the network bandwidth Switching code rate carries out the download of multimedia file, improves code check switching efficiency.
With reference to Fig. 2, Fig. 2 is the schematic flow sheet of the second embodiment of method for downloading multimedia data of the present invention. Based on the first embodiment of above-mentioned method for downloading multimedia data, step S30 includes:
Step S31, the client calculates described first when the data downloaded reach the boundary marking The position of the next sub- segment data of corresponding segments file under code check;
The client download data reach the boundary marking when, according to the index file downloaded Calculate the position of the next sub- segment data of corresponding segments file under first code check.It should be appreciated that The positional information of each sub- segment data is preserved in the index file of the multimedia file.The position Information is the positional information of the sub- segment data storage.
Step S32, the client generates first request according to the positional information for calculating;
The client generates first request according to the positional information for calculating, to from the service Device downloads the next sub- segment data of corresponding segments file under first code check.Or, the client The positional information for calculating can also be added into the described first request, and will be containing the positional information First request send to server.
Step S33, the client sends the described first request to the server, and receives the clothes The next sub- segment data of corresponding segments file under first code check that business device is returned.
The client sends the described first request to the server, so that the server is being received When the described first request, the next sub- segment data of corresponding segments file under first code check is returned. The client receives the sub- segment data that the server is returned.Preferably, the server can be When receiving first request, first by the next sub- segmentation text of corresponding segments file under first code check The corresponding decoded information of part is sent to the client, then corresponding sub- segment data is sent to into the visitor Family end.
Next sub- segment data of the present embodiment after being changed by calculating network bandwidth under corresponding code check Position, according to positional information generate first ask, and by generate first request send to server, To download the sub- segment data of correspondence position from server, realize according to the network bandwidth in sub- segment data Between quickly switch over code check, improve code check switching efficiency.
With reference to Fig. 3, Fig. 3 is the schematic flow sheet of the 3rd embodiment of method for downloading multimedia data of the present invention. Based on the first embodiment of above-mentioned method for downloading multimedia data, before step S10, also include:
Step S11, the client sends second and asks to the server, to download from the server The index file of the multi-medium data;
Step S12, the client receives the index file that the server is returned;
Step S13, the client sends a request to successively the server according to the index file, and Receive each segmental file under the second code check that the server is returned.
Including the position letter of the segmental file under each code check of the multimedia file in the index file Breath, the positional information of the sub- segment data of each segmental file and the corresponding network bandwidth number of each code check According to.The client sends second and asks to the server in downloading multimedia file, first, with The index file of the multi-medium data is downloaded from the server;The client receives the server The index file of return;The client sends a request to successively the server according to the index file, To download each segmental file of the multimedia file successively from the server;The client receives institute The each segmental file under the second code check of server return is stated, and is played out according to the second code check.
The present embodiment first downloads the index file of multi-medium data, according to rope when multi-medium data is downloaded The sub- segment data of quotation part each segmental file of downloading multimedia file successively, to net in downloading process Network bandwidth is monitored, and when detecting the network bandwidth and changing, waits the current multimedia number downloaded According to the sub- segment data of segmental file download and complete, you can switch to another code check, download another code check Under corresponding segmental file next sub- segment data.It is complete without waiting for the segmental file currently downloaded Subordinate carries and completes, you can carry out code check switching.Simultaneously corresponding code is determined according to the network bandwidth after change Rate, realizes and is switched fast code check according to the network bandwidth and carries out the download of multimedia file, improves code check Switching efficiency.
With reference to Fig. 4, Fig. 4 is the schematic flow sheet of the fourth embodiment of method for downloading multimedia data of the present invention. Based on the first embodiment of above-mentioned method for downloading multimedia data, before step S11, also include:
Step S100, the server generates index file and multiple segmentations text according to the multi-medium data Part;
Step S101, the server adds corresponding decoded information in the original position of each segmental file;
Step S102, the server is identified according to each described decoded information can in corresponding segments file To carry out the sub- segment data of code check switching;
Step S103, the server adds the positional information of each sub- segment data to the index file In, for being carried out between sub- segment data according to the network bandwidth during multi-medium data described in client downloads Code check switches.
The server generates index file and multiple segmental files according to the multi-medium data;The clothes Business device adds corresponding decoded information in the original position of each segmental file;The server analysis each Segmental file, identifies according to each described decoded information and can carry out in corresponding segments file code check switching Sub- segment data;The server adds the positional information of each sub- segment data to the index file In, for being carried out between sub- segment data according to the network bandwidth during multi-medium data described in client downloads Code check switches.
Further, the server is when the multi-medium data download request of client is received, according to Corresponding multi-medium data is sent to the client by the request for receiving.
The present embodiment passes through server by multi-medium data generation index file and multiple segmental files, and Identifying in segmental file can carry out the sub- segmenting unit of code check switching, and by each sub- segmenting unit Positional information adds into index file.So that when multi-medium data is downloaded, carrying out to the network bandwidth Monitoring, when detecting the network bandwidth and changing, waits the segmentation text of the current multi-medium data downloaded The sub- segment data of part is downloaded and completed, you can switch to another code check, is downloaded corresponding point under another code check The next sub- segment data of segment file.All download without waiting for the segmental file currently downloaded and complete, Code check switching can be carried out.Simultaneously corresponding code check is determined according to the network bandwidth after change, realize root Being switched fast code check according to the network bandwidth carries out the download of multimedia file, improves code check switching efficiency.
The present invention further provides a kind of client.
With reference to Fig. 5, Fig. 5 is the high-level schematic functional block diagram of the first embodiment of client of the present invention.
In the present embodiment, the client includes:Determining module 10, monitoring module 20 and download module 30。
The determining module 10, for when detecting the network bandwidth and changing, it is determined that the net after change Corresponding first code check of network bandwidth, and determine the son of the segmental file of the multi-medium data currently downloaded Segment data;
The client is the terminal unit downloaded for multi-medium data, and the client can be such as Mobile phone, smart phone, notebook computer, PDA (personal digital assistant), PAD (panel computer), The mobile terminal of PMP (portable media player) etc. and such as numeral TV, desk computer Etc. fixed terminal.
The multi-medium data is stored in server, so that client is downloaded.The multi-medium data Including the multiple segmental files under index file and different code checks.In embodiments of the present invention, described in each Segmental file includes many sub- segment datas.
The client determines when detecting the network bandwidth and changing according to the index file downloaded Corresponding first code check of the network bandwidth after change, and determine dividing for the multi-medium data currently downloaded The sub- segment data of segment file.First code check is the corresponding code check of the network bandwidth after change, herein Use the description of " first " only for being conducive to explanation of the invention, itself do not have specific meaning. For example:Segmental file under the client downloads 800kbps code check, detects network and changes, and becomes The network bandwidth after change meets 2000kbps code checks, then correspondence under the client downloads 2000kbps code check Segmental file.
The monitoring module 20, for the boundary marking of sub- segment data determined by monitoring;
The boundary marking is for judging the labelling of sub- segment data scope in segmental file.Preferably, The boundary marking can include origin identification and end of identification, in the present embodiment, currently download Sub- segment data boundary marking be the sub- segment data end of identification.
The download module 30, during for reaching the boundary marking in the data downloaded, under server Carry the next sub- segment data of corresponding segments file under first code check.
The client is when the data downloaded reach the boundary marking, it is determined that the current son segmentation downloaded Data are downloaded and completed, and the client downloads described first according to the index file downloaded from server The next sub- segment data of corresponding segments file under code check.Next sub- segment data herein, is according to rope The order of setting has currently downloaded the corresponding next sub- segment data of the sub- segment data for completing in quotation part. Specifically, for example:The first sub- segment data under 800kbps code checks is downloaded when completing, and carries out code check Switching, downloads the second sub- segment data under 2000kbps code checks, and under 2000kbps code checks first is sub Segment data is corresponding with the first sub- segment data under 800kbps code checks, and only code check is different.
Further, the client can also include playing module;The playing module, in institute When the next sub- segment data download for stating corresponding segments file under the first code check is completed, according to described first yard Rate plays the sub- segment data downloaded.
The present embodiment is monitored when multi-medium data is downloaded to the network bandwidth, is detecting Netowrk tape When width changes, the sub- segment data for waiting the segmental file of the current multi-medium data downloaded has been downloaded Into, you can another code check is switched to, the next sub- segments of corresponding segmental file under another code check is downloaded According to.All download without waiting for the segmental file currently downloaded and complete, you can quickly carry out code check and cut Change.Simultaneously corresponding code check is determined according to the network bandwidth after change, realized quick according to the network bandwidth Switching code rate carries out the download of multimedia file, improves code check switching efficiency.
With reference to Fig. 6, Fig. 6 is the high-level schematic functional block diagram of the second embodiment of client of the present invention.Based on upper The first embodiment of client is stated, the download module 30 includes computing unit 31, the and of signal generating unit 32 Receiving unit 33;
Computing unit 31, during for reaching the boundary marking in the data downloaded, calculates described first yard The position of the next sub- segment data of corresponding segments file under rate;
The client download data reach the boundary marking when, according to the index file downloaded Calculate the position of the next sub- segment data of corresponding segments file under first code check.It should be appreciated that The positional information of each sub- segment data is preserved in the index file of the multimedia file.The position Information is the positional information of the sub- segment data storage.
Signal generating unit 32, for generating first request according to the positional information for calculating;
The client generates first request according to the positional information for calculating, to from the service Device downloads the next sub- segment data of corresponding segments file under first code check.Or, the client The positional information for calculating can also be added into the described first request, and will be containing the positional information First request send to server.
Receiving unit 33, for the described first request to be sent to the server, and receives the service The next sub- segment data of corresponding segments file under first code check that device is returned.
The client sends the described first request to the server, so that the server is being received When the described first request, the next sub- segment data of corresponding segments file under first code check is returned. The client receives the sub- segment data that the server is returned.Preferably, the server can be When receiving first request, first by the next sub- segmentation text of corresponding segments file under first code check The corresponding decoded information of part is sent to the client, then corresponding sub- segment data is sent to into the visitor Family end.
Next sub- segment data of the present embodiment after being changed by calculating network bandwidth under corresponding code check Position, according to positional information generate first ask, and by generate first request send to server, To download the sub- segment data of correspondence position from server, realize according to the network bandwidth in sub- segment data Between quickly switch over code check, improve code check switching efficiency.
Further, the download module 30, is additionally operable to send and second asks to the server, with from The server downloads the index file of the multi-medium data;
The download module 30, is additionally operable to receive the index file that the server is returned;
The download module 30, is additionally operable to send a request to the server successively according to the index file, And receive each segmental file under the second code check that the server is returned.
Including the position letter of the segmental file under each code check of the multimedia file in the index file Breath, the positional information of the sub- segment data of each segmental file and the corresponding network bandwidth number of each code check According to.The client sends second and asks to the server in downloading multimedia file, first, with The index file of the multi-medium data is downloaded from the server;The client receives the server The index file of return;The client sends a request to successively the server according to the index file, To download each segmental file of the multimedia file successively from the server;The client receives institute The each segmental file under the second code check of server return is stated, and is played out according to the second code check.
The present embodiment first downloads the index file of multi-medium data, according to rope when multi-medium data is downloaded The sub- segment data of quotation part each segmental file of downloading multimedia file successively, to net in downloading process Network bandwidth is monitored, and when detecting the network bandwidth and changing, waits the current multimedia number downloaded According to the sub- segment data of segmental file download and complete, you can switch to another code check, download another code check Under corresponding segmental file next sub- segment data.It is complete without waiting for the segmental file currently downloaded Subordinate carries and completes, you can carry out code check switching.Simultaneously corresponding code is determined according to the network bandwidth after change Rate, realizes and is switched fast code check according to the network bandwidth and carries out the download of multimedia file, improves code check Switching efficiency.
The present invention further provides a kind of server.
With reference to Fig. 7, Fig. 7 is the high-level schematic functional block diagram of the preferred embodiment of server of the present invention.
In the present embodiment, the server includes:Generation module 100, add module 101 and mark mould Block 103;
The generation module 100, for generating index file and multiple segmentations text according to the multi-medium data Part;
The add module 101, in the corresponding decoding letter of the original position of each segmental file addition Breath;
The mark module 102, can in corresponding segments file for being identified according to each described decoded information To carry out the sub- segment data of code check switching;
The add module 102, is additionally operable to add the positional information of each sub- segment data to the index text In part, for being entered between sub- segment data according to the network bandwidth during multi-medium data described in client downloads Row code check switches.
The server generates index file and multiple segmental files according to the multi-medium data;The clothes Business device adds corresponding decoded information in the original position of each segmental file;The server analysis each Segmental file, identifies according to each described decoded information and can carry out in corresponding segments file code check switching Sub- segment data;The server adds the positional information of each sub- segment data to the index file In, for being carried out between sub- segment data according to the network bandwidth during multi-medium data described in client downloads Code check switches.
Further, the server can also include sending module;The sending module, for connecing When receiving the multi-medium data download request of client, according to the request for receiving by corresponding multimedia number According to being sent to the client.
The present embodiment passes through server by multi-medium data generation index file and multiple segmental files, and Identifying in segmental file can carry out the sub- segmenting unit of code check switching, and by each sub- segmenting unit Positional information adds into index file.So that when multi-medium data is downloaded, carrying out to the network bandwidth Monitoring, when detecting the network bandwidth and changing, waits the segmentation text of the current multi-medium data downloaded The sub- segment data of part is downloaded and completed, you can switch to another code check, is downloaded corresponding point under another code check The next sub- segment data of segment file.All download without waiting for the segmental file currently downloaded and complete, Code check switching can be carried out.Simultaneously corresponding code check is determined according to the network bandwidth after change, realize root Being switched fast code check according to the network bandwidth carries out the download of multimedia file, improves code check switching efficiency.
The present invention further provides a kind of multi-media data downloading system.
With reference to Fig. 8, Fig. 8 is that the functional module of the preferred embodiment of multi-media data downloading system of the present invention is shown It is intended to.
In the present embodiment, the multi-media data downloading system includes client as above and as above Described server.Specific features reference above-described embodiment of the client and the server, due to This multi-medium data employs whole technical schemes of above-mentioned all embodiments, therefore at least has above-mentioned reality All beneficial effects that the technical scheme of example is brought are applied, this is no longer going to repeat them.
It should be noted that herein, term " including ", "comprising" or its any other variant Be intended to including for nonexcludability so that process, method, article including a series of key elements or Person's device not only includes those key elements, but also including other key elements being not expressly set out, or also Including the key element intrinsic for this process, method, article or device.In the feelings without more restrictions Under condition, the key element limited by sentence "including a ...", it is not excluded that including the key element process, Also there is other identical element in method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-mentioned Embodiment method can add the mode of required general hardware platform to realize by software, naturally it is also possible to logical Cross hardware, but in many cases the former is more preferably embodiment.It is of the invention based on such understanding The part that technical scheme substantially contributes in other words to prior art can in the form of software product body Reveal and, the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, light Disk) in, including some instructions are used so that a station terminal equipment (can be mobile phone, computer is serviced Device, air-conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, the scope of the claims of the present invention is not thereby limited, it is every The equivalent structure made using description of the invention and accompanying drawing content or equivalent flow conversion, or directly or Connect and be used in other related technical fields, be included within the scope of the present invention.

Claims (11)

1. a kind of method for downloading multimedia data, it is characterised in that the method for downloading multimedia data bag Include following steps:
Client is when detecting the network bandwidth and changing, it is determined that the network bandwidth after change corresponding the One code check, and determine the sub- segment data of the segmental file of the multi-medium data currently downloaded;
The boundary marking of sub- segment data determined by the client control;
The client downloads described first when the data downloaded reach the boundary marking from server The next sub- segment data of corresponding segments file under code check.
2. method for downloading multimedia data as claimed in claim 1, it is characterised in that the client When the data downloaded reach the boundary marking, from server corresponding segments under first code check are downloaded The step of next sub- segment data of file, includes:
The client calculates right under first code check when the data downloaded reach the boundary marking Answer the position of the next sub- segment data of segmental file;
The client generates first request according to the positional information for calculating;
The client sends the described first request to the server, and receives the server return First code check under corresponding segments file next sub- segment data.
3. method for downloading multimedia data as claimed in claim 1, it is characterised in that the client When detecting the network bandwidth and changing, it is determined that corresponding first code check of the network bandwidth after change, and It is determined that before the step of sub- segment data of the segmental file of the multi-medium data currently downloaded, also wrapping Include:
The client sends second and asks to the server, to download many matchmakers from the server The index file of volume data;
The client receives the index file that the server is returned;
The client sends a request to successively the server according to the index file, and receives described Each segmental file under the second code check that server is returned.
4. the method for downloading multimedia data as described in any one of claims 1 to 3, it is characterised in that The client downloads first code check when the data downloaded reach the boundary marking from server After the step of next sub- segment data of lower corresponding segments file, also include:
The next sub- segment data of client corresponding segments file under first code check is downloaded and completed When, the sub- segment data downloaded is played according to first code check.
5. method for downloading multimedia data as claimed in claim 3, it is characterised in that the client Send second to ask to the server, to download the index text of the multi-medium data from the server Before the step of part, also include:
The server generates index file and multiple segmental files according to the multi-medium data;
The server adds corresponding decoded information in the original position of each segmental file;
The server is identified according to each described decoded information and can carry out in corresponding segments file code check The sub- segment data of switching;
The server adds the positional information of each sub- segment data into the index file, for visitor Family end carries out code check switching according to the network bandwidth when downloading the multi-medium data between sub- segment data.
6. a kind of client, it is characterised in that the client includes:
Determining module, for when detecting the network bandwidth and changing, it is determined that the network bandwidth after change Corresponding first code check, and determine the sub- segments of the segmental file of the multi-medium data currently downloaded According to;
Monitoring module, for the boundary marking of sub- segment data determined by monitoring;
Download module, during for reaching the boundary marking in the data downloaded, downloads described from server The next sub- segment data of corresponding segments file under first code check.
7. client as claimed in claim 6, it is characterised in that the download module includes calculating single Unit, signal generating unit and receiving unit;
Computing unit, during for reaching the boundary marking in the data downloaded, calculates first code check The position of the next sub- segment data of lower corresponding segments file;
Signal generating unit, for generating first request according to the positional information for calculating;
Receiving unit, for the described first request to be sent to the server, and receives the server The next sub- segment data of corresponding segments file under first code check for returning.
8. client as claimed in claim 6, it is characterised in that the download module, is additionally operable to send out The second request is sent to the server, to download the index file of the multi-medium data from the server;
The download module, is additionally operable to receive the index file that the server is returned;
The download module, is additionally operable to send a request to the server successively according to the index file, And receive each segmental file under the second code check that the server is returned.
9. client as claimed in claim 6, it is characterised in that the client also includes playing mould Block;
The playing module, for the next sub- segment data of the corresponding segments file under first code check When download is completed, the sub- segment data downloaded is played according to first code check.
10. a kind of server, it is characterised in that the server includes:
Generation module, for generating index file and multiple segmental files according to the multi-medium data;
Add module, for adding corresponding decoded information in the original position of each segmental file;
Mark module, can be carried out for being identified in corresponding segments file according to each described decoded information The sub- segment data of code check switching;
The add module, is additionally operable to add the positional information of each sub- segment data to the index file In, for being carried out between sub- segment data according to the network bandwidth during multi-medium data described in client downloads Code check switches.
A kind of 11. multi-media data downloading systems, it is characterised in that the multi-media data downloading system Including the client as described in any one of claim 6 to 9 and server as claimed in claim 10.
CN201510762818.1A 2015-11-10 2015-11-10 Multimedia data downloading method and system, client and server Pending CN106686036A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510762818.1A CN106686036A (en) 2015-11-10 2015-11-10 Multimedia data downloading method and system, client and server
PCT/CN2016/105164 WO2017080450A1 (en) 2015-11-10 2016-11-09 Multi-media data download method, client, server, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510762818.1A CN106686036A (en) 2015-11-10 2015-11-10 Multimedia data downloading method and system, client and server

Publications (1)

Publication Number Publication Date
CN106686036A true CN106686036A (en) 2017-05-17

Family

ID=58694532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510762818.1A Pending CN106686036A (en) 2015-11-10 2015-11-10 Multimedia data downloading method and system, client and server

Country Status (2)

Country Link
CN (1) CN106686036A (en)
WO (1) WO2017080450A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213653A (en) * 2019-06-14 2019-09-06 北京奇艺世纪科技有限公司 A kind of method and device playing video
CN110324681A (en) * 2019-07-08 2019-10-11 广州酷狗计算机科技有限公司 Dicing method, device, storage medium and the Transmission system of multi-medium data
CN113259729A (en) * 2020-02-10 2021-08-13 北京字节跳动网络技术有限公司 Data switching method, server, system and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110121100B (en) * 2019-05-28 2022-03-15 平安科技(深圳)有限公司 Method, device, terminal and computer readable storage medium for downloading media file
CN117560525B (en) * 2024-01-11 2024-04-19 腾讯科技(深圳)有限公司 Data processing method, device, equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145933A (en) * 2007-10-26 2008-03-19 北大方正集团有限公司 Transmission method, receiving method and corresponding device for distribution system and media data
CN102761524A (en) * 2011-04-27 2012-10-31 中兴通讯股份有限公司 Steaming media storage and playing method and corresponding system
US20130282917A1 (en) * 2012-04-24 2013-10-24 Vid Scale, Inc. Method and apparatus for smooth stream switching in mpeg/3gpp-dash
CN105027567A (en) * 2013-01-07 2015-11-04 诺基亚技术有限公司 Method and apparatus for video coding and decoding

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145933A (en) * 2007-10-26 2008-03-19 北大方正集团有限公司 Transmission method, receiving method and corresponding device for distribution system and media data
CN102761524A (en) * 2011-04-27 2012-10-31 中兴通讯股份有限公司 Steaming media storage and playing method and corresponding system
US20130282917A1 (en) * 2012-04-24 2013-10-24 Vid Scale, Inc. Method and apparatus for smooth stream switching in mpeg/3gpp-dash
CN105027567A (en) * 2013-01-07 2015-11-04 诺基亚技术有限公司 Method and apparatus for video coding and decoding

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213653A (en) * 2019-06-14 2019-09-06 北京奇艺世纪科技有限公司 A kind of method and device playing video
CN110213653B (en) * 2019-06-14 2022-03-04 北京奇艺世纪科技有限公司 Method and device for playing video
CN110324681A (en) * 2019-07-08 2019-10-11 广州酷狗计算机科技有限公司 Dicing method, device, storage medium and the Transmission system of multi-medium data
CN113259729A (en) * 2020-02-10 2021-08-13 北京字节跳动网络技术有限公司 Data switching method, server, system and storage medium

Also Published As

Publication number Publication date
WO2017080450A1 (en) 2017-05-18

Similar Documents

Publication Publication Date Title
CN106686036A (en) Multimedia data downloading method and system, client and server
CN104123186B (en) Method for distributing business and device
CN102880688B (en) A kind of method for webpage is estimated, device and equipment
CN107423085B (en) Method and apparatus for deploying applications
CN111954173B (en) Method, device, server and computer readable storage medium for sending short message
CN107563836B (en) Billboard leasing method, server and storage medium
CN104603773A (en) Method and apparatus for associating interest tags with media items based on social diffusions among users
CN109995877A (en) Information-pushing method and device
CN106682949A (en) Service recommending method and service information receiving method, device and system
CN107864405B (en) Viewing behavior type prediction method, device and computer readable medium
CN109635986A (en) Shops's method for pushing, device, equipment and storage medium
CN107404481A (en) User profile recognition methods and device
CN106649696A (en) Information classification method and device
CN109446442A (en) Method and apparatus for handling information
CN111191434B (en) Sports news writing method and device based on natural language and electronic equipment
CN109413056A (en) Method and apparatus for handling information
CN109087139A (en) Advertisement placement method and device for feed stream
CN110188276A (en) Data sending device, method, electronic equipment and computer readable storage medium
CN114139052A (en) Ranking model training method for intelligent recommendation, intelligent recommendation method and device
CN107330069B (en) Multimedia data processing method and device, server and storage medium
CN111680215B (en) Information pushing method and device and electronic equipment
CN103561022A (en) Voice service access method, related device and voice service system
CN113810477A (en) File uploading method, device, equipment and storage medium
CN112532406B (en) Data processing method and device for contrast experiment, computer equipment and storage medium
CN102333121B (en) Method for sending and receiving HTTP (Hyper Text Transfer Protocol) attachment as well as server and terminal equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170517

RJ01 Rejection of invention patent application after publication