CN109067916A - A kind of online multimedia document down loading method and device, electronic equipment - Google Patents

A kind of online multimedia document down loading method and device, electronic equipment Download PDF

Info

Publication number
CN109067916A
CN109067916A CN201811108426.3A CN201811108426A CN109067916A CN 109067916 A CN109067916 A CN 109067916A CN 201811108426 A CN201811108426 A CN 201811108426A CN 109067916 A CN109067916 A CN 109067916A
Authority
CN
China
Prior art keywords
data packet
target cache
downloading
speed
cache data
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
CN201811108426.3A
Other languages
Chinese (zh)
Other versions
CN109067916B (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.)
Shenzhen Jiuzhou Electric Appliance Co Ltd
Original Assignee
Shenzhen Jiuzhou Electric Appliance 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 Shenzhen Jiuzhou Electric Appliance Co Ltd filed Critical Shenzhen Jiuzhou Electric Appliance Co Ltd
Priority to CN201811108426.3A priority Critical patent/CN109067916B/en
Publication of CN109067916A publication Critical patent/CN109067916A/en
Application granted granted Critical
Publication of CN109067916B publication Critical patent/CN109067916B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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/104Peer-to-peer [P2P] networks
    • 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/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to multimedia file download technology fields, more particularly to a kind of online multimedia document down loading method and device, electronic equipment.Method includes: to obtain the corresponding current data packet of currently playing progress of online multimedia file;According to play time sequence, target cache data packet of the continuous arrangement after current data packet is determined;Detect the speed of download for downloading the node of target cache data packet;According to the speed of download of the broadcasting speed of destination client and node, adjust the downloading mode of target cache data packet, wherein, downloading mode includes destination client directly from the first downloading mode of content server downloading data packet and destination client from the second downloading mode of node downloading data packet.Therefore, a variety of downloading modes or less can flexibly be provided and is loaded in line multimedia file.

Description

A kind of online multimedia document down loading method and device, electronic equipment
Technical field
The present invention relates to multimedia file download technology fields, more particularly to a kind of online multimedia document down loading method And device, electronic equipment.
Background technique
When client terminal playing Online Video, can using P2P (Peer to Peer, peer-to-peer network) mode download this Line video.In P2P network, client can receive the video data of neighboring client end (also known as neighbor node) transmission, Video data can also be sent to adjacent node, rapidly cache or download Online Video to realize.
In the implementation of the present invention, discovery traditional technology is the prior art has at least the following problems: only due to client by inventor P2P mode foradownloaded video can solely be selected, when the speed of download of neighbor node is excessively slow, will lead to client terminal playing There are the not smooth phenomenons such as Caton for line video.
Summary of the invention
One purpose of the embodiment of the present invention is intended to provide a kind of online multimedia document down loading method and device, electronics are set It is standby, a variety of downloading modes or less can be flexibly provided and be loaded in line multimedia file.
In order to solve the above technical problems, the embodiment of the present invention the following technical schemes are provided:
In a first aspect, the embodiment of the present invention provides a kind of online multimedia document down loading method, applied to target customer End, the destination client work is in a peer-to-peer network, which comprises
Obtain the corresponding current data packet of currently playing progress of the online multimedia file;
According to play time sequence, target cache data packet of the continuous arrangement after the current data packet is determined;
Detect the speed of download for downloading the node of the target cache data packet;
According to the speed of download of the broadcasting speed of the destination client and the node, the target cache data are adjusted The downloading mode of packet, wherein the downloading mode includes the destination client directly from content server downloading data packet The second downloading mode of first downloading mode and the destination client from the node downloading data packet.
Optionally, the speed of download of the broadcasting speed according to the destination client and the node, described in adjustment The downloading mode of target cache data packet, comprising:
The play history of the destination client is obtained, the play history includes the destination client according to F.F. speed Spend the F.F. number of play history multimedia file and the history quantity of play history multimedia file;
Calculate the ratio between the F.F. number and the history quantity;
According to the broadcasting speed of the destination client, the speed of download of the node and the F.F. number with it is described Ratio between history quantity adjusts the downloading mode of the target cache data packet.
Optionally, described according to the broadcasting speed of the destination client, the speed of download of the node and described fast Ratio between number and the history quantity adjusts the downloading mode of the target cache data packet, comprising:
Judge whether the broadcasting speed of the destination client is greater than the speed of download of the node;
If the broadcasting speed of the destination client is greater than the speed of download of the node, according to the F.F. number and institute State the ratio between history quantity, adjust the target cache data packet and continuous arrangement in the target cache data packet it The downloading mode of the data cached packet of preset length afterwards;
If the broadcasting speed of the destination client is less than the speed of download of the node, first downloading mode is selected Download the target cache data packet.
Optionally, the ratio according between the F.F. number and the history quantity, adjusts the target cache The downloading mode of the data cached packet of preset length of data packet and continuous arrangement after the target cache data packet, packet It includes:
Judge whether the ratio between the F.F. number and the history quantity is greater than default fractional threshold;
If ratio between the F.F. number and the history quantity is greater than default fractional threshold, judge continuous arrangement in It is described fast whether the speed of download of the corresponding node of the data cached packet of preset length after the target cache data packet is greater than Into speed, if more than selecting first downloading mode to download the target cache data packet and selection second downloading Mode downloads preset length data cached packet of the continuous arrangement after the target cache data packet, if being less than, described in selection It is default after the target cache data packet that first downloading mode downloads the target cache data packet and continuous arrangement The data cached packet of length;
If the ratio between the F.F. number and the history quantity is less than default fractional threshold, select under described first Load mode downloads the target cache data packet and selection the second downloading mode downloading continuous arrangement is slow in the target The data cached packet of preset length after deposit data packet.
Optionally, the online multimedia file is cut into several data packets, and each data packet is all corresponding with Number;
Selection first downloading mode downloads the target cache data packet, comprising:
The number of the target cache data packet is sent to the content server;
Receive the target cache data packet that the content server is returned according to the number of the target cache data packet.
In second aspect, the embodiment of the present invention provides a kind of online multimedia file downloading device, is applied to target customer End, in a peer-to-peer network, described device includes: for the destination client work
Module is obtained, for obtaining the corresponding current data packet of currently playing progress of the online multimedia file;
Determining module, for determining target of the continuous arrangement after the current data packet according to play time sequence Data cached packet;
Detection module, for detecting the speed of download of the node for downloading the target cache data packet;
Module is adjusted, for adjusting institute according to the broadcasting speed of the destination client and the speed of download of the node State the downloading mode of target cache data packet, wherein the downloading mode includes the destination client directly from content service Mould is downloaded from the second of the node downloading data packet in first downloading mode of device downloading data packet and the destination client Formula.
Optionally, the adjustment module includes:
Acquiring unit, for obtaining the play history of the destination client, the play history includes the target visitor Family end is according to the F.F. number of fast forward speed play history multimedia file and the history quantity of play history multimedia file;
Computing unit, for calculating the ratio between the F.F. number and the history quantity;
Adjustment unit, for according to the broadcasting speed of the destination client, the speed of download of the node and described Ratio between F.F. number and the history quantity adjusts the downloading mode of the target cache data packet.
Optionally, the adjustment unit is specifically used for:
Judge whether the broadcasting speed of the destination client is greater than the speed of download of the node;
If the broadcasting speed of the destination client is greater than the speed of download of the node, according to the F.F. number and institute State the ratio between history quantity, adjust the target cache data packet and continuous arrangement in the target cache data packet it The downloading mode of the data cached packet of preset length afterwards;
If the broadcasting speed of the destination client is less than the speed of download of the node, first downloading mode is selected Download the target cache data packet.
Optionally, the adjustment unit also particularly useful for:
Judge whether the ratio between the F.F. number and the history quantity is greater than default fractional threshold;
If ratio between the F.F. number and the history quantity is greater than default fractional threshold, judge continuous arrangement in It is described fast whether the speed of download of the corresponding node of the data cached packet of preset length after the target cache data packet is greater than Into speed, if more than selecting first downloading mode to download the target cache data packet and selection second downloading Mode downloads preset length data cached packet of the continuous arrangement after the target cache data packet, if being less than, described in selection It is default after the target cache data packet that first downloading mode downloads the target cache data packet and continuous arrangement The data cached packet of length;
If the ratio between the F.F. number and the history quantity is less than default fractional threshold, select under described first Load mode downloads the target cache data packet and selection the second downloading mode downloading continuous arrangement is slow in the target The data cached packet of preset length after deposit data packet.
In the third aspect, the embodiment of the present invention provides a kind of electronic equipment, comprising:
At least one processor;And
The memory being connect at least one described processor communication;Wherein, the memory be stored with can by it is described extremely The instruction that a few processor executes, described instruction are executed by least one described processor, so that at least one described processing Device can be used in executing described in any item online multimedia document down loading methods.
In fourth aspect, the embodiment of the present invention provides a kind of non-transient computer readable storage medium, the non-transient meter Calculation machine readable storage medium storing program for executing is stored with computer executable instructions, and the computer executable instructions are for holding node server The described in any item online multimedia document down loading methods of row.
At the 5th aspect, the embodiment of the present invention provides a kind of computer program product, and the computer program product includes The computer program being stored on non-volatile computer readable storage medium storing program for executing, the computer program include program instruction, when When described program instruction is executed by destination client, the destination client is made to execute described in any item online multimedia files Method for down loading.
In the online multimedia document down loading method and device, electronic equipment that each embodiment of the present invention provides, firstly, Obtain the corresponding current data packet of currently playing progress of online multimedia file;Secondly, according to play time sequence, the company of determination The continuous target cache data packet being arranged in after current data packet;Again, the node for downloading target cache data packet is detected Speed of download;Finally, according to the speed of download of the broadcasting speed of destination client and node, adjustment target cache data packet Downloading mode, wherein downloading mode includes destination client directly from the first downloading mode of content server downloading data packet And destination client is from the second downloading mode of node downloading data packet.Therefore, a variety of downloading modes can be flexibly provided It is loaded in line multimedia file below.
Detailed description of the invention
One or more embodiments are illustrated by the picture in corresponding attached drawing, these exemplary theorys The bright restriction not constituted to embodiment, the element in attached drawing with same reference numbers label are expressed as similar element, remove Non- to have special statement, the figure in attached drawing does not constitute ratio limitation.
Fig. 1 is that the embodiment of the present invention provides a kind of configuration diagram of online multimedia file download system;
Fig. 2 is that the embodiment of the present invention provides a kind of flow diagram of online multimedia document down loading method;
Fig. 3 is the flow diagram of S24 in Fig. 2;
Fig. 4 is that the embodiment of the present invention provides a kind of structural schematic diagram of online multimedia file downloading device;
Fig. 5 is the structural schematic diagram that module is adjusted in Fig. 4;
Fig. 6 is that the embodiment of the present invention provides the structural schematic diagram of a kind of electronic equipment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not For limiting the present invention.
Referring to Fig. 1, Fig. 1 is that the embodiment of the present invention provides a kind of framework signal of online multimedia file download system Figure.As shown in Figure 1, online multimedia file download system 100 includes several clients 11 and content server 12.
Communication modes between each client 11 support P2P mode, and therefore, each work of client 11 is in peer-to-peer network In.
Client 11 has display screen, and display screen can be Touch Screen or non-touch-control screen, can be TFT screen Curtain (Thin Film Transistor, TFT thin film transistor), TFD screen (Thin Film Diode, TFD film Diode), UFB screen (Ultra Fine Bright, UFB), STN screen (Super Twisted Nematic, STN), OLED screen curtain (Organic Light-Emitting Diode, OLED Organic Light Emitting Diode), AMOLED screen (Active Matrix/Organic Light Emitting Diode, AMOLED active matrix organic light emitting diode panel), and wait Deng.
Client 11 supports the installation of various application programs, one or more desktop in such as following application program is answered With program: downloading application program, drawing application program, demonstration applications, word-processing application, spreadsheet application journey Sequence, game application, telephony application, videoconference application, email application, instant message application journey Application program, photo application, digital camera application program, digital video recorder application program, web page browsing are supported in sequence, training Application program, digital music player application, video frequency player application program and etc..In some embodiments In, some application programs include the people that is related, such as: telephony application, email application, instant message application journey Sequence etc..
Each client 11 all with 12 communication connection of content server.Content server 12 can be a physical server Or multiple physical servers it is virtual made of a logical server.Server be also possible to it is multiple can interconnected communication service The server zone of device composition, and each functional module can be respectively distributed on each server in server zone.
Referring to Fig. 2, Fig. 2 is that the embodiment of the present invention provides a kind of process signal of online multimedia document down loading method Figure.As shown in Fig. 2, online multimedia document down loading method S200 includes:
S21, the corresponding current data packet of currently playing progress for obtaining online multimedia file;
In the present embodiment, multimedia file includes video file, audio file or text file etc..Work as multimedia When file is video file, currently playing progress is the current play time point of video, for example, the view of 60 minutes total duration Frequently, current play time point is the 32nd minute, therefore, the 32nd minute currently playing progress for video file.When multimedia text When part is audio file, the understanding of currently playing progress is same as above.When multimedia file be text file when, it is currently playing into Degree is position of the Current Content in text for being exposed to destination client current display screen, for example, text file a total of 100 Page, user browse page 35 of this article this document, then currently playing progress of page 35 for text file.
In a peer-to-peer network, online multimedia file is cut into several data packets, and each data packet can be by different visitors The storage of family end, when destination client plays online multimedia file, destination client sends file download to content server Request, content server send the network address of destination client to other clients, so that other clients are according to target visitor P2P communication is established in the network address at family end and destination client.
Destination client play online multimedia file when, determine online multimedia file currently playing progress and with The corresponding current data packet of currently playing progress.
S22, according to play time sequence, determine target cache data packet of the continuous arrangement after current data packet;
In the present embodiment, destination client is according to play time sequence normal play online multimedia file.Such as preceding institute It states, an online multimedia file is cut into several data packets according to play time sequence, and each data packet is according to broadcasting Time sequencing configuration number.Each data packet can be uploaded to destination client by different neighbor nodes.For example, one it is online Video is cut into 5 data packets, respectively data packet M1, M2, M3, M4 and M5, wherein data packet M1, M2, M3, M4 and M5 It is arranged according to play time sequence.In some embodiments, data packet M1, M2, M3, M4 and M5 can be by different neighbor nodes Reach destination client.In further embodiments, data packet M1 and data packet M2 can be uploaded by same neighbourhood node, data packet M3, M4 and M5 can be uploaded by same neighbourhood node.
In the present embodiment, according to play time sequence, target cache data packet is continuous with current data packet and arranges After current data packet.For example, when destination client plays Online Video, the corresponding current data packet of currently playing progress is Data packet M2, wherein data packet M3 and data packet M2 is continuous and is arranged in after data packet M2, and therefore, data packet M3 is target Data cached packet.
S23, speed of download for downloading the node of target cache data packet is detected;
In the present embodiment, the communication distance ratio between the node and destination client for downloading target cache data packet It is shorter, can also be distant with the communication distance between destination client, also that is, being used to download the node of target cache data packet It can be neighbor node, can also be remote neighbors.
S24, according to the broadcasting speed of destination client and the speed of download of node, adjust the downloading of target cache data packet Mode, wherein downloading mode include destination client directly from the first downloading mode of content server downloading data packet and Second downloading mode of the destination client from node downloading data packet.
Content servers store has online multimedia file.In general, the preferential downloading mode due to most clients is From the second downloading mode of node downloading data packet, less client accesses content server, and therefore, the first downloading mode is corresponding Speed of download be greater than the corresponding speed of download of the second downloading mode.
In the present embodiment, when the broadcasting speed of destination client is greater than the speed of download of node, destination client choosing It selects the first downloading mode and downloads target cache data packet from content server.When the broadcasting speed of destination client is less than node When speed of download, destination client selects the second downloading mode to download target cache data packet from node.
To sum up, it is loaded in line multimedia file since it can flexibly provide a variety of downloading modes or less, can guarantees to use Family can watch online multimedia file glibly.
Generally, some user's habituation play online multimedia file in a manner of F.F., cause to be easy to appear Caton phenomenon. In some embodiments, the downloading mode that target cache data packet can be adjusted according to user's use habit, so as to flow Freely play multimedia file.Referring to Fig. 3, S24 includes:
S241, the play history for obtaining destination client, play history includes that destination client is played according to fast forward speed The F.F. number of history multimedia file and the history quantity of play history multimedia file;
For example, in play history, when playing multimedia file for the first time, user is according to 2 times of normal playback speeds F.F. multimedia file, also that is, fast forward speed is 2 times of normal playback speeds, the multimedia for being 60 minutes for playing duration File, user's F.F. 6 times.When playing another multimedia file for the second time, the multimedia text for being 120 minutes for playing duration Part, user's F.F. 8 times.When third time plays another multimedia file again, the multimedia text for being 120 minutes for playing duration Part, user's F.F. 2 times.Then, the F.F. number of play history multimedia file is 6+8+2=16 times, play history multimedia The history quantity of file is 3.
S242, ratio between F.F. number and history quantity is calculated;
S243, according between the broadcasting speed of destination client, the speed of download of node and F.F. number and total degree Ratio, adjust target cache data packet downloading mode.
In the present embodiment, destination client is when adjusting the downloading mode of target cache data packet, it can be determined that target Whether the broadcasting speed of client is greater than the speed of download of node, if the broadcasting speed of destination client is greater than the downloading speed of node Degree adjusts target cache data packet and continuous arrangement in target cache according to the ratio between F.F. number and history quantity The downloading mode of the data cached packet of preset length after data packet.For example, destination client judges F.F. number and history number Whether the ratio between amount is greater than default fractional threshold;If the ratio between F.F. number and history quantity is greater than default ratio threshold Value judges that the speed of download of the corresponding node of the data cached packet of preset length of the continuous arrangement after target cache data packet is It is no to be greater than fast forward speed, if more than the second downloading mode of the first downloading mode downloading target cache data packet and selection is selected Preset length data cached packet of the continuous arrangement after target cache data packet is downloaded, if being less than, selects the first downloading mode Download the data cached packet of preset length of target cache data packet and continuous arrangement after target cache data packet.
If the ratio between F.F. number and history quantity is less than default fractional threshold, the first downloading mode is selected to download mesh It is slow to mark the preset length of data cached packet and selection the second downloading mode downloading continuous arrangement after target cache data packet Deposit data packet.
If the broadcasting speed of destination client is less than the speed of download of node, the first downloading mode is selected to download target cache Data packet.
Therefore, in this manner, it can guarantee that user plays online multimedia file glibly.
In some embodiments, online multimedia file is cut into several data packets, and each data packet is all corresponding with Number.When destination client selects the first downloading mode downloading target cache data packet, firstly, destination client is to content service Device sends the number of target cache data packet, and then, content server is according to the number of target cache data packet to target customer End returns to target cache data packet, therefore, the destination client target cache data packet that just reception content server returns.
It should be noted that not necessarily there is centainly successive between above steps in above-mentioned each embodiment Sequentially, those of ordinary skill in the art, according to an embodiment of the present invention to describe to be appreciated that in different embodiments, above-mentioned each step Suddenly there can be the different sequences that executes, also i.e., it is possible to execute parallel, execution etc. can also be exchanged.
As the another aspect of the embodiment of the present invention, the embodiment of the present invention provides a kind of online multimedia file download dress It sets.The online multimedia file downloading device of the embodiment of the present invention can be used as one of SFU software functional unit, online more matchmakers Body file downloading device includes some instructions, which is stored in memory, the accessible memory of processor, is adjusted It is executed with instruction, to complete above-mentioned online multimedia document down loading method.
Referring to Fig. 4, Fig. 4 is that the embodiment of the present invention provides a kind of structural schematic diagram of online multimedia file device.Such as Shown in Fig. 4, online multimedia file downloading device 400 is applied to destination client, and destination client works in a peer-to-peer network. Online multimedia file downloading device 400 includes: to obtain module 41, determining module 42, detection module 43 and adjustment module 44.
Obtain the corresponding current data packet of currently playing progress that module 41 is used to obtain the online multimedia file;
Determining module 42 is used to determine target of the continuous arrangement after the current data packet according to play time sequence Data cached packet;
Detection module 43 is used to detect the speed of download of the node for downloading the target cache data packet;
The speed of download for adjusting broadcasting speed and the node that module 44 is used for according to the destination client, adjusts institute State the downloading mode of target cache data packet, wherein the downloading mode includes the destination client directly from content service Mould is downloaded from the second of the node downloading data packet in first downloading mode of device downloading data packet and the destination client Formula.
Therefore, a variety of downloading modes or less can flexibly be provided and is loaded in line multimedia file.
In some embodiments, referring to Fig. 5, adjustment module 44 includes: acquiring unit 441, computing unit 442 and adjustment Unit 443.
Acquiring unit 441 is used to obtain the play history of the destination client, and the play history includes the target Client is according to the F.F. number of fast forward speed play history multimedia file and the history number of play history multimedia file Amount;
Computing unit 442 is used to calculate the ratio between the F.F. number and the history quantity;
Adjustment unit 443 is used for according to the broadcasting speed of the destination client, the speed of download of the node and institute The ratio between F.F. number and the history quantity is stated, the downloading mode of the target cache data packet is adjusted.
In some embodiments, adjustment unit 443 is specifically used for: judging whether the broadcasting speed of the destination client is big In the speed of download of the node;If the broadcasting speed of the destination client is greater than the speed of download of the node, according to institute The ratio between F.F. number and the history quantity is stated, adjusts the target cache data packet and continuous arrangement in the mesh Mark the downloading mode of the data cached packet of preset length after data cached packet;If the broadcasting speed of the destination client is less than The speed of download of the node selects first downloading mode to download the target cache data packet.
In some embodiments, adjustment unit 443 also particularly useful for: judge the F.F. number and the history quantity it Between ratio whether be greater than default fractional threshold;If the ratio between the F.F. number and the history quantity is greater than default ratio It is worth threshold value, judges under the corresponding node of the data cached packet of preset length of the continuous arrangement after the target cache data packet Carry whether speed is greater than the fast forward speed, if more than selecting first downloading mode to download the target cache data packet And preset length of selection the second downloading mode downloading continuous arrangement after the target cache data packet caches number According to packet, if being less than, first downloading mode is selected to download the target cache data packet and continuous arrangement in the target The data cached packet of preset length after data cached packet;If the ratio between the F.F. number and the history quantity is less than Default fractional threshold selects first downloading mode to download the target cache data packet and selection the second downloading mould Formula downloads preset length data cached packet of the continuous arrangement after the target cache data packet.
It should be noted that file distribution provided by the embodiment of the present invention can be performed in above-mentioned file distribution storage device Formula storage method has the corresponding functional module of execution method and beneficial effect.Not in file distribution memory device embodiment In detailed description technical detail, reference can be made to distributive file storage method provided by the embodiment of the present invention.
As the another aspect of the embodiment of the present invention, the embodiment of the present invention provides a kind of electronic equipment.As shown in fig. 6, The electronic equipment 600 includes: one or more processors 61 and memory 62.Wherein, it is with a processor 61 in Fig. 6 Example.
Processor 61 can be connected with memory 62 by bus or other modes, to be connected as by bus in Fig. 6 Example.
Memory 62 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey Sequence, non-volatile computer executable program and module, such as the online multimedia document down loading method in the embodiment of the present invention Corresponding program instruction/module.Processor 61 by operation be stored in memory 62 non-volatile software program, instruction with And module realizes above-mentioned side thereby executing the various function application and data processing of online multimedia file downloading device The function of method embodiment online multimedia document down loading method and the modules of above-mentioned apparatus embodiment.
Memory 62 may include high-speed random access memory, can also include nonvolatile memory, for example, at least One disk memory, flush memory device or other non-volatile solid state memory parts.In some embodiments, memory 62 Optional includes the memory remotely located relative to processor 61, these remote memories can pass through network connection to processor 61.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Described program instruction/module is stored in the memory 62, is held when by one or more of processors 61 When row, the online multimedia document down loading method in above-mentioned any means embodiment is executed, for example, executing Fig. 2 described above With each step shown in Fig. 3;It can also realize the function of attached drawing 4 to modules and unit described in Fig. 5.
The embodiment of the invention also provides a kind of nonvolatile computer storage media, the computer storage medium storage There are computer executable instructions, which is executed by one or more processors, such as at one in Fig. 6 Device 61 is managed, said one or multiple processors may make to can be performed under the online multimedia file in above-mentioned any means embodiment Support method, for example, the online multimedia document down loading method in above-mentioned any means embodiment is executed, for example, executing above retouch The execution stated is described above to execute Fig. 2 described above and each step shown in Fig. 3;Attached drawing 4 can also be realized to described in Fig. 5 Modules and unit function.
Device or apparatus embodiments described above is only schematical, wherein it is described as illustrated by the separation member Unit module may or may not be physically separated, and the component shown as modular unit can be or can also Not to be physical unit, it can it is in one place, or may be distributed on multiple network module units.It can basis It is actual to need that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It is realized by the mode of software plus general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, above-mentioned technology Scheme substantially in other words can be embodied in the form of software products the part that the relevant technologies contribute, the computer Software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are with directly To computer equipment (can be personal computer, server or the network equipment etc.) execute each embodiment or Method described in certain parts of embodiment.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;At this It under the thinking of invention, can also be combined between the technical characteristic in above embodiments or different embodiment, step can be with It is realized with random order, and there are many other variations of different aspect present invention as described above, for simplicity, they do not have Have and is provided in details;Although the present invention is described in detail referring to the foregoing embodiments, the ordinary skill people of this field Member is it is understood that it is still possible to modify the technical solutions described in the foregoing embodiments, or to part of skill Art feature is equivalently replaced;And these are modified or replaceed, each reality of the application that it does not separate the essence of the corresponding technical solution Apply the range of a technical solution.

Claims (10)

1. a kind of online multimedia document down loading method is applied to destination client, the destination client work is in peer-to-peer network In network, which is characterized in that the described method includes:
Obtain the corresponding current data packet of currently playing progress of the online multimedia file;
According to play time sequence, target cache data packet of the continuous arrangement after the current data packet is determined;
Detect the speed of download for downloading the node of the target cache data packet;
According to the speed of download of the broadcasting speed of the destination client and the node, the target cache data packet is adjusted Downloading mode, wherein the downloading mode includes the destination client directly from the first of content server downloading data packet The second downloading mode of downloading mode and the destination client from the node downloading data packet.
2. the method according to claim 1, wherein the broadcasting speed and institute according to the destination client The speed of download for stating node adjusts the downloading mode of the target cache data packet, comprising:
The play history of the destination client is obtained, the play history includes that the destination client is broadcast according to fast forward speed Put the F.F. number of history multimedia file and the history quantity of play history multimedia file;
Calculate the ratio between the F.F. number and the history quantity;
According to the broadcasting speed of the destination client, the speed of download of the node and the F.F. number and the history Ratio between quantity adjusts the downloading mode of the target cache data packet.
3. according to the method described in claim 2, it is characterized in that, the broadcasting speed according to the destination client, institute The ratio between the speed of download and the F.F. number and the history quantity of node is stated, the target cache data are adjusted The downloading mode of packet, comprising:
Judge whether the broadcasting speed of the destination client is greater than the speed of download of the node;
If the broadcasting speed of the destination client is greater than the speed of download of the node, gone through according to the F.F. number with described Ratio between history quantity adjusts the target cache data packet and continuous arrangement after the target cache data packet The downloading mode of the data cached packet of preset length;
If the broadcasting speed of the destination client is less than the speed of download of the node, the first downloading mode downloading is selected The target cache data packet.
4. according to the method described in claim 3, it is characterized in that, it is described according to the F.F. number and the history quantity it Between ratio, adjust the preset length of the target cache data packet and continuous arrangement after the target cache data packet The downloading mode of data cached packet, comprising:
Judge whether the ratio between the F.F. number and the history quantity is greater than default fractional threshold;
If the ratio between the F.F. number and the history quantity is greater than default fractional threshold, judge continuous arrangement in described Whether the speed of download of the corresponding node of the data cached packet of preset length after target cache data packet is greater than the F.F. speed Degree, if more than selecting first downloading mode to download the target cache data packet and selection second downloading mode Preset length data cached packet of the continuous arrangement after the target cache data packet is downloaded, if being less than, selects described first Downloading mode downloads the preset length of the target cache data packet and continuous arrangement after the target cache data packet Data cached packet;
If the ratio between the F.F. number and the history quantity is less than default fractional threshold, the first downloading mould is selected Formula downloads the target cache data packet and selection the second downloading mode downloading continuous arrangement in the target cache number According to the data cached packet of preset length after packet.
5. according to the method described in claim 4, it is characterized in that, the online multimedia file is cut into several data Packet, each data packet are all corresponding with number;
Selection first downloading mode downloads the target cache data packet, comprising:
The number of the target cache data packet is sent to the content server;
Receive the target cache data packet that the content server is returned according to the number of the target cache data packet.
6. a kind of online multimedia file downloading device is applied to destination client, the destination client work is in peer-to-peer network In network, which is characterized in that described device includes:
Module is obtained, for obtaining the corresponding current data packet of currently playing progress of the online multimedia file;
Determining module, for determining target cache of the continuous arrangement after the current data packet according to play time sequence Data packet;
Detection module, for detecting the speed of download of the node for downloading the target cache data packet;
Module is adjusted, for adjusting the mesh according to the broadcasting speed of the destination client and the speed of download of the node Mark the downloading mode of data cached packet, wherein the downloading mode includes the destination client directly under content server The first downloading mode for carrying data packet and the destination client are from the second downloading mode of the node downloading data packet.
7. device according to claim 6, which is characterized in that the adjustment module includes:
Acquiring unit, for obtaining the play history of the destination client, the play history includes the destination client According to the F.F. number of fast forward speed play history multimedia file and the history quantity of play history multimedia file;
Computing unit, for calculating the ratio between the F.F. number and the history quantity;
Adjustment unit, for according to the broadcasting speed of the destination client, the speed of download of the node and the F.F. Ratio between number and the history quantity adjusts the downloading mode of the target cache data packet.
8. device according to claim 7, which is characterized in that the adjustment unit is specifically used for:
Judge whether the broadcasting speed of the destination client is greater than the speed of download of the node;
If the broadcasting speed of the destination client is greater than the speed of download of the node, gone through according to the F.F. number with described Ratio between history quantity adjusts the target cache data packet and continuous arrangement after the target cache data packet The downloading mode of the data cached packet of preset length;
If the broadcasting speed of the destination client is less than the speed of download of the node, the first downloading mode downloading is selected The target cache data packet.
9. device according to claim 8, which is characterized in that the adjustment unit also particularly useful for:
Judge whether the ratio between the F.F. number and the history quantity is greater than default fractional threshold;
If the ratio between the F.F. number and the history quantity is greater than default fractional threshold, judge continuous arrangement in described Whether the speed of download of the corresponding node of the data cached packet of preset length after target cache data packet is greater than the F.F. speed Degree, if more than selecting first downloading mode to download the target cache data packet and selection second downloading mode Preset length data cached packet of the continuous arrangement after the target cache data packet is downloaded, if being less than, selects described first Downloading mode downloads the preset length of the target cache data packet and continuous arrangement after the target cache data packet Data cached packet;
If the ratio between the F.F. number and the history quantity is less than default fractional threshold, the first downloading mould is selected Formula downloads the target cache data packet and selection the second downloading mode downloading continuous arrangement in the target cache number According to the data cached packet of preset length after packet.
10. a kind of electronic equipment characterized by comprising
At least one processor;And
The memory being connect at least one described processor communication;Wherein, be stored with can be by described at least one for the memory The instruction that a processor executes, described instruction is executed by least one described processor, so that at least one described processor energy It is enough in execution such as online multimedia document down loading method described in any one of claim 1 to 5.
CN201811108426.3A 2018-09-21 2018-09-21 Online multimedia file downloading method and device and electronic equipment Active CN109067916B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811108426.3A CN109067916B (en) 2018-09-21 2018-09-21 Online multimedia file downloading method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811108426.3A CN109067916B (en) 2018-09-21 2018-09-21 Online multimedia file downloading method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN109067916A true CN109067916A (en) 2018-12-21
CN109067916B CN109067916B (en) 2021-05-11

Family

ID=64762463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811108426.3A Active CN109067916B (en) 2018-09-21 2018-09-21 Online multimedia file downloading method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109067916B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110868626A (en) * 2019-11-06 2020-03-06 北京达佳互联信息技术有限公司 Method and device for preloading content data
CN111031383A (en) * 2019-12-06 2020-04-17 RealMe重庆移动通信有限公司 Streaming media transmission method and device and electronic equipment
CN114189715A (en) * 2021-12-07 2022-03-15 北京奇艺世纪科技有限公司 Download address switching method and related equipment
CN115065859A (en) * 2022-06-07 2022-09-16 北京达佳互联信息技术有限公司 Video data acquisition method, device, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296359A (en) * 2007-04-24 2008-10-29 宋亚民 Video program digital copyright management method based on advertisement paying
CN102333106A (en) * 2010-07-13 2012-01-25 中国移动通信集团公司 Peer-to-peer (P2P) system resource scheduling method and device and system thereof
CN102883190A (en) * 2011-07-15 2013-01-16 深圳市快播科技有限公司 Optimal bandwidth distribution demand method and device
CN103327415A (en) * 2013-06-05 2013-09-25 北京奇虎科技有限公司 Method and device for accelerating network video downloading
CN106658067A (en) * 2016-12-31 2017-05-10 中国移动通信集团江苏有限公司 Cache setting method and apparatus
CN107333147A (en) * 2017-06-22 2017-11-07 深圳天珑无线科技有限公司 A kind of video buffer control method, terminal and storage device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296359A (en) * 2007-04-24 2008-10-29 宋亚民 Video program digital copyright management method based on advertisement paying
CN102333106A (en) * 2010-07-13 2012-01-25 中国移动通信集团公司 Peer-to-peer (P2P) system resource scheduling method and device and system thereof
CN102883190A (en) * 2011-07-15 2013-01-16 深圳市快播科技有限公司 Optimal bandwidth distribution demand method and device
CN103327415A (en) * 2013-06-05 2013-09-25 北京奇虎科技有限公司 Method and device for accelerating network video downloading
CN106658067A (en) * 2016-12-31 2017-05-10 中国移动通信集团江苏有限公司 Cache setting method and apparatus
CN107333147A (en) * 2017-06-22 2017-11-07 深圳天珑无线科技有限公司 A kind of video buffer control method, terminal and storage device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110868626A (en) * 2019-11-06 2020-03-06 北京达佳互联信息技术有限公司 Method and device for preloading content data
CN110868626B (en) * 2019-11-06 2021-06-11 北京达佳互联信息技术有限公司 Method and device for preloading content data
CN111031383A (en) * 2019-12-06 2020-04-17 RealMe重庆移动通信有限公司 Streaming media transmission method and device and electronic equipment
CN114189715A (en) * 2021-12-07 2022-03-15 北京奇艺世纪科技有限公司 Download address switching method and related equipment
CN115065859A (en) * 2022-06-07 2022-09-16 北京达佳互联信息技术有限公司 Video data acquisition method, device, equipment and medium
CN115065859B (en) * 2022-06-07 2024-05-07 北京达佳互联信息技术有限公司 Video data acquisition method, device, equipment and medium

Also Published As

Publication number Publication date
CN109067916B (en) 2021-05-11

Similar Documents

Publication Publication Date Title
CN109067916A (en) A kind of online multimedia document down loading method and device, electronic equipment
US10389838B2 (en) Client-side predictive caching for content
Xu et al. Ant-inspired mini-community-based solution for video-on-demand services in wireless mobile networks
US9706010B2 (en) Systems and methods for triggering user notifications of media content items
US9619470B2 (en) Adaptive music and video recommendations
CN102546608B (en) For synchronously playing the method for media information, device, equipment and system
US10360642B2 (en) Global comments for a media item
US10242100B2 (en) Managing cached data in a network environment
CN108347648B (en) Dynamic adjustment of video quality
CN109299047A (en) Distributed system data sharing method and device, data sharing distributed system
US20150186390A1 (en) Maintaining cached data extracted from a linked resource
D’Acunto et al. BitTorrent-like P2P approaches for VoD: A comparative study
US9852224B2 (en) Promoting preferred content in a search query
WO2016109287A1 (en) Identifying media channels that have a high likelihood of multiple consumptions by one or more users
EP3053021A1 (en) Customizing mobile media end cap user interfaces based on mobile device orientation
CN113826407B (en) Dynamic integration of customized supplemental media content
US20170187822A1 (en) Content prefetching and cache management
CN101951376A (en) Method, equipment and system for processing advertisement
Bellante et al. On Netflix catalog dynamics and caching performance
CN108700928A (en) Content is managed based on battery utilization rate when showing content on device
Cong et al. An efficient server bandwidth costs decreased mechanism towards mobile devices in cloud-assisted P2P-VoD system
van der Hooft et al. An HTTP/2 push-based framework for low-latency adaptive streaming through user profiling
CN111275473B (en) Content item delivery method, device, server and storage medium
CN108347461A (en) Offline cache method, equipment and system
Marza et al. A novel caching strategy in video-on-demand (vod) peer-to-peer (p2p) networks based on complex network theory

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant