CN108965984A - A kind of method, apparatus and equipment/terminal/server file transmission and played - Google Patents
A kind of method, apparatus and equipment/terminal/server file transmission and played Download PDFInfo
- Publication number
- CN108965984A CN108965984A CN201810982341.1A CN201810982341A CN108965984A CN 108965984 A CN108965984 A CN 108965984A CN 201810982341 A CN201810982341 A CN 201810982341A CN 108965984 A CN108965984 A CN 108965984A
- Authority
- CN
- China
- Prior art keywords
- file
- data
- file transmission
- segment data
- network environment
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/432—Content retrieval operation from a local storage medium, e.g. hard-disk
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44227—Monitoring of local network, e.g. connection or bandwidth variations; Detecting new devices in the local network
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the present application provides a kind of method, apparatus and equipment/terminal/server file transmission and played, which comprises judges whether the current network environment of near-field communication reaches preset threshold according to current file transmission speed;Such as reach, then cache the segment data in the video data for meeting broadcasting demand, and reads the segment data for playing the caching;As not up to, then saved the segment data in the video data for meeting broadcasting demand to local agent, and is read by the local agent and play the segment data.The embodiment of the present application can take different data acess methods according to network environment, so that the file transmitted can be played out while file transmission by realizing.
Description
Technical field
The method, apparatus and equipment transmitted and played this application involves Internet technical field more particularly to a kind of file/
Terminal/server.
Background technique
With the development of internet technology, user carries out file transmission using internet, realizes that the sharing of file becomes
It is more and more common.It enables the sharing of file easier by the Internet transmission file between user and is easily achieved.
But file transmission is realized often due to the limitation such as network bandwidth, causes file to transmit by internet between user
Speed is excessively slow, and the transmission of file needs to realize by server, is easy that there are loopholes to the protection of privacy of user.
Therefore, how more preferably to realize file transmission and play as technical problem urgently to be resolved in the prior art.
Summary of the invention
The embodiment of the present application provides a kind of method, apparatus and equipment/terminal/server file transmission and played, entirely
Portion or part solve problems of the prior art.
According to the one aspect of the embodiment of the present application, a kind of method file transmission and played, the method packet are provided
It includes: judging whether the current network environment of near-field communication reaches preset threshold according to current file transmission speed;Such as reach, then delays
The segment data in the video data for meeting broadcasting demand is deposited, and reads the segment data for playing the caching;As do not reached
It arrives, then saves the segment data in the video data for meeting broadcasting demand to local agent, and pass through the local generation
Reason, which is read, plays the segment data.
According to the other side of the embodiment of the present application, a kind of device file transmission and played, the dress are additionally provided
Setting includes: environment judgment module, is configured to judge according to current file transmission speed that the current network environment of near-field communication is
It is no to reach preset threshold;Read module is cached, is configured to as reached, then caches in the video data for meeting broadcasting demand
Segment data, and read the segment data for playing the caching;Read module is acted on behalf of, is configured to as being not up to, then by institute
The segment data stated in the video data for meeting broadcasting demand is saved to local agent, and is read and played by the local agent
The segment data.
According to the another aspect of the embodiment of the present application, additionally provide a kind of equipment/terminal/server, comprising: one or
Multiple processors;Storage device, for storing one or more programs, when one or more of programs are by one or more
A processor executes, so that one or more of processors realize that file transmission as described above is corresponding with the method played
Operation.
According to the another aspect of the embodiment of the present application, a kind of computer readable storage medium is additionally provided, is stored thereon
There is computer program, which realizes file transmission as described above behaviour corresponding with the method played when being executed by processor
Make.
According to technical solution provided by the embodiments of the present application, the embodiment of the present application judges close according to current file transmission speed
Whether the current network environment of field communication reaches preset threshold, reaches and is then carried out data sectional storage using cache way and read
It plays, not up to then carries out data sectional storage and read to play using local agent.The embodiment of the present application can be according to network rings
Different data acess methods is taken in border, so that the file transmitted can be played out while file transmission by realizing.This
Application embodiment user plays out again without waiting for video file transfer completion, improves the user's body during near field transmission
It tests.
Detailed description of the invention
Fig. 1 is the step flow chart transmitted according to a kind of file of the embodiment of the present application one with the method played;
Fig. 2 is the step flow chart transmitted according to a kind of file of the embodiment of the present application two with the method played;
Fig. 3 is a kind of realization transmitted according to a kind of file of the embodiment of the present application three with the step S101 of the method played
Step flow chart;
Fig. 4 is the structural block diagram transmitted according to a kind of file of the embodiment of the present application five with the device played;
Fig. 5 is the structural block diagram transmitted according to a kind of file of the embodiment of the present application six with the device played;
Fig. 6 is the one kind transmitted according to a kind of file of the embodiment of the present application seven with the environment judgment module of the device played
The structural block diagram of realization;
Fig. 7 is the structural block diagram according to a kind of equipment/terminal/server of the embodiment of the present application nine.
Specific embodiment
(identical label indicates identical element in several attached drawings) and embodiment with reference to the accompanying drawing, implement the application
The specific embodiment of example is described in further detail.Following embodiment is not limited to the application for illustrating the application
Range.
It will be understood by those skilled in the art that the terms such as " first ", " second " in the embodiment of the present application are only used for distinguishing
Different step, equipment or module etc., neither represent any particular technology meaning, also do not indicate that the inevitable logic between them is suitable
Sequence.
Embodiment one
Referring to Fig.1, the step process transmitted according to a kind of file of the embodiment of the present application one with the method played is shown
Figure.
It is worth noting that herein described step S101 to S103 does not represent the sequencing of its execution.
The present embodiment file transmission with play method the following steps are included:
Step S101: judge whether the current network environment of near-field communication reaches default threshold according to current file transmission speed
Value.
Specifically, network environment described in the embodiment of the present application can be obtained by currently received file transfer speed, be led to
It crosses whether the file transfer speed roughly the same and speed of transmission speed determines the stability and bandwidth feelings of the network
Condition.
Preset threshold described in the embodiment of the present application is that those skilled in the art set as needed.
Preset threshold described in the embodiment of the present application, which can according to need, to be adjusted.
Step S102: such as reaching, then caches the segment data in the video data for meeting broadcasting demand, and read and broadcast
Put the segment data of the caching.
Network environment described in the embodiment of the present application reaches preset threshold, then meets and carry out file transmission by way of caching
With the requirement played simultaneously, then data sectional storage is realized by the way of caching and reads broadcasting.
In the application one in the specific implementation, by caching the segment data in the video data for meeting broadcasting demand, come real
The segment data for playing the caching can be read in present document transmission process.
Meet the video data of broadcasting demand described in the embodiment of the present application for the segment data of video data institute cutting
It can be achieved on the data for directly reading broadcasting.
Step S103: as not up to, then the segment data in the video data for meeting broadcasting demand is saved to this
Ground agency, and read by the local agent and play the segment data.
If the not up to preset threshold of network environment described in the embodiment of the present application, if continuing to use cache way carries out text
Part is transmitted and is played simultaneously, can be lower than player plays speed because of the discontinuous of data, just be will appear Caton, falls the bodies such as frame
Test problem.Therefore, the embodiment of the present application is then realized data sectional storage by the way of local agent and reads broadcasting.
It follows that the embodiment of the present application judges that the current network environment of near-field communication is according to current file transmission speed
It is no to reach preset threshold, reach and then carry out data sectional storage and read to play using cache way, not up to then using local
Agency carries out data sectional storage and plays with reading.The embodiment of the present application can take different data access sides according to network environment
Formula, so that the file transmitted can be played out while file transmission by realizing.The embodiment of the present application user is without waiting
Video file transfer completion plays out again, improves the user experience during near field transmission.
The file transmission of the present embodiment can be by any suitable with energy file transmission and played with the method played
The equipment of power executes, including but not limited to: various device ends or server-side, including but not limited to PC machine, tablet computer, shifting
Dynamic terminal etc..
Embodiment two
The present embodiment includes above-mentioned steps S101 to step S103.Referring to fig. 2, the method also includes step S100.
Step S100, original video files data are handled, the header file of the original video files data is enabled to believe
Breath is located at the head of the video file.
The information such as the broadcast format, frame information, rate of video are defined in the header file information of video file, these information
It must first be got when playing.If header file information is placed in the centre or tail portion of video file, according to video text
The segment data of part can not just carry out part broadcasting, can only video file all transfer to become a useful person and can be read out broadcasting.
Therefore in near-field communication, due to video provider and terminal device, so to not meeting in terminal device
The video file data that segmentation requires is repacked, and header file information is moved to the head of video file, then retransmited
To another terminal device.
It follows that the embodiment of the present application judges that the current network environment of near-field communication is according to current file transmission speed
It is no to reach preset threshold, reach and then carry out data sectional storage and read to play using cache way, not up to then using local
Agency carries out data sectional storage and plays with reading.The embodiment of the present application can take different data access sides according to network environment
Formula, so that the file transmitted can be played out while file transmission by realizing.The embodiment of the present application user is without waiting
Video file transfer completion plays out again, improves the user experience during near field transmission.
The file transmission of the present embodiment can be by any suitable with energy file transmission and played with the method played
The equipment of power executes, including but not limited to: various device ends or server-side, including but not limited to PC machine, tablet computer, shifting
Dynamic terminal etc..
Embodiment three
The present embodiment includes above-mentioned steps S101 to step S103.Referring to Fig. 3, the step S101 includes:
Step S1011, judged according to current file transmission speed the current network environment of near-field communication stability whether
Reach stability threshold.
Specifically, whether the embodiment of the present application reaches stability threshold according to the changing value of current file transmission speed, really
Whether the stability for determining current network environment reaches stability threshold.
Step S1012, the transmission speed of the current network environment of near-field communication is judged according to current file transmission speed is
It is no to reach threshold speed.
Specifically, whether the embodiment of the present application reaches threshold speed according to current file transmission speed, determines current network
Whether the speed of environment reaches threshold speed.
Therefore, the embodiment of the present application can simply judge the current network of near-field communication by current file transmission speed
Environment takes the mode of caching to realize that the file in file transmission plays so that it is determined that whether network connection meets.
It follows that the embodiment of the present application judges that the current network environment of near-field communication is according to current file transmission speed
It is no to reach preset threshold, reach and then carry out data sectional storage and read to play using cache way, not up to then using local
Agency carries out data sectional storage and plays with reading.The embodiment of the present application can take different data access sides according to network environment
Formula, so that the file transmitted can be played out while file transmission by realizing.The embodiment of the present application user is without waiting
Video file transfer completion plays out again, improves the user experience during near field transmission.
The file transmission of the present embodiment can be by any suitable with energy file transmission and played with the method played
The equipment of power executes, including but not limited to: various device ends or server-side, including but not limited to PC machine, tablet computer, shifting
Dynamic terminal etc..
Example IV
The present embodiment includes above-mentioned steps S101 to step S103.The step S102 specifically:
Such as reach preset threshold, then saves the segment data to cache memory section paragraph by paragraph, and local file is written, it is right
The local file of the cache memory section is read out broadcasting simultaneously.
Specifically, when network environment connective stability and transmission speed reach preset threshold value, without client with
Local proxy server is established between server, it is only necessary to segment data is cached with the cache memory section of an appropriate capacity,
It can also be written in local file simultaneously, buffer area content is directly returned to player plays, can be achieved with video file and is passing
It is played out while defeated.
It is realized using least recently used algorithm caching technology cache memory section described in the embodiment of the present application.
Least recently used algorithm (LruCache, Least Recently Used Cache) core concept is when caching
Man Shi can preferentially eliminate those least recently used cache objects.LruCache is a general type class, it is internal using one
A LinkedHashMap stores extraneous cache object in a manner of strongly reference, provides get and put method to complete to cache
Acquisition and addition.
Therefore, the embodiment of the present application can realize video near field transmission using least recently used algorithm caching technology
The transmission of file plays out simultaneously, and implementation is simple and greatly improves user experience.
It follows that the embodiment of the present application judges that the current network environment of near-field communication is according to current file transmission speed
It is no to reach preset threshold, reach and then carry out data sectional storage and read to play using cache way, not up to then using local
Agency carries out data sectional storage and plays with reading.The embodiment of the present application can take different data access sides according to network environment
Formula, so that the file transmitted can be played out while file transmission by realizing.The embodiment of the present application user is without waiting
Video file transfer completion plays out again, improves the user experience during near field transmission.
The file transmission of the present embodiment can be by any suitable with energy file transmission and played with the method played
The equipment of power executes, including but not limited to: various device ends or server-side, including but not limited to PC machine, tablet computer, shifting
Dynamic terminal etc..
Embodiment five
Referring to Fig. 4, the structural block diagram transmitted according to a kind of file of the embodiment of the present application five with the device played is shown.
The file transmission of the present embodiment and the device of broadcasting include:
Environment judgment module 401 is configured to judge the current network ring of near-field communication according to current file transmission speed
Whether border reaches preset threshold.
Read module 402 is cached, is configured to as reached, then caches point in the video data for meeting broadcasting demand
Segment data, and read the segment data for playing the caching.
Read module 403 is acted on behalf of, is configured to as being not up to, then by point in the video data for meeting broadcasting demand
Segment data is saved to local agent, and is read by the local agent and played the segment data.
Specifically, network environment described in the embodiment of the present application can be obtained by currently received file transfer speed, be led to
It crosses whether the file transfer speed roughly the same and speed of transmission speed determines the stability and bandwidth feelings of the network
Condition.
Preset threshold described in the embodiment of the present application is that those skilled in the art set as needed.
Preset threshold described in the embodiment of the present application, which can according to need, to be adjusted.
Network environment described in the embodiment of the present application reaches preset threshold, then meets and carry out file transmission by way of caching
With the requirement played simultaneously, then data sectional storage is realized by the way of caching and reads broadcasting.
In the application one in the specific implementation, by caching the segment data in the video data for meeting broadcasting demand, come real
The segment data for playing the caching can be read in present document transmission process.
Meet the video data of broadcasting demand described in the embodiment of the present application for the segment data of video data institute cutting
It can be achieved on the data for directly reading broadcasting.
If the not up to preset threshold of network environment described in the embodiment of the present application, if continuing to use cache way carries out text
Part is transmitted and is played simultaneously, can be lower than player plays speed because of the discontinuous of data, just be will appear Caton, falls the bodies such as frame
Test problem.Therefore, the embodiment of the present application is then realized data sectional storage by the way of local agent and reads broadcasting.
It follows that the embodiment of the present application judges that the current network environment of near-field communication is according to current file transmission speed
It is no to reach preset threshold, reach and then carry out data sectional storage and read to play using cache way, not up to then using local
Agency carries out data sectional storage and plays with reading.The embodiment of the present application can take different data access sides according to network environment
Formula, so that the file transmitted can be played out while file transmission by realizing.The embodiment of the present application user is without waiting
Video file transfer completion plays out again, improves the user experience during near field transmission.
The file transmission of the present embodiment can be by any suitable with energy file transmission and played with the device played
The equipment of power executes, including but not limited to: various device ends or server-side, including but not limited to PC machine, tablet computer, shifting
Dynamic terminal etc..
Embodiment six
The present embodiment includes above-mentioned environment judgment module 401, caching read module 402, acts on behalf of read module 403.Referring to
Fig. 5, described device further include:
Head processing module 400 is configured to handle original video files data, enables the original video files
The header file information of data is located at the head of the video file.
The information such as the broadcast format, frame information, rate of video are defined in the header file information of video file, these information
It must first be got when playing.If header file information is placed in the centre or tail portion of video file, according to video text
The segment data of part can not just carry out part broadcasting, can only video file all transfer to become a useful person and can be read out broadcasting.
Therefore in near-field communication, due to video provider and terminal device, so to not meeting in terminal device
The video file data that segmentation requires is repacked, and header file information is moved to the head of video file, then retransmited
To another terminal device.
It follows that the embodiment of the present application judges that the current network environment of near-field communication is according to current file transmission speed
It is no to reach preset threshold, reach and then carry out data sectional storage and read to play using cache way, not up to then using local
Agency carries out data sectional storage and plays with reading.The embodiment of the present application can take different data access sides according to network environment
Formula, so that the file transmitted can be played out while file transmission by realizing.The embodiment of the present application user is without waiting
Video file transfer completion plays out again, improves the user experience during near field transmission.
The file transmission of the present embodiment can be by any suitable with energy file transmission and played with the device played
The equipment of power executes, including but not limited to: various device ends or server-side, including but not limited to PC machine, tablet computer, shifting
Dynamic terminal etc..
Embodiment seven
The present embodiment includes above-mentioned environment judgment module 401, caching read module 402, acts on behalf of read module 403.Referring to
Fig. 6, the environment judgment module 401 include:
Stablize judging unit 4011, is configured to judge the current network ring of near-field communication according to current file transmission speed
Whether the stability in border reaches stability threshold.
Speed judgment unit 4012 is configured to judge the current network ring of near-field communication according to current file transmission speed
Whether the transmission speed in border reaches threshold speed.
Specifically, whether the embodiment of the present application reaches stability threshold according to the changing value of current file transmission speed, really
Whether the stability for determining current network environment reaches stability threshold.
Specifically, whether the embodiment of the present application reaches threshold speed according to current file transmission speed, determines current network
Whether the speed of environment reaches threshold speed.
Therefore, the embodiment of the present application can simply judge the current network of near-field communication by current file transmission speed
Environment takes the mode of caching to realize that the file in file transmission plays so that it is determined that whether network connection meets.
It follows that the embodiment of the present application judges that the current network environment of near-field communication is according to current file transmission speed
It is no to reach preset threshold, reach and then carry out data sectional storage and read to play using cache way, not up to then using local
Agency carries out data sectional storage and plays with reading.The embodiment of the present application can take different data access sides according to network environment
Formula, so that the file transmitted can be played out while file transmission by realizing.The embodiment of the present application user is without waiting
Video file transfer completion plays out again, improves the user experience during near field transmission.
The file transmission of the present embodiment can be by any suitable with energy file transmission and played with the device played
The equipment of power executes, including but not limited to: various device ends or server-side, including but not limited to PC machine, tablet computer, shifting
Dynamic terminal etc..
Embodiment eight
The present embodiment includes above-mentioned environment judgment module 401, caching read module 402, acts on behalf of read module 403.It is described
Caching read module 402 is configured specifically for:
Such as reach preset threshold, then saves the segment data to cache memory section paragraph by paragraph, and local file is written, it is right
The local file of the cache memory section is read out broadcasting simultaneously.
Specifically, when network environment connective stability and transmission speed reach preset threshold value, without client with
Local proxy server is established between server, it is only necessary to segment data is cached with the cache memory section of an appropriate capacity,
It can also be written in local file simultaneously, buffer area content is directly returned to player plays, can be achieved with video file and is passing
It is played out while defeated.
It is realized using least recently used algorithm caching technology cache memory section described in the embodiment of the present application.
Least recently used algorithm (LruCache, Least Recently Used Cache) core concept is when caching
Man Shi can preferentially eliminate those least recently used cache objects.LruCache is a general type class, it is internal using one
A LinkedHashMap stores extraneous cache object in a manner of strongly reference, provides get and put method to complete to cache
Acquisition and addition.
Therefore, the embodiment of the present application can realize video near field transmission using least recently used algorithm caching technology
The transmission of file plays out simultaneously, and implementation is simple and greatly improves user experience.
It follows that the embodiment of the present application judges that the current network environment of near-field communication is according to current file transmission speed
It is no to reach preset threshold, reach and then carry out data sectional storage and read to play using cache way, not up to then using local
Agency carries out data sectional storage and plays with reading.The embodiment of the present application can take different data access sides according to network environment
Formula, so that the file transmitted can be played out while file transmission by realizing.The embodiment of the present application user is without waiting
Video file transfer completion plays out again, improves the user experience during near field transmission.
The file transmission of the present embodiment can be by any suitable with energy file transmission and played with the method played
The equipment of power executes, including but not limited to: various device ends or server-side, including but not limited to PC machine, tablet computer, shifting
Dynamic terminal etc..
Embodiment nine
Referring to Fig. 7, a kind of structural block diagram of equipment/terminal/server according to the embodiment of the present application nine, this Shen are shown
Please specific embodiment the specific implementation of equipment/terminal/server is not limited.
As shown in fig. 7, equipment/the terminal/server may include: one or more processor (processor)
702, storage device (memory) 704.
Wherein:
Processor 702 can specifically execute above-mentioned embodiment of the method file transmission and played for executing program 706
In correlation step.
Specifically, program 706 may include program code, which includes computer operation instruction.
Processor 702 may be central processor CPU or specific integrated circuit ASIC (Application
Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present application
Road.The one or more processors that equipment/terminal/server includes can be same type of processor, such as one or more
CPU;It is also possible to different types of processor, such as one or more CPU and one or more ASIC.
Storage device 704, for storing one or more programs 706.Storage device 704 may be stored comprising high-speed RAM
Device, it is also possible to further include nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 706 specifically can be used for so that processor 702 executes following operation: be judged according to current file transmission speed
Whether the current network environment of near-field communication reaches preset threshold;Such as reach, then caches the video counts for meeting broadcasting demand
Segment data in, and read the segment data for playing the caching;As being not up to, then by the view for meeting broadcasting demand
Segment data of the frequency in is saved to local agent, and is read by the local agent and played the segment data.
In a kind of optional embodiment, program 706 is also used to handle original video files data, described in order
The header file information of original video files data is located at the head of the video file.
In a kind of optional embodiment, program 706 is also used to judge near-field communication according to current file transmission speed
The stability of current network environment whether reach stability threshold;Working as near-field communication is judged according to current file transmission speed
Whether the transmission speed of preceding network environment reaches threshold speed.
In a kind of optional embodiment, program 706 is also used to as reached preset threshold, then by the segment data by
Local file is written to cache memory section in Duan Baocun, is read out broadcasting simultaneously to the local file of the cache memory section.
In a kind of optional embodiment, the cache memory section is real using least recently used algorithm caching technology
It is existing.
It follows that the embodiment of the present application judges that the current network environment of near-field communication is according to current file transmission speed
It is no to reach preset threshold, reach and then carry out data sectional storage and read to play using cache way, not up to then using local
Agency carries out data sectional storage and plays with reading.The embodiment of the present application can take different data access sides according to network environment
Formula, so that the file transmitted can be played out while file transmission by realizing.The embodiment of the present application user is without waiting
Video file transfer completion plays out again, improves the user experience during near field transmission.
It may be noted that all parts/step described in the embodiment of the present application can be split as more according to the needs of implementation
The part operation of two or more components/steps or components/steps can also be combined into new component/step by multi-part/step
Suddenly, to realize the purpose of the embodiment of the present application.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communications portion, and/or be pacified from detachable media
Dress.When the computer program is executed by central processing unit (CPU), the above-mentioned function of limiting in the present processes is executed.
It should be noted that computer-readable medium described herein can be computer-readable signal media or computer-readable
Storage medium either the two any combination.Computer readable storage medium for example may be-but not limited to-
Electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.It is computer-readable
The more specific example of storage medium can include but is not limited to: have electrical connection, the portable computing of one or more conducting wires
Machine disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM
Or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned
Any appropriate combination.In this application, computer readable storage medium can be it is any include or storage program it is tangible
Medium, the program can be commanded execution system, device or device use or in connection.And in this application,
Computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated, wherein carrying
Computer-readable program code.The data-signal of this propagation can take various forms, and including but not limited to electromagnetism is believed
Number, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable storage medium
Any computer-readable medium other than matter, the computer-readable medium can be sent, propagated or transmitted for being held by instruction
Row system, device or device use or program in connection.The program code for including on computer-readable medium
It can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. or above-mentioned any conjunction
Suitable combination.
The calculating of the operation for executing the application can be write with one or more programming languages or combinations thereof
Machine program code, described program design language include object oriented program language-such as Java, Smalltalk, C+
+, further include conventional procedural programming language-such as " C " language or similar programming language.Program code can
Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package,
Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part.
In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN)
Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service
Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard
The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet
Include receiving unit, resolution unit, information extracting unit and generation unit.Wherein, the title of these units is under certain conditions simultaneously
The restriction to the unit itself is not constituted, for example, receiving unit is also described as " receiving the web page browsing request of user
Unit ".
As on the other hand, present invention also provides a kind of computer-readable mediums, are stored thereon with computer program, should
The method as described in above-mentioned any embodiment is realized when program is executed by processor.
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be
Included in device described in above-described embodiment;It is also possible to individualism, and without in the supplying device.Above-mentioned calculating
Machine readable medium carries one or more program, when said one or multiple programs are executed by the device, so that should
Device: judge whether the current network environment of near-field communication reaches preset threshold according to current file transmission speed;Such as reach, then
The segment data in the video data for meeting broadcasting demand is cached, and reads the segment data for playing the caching;As not
Reach, then save the segment data in the video data for meeting broadcasting demand to local agent, and passes through the local
Agency, which reads, plays the segment data.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (12)
1. a kind of method file transmission and played, which is characterized in that the described method includes:
Judge whether the current network environment of near-field communication reaches preset threshold according to current file transmission speed;
Such as reach, then cache the segment data in the video data for meeting broadcasting demand, and reads and play the caching
Segment data;
As not up to, then the segment data in the video data for meeting broadcasting demand saved to local agent, and pass through
The local agent, which is read, plays the segment data.
2. the method according to claim 1, wherein described judge near-field communication according to current file transmission speed
Current network environment whether reach before preset threshold and include:
Original video files data are handled, the header file information of the original video files data is enabled to be located at the video
The head of file.
3. the method according to claim 1, wherein described judge near-field communication according to current file transmission speed
Current network environment whether reach preset threshold and include:
Judge whether the stability of the current network environment of near-field communication reaches stability threshold according to current file transmission speed;
Judge whether the transmission speed of the current network environment of near-field communication reaches threshold speed according to current file transmission speed.
4. the method according to claim 1, wherein described such as reach, then the broadcasting demand that meets is cached
Segment data in video data, and read the segment data for playing the caching specifically:
Such as reach preset threshold, then saves the segment data to cache memory section paragraph by paragraph, and local file is written, to described
The local file of cache memory section is read out broadcasting simultaneously.
5. according to the method described in claim 4, it is characterized in that, the cache memory section is slow using least recently used algorithm
Deposit technology realization.
6. the device a kind of file transmission and played, which is characterized in that described device includes:
Environment judgment module is configured to judge whether the current network environment of near-field communication reaches according to current file transmission speed
To preset threshold;
Read module is cached, is configured to as reached, then caches the segment data in the video data for meeting broadcasting demand,
And read the segment data for playing the caching;
Read module is acted on behalf of, is configured to as being not up to, then by the segment data in the video data for meeting broadcasting demand
It saves to local agent, and is read by the local agent and play the segment data.
7. device according to claim 6, which is characterized in that described device further include:
Head processing module is configured to handle original video files data, enables the original video files data
Header file information is located at the head of the video file.
8. device according to claim 6, which is characterized in that the environment judgment module includes:
Stablize judging unit, is configured to judge the stabilization of the current network environment of near-field communication according to current file transmission speed
Whether property reaches stability threshold;
Speed judgment unit is configured to judge the transmission of the current network environment of near-field communication according to current file transmission speed
Whether speed reaches threshold speed.
9. device according to claim 6, which is characterized in that the caching read module is configured specifically for:
Such as reach preset threshold, then saves the segment data to cache memory section paragraph by paragraph, and local file is written, to described
The local file of cache memory section is read out broadcasting simultaneously.
10. device according to claim 9, which is characterized in that the cache memory section uses least recently used algorithm
Caching technology is realized.
11. a kind of equipment/terminal/server, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
Now such as method as claimed in any one of claims 1 to 5.
12. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
Such as method as claimed in any one of claims 1 to 5 is realized when execution.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810982341.1A CN108965984A (en) | 2018-08-27 | 2018-08-27 | A kind of method, apparatus and equipment/terminal/server file transmission and played |
PCT/IB2018/057146 WO2020044086A1 (en) | 2018-08-27 | 2018-09-18 | File transfer and play method and apparatus, and device/terminal/server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810982341.1A CN108965984A (en) | 2018-08-27 | 2018-08-27 | A kind of method, apparatus and equipment/terminal/server file transmission and played |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108965984A true CN108965984A (en) | 2018-12-07 |
Family
ID=64474162
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810982341.1A Pending CN108965984A (en) | 2018-08-27 | 2018-08-27 | A kind of method, apparatus and equipment/terminal/server file transmission and played |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108965984A (en) |
WO (1) | WO2020044086A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110113655A (en) * | 2019-05-05 | 2019-08-09 | 北京奇艺世纪科技有限公司 | A kind of method, apparatus and user terminal of video playing |
CN110247985A (en) * | 2019-06-28 | 2019-09-17 | 北京奇艺世纪科技有限公司 | A kind of resource downloading method, device, electronic equipment and medium |
CN113315810A (en) * | 2021-04-29 | 2021-08-27 | 上海探寻信息技术有限公司 | Online audio playing method and equipment |
CN113992651A (en) * | 2021-09-24 | 2022-01-28 | 深圳市有方科技股份有限公司 | Downloading method based on File Transfer Protocol (FTP) and related product |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1716946A (en) * | 2004-06-30 | 2006-01-04 | 联想(北京)有限公司 | Data transmission method between equipment in network |
EP2355563A1 (en) * | 2010-02-10 | 2011-08-10 | Cheng Uei Precision Industry Co., Ltd. | Method for automatic pairing to a wireless network |
CN103561480A (en) * | 2013-10-21 | 2014-02-05 | 广东明创软件科技有限公司 | Data transmission method |
CN103874063A (en) * | 2012-12-17 | 2014-06-18 | 鸿富锦精密工业(深圳)有限公司 | Electronic device and method for establishing communication between electronic devices |
CN104320164A (en) * | 2014-10-14 | 2015-01-28 | 宇龙计算机通信科技(深圳)有限公司 | Data transmission method and device |
CN104320417A (en) * | 2014-11-06 | 2015-01-28 | 北京安奇智联科技有限公司 | Method for interconnection and stream transmission and stream media play between mobile terminal and web terminal |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103402136B (en) * | 2013-07-29 | 2016-05-11 | 重庆大学 | Self adaptation is adjusted control method, device and the self adaptation player of buffer memory |
US9813465B2 (en) * | 2014-12-19 | 2017-11-07 | Intel Corporation | Network proxy for energy efficient video streaming on mobile devices |
US10764610B2 (en) * | 2015-07-03 | 2020-09-01 | Telefonaktiebolaget Lm Ericsson (Publ) | Media user client, a media user agent and respective methods performed thereby for providing media from a media server to the media user client |
US20170272792A1 (en) * | 2016-03-16 | 2017-09-21 | Telefonaktiebolaget Lm Ericsson (Publ) | Distributed content popularity determination in a streaming environment with interconnected set-top boxes |
-
2018
- 2018-08-27 CN CN201810982341.1A patent/CN108965984A/en active Pending
- 2018-09-18 WO PCT/IB2018/057146 patent/WO2020044086A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1716946A (en) * | 2004-06-30 | 2006-01-04 | 联想(北京)有限公司 | Data transmission method between equipment in network |
EP2355563A1 (en) * | 2010-02-10 | 2011-08-10 | Cheng Uei Precision Industry Co., Ltd. | Method for automatic pairing to a wireless network |
CN103874063A (en) * | 2012-12-17 | 2014-06-18 | 鸿富锦精密工业(深圳)有限公司 | Electronic device and method for establishing communication between electronic devices |
CN103561480A (en) * | 2013-10-21 | 2014-02-05 | 广东明创软件科技有限公司 | Data transmission method |
CN104320164A (en) * | 2014-10-14 | 2015-01-28 | 宇龙计算机通信科技(深圳)有限公司 | Data transmission method and device |
CN104320417A (en) * | 2014-11-06 | 2015-01-28 | 北京安奇智联科技有限公司 | Method for interconnection and stream transmission and stream media play between mobile terminal and web terminal |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110113655A (en) * | 2019-05-05 | 2019-08-09 | 北京奇艺世纪科技有限公司 | A kind of method, apparatus and user terminal of video playing |
CN110113655B (en) * | 2019-05-05 | 2021-09-21 | 北京奇艺世纪科技有限公司 | Video playing method and device and user terminal |
CN110247985A (en) * | 2019-06-28 | 2019-09-17 | 北京奇艺世纪科技有限公司 | A kind of resource downloading method, device, electronic equipment and medium |
CN110247985B (en) * | 2019-06-28 | 2022-06-03 | 北京奇艺世纪科技有限公司 | Resource downloading method and device, electronic equipment and medium |
CN113315810A (en) * | 2021-04-29 | 2021-08-27 | 上海探寻信息技术有限公司 | Online audio playing method and equipment |
CN113992651A (en) * | 2021-09-24 | 2022-01-28 | 深圳市有方科技股份有限公司 | Downloading method based on File Transfer Protocol (FTP) and related product |
CN113992651B (en) * | 2021-09-24 | 2024-05-14 | 深圳市有方科技股份有限公司 | Downloading method based on File Transfer Protocol (FTP) and related products |
Also Published As
Publication number | Publication date |
---|---|
WO2020044086A1 (en) | 2020-03-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108965984A (en) | A kind of method, apparatus and equipment/terminal/server file transmission and played | |
CN108989362A (en) | A kind for the treatment of method and apparatus of static resource | |
CN103024045A (en) | Application-driven cdn pre-cache | |
CN109496418A (en) | Document down loading method, device and equipment/terminal/server | |
CN109189857A (en) | Data-sharing systems, method and apparatus based on block chain | |
US10360913B2 (en) | Speech recognition method, device and system based on artificial intelligence | |
WO2021082649A1 (en) | List update method and apparatus, readable medium, and electronic device | |
WO2016000507A1 (en) | Traffic-saving mode search service method, server, client and system | |
CN102904959A (en) | Network accelerating method and gateway | |
CN110545472B (en) | Video data processing method and device, electronic equipment and computer readable medium | |
CN110247985A (en) | A kind of resource downloading method, device, electronic equipment and medium | |
CN109257657A (en) | Realize the method and apparatus of user's interaction | |
CN107667352A (en) | File cache and synchronous technology for predictability | |
CN108733317A (en) | Date storage method and device | |
CN109510754A (en) | Online document generation method, device, system and electronic equipment | |
CN109992406A (en) | The method and client that picture requesting method, response picture are requested | |
CN110796462A (en) | Method and device for guiding flow | |
CN109005461A (en) | A kind of recommended method of the video object, device and equipment/terminal/server | |
CN109491742A (en) | Page tabular rendering method and device | |
CN109408748A (en) | Method and apparatus for handling information | |
CN108549586A (en) | Information processing method and device | |
WO2020199659A1 (en) | Method and apparatus for determining push priority information | |
CN109857325A (en) | Display interface switching method, electronic equipment and computer readable storage medium | |
CN109379179A (en) | Method and apparatus for updating digital certificate | |
CN113422669B (en) | Data transmission method, device and system, electronic equipment and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181207 |