CN108763375A - A kind of media file caching method, device and multimedia play system - Google Patents
A kind of media file caching method, device and multimedia play system Download PDFInfo
- Publication number
- CN108763375A CN108763375A CN201810476475.6A CN201810476475A CN108763375A CN 108763375 A CN108763375 A CN 108763375A CN 201810476475 A CN201810476475 A CN 201810476475A CN 108763375 A CN108763375 A CN 108763375A
- Authority
- CN
- China
- Prior art keywords
- information
- data block
- target data
- playing request
- media file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
The embodiment of the invention discloses a kind of media file caching method, device and multimedia play system, the media file caching method includes:The operational order for detecting user generates playing request according to the operational order;The playing request is parsed, the index information of the corresponding target media file of the playing request is obtained;It is searched and the matched target data block of the playing request from the index information;If the target data block is not present in caching, the link information of the target data block is obtained, the target data block is cached according to the link information.The embodiment of the present invention is enable to respond quickly the seek operations of user, saves flow and stand-by period, promotes user experience.
Description
Technical field
The present invention relates to a kind of technical field of media more particularly to media file caching method, device and multimedias to broadcast
Place system.
Background technology
At this stage, with the continuous development of mobile terminal, it is more prevalent to watch video online using mobile terminal.
When watching video using data traffic, if user carries out F.F. or chooses some play position, it will usually again
The secondary corresponding buffering of progress frequently can lead to repeated downloads, not only cause the waste of flow at this time to download the content in the region,
And the stand-by period is also longer, and user experience is poor.
Invention content
A kind of media file caching method of offer of the embodiment of the present invention, device and multimedia play system, can be quick
It is cached, saves flow.
First aspect of the embodiment of the present invention provides a kind of media file caching method, including:
The operational order for detecting user generates playing request according to the operational order;
The playing request is parsed, the index information of the corresponding target media file of the playing request is obtained;
It is searched and the matched target data block of the playing request from the index information;
If the target data block is not present in caching, the link information of the target data block is obtained, according to described
Link information caches the target data block.
Optionally, the operational order of the detecting user generates playing request according to the operational order, including:
If the operational order is the slide of predeterminable area, according to the glide direction of slide, sliding speed
Generate corresponding time shaft control instruction;Or
If the operational order is the single-click operation for time shaft, generated according to the location information of the single-click operation
Corresponding time shaft control instruction;Or
If the operational order is the temporal information for inputting preset format, when generating corresponding according to the temporal information
Countershaft control instruction,
Playing request is generated according to the time shaft control instruction.
Optionally, the parsing playing request, obtains the index of the corresponding target media file of the playing request
Information, including:
Obtain the corresponding timestamp information of the playing request;
Related information corresponding with the timestamp information is asked to server;
The related information returned according to server obtains the index information of the target media file, wherein the index
Information includes:File type, file duration, blocking information and file location information.
Optionally, the lookup from the index information and the matched target data block of the playing request, including:
The playing request is parsed, the corresponding timestamp information of the playing request is obtained;
Target data block corresponding with the timestamp information is searched in the blocking information of the index information, wherein
If the timestamp information is located in the position of the corresponding piecemeal in predetermined time period, the quantity of the target data block
It is 1;If the timestamp information is located in the position of corresponding piecemeal outside predetermined time period, the number of the target data block
Amount is 2.
Optionally, the method further includes:
Obtain the caching progress of the target data block;
Corresponding description information is updated according to the caching progress, wherein the description information is for indicating the target
Location information and duration information of the data block in the caching.
Second aspect of the embodiment of the present invention provides a kind of media file buffer storage, including:
Request module, the operational order for detecting user generate playing request according to the operational order;
Acquisition module obtains the rope of the corresponding target media file of the playing request for parsing the playing request
Fuse ceases;
Searching module, for being searched and the matched target data block of the playing request from the index information;
Cache module, for when the target data block is not present in caching, obtaining the link of the target data block
Information caches the target data block according to the link information.
Optionally, the request module is specifically used for:
When the operational order is the slide of predeterminable area, according to the glide direction of slide, sliding speed
Generate corresponding time shaft control instruction;Or
When the operational order is the single-click operation for time shaft, generated according to the location information of the single-click operation
Corresponding time shaft control instruction;Or
When the operational order is to input the temporal information of preset format, when generating corresponding according to the temporal information
Countershaft control instruction,
Playing request is generated according to the time shaft control instruction.
Optionally, the acquisition module is specifically used for:
Obtain the corresponding timestamp information of the playing request;
Related information corresponding with the timestamp information is asked to server;
The related information returned according to server obtains the index information of the target media file, wherein the index
Information includes:File type, file duration, blocking information and file location information.
Optionally, the searching module is specifically used for:
The playing request is parsed, the corresponding timestamp information of the playing request is obtained;
Target data block corresponding with the timestamp information is searched in the blocking information of the index information, wherein
If the timestamp information is located in the position of the corresponding piecemeal in predetermined time period, the quantity of the target data block
It is 1;If the timestamp information is located in the position of corresponding piecemeal outside predetermined time period, the number of the target data block
Amount is 2.
Optionally, the media file buffer storage further includes:
Update module, the caching progress for obtaining the target data block update corresponding according to the caching progress
Description information, wherein the description information is for indicating location information of the target data block in the caching with timely
Long message.
The third aspect of the embodiment of the present invention provides a kind of multimedia play system, including media file described above delays
Cryopreservation device.
Implement the embodiment of the present invention, has the advantages that:
Media file caching method, device and multimedia play system in the embodiment of the present invention, according to the behaviour of user
Make instruction and generate playing request, corresponding index information is obtained according to playing request, and search matched target data block, at this time
Further judge to whether there is target data block in caching, the target data block is cached when it be not present, so as to quickly ring
It is operated using the seek at family, saves flow and stand-by period, promote user experience.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for ability
For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is a kind of method flow diagram of media file caching method first embodiment provided in an embodiment of the present invention.
Fig. 2 is a kind of method flow diagram of media file caching method second embodiment provided in an embodiment of the present invention.
Fig. 3 is a kind of method flow diagram of media file caching method 3rd embodiment provided in an embodiment of the present invention.
Fig. 4 is a kind of method flow diagram of media file caching method fourth embodiment provided in an embodiment of the present invention.
Fig. 5 is a kind of structural schematic diagram of media file buffer storage first embodiment provided in an embodiment of the present invention.
Fig. 6 is a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention.
Specific implementation mode
The disclosure is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the disclosure, rather than the restriction to the disclosure.It also should be noted that in order to just
It is illustrated only in description, attached drawing and the relevant part of the disclosure rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail
The processing described as flow chart or method.It is therein to be permitted although each step to be described as to the processing of sequence in flow chart
Multi-step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged, when its operation
The processing can be terminated when completion, it is also possible to the other steps being not included in attached drawing.Processing can correspond to
In method, function, regulation, subroutine, subprogram etc..
Fig. 1 is a kind of method flow diagram of media file caching method first embodiment provided in an embodiment of the present invention.It should
Media file caching method is applied to terminal, and the terminal can be computer, desktop computer, tablet computer etc., or
Smart mobile phone, e-book, wearable device etc..The terminal can pass through installation application program or the shape of built-in application program
Formula realizes that the method that media file caches in the embodiment of the present invention, the media file can come from the text in network linking
File on part or network server, the embodiment of the present invention are not limited thereto.The media file caching method include with
Lower step S101-S104.
In step S101, the operational order of user is detected, playing request is generated according to the operational order.
Specifically, the operational order of terminal detecting user, the operational order can there are many forms, for example can be logical
The touch screen for crossing terminal carries out touch input, can also be to be inputted by voice.In the present embodiment, the operational order is
Refer to the control instruction to reproduction time, i.e. time shaft control instruction.
In one embodiment, the operational order is the slide of predeterminable area, is grasped at this time according to the sliding
Glide direction, the sliding speed of work generate corresponding time shaft control instruction.Wherein, the predeterminable area can be broadcast interface
Predeterminable area, it is to be understood that multiple control areas can be divided on the broadcast interface, correspond to respectively reproduction time,
Broadcast sound volume, brightness etc..
In one embodiment, the operational order is the single-click operation for time shaft, is clicked according at this time
The location information of operation generates corresponding time shaft control instruction.Wherein, the time shaft can be hidden in a playback situation, lead to
It crosses and selection or slide is clicked to the time shaft, the control of different reproduction times may be implemented.
In one embodiment, the operational order be input preset format temporal information, at this time according to it is described when
Between information generate corresponding time shaft control instruction.Wherein, the input time information can be inputted by dummy keyboard, also may be used
To pass through voice command input.The preset format can be time format, or preset zoned format, as head,
Run-out or piece are medium.The present embodiment is not limited thereto.
After getting time shaft control instruction, corresponding playing request is generated according to time shaft control instruction.
In step s 102, the playing request is parsed, the rope of the corresponding target media file of the playing request is obtained
Fuse ceases.
Specifically, parsing the playing request, corresponding broadcasting time control informatio is obtained, and further to server
Solicited message is sent out, corresponding index information is obtained.Wherein, the index information is used to indicate the related letter of media file
Breath, including:File type, duration, blocking information etc..
In step s 103, it is searched and the matched target data block of the playing request from the index information.
Specifically, searching corresponding target data block in index information.In the present embodiment, the target media file is
Preserved in the form of piecemeal on the server, when being played online, by searching for corresponding piecemeal, cache and
The action of broadcasting.At this point, according to corresponding playing request, corresponding target data block is searched in index information.It can be with
Understand, the quantity of the target data block can be for 1 or multiple.
In step S104, if the target data block is not present in caching, the link of the target data block is obtained
Information caches the target data block according to the link information.
Specifically, after finding target data block, in the present embodiment, further the current caching of terminal is judged
In whether there is the target data block.When it is present, then the target data block is directly played;When it be not present, just into one
The link information of the acquisition target data block of step, and the target data block is cached according to the link information.
It is understood that since the play position of user's selection is not necessarily located at the initial position of target data block,
Further include the step for jumping to the corresponding position of the play position and playing out after having cached the target data block
Suddenly.
Media file caching method in the embodiment of the present invention, depending on the user's operation instruction generate playing request, according to
Playing request obtains corresponding index information, and searches matched target data block, further judges whether deposited in caching at this time
In target data block, the target data block is cached when it be not present, is operated so as to the seek of quick response user, is saved stream
Amount and stand-by period promote user experience.
Fig. 2 is a kind of method flow diagram of media file caching method second embodiment provided in an embodiment of the present invention.It is right
Than the first embodiment described in Fig. 1, the step of how obtaining index information is further comprised in the present embodiment, this method includes
Following steps S201-S206.
In step s 201, the operational order for detecting user generates playing request according to the operational order.
In step S202, the corresponding timestamp information of the playing request is obtained.
Specifically, parsing the playing request first, the corresponding timestamp information of playing request, the timestamp letter are obtained
Breath shows the broadcasting initial position that user specifies.
In step S203, related information corresponding with the timestamp information is asked to server.
Asked specifically, being sent to server, obtain corresponding with timestamp information related information, it is possible to understand that and
It is that the server refers to the server for providing the playback of media files service.Corresponding, the server is providing media
When the broadcasting service of file, for the ease of realize it is online play, media file can be handled accordingly, for example, piecemeal and
Generate corresponding related information etc..At this point, terminal to server asks related information, the corresponding related information of server feedback.
In step S204, the related information returned according to server obtains the index information of the target media file.
Specifically, the index information includes:File type, file duration, blocking information and file location information.It can
With understanding but, the index information is for the entire target media file.In other embodiments, when described
When piecemeal processing has been carried out in target media file, each corresponding piecemeal can include corresponding block index information.
In step S205, searched and the matched target data block of the playing request from the index information.
In step S206, if the target data block is not present in caching, the link of the target data block is obtained
Information caches the target data block according to the link information.
Media file caching method in the embodiment of the present invention, depending on the user's operation instruction generate playing request, according to
Playing request obtains the corresponding index information of target media file on the server, and searches matched target data block, at this time
Further judge to whether there is target data block in caching, the target data block is cached when it be not present, so as to quickly ring
It is operated using the seek at family, saves flow and stand-by period, promote user experience.
Fig. 3 is a kind of method flow diagram of media file caching method 3rd embodiment provided in an embodiment of the present invention.It is right
Than the first embodiment described in Fig. 1, the step of how searching target data block, this method packet are further comprised in the present embodiment
Include following steps S301-S305.It is understood that the step of how searching target data in the present embodiment is equally applicable
In embodiment shown in Fig. 2.
In step S301, the operational order of user is detected, playing request is generated according to the operational order.
In step s 302, the playing request is parsed, the rope of the corresponding target media file of the playing request is obtained
Fuse ceases.
In step S303, the playing request is parsed, obtains the corresponding timestamp information of the playing request.
In step s 304, target corresponding with the timestamp information is searched in the blocking information of the index information
Data block.
Specifically, searching the timestamp information corresponding time corresponding point in blocking information according to timestamp information
Block.Target data block is obtained according to corresponding piecemeal.In this implementation, the quantity cocoa of target data block is with for 1 or 2.Its
In, if the timestamp information is located in the position of the corresponding piecemeal in predetermined time period, the target data block
Quantity is 1;If the timestamp information is located in the position of corresponding piecemeal outside predetermined time period, the target data block
Quantity be 2.The predetermined time period depends on the length of piecemeal, if for example, the time span of each piecemeal is 5 points
Clock, predetermined time period could be provided as 3 minutes, when timestamp information is in 3 minutes, then only need to obtain timestamp information
Corresponding piecemeal is target data block;When timestamp information is other than 3 minutes, such as at 4 minutes, at this time in order to accelerate
The switch speed of follow-up play, the target data block is the corresponding piecemeal of the timestamp information and corresponds to the next of piecemeal
Piecemeal, the i.e. quantity of target data block are 2.
In step S305, if the target data block is not present in caching, the link of the target data block is obtained
Information caches the target data block according to the link information.
Media file caching method in the embodiment of the present invention, depending on the user's operation instruction generate playing request, according to
Playing request obtains the corresponding index information of target media file, and searches matched target data block according to playing request, this
When further judge caching in whether there is target data block, the target data block is cached when it be not present, so as to quick
The seek operations for responding user, save flow and stand-by period, promote user experience.
Fig. 4 is a kind of method flow diagram of media file caching method fourth embodiment provided in an embodiment of the present invention.It is right
Than first embodiment shown in FIG. 1, the step of update caches is further comprised in the present embodiment.This approach includes the following steps
S401-S406.It is understood that the update in the present embodiment can also be applied to Fig. 2 or shown in Fig. 3 realities the step of caching
It applies in example, the embodiment of the present invention is not limited thereto.
In step S401, the operational order of user is detected, playing request is generated according to the operational order.
In step S402, the playing request is parsed, obtains the rope of the corresponding target media file of the playing request
Fuse ceases.
In step S403, searched and the matched target data block of the playing request from the index information.
In step s 404, if the target data block is not present in caching, the link of the target data block is obtained
Information caches the target data block according to the link information.
In step S405, the caching progress of the target data block is obtained.
Specifically, after performing caching, further include the further caching for obtaining target data block in real time into
Degree, the caching progress depend on the factors such as processing capacity and the network environment of terminal.It is understood that according to cache into
Degree, further includes the steps that further whether caching subsequent data chunk.
In step S406, corresponding description information is updated according to the caching progress.
Specifically, updating description information according to caching progress, wherein the description information is for indicating the target data
Location information and duration information of the block in the caching.It, can be in terminal during terminal plays target media file
The local description information for generating the target media file, according to the caching progress for each data block of target media file with
And playing progress rate is implemented to update the description information.When subsequently needing to judge whether the target data block caches, also by
The description information is judged, so as to avoid having cached identical data block, when avoiding waste data traffic and caching
Between.
Media file caching method in the embodiment of the present invention, depending on the user's operation instruction generate playing request, according to
Playing request obtains the corresponding index information of target media file, and searches matched target data block according to playing request, this
When further judge caching in whether there is target data block, cache the target data block when it be not present, and can be according to number
Description information is updated according to the caching progress of block, it, can not only quick response use by description information to determine whether repeating to cache
The seek at family is operated, and can save flow and stand-by period, promotes user experience.
Fig. 5 is a kind of structural schematic diagram of media file buffer storage first embodiment provided in an embodiment of the present invention.It should
Media file buffer storage is applied to terminal, and the terminal can be computer, desktop computer, tablet computer etc., or
Smart mobile phone, e-book, wearable device etc..The media file buffer storage includes:Request module 501, acquisition module
502, searching module 503 and cache module 504.
Request module 501 is used to detect the operational order of user, and playing request is generated according to the operational order;
Acquisition module 502 obtains the corresponding target media file of the playing request for parsing the playing request
Index information;
Searching module 503 is used to search and the matched target data block of the playing request from the index information;
Cache module 504 is used to, when the target data block is not present in caching, obtain the chain of the target data block
Information is connect, the target data block is cached according to the link information.
Optionally, the request module 501 is specifically used for:
When the operational order is the slide of predeterminable area, according to the glide direction of slide, sliding speed
Generate corresponding time shaft control instruction;Or
When the operational order is the single-click operation for time shaft, generated according to the location information of the single-click operation
Corresponding time shaft control instruction;Or
When the operational order is to input the temporal information of preset format, when generating corresponding according to the temporal information
Countershaft control instruction,
Playing request is generated according to the time shaft control instruction.
Optionally, the acquisition module 502 is specifically used for:
Obtain the corresponding timestamp information of the playing request;
Related information corresponding with the timestamp information is asked to server;
The related information returned according to server obtains the index information of the target media file, wherein the index
Information includes:File type, file duration, blocking information and file location information.
Optionally, the searching module 503 is specifically used for:
The playing request is parsed, the corresponding timestamp information of the playing request is obtained;
Target data block corresponding with the timestamp information is searched in the blocking information of the index information, wherein
If the timestamp information is located in the position of the corresponding piecemeal in predetermined time period, the quantity of the target data block
It is 1;If the timestamp information is located in the position of corresponding piecemeal outside predetermined time period, the number of the target data block
Amount is 2.
In other embodiments, the media file buffer storage further includes update module,
The update module is used to obtain the caching progress of the target data block, is updated and is corresponded to according to the caching progress
Description information, wherein the description information be used to indicate location information of the target data block in the caching and
Duration information.
Media file buffer storage in the embodiment of the present invention, depending on the user's operation instruction generate playing request, according to
Playing request obtains the corresponding index information of target media file, and searches matched target data block according to playing request, this
When further judge caching in whether there is target data block, cache the target data block when it be not present, and can be according to number
Description information is updated according to the caching progress of block, it, can not only quick response use by description information to determine whether repeating to cache
The seek at family is operated, and can save flow and stand-by period, promotes user experience.
Fig. 6 is a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention.It is understood that Fig. 1-Fig. 4
Shown in media file caching method and media file buffer storage shown in fig. 5 can be applied to mobile terminal shown in fig. 6
In.As shown in fig. 6, mobile terminal includes that (quantity of the processor 601 in terminal can be one or more, Fig. 6 for processor 601
By taking a processor as an example) and memory 602.In an embodiment of the present invention, processor 601, memory 602 can be by total
Line or other means connects, wherein in Fig. 6 for being connected by bus.
Wherein, executable program is stored in memory 602, processor 601 executes the executable program to realize such as
Lower step:
The operational order for detecting user generates playing request according to the operational order;
The playing request is parsed, the index information of the corresponding target media file of the playing request is obtained;
It is searched and the matched target data block of the playing request from the index information;
If the target data block is not present in caching, the link information of the target data block is obtained, according to described
Link information caches the target data block.
Optionally, the processor 601 detects the operational order of user, and playing request is generated according to the operational order,
Including:
If the operational order is the slide of predeterminable area, according to the glide direction of slide, sliding speed
Generate corresponding time shaft control instruction;Or
If the operational order is the single-click operation for time shaft, generated according to the location information of the single-click operation
Corresponding time shaft control instruction;Or
If the operational order is the temporal information for inputting preset format, when generating corresponding according to the temporal information
Countershaft control instruction,
Playing request is generated according to the time shaft control instruction.
Optionally, the processor 601 parses the playing request, obtains the corresponding target medium text of the playing request
The index information of part, including:
Obtain the corresponding timestamp information of the playing request;
Related information corresponding with the timestamp information is asked to server;
The related information returned according to server obtains the index information of the target media file, wherein the index
Information includes:File type, file duration, blocking information and file location information.
Optionally, the processor 601 is searched and the matched target data of the playing request from the index information
Block, including:
The playing request is parsed, the corresponding timestamp information of the playing request is obtained;
Target data block corresponding with the timestamp information is searched in the blocking information of the index information, wherein
If the timestamp information is located in the position of the corresponding piecemeal in predetermined time period, the quantity of the target data block
It is 1;If the timestamp information is located in the position of corresponding piecemeal outside predetermined time period, the number of the target data block
Amount is 2.
Optionally, the processor 601 is additionally operable to:
Obtain the caching progress of the target data block;
Corresponding description information is updated according to the caching progress, wherein the description information is for indicating the target
Location information and duration information of the data block in the caching.
Mobile terminal in the embodiment of the present invention, instruction depending on the user's operation generates playing request, according to playing request
The corresponding index information of target media file is obtained, and matched target data block is searched according to playing request, at this time further
Judge to whether there is target data block in caching, caches the target data block when it be not present, and can be according to the slow of data block
Degree of depositing into update description information, by description information to determine whether repeat cache, can not only quick response user seek
Operation, and flow and stand-by period can be saved, promote user experience.
The embodiment of the present invention additionally provides a kind of multimedia play system, and the multimedia play system includes shown in Fig. 5
Media buffer device, and can be applied to realize Fig. 1-media buffer methods shown in Fig. 4.The tool of the multimedia play system
Body description can be found in the media buffer method of Fig. 1-Fig. 5 and the description of media buffer device, and this will not be repeated here.
Multimedia play system in the embodiment of the present invention, instruction depending on the user's operation generates playing request, according to broadcasting
The corresponding index information of acquisition request target media file is put, and matched target data block is searched according to playing request, at this time
Further judge to whether there is target data block in caching, caches the target data block when it be not present, and can be according to data
The caching progress of block updates description information, can not only quick response user by description information to determine whether repeating to cache
Seek operations, and flow and stand-by period can be saved, promote user experience.
There is provided in above-described embodiment each module between any two can be achieved communication connection, and each module can in platform
The communication of heart control device connects, and can perform in the disclosure by the quick recording device of fingerprint recognition for being provided in above-described embodiment is appointed
The method quickly recorded by fingerprint recognition provided in embodiment of anticipating has and executes the corresponding function module of this method and have
Beneficial effect, the technical detail not being described in detail in the above-described embodiments, reference can be made to fast provided in disclosure any embodiment
The method of speed recording.
It will be appreciated that the disclosure also extends to the computer program for being suitable for that the disclosure tries out, especially
Computer program on carrier or in carrier.Program can be with source code, object code, code intermediate source and such as part volume
The form of the object code for the form translated, or with any other shape for being suitble to use in realization according to the disclosed method
Formula.Also it will be noted that, such program may have many different frame designs.For example, realizing the side according to the disclosure
Functional program code of method or system may be subdivided into one or more subroutine.
For that will be apparent for technical personnel in the functional many different modes of these subroutine intermediate distributions.
Subroutine can be collectively stored in an executable file, to form self-contained program.Such executable file can
To include computer executable instructions, such as processor instruction and/or interpreter instruction (for example, Java interpreter instruction).It can
Alternatively, one or more or all subroutines of subroutine may be stored at least one external library file, and
And statically or dynamically (such as at runtime) links with main program.Main program contains at least one of subroutine
At least one calling.Subroutine can also include to mutual function call.It is related to the embodiment packet of computer program product
Include the computer executable instructions corresponding at least one of illustrated method each step of the processing step of method.These refer to
Subroutine can be subdivided into and/or be stored in one or more possible static or dynamic link file by enabling.
Another embodiment for being related to computer program product includes corresponding in illustrated system and/or product at least
The computer executable instructions of each device in one device.These instructions can be subdivided into subroutine and/or be stored
In one or more possible static or dynamic link file.
The carrier of computer program can be any entity or device that can deliver program.For example, carrier can wrap
Containing storage medium, such as (ROM such as CDROM either semiconductor ROM) or magnetic recording media (such as floppy disk or hard disk).Into
One step, carrier can be the carrier that can be transmitted, such as electricity either optical signalling its can via cable or optical cable, or
Person is transmitted by radio or other means.When program is embodied as such signal, carrier can be by such cable
Or device composition.Alternatively, carrier can be the integrated circuit for being wherein embedded with program, and the integrated circuit is suitable for holding
Row correlation technique, or used in execution for correlation technique.
Should be noted that embodiment mentioned above is to illustrate the disclosure, rather than the disclosure is limited, and this
The technical staff in field will design many alternate embodiments, without departing from scope of the appended claims.It is weighing
During profit requires, the reference mark of any placement between round parentheses is not to be read as being limitations on claims.Verb " packet
Include " and its paradigmatic depositing using the element being not excluded for other than those of recording in the claims or step
?.Article " one " before element or "one" be not excluded for the presence of a plurality of such elements.The disclosure can pass through
Include the hardware of several visibly different components, and is realized by properly programmed computer.Enumerating several devices
In device claim, several in these devices can be embodied by the same item of hardware.In mutually different appurtenance
Profit states that the simple fact of certain measures does not indicate that the combination of these measures cannot be used to benefit in requiring.
If desired, different function discussed herein can be executed with different order and/or be executed simultaneously with one another.
In addition, if if it is expected, one or more functions described above can be optional or can be combined.
If desired, each step is not limited to the sequence that executes in each embodiment, different step as discussed above
It can be executed with different order and/or be executed simultaneously with one another.In addition, in other embodiments, described above one or more
A step can be optional or can be combined.
Although various aspects of the disclosure provides in the independent claim, the other aspects of the disclosure include coming from
The combination of the dependent claims of the feature of described embodiment and/or feature with independent claims, and not only
It is the combination clearly provided in claim.
Although it is to be noted here that the foregoing describe the example embodiment of the disclosure, these descriptions are not
It should be understood in a limiting sense.It is wanted without departing from such as appended right on the contrary, several change and modification can be carried out
The scope of the present disclosure defined in asking.
Will be appreciated by those skilled in the art that each module in the device of the embodiment of the present disclosure can use general meter
Device is calculated to realize, each module can concentrate in the group of networks of single computing device or computing device composition, and the disclosure is real
The method that the device in example corresponds in previous embodiment is applied, can be realized, can also be led to by executable program code
The mode of integrated circuit combination is crossed to realize, therefore the disclosure is not limited to specific hardware or software and its combination.
Will be appreciated by those skilled in the art that each module in the device of the embodiment of the present disclosure can use general shifting
Dynamic terminal realizes that each module can concentrate in the device combination of single mobile terminal or mobile terminal composition, the disclosure
Device in embodiment corresponds to the method in previous embodiment, can be realized by editing executable program code,
It can be realized by way of integrated circuit combination, therefore the disclosure is not limited to specific hardware or software and its knot
It closes.
Claims (11)
1. a kind of media file caching method, which is characterized in that including:
The operational order for detecting user generates playing request according to the operational order;
The playing request is parsed, the index information of the corresponding target media file of the playing request is obtained;
It is searched and the matched target data block of the playing request from the index information;
If the target data block is not present in caching, the link information of the target data block is obtained, according to the link
Target data block described in information cache.
2. media file caching method as described in claim 1, which is characterized in that the operational order of the detecting user, root
Playing request is generated according to the operational order, including:
If the operational order is the slide of predeterminable area, generated according to the glide direction of slide, sliding speed
Corresponding time shaft control instruction;Or
If the operational order is the single-click operation for time shaft, is generated and corresponded to according to the location information of the single-click operation
Time shaft control instruction;Or
If the operational order is the temporal information for inputting preset format, corresponding time shaft is generated according to the temporal information
Control instruction,
Playing request is generated according to the time shaft control instruction.
3. media file caching method as claimed in claim 2, which is characterized in that the parsing playing request obtains
The index information of the corresponding target media file of the playing request, including:
Obtain the corresponding timestamp information of the playing request;
Related information corresponding with the timestamp information is asked to server;
The related information returned according to server obtains the index information of the target media file, wherein the index information
Including:File type, file duration, blocking information and file location information.
4. media file caching method as claimed in claim 3, which is characterized in that it is described from the index information search with
The matched target data block of playing request, including:
The playing request is parsed, the corresponding timestamp information of the playing request is obtained;
Target data block corresponding with the timestamp information is searched in the blocking information of the index information, wherein if institute
It states timestamp information in the position of the corresponding piecemeal to be located in predetermined time period, then the quantity of the target data block is 1
It is a;If the timestamp information is located in the position of corresponding piecemeal outside predetermined time period, the quantity of the target data block
It is 2.
5. media file caching method according to any one of claims 1-4, which is characterized in that further include:
Obtain the caching progress of the target data block;
Corresponding description information is updated according to the caching progress, wherein the description information is for indicating the target data
Location information and duration information of the block in the caching.
6. a kind of media file buffer storage, which is characterized in that including:
Request module, the operational order for detecting user generate playing request according to the operational order;
Acquisition module obtains the index letter of the corresponding target media file of the playing request for parsing the playing request
Breath;
Searching module, for being searched and the matched target data block of the playing request from the index information;
Cache module, for when the target data block is not present in caching, obtaining the link information of the target data block,
The target data block is cached according to the link information.
7. media file buffer storage as claimed in claim 6, which is characterized in that the request module is specifically used for:
When the operational order is the slide of predeterminable area, generated according to the glide direction of slide, sliding speed
Corresponding time shaft control instruction;Or
When the operational order is the single-click operation for time shaft, is generated and corresponded to according to the location information of the single-click operation
Time shaft control instruction;Or
When the operational order is to input the temporal information of preset format, corresponding time shaft is generated according to the temporal information
Control instruction,
Playing request is generated according to the time shaft control instruction.
8. media file buffer storage as claimed in claim 7, which is characterized in that the acquisition module is specifically used for:
Obtain the corresponding timestamp information of the playing request;
Related information corresponding with the timestamp information is asked to server;
The related information returned according to server obtains the index information of the target media file, wherein the index information
Including:File type, file duration, blocking information and file location information.
9. media file buffer storage as claimed in claim 8, which is characterized in that the searching module is specifically used for:
The playing request is parsed, the corresponding timestamp information of the playing request is obtained;
Target data block corresponding with the timestamp information is searched in the blocking information of the index information, wherein if institute
It states timestamp information in the position of the corresponding piecemeal to be located in predetermined time period, then the quantity of the target data block is 1
It is a;If the timestamp information is located in the position of corresponding piecemeal outside predetermined time period, the quantity of the target data block
It is 2.
10. such as claim 6-9 any one of them media file buffer storages, which is characterized in that further include:
Update module, the caching progress for obtaining the target data block update corresponding description according to the caching progress
Information, wherein the description information be used to indicate location information of the target data block in the caching and when long letter
Breath.
11. a kind of multimedia play system, which is characterized in that slow including such as claim 6-10 any one of them media file
Cryopreservation device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810476475.6A CN108763375A (en) | 2018-05-17 | 2018-05-17 | A kind of media file caching method, device and multimedia play system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810476475.6A CN108763375A (en) | 2018-05-17 | 2018-05-17 | A kind of media file caching method, device and multimedia play system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108763375A true CN108763375A (en) | 2018-11-06 |
Family
ID=64007117
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810476475.6A Pending CN108763375A (en) | 2018-05-17 | 2018-05-17 | A kind of media file caching method, device and multimedia play system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108763375A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112954445A (en) * | 2021-03-16 | 2021-06-11 | 深圳市迅雷网络技术有限公司 | Streaming media file playing method and device, computer equipment and storage medium |
WO2022199541A1 (en) * | 2021-03-26 | 2022-09-29 | 维沃移动通信有限公司 | Media file playing method and apparatus, electronic device, server, and medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006054869A1 (en) * | 2004-11-22 | 2006-05-26 | Neomtel Co., Ltd. | Mobile communication terminal capable of playing and updating multimedia content and method of playing the same |
CN105338378A (en) * | 2014-07-30 | 2016-02-17 | 深圳国微技术有限公司 | Video-on-demand method and device |
CN105430425A (en) * | 2015-11-18 | 2016-03-23 | 深圳Tcl新技术有限公司 | Method and device for accelerating playing of single-fragment video |
CN105979373A (en) * | 2015-12-03 | 2016-09-28 | 乐视致新电子科技(天津)有限公司 | Play method and device |
CN106878767A (en) * | 2017-01-05 | 2017-06-20 | 腾讯科技(深圳)有限公司 | Video broadcasting method and device |
CN107690081A (en) * | 2017-05-25 | 2018-02-13 | 腾讯科技(北京)有限公司 | Video broadcasting method and device and storage medium, electronic installation |
-
2018
- 2018-05-17 CN CN201810476475.6A patent/CN108763375A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006054869A1 (en) * | 2004-11-22 | 2006-05-26 | Neomtel Co., Ltd. | Mobile communication terminal capable of playing and updating multimedia content and method of playing the same |
CN105338378A (en) * | 2014-07-30 | 2016-02-17 | 深圳国微技术有限公司 | Video-on-demand method and device |
CN105430425A (en) * | 2015-11-18 | 2016-03-23 | 深圳Tcl新技术有限公司 | Method and device for accelerating playing of single-fragment video |
CN105979373A (en) * | 2015-12-03 | 2016-09-28 | 乐视致新电子科技(天津)有限公司 | Play method and device |
CN106878767A (en) * | 2017-01-05 | 2017-06-20 | 腾讯科技(深圳)有限公司 | Video broadcasting method and device |
CN107690081A (en) * | 2017-05-25 | 2018-02-13 | 腾讯科技(北京)有限公司 | Video broadcasting method and device and storage medium, electronic installation |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112954445A (en) * | 2021-03-16 | 2021-06-11 | 深圳市迅雷网络技术有限公司 | Streaming media file playing method and device, computer equipment and storage medium |
WO2022199541A1 (en) * | 2021-03-26 | 2022-09-29 | 维沃移动通信有限公司 | Media file playing method and apparatus, electronic device, server, and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20170097974A1 (en) | Resolving conflicts within saved state data | |
US8521709B2 (en) | Methods for preloading media assets | |
CN107148621B (en) | Client-side activity monitoring | |
US20140281976A1 (en) | Adjusting content playback to correlate with travel time | |
US20080288866A1 (en) | Mobile device carrousel systems and methods | |
CN104317648B (en) | A kind of method and apparatus of monitoring advertisement | |
CN110417641A (en) | A kind of method and apparatus sending conversation message | |
US10814229B2 (en) | Fragment-based mobile device application streaming utilizing crowd-sourcing | |
CN106254903A (en) | The synchronous broadcast method of a kind of multi-medium data, Apparatus and system | |
US20100100820A1 (en) | User specific music in virtual worlds | |
JP2017529624A (en) | Component-specific application presentation history | |
CN108763375A (en) | A kind of media file caching method, device and multimedia play system | |
CN112685121A (en) | Method and equipment for presenting session entrance | |
CN111768759A (en) | Method and apparatus for generating information | |
JP2018109941A (en) | Comment method for interactive content and comment scenario replay method | |
US20220254352A1 (en) | Multi-speaker diarization of audio input using a neural network | |
CN113282269A (en) | Audio playing method and device, storage medium and computing equipment | |
CN108600813A (en) | a kind of media file playing method, device and media play system | |
CN112437105A (en) | Artificial intelligence based extrapolation model for discontinuities in real-time streaming data | |
CN110209964A (en) | A kind of page display method, device and equipment | |
CN111460211A (en) | Audio information playing method and device and electronic equipment | |
US8892693B2 (en) | Enabling fragment-based mobile device application streaming | |
CN113282268B (en) | Sound effect configuration method and device, storage medium and electronic equipment | |
CN111385599A (en) | Video processing method and device | |
CN108650544A (en) | A kind of media playing method, device and media play system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181106 |
|
RJ01 | Rejection of invention patent application after publication |