CN108335706A - A kind of seamless play method, terminal device and the storage medium of multimedia file - Google Patents

A kind of seamless play method, terminal device and the storage medium of multimedia file Download PDF

Info

Publication number
CN108335706A
CN108335706A CN201810165901.4A CN201810165901A CN108335706A CN 108335706 A CN108335706 A CN 108335706A CN 201810165901 A CN201810165901 A CN 201810165901A CN 108335706 A CN108335706 A CN 108335706A
Authority
CN
China
Prior art keywords
multimedia file
destination
parameter information
destination multimedia
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.)
Granted
Application number
CN201810165901.4A
Other languages
Chinese (zh)
Other versions
CN108335706B (en
Inventor
龙俊卫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810165901.4A priority Critical patent/CN108335706B/en
Publication of CN108335706A publication Critical patent/CN108335706A/en
Application granted granted Critical
Publication of CN108335706B publication Critical patent/CN108335706B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10009Improvement or modification of read or write signals
    • G11B20/10018Improvement or modification of read or write signals analog processing for digital recording or reproduction

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application is suitable for multimedia technology field, provides a kind of seamless play method, terminal device and the computer readable storage medium of multimedia file, the method includes:When receiving preset instructions, obtain the parameter information of the parameter information of destination multimedia file and next multimedia file of the destination multimedia file, if the parameter information of the parameter information of the destination multimedia file and next multimedia file meets preset requirement, the data information of the data information of the destination multimedia file and next multimedia file is then buffered in pre-set buffer space, data information is obtained successively from the pre-set buffer space, and broadcasting is decoded to the data information, continuity when current multimedia file switching can be improved by the application, realize seamless play.

Description

A kind of seamless play method, terminal device and the storage medium of multimedia file
Technical field
The application belongs to multimedia technology field more particularly to seamless play method, the terminal of a kind of multimedia file are set Standby and computer readable storage medium.
Background technology
Requirement with people to audio quality is higher and higher, and the data volume of the identical audiovisual materials of reproduction time is also more next It is bigger, due to the limitation of some storage formats, alternatively, user chooses the requirement of wherein segment for convenience, it will usually will be audio-visual Data is divided into multiple multimedia files to be stored.
As an example, concert, concert scene image data, it will usually be divided into according to different songs multiple more Media file.When user is during playing the image data of the concert of multiple multimedia files composition, concert scene, It will appear incoherent problem when switching usually between multimedia file.
Invention content
In view of this, the embodiment of the present application provides a kind of seamless play method, terminal device and the meter of multimedia file Calculation machine readable storage medium storing program for executing, it is incoherent when solving the problems, such as that current multimedia file switches.
The first aspect of the embodiment of the present application provides a kind of seamless play method of multimedia file, including:
When receiving preset instructions, the parameter information of destination multimedia file and the destination multimedia file are obtained The parameter information of next multimedia file;
If the parameter information of the parameter information of the destination multimedia file and next multimedia file meets pre- If it is required that then the data information of the data information of the destination multimedia file and next multimedia file is buffered in Pre-set buffer space;
It obtains data information successively from the pre-set buffer space, and broadcasting is decoded to the data information.
The second aspect of the embodiment of the present application provides a kind of terminal device, including:
Acquisition module, for when receiving preset instructions, obtaining the parameter information of destination multimedia file and the mesh Mark the parameter information of next multimedia file of multimedia file;
Cache module, if the ginseng of the parameter information and next multimedia file for the destination multimedia file Number information meets preset requirement, then by the number of the data information of the destination multimedia file and next multimedia file It is believed that breath is buffered in pre-set buffer space;
First playing module is believed for obtaining data information successively from the pre-set buffer space, and to the data Breath is decoded broadcasting.
The third aspect of the embodiment of the present application provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer program that can run on the processor, when the processor executes the computer program The step of realizing the method that the embodiment of the present application first aspect provides.
The fourth aspect of the embodiment of the present application provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, the computer program to realize the embodiment of the present application when being executed by one or more processors On the one hand the step of the method provided.
5th aspect of the embodiment of the present application provides a kind of computer program product, and the computer program product includes Computer program, the computer program realize that the embodiment of the present application first aspect provides when being executed by one or more processors The method the step of.
The embodiment of the present application is obtained when receiving preset instructions under destination multimedia file and destination multimedia file The parameter information of one multimedia file, if the parameter of the parameter information of destination multimedia file and next multimedia file is believed Breath meets preset requirement, illustrates to meet seamless play during destination multimedia file and next multimedia file play It is required that, so that it may it is default slow the data information of the data information of destination multimedia file and next multimedia file to be buffered in Space is rushed, data information is obtained successively from preset cushion space, broadcasting is decoded to data information, due to being empty from buffering Between the data information of the data information and next multimedia file of destination multimedia file that obtains successively, it is possible to regard as Cushion space storage is a multimedia file, can thus make destination multimedia file and next multimedia file Without Caton phenomenon during switching, and it is relatively more coherent, realize seamless play.
Description of the drawings
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application Embodiment for those of ordinary skill in the art without having to pay creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of implementation process signal of the seamless play method for multimedia file that one embodiment of the application provides Figure;
Fig. 2 is a kind of implementation process signal of the seamless play method for multimedia file that the another embodiment of the application provides Figure;
Fig. 3 is the schematic block diagram for the terminal device that one embodiment of the application provides;
Fig. 4 is the schematic block diagram for the terminal device that the another embodiment of the application provides.
Specific implementation mode
In being described below, for illustration and not for limitation, it is proposed that such as tool of particular system structure, technology etc Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific The application can also be realized in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
It should be appreciated that ought use in this specification and in the appended claims, the instruction of term " comprising " is described special Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step, Operation, element, component and/or its presence or addition gathered.
It is also understood that the term used in this present specification is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the application.As present specification and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is Refer to any combinations and all possible combinations of one or more of associated item listed, and includes these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In order to illustrate technical solution described herein, illustrated below by specific embodiment.
Fig. 1 is the implementation process schematic diagram of the seamless play method for the multimedia file that one embodiment of the application provides, such as This method may comprise steps of shown in figure:
Step S101, when receiving preset instructions, parameter information and the target for obtaining destination multimedia file are more The parameter information of next multimedia file of media file.
In the embodiment of the present application, described when receiving preset instructions, obtain the parameter information of destination multimedia file Parameter information with next multimedia file of the destination multimedia file includes:
It is when receiving the play instruction of a multimedia file of user's selection, the multimedia file is more as target Media file, and obtain under destination multimedia file described in the parameter information and playlist of the destination multimedia file The parameter information of one multimedia file;
Or, when receiving the play instruction of at least two multimedia files of user's selection, according to the more of user's selection Media file generates playlist, and using first multimedia file in the playlist as destination multimedia file;
Obtain destination multimedia file described in the parameter information of the destination multimedia file and the playlist of generation Next multimedia file parameter information.
In practical applications, the multimedia file can be video file, can also be audio file, with audio file For, when user wants to play song, a song can be chosen in the file directory of terminal device, if receiving use When the instruction that a song plays out is chosen at family, the song that user is chosen can be incited somebody to action as destination multimedia file In file directory, next multimedia file of the destination multimedia file terminates as destination multimedia file broadcasting Afterwards, next multimedia file that will be played.It is, of course, also possible to be to choose one of multimedia file by playout software It plays out, then in the playlist of playout software, the multimedia file currently chosen is exactly destination multimedia file, together When, it can also confirm that next multimedia file of destination multimedia file in playlist.
In practical applications, it may be arranged as:User can choose multiple multimedia files to play out, according to user The sequence chosen plays out, or according to the multiple multimedia files chosen according to preset rules (for example, according to the head of title Letter) it is ranked up the playlist for generating the multiple multimedia files chosen.By matchmaker more than first in the playlist of generation Body file is as destination multimedia file.
Step S102, if the parameter of the parameter information of the destination multimedia file and next multimedia file is believed Breath meets preset requirement, then believes the data of the data information of the destination multimedia file and next multimedia file Breath is buffered in pre-set buffer space.
In the embodiment of the present application, after it confirmed destination multimedia file and next multimedia file, it is necessary to The parameter information of the parameter information and next multimedia file of destination multimedia file is obtained, the parameter information can be text Part format information, by taking Android system as an example, Android system provides a multimedia database-MediaStore for we, The information of multimedia file can be extracted from MediaStore and be obtained, for example, can obtain the header of multimedia file, after Sew, channel number, sample rate, sampling bits digit etc..If the parameter information of the destination multimedia file and described next more The parameter information of media file meets preset requirement and can consider the parameter information of the multimedia file and next multimedia The parameter information of file is consistent, certainly, can be that partial parameters information is consistent in practical application, not influence seamless play its Its parameter information can be inconsistent, it is possible to pre-set partial parameters information, confirm the destination multimedia file When whether the parameter information of parameter information and next multimedia file meets preset requirement, the part ginseng of setting is only determined Whether number information is consistent.If the consistent requirement for indicating to meet seamless play, so that it may with by the destination multimedia file The data information of data information and next multimedia file is buffered in pre-set buffer space.
Step S103 obtains data information from the pre-set buffer space, and is solved to the data information successively Code plays.
In the embodiment of the present application, the data information of the multimedia file of pre-set buffer spatial cache is with audio stream data Or video stream data is cached, i.e. the sequence storage of a frame data one frame data, such as:The first of destination multimedia file Frame data, destination multimedia file the second frame data ..., the last frame data of destination multimedia file, next is more First frame data of media file, the second frame data of next multimedia file ..., next multimedia file it is last One frame data.It is a frame data one frame data in sequence from the buffering queue in pre-set buffer space to be decoded broadcasting It is decoded broadcasting, this makes it possible to the seamless plays realized between two multimedia files.
The embodiment of the present application is by when receiving preset instructions, obtaining destination multimedia file and destination multimedia file Next multimedia file parameter information, if the ginseng of the parameter information of destination multimedia file and next multimedia file Number information meets preset requirement, illustrates to meet seamless broadcast during destination multimedia file and next multimedia file play The requirement put, so that it may pre- the data information of the data information of destination multimedia file and next multimedia file to be buffered in If cushion space, data information is obtained successively from preset cushion space, broadcasting is decoded to data information, due to being to postpone Rush the data information of the data information and next multimedia file of the destination multimedia file that space obtains successively, it is possible to Regard cushion space storage as is a multimedia file, can thus make destination multimedia file and next multimedia File is without Caton phenomenon and relatively more coherent during switching, and realizes seamless play.
Fig. 2 is the flow diagram of the seamless play method for the multimedia file that the another embodiment of the application provides, and is such as schemed Shown this method may comprise steps of:
Step S201, when receiving the play instruction of a multimedia file of user's selection, by the multimedia file As destination multimedia file, and obtain the more matchmakers of target described in the parameter information and playlist of the destination multimedia file The parameter information of next multimedia file of body file.
Step S202, if the parameter of the parameter information of the destination multimedia file and next multimedia file is believed Breath is consistent, then obtains the data information of the destination multimedia file, and by the data information of the destination multimedia file It is sequentially stored into the buffering queue in pre-set buffer space;Obtain data information successively from the pre-set buffer space, and to institute It states data information and is decoded broadcasting.
In the embodiment of the present application, if the pre-set parameter information being compared only there are one, if the more matchmakers of target The parameter information of body file is consistent with the parameter information of next multimedia file to mean that destination multimedia file and next Multimedia file meets the requirement of seamless play, if the pre-set parameter information being compared includes at least two, in advance In the parameter information being compared first being arranged, the parameter information of the destination multimedia file and next multimedia text The parameter information of part is consistent, just indicates that the multimedia file and next multimedia file meet the requirement of seamless play.
The data information by the destination multimedia file, which is sequentially stored into the buffering queue in pre-set buffer space, to be wrapped It includes:
The data information for parsing the destination multimedia file obtains each frame data in the destination multimedia file Play position, and the play position based on each frame data in the destination multimedia file be sequentially stored into pre-set buffer sky Between buffering queue in.
In the embodiment of the present application, by the data of the data information of destination multimedia file and next multimedia file Each frame flow data is cached according to playing sequence when information cache is in buffering queue, this is just needed in parsing mesh When marking the data information of multimedia file, play position of each frame data when destination multimedia file plays is obtained, according to The play position of each frame data is sequentially stored into the buffering queue in pre-set buffer space.
Step S203 obtains next more matchmakers after the data information of destination multimedia file caching The data information of body file, and the data information of next multimedia file is sequentially stored into the buffering queue, from Data information is obtained in the pre-set buffer space successively, and broadcasting is decoded to the data information.
In the embodiment of the present application, first destination multimedia file is cached, after destination multimedia file cache, Next multimedia file is cached again, the mode of caching is consistent with the mode of destination multimedia file cache.
The data information by next multimedia file is sequentially stored into the buffering queue:
The data information for parsing next multimedia file obtains each frame data in next multimedia text Play position in part, and the play position based on each frame data in next multimedia file be sequentially stored into it is described In buffering queue.
After destination multimedia file and next multimedia file cache, so that it may to be successively read from cushion space Data are decoded broadcasting.In practical application, destination multimedia file can be set and next multimedia file caches knot Shu Hou, then be successively read data from cushion space and play out, it is, of course, also possible to when caching being set not being fully completed, from buffering Space is successively read data and plays out, as long as the progress played is less than the progress of caching.
Step S204 will be described next more after caching the data information of next multimedia file Media file judges the destination multimedia file with the presence or absence of next multimedia text as the destination multimedia file Part.
In the embodiment of the present application, there may be more than two multimedia files in playlist, in destination multimedia After file plays, next multimedia file can be played, after next multimedia file plays, can also be played down Next multimedia file, in order to ensure seamless play, next multimedia file and under be also required between next multimedia file Judge whether the needs for meeting seamless play, if satisfied, the data information for being also required to the next multimedia file by under be buffered in it is pre- If cushion space.In fact, in playlist, it is often a process for cycle between two adjacent multimedia files, that is, is inciting somebody to action It is after the data information caching of next multimedia file, next multimedia file is more as the target Media file, and judge that the destination multimedia file whether there is next multimedia file.
Step S205, and if it exists, then obtain the parameter information and destination multimedia text of the destination multimedia file The parameter information of next multimedia file of part.
In the embodiment of the present application, if being not present, stop after playing the data information in pre-set buffer space Broadcasting, and if it exists, then need to continue to obtain the parameter information of the destination multimedia file and destination multimedia text The parameter information of next multimedia file of part is to be compared.
After step S205, it can recycle and execute step S202 to S205, or cycle executes step S206 to S207.
Step S206, if the parameter of the parameter information of the destination multimedia file and next multimedia file is believed Breath does not meet preset requirement, then in the current memory space of the destination multimedia file, obtains the destination multimedia text The data information of part, and decode broadcasting.
In the embodiment of the present application, step S202 to S205 is to indicate destination multimedia file and next multimedia file Meet execution step when seamless play requires, if destination multimedia file and next multimedia file are unsatisfactory for seamless play It is required that when, execution is exactly step S206 to step S207.
If the parameter information of the parameter information of the destination multimedia file and next multimedia file is not met Preset requirement, then can not seamless play, there is no need to by each frame number of destination multimedia file and next multimedia file Together, in the current memory space of the destination multimedia file, it is more to obtain the target according to according to playing sequence caching The data information of media file, and decode broadcasting.
Step S207, in the current memory space of the destination multimedia file, the destination multimedia file plays After, using next multimedia file as the destination multimedia file, and obtain the destination multimedia file Parameter information and the destination multimedia file next multimedia file parameter information.
In the embodiment of the present application, after destination multimedia file plays, continue to play next multimedia file, At this moment, next multimedia file can be used as destination multimedia file, simultaneously, it is also desirable to judge current destination multimedia text Part whether there is next multimedia file, and if it exists, also need to obtain parameter information and the institute of the destination multimedia file The parameter information of next multimedia file of destination multimedia file is stated, and is believed according to the parameter of the destination multimedia file The parameter information determination of next multimedia file of breath and the destination multimedia file is to execute step S202 to step S205, or execute step S206 to step S207.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit It is fixed.
Fig. 3 is that the schematic block diagram for the terminal device that one embodiment of the application provides only is shown and this Shen for convenience of description It please the relevant part of embodiment.
The terminal device 3 can be the software unit being built in the existing terminal device such as mobile phone, notebook, hard Part unit or the unit of soft or hard combination can also be used as independent pendant and be integrated into the existing such as mobile phone, notebook In equal terminal devices, it is also used as independent terminal device and exists.
The terminal device 3 includes:
Acquisition module 31 obtains the parameter information of destination multimedia file and described for when receiving preset instructions The parameter information of next multimedia file of destination multimedia file;
Cache module 32, if the parameter information for the destination multimedia file and next multimedia file Parameter information meets preset requirement, then by the data information of the destination multimedia file and next multimedia file Data information is buffered in pre-set buffer space;
First playing module 33, for obtaining data information successively from the pre-set buffer space, and to the data Information is decoded broadcasting.
Optionally, the acquisition module 31 is additionally operable to:
It is when receiving the play instruction of a multimedia file of user's selection, the multimedia file is more as target Media file, and obtain under destination multimedia file described in the parameter information and playlist of the destination multimedia file The parameter information of one multimedia file;
Or, when receiving the play instruction of at least two multimedia files of user's selection, according to the more of user's selection Media file generates playlist, and using first multimedia file in the playlist as destination multimedia file;
Obtain destination multimedia file described in the parameter information of the destination multimedia file and the playlist of generation Next multimedia file parameter information.
Optionally, the parameter information includes at least one of following:The header of multimedia file, suffix, channel number, sampling Rate, sampling bits digit;
The cache module 32 includes:
First buffer unit 321, if the parameter information for the destination multimedia file and next multimedia The parameter information of file is consistent, then obtains the data information of the destination multimedia file, and the destination multimedia is literary The data information of part is sequentially stored into the buffering queue in pre-set buffer space;
Second buffer unit 322 is used for after the data information of destination multimedia file caching, described in acquisition The data information of next multimedia file, and the data information of next multimedia file is sequentially stored into the buffering In queue.
Optionally, the terminal device 3 further includes:
First circulation module 34 is used for using next multimedia file as the destination multimedia file, and sentences The destination multimedia file that breaks whether there is next multimedia file;
Acquisition module 31, if being additionally operable in the presence of obtaining the parameter information of the destination multimedia file and the target The parameter information of next multimedia file of multimedia file.
Optionally, first buffer unit 321 is additionally operable to:
The data information for parsing the destination multimedia file obtains each frame data in the destination multimedia file Play position, and the play position based on each frame data in the destination multimedia file be sequentially stored into pre-set buffer sky Between buffering queue in;
Second buffer unit 322 is additionally operable to:
The data information for parsing next multimedia file obtains each frame data in next multimedia text Play position in part, and the play position based on each frame data in next multimedia file be sequentially stored into it is described In buffering queue.
Optionally, the terminal device 3 further includes:
Second playing module 35, in the parameter information for obtaining destination multimedia file and the destination multimedia file Next multimedia file parameter information after, if the parameter information of the destination multimedia file and described next more The parameter information of media file does not meet preset requirement, then in the current memory space of the destination multimedia file, obtains The data information of the destination multimedia file, and decode broadcasting.
Optionally, the terminal device 3 further includes:
Second circulation module 36 is used in the current memory space of the destination multimedia file, the more matchmakers of target After body file plays, using next multimedia file as the destination multimedia file, and the target is obtained The parameter information of next multimedia file of the parameter information of multimedia file and the destination multimedia file.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work( Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of the terminal device are divided into different functional units or module, to complete All or part of function described above.Each functional unit, module in embodiment can be integrated in a processing unit, Can also be that each unit physically exists alone, can also be during two or more units be integrated in one unit, above-mentioned collection At unit both may be used hardware form realize, can also be realized in the form of SFU software functional unit.In addition, each function Unit, module specific name also only to facilitate mutually distinguish, the protection domain being not intended to limit this application.Above-mentioned dress Set middle unit, module specific work process, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
Fig. 4 is the schematic block diagram for the terminal device that the another embodiment of the application provides.As shown in figure 4, the end of the embodiment End equipment 4 includes:It one or more processors 40, memory 41 and is stored in the memory 41 and can be in the processing The computer program 42 run on device 40.The processor 40 realizes above-mentioned each multimedia when executing the computer program 42 Step in the playback method embodiment of file, such as step S101 to S103 shown in FIG. 1.Alternatively, the processor 40 is held The function of each module/unit in above-mentioned terminal device embodiment, such as module shown in Fig. 3 are realized when the row computer program 42 31 to 33 function.
Illustratively, the computer program 42 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the application.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 42 in the terminal device 4 is described.For example, the computer program 42 can be divided It is cut into acquisition module, cache module, the first playing module.
The acquisition module, parameter information and institute for when receiving preset instructions, obtaining destination multimedia file State the parameter information of next multimedia file of destination multimedia file;
The cache module, if the parameter information for the destination multimedia file and next multimedia file Parameter information meet preset requirement, then by the data information of the destination multimedia file and next multimedia file Data information be buffered in pre-set buffer space;
First playing module, for obtaining data information successively from the pre-set buffer space, and to the number It is believed that breath is decoded broadcasting.
Other modules or unit can refer to the description in embodiment shown in Fig. 3, and details are not described herein.
The terminal device includes but are not limited to processor 40, memory 41.It will be understood by those skilled in the art that figure 4 be only an example of terminal device 4, does not constitute the restriction to terminal device 4, may include more more or less than illustrating Component, either combine certain components or different components, for example, the terminal device can also include input equipment, it is defeated Go out equipment, network access equipment, bus etc..
The processor 40 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
The memory 41 can be the internal storage unit of the terminal device 4, such as the hard disk of terminal device 4 or interior It deposits.The memory 41 can also be to be equipped on the External memory equipment of the terminal device 4, such as the terminal device 4 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 41 can also both include the storage inside list of the terminal device 4 Member also includes External memory equipment.The memory 41 is for storing needed for the computer program and the terminal device Other programs and data.The memory 41 can be also used for temporarily storing the data that has exported or will export.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed Scope of the present application.
In embodiment provided herein, it should be understood that disclosed terminal device and method can pass through it Its mode is realized.For example, terminal device embodiment described above is only schematical, for example, the module or list Member division, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or Component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point is shown The mutual coupling or direct-coupling or communication connection shown or discussed can be by some interfaces, between device or unit Coupling or communication connection are connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can be stored in a computer read/write memory medium.Based on this understanding, the application realizes above-mentioned implementation All or part of flow in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium May include:Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic of the computer program code can be carried Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium includes can carry out increasing appropriate according to legislation in jurisdiction and the requirement of patent practice Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and Telecommunication signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although with reference to aforementioned reality Example is applied the application is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed Or replace, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all Within the protection domain of the application.

Claims (10)

1. a kind of seamless play method of multimedia file, which is characterized in that including:
When receiving preset instructions, obtain destination multimedia file parameter information and the destination multimedia file it is next The parameter information of a multimedia file;
If the parameter information of the parameter information of the destination multimedia file and next multimedia file meets default want It asks, is then buffered in the data information of the data information of the destination multimedia file and next multimedia file default Cushion space;
It obtains data information successively from the pre-set buffer space, and broadcasting is decoded to the data information.
2. the seamless play method of multimedia file as described in claim 1, which is characterized in that described to receive default finger When enabling, the parameter of the parameter information of destination multimedia file and next multimedia file of the destination multimedia file is obtained Information includes:
When receiving the play instruction of a multimedia file of user's selection, using the multimedia file as destination multimedia File, and obtain the next of destination multimedia file described in the parameter information and playlist of the destination multimedia file The parameter information of multimedia file;
Or, when receiving the play instruction of at least two multimedia files of user's selection, according to the multimedia of user's selection File generated playlist, and using first multimedia file in the playlist as destination multimedia file;
It obtains under destination multimedia file described in the parameter information of the destination multimedia file and the playlist of generation The parameter information of one multimedia file.
3. the seamless play method of multimedia file as described in claim 1, which is characterized in that the parameter information include with It is at least one of lower:The header of multimedia file, suffix, channel number, sample rate, sampling bits digit;
If the parameter information of the parameter information of the destination multimedia file and next multimedia file meets pre- If it is required that then the data information of the data information of the destination multimedia file and next multimedia file is buffered in Pre-set buffer space includes:
If the parameter information of the destination multimedia file and the parameter information of next multimedia file are consistent, obtain The data information of the destination multimedia file is taken, and the data information of the destination multimedia file is sequentially stored into default delay It rushes in the buffering queue in space;
After the data information of destination multimedia file caching, the data letter of next multimedia file is obtained Breath, and the data information of next multimedia file is sequentially stored into the buffering queue.
4. the seamless play method of multimedia file as claimed in claim 3, which is characterized in that by next more matchmakers After the data information caching of body file, further include:
Using next multimedia file as the destination multimedia file, and whether judge the destination multimedia file There are next multimedia files;
If in the presence of the parameter information of the destination multimedia file and next more matchmakers of the destination multimedia file is obtained The parameter information of body file.
5. the seamless play method of multimedia file as claimed in claim 3, which is characterized in that described by the more matchmakers of the target The buffering queue that the data information of body file is sequentially stored into pre-set buffer space includes:
The data information for parsing the destination multimedia file obtains each frame data broadcasting in the destination multimedia file Position is put, and the play position based on each frame data in the destination multimedia file is sequentially stored into pre-set buffer space In buffering queue;
The data information by next multimedia file is sequentially stored into the buffering queue:
The data information for parsing next multimedia file obtains each frame data in next multimedia file Play position, and the play position based on each frame data in next multimedia file is sequentially stored into the buffering In queue.
6. the seamless play method of multimedia file as described in claim 1, which is characterized in that obtaining destination multimedia text After the parameter information of next multimedia file of the parameter information of part and the destination multimedia file, further include:
If the parameter information of the parameter information of the destination multimedia file and next multimedia file does not meet default It is required that the data information of the destination multimedia file then is obtained in the current memory space of the destination multimedia file, And decode broadcasting.
7. the seamless play method of multimedia file as claimed in claim 6, which is characterized in that in destination multimedia text In the current memory space of part, after the destination multimedia file plays, further include:
Using next multimedia file as the destination multimedia file, and obtain the ginseng of the destination multimedia file The parameter information of next multimedia file of number information and the destination multimedia file.
8. a kind of terminal device, which is characterized in that including:
Acquisition module, parameter information and the target for when receiving preset instructions, obtaining destination multimedia file are more The parameter information of next multimedia file of media file;
Cache module, if for the parameter information of the destination multimedia file and the parameter letter of next multimedia file Breath meets preset requirement, then believes the data of the data information of the destination multimedia file and next multimedia file Breath is buffered in pre-set buffer space;
First playing module, for obtaining data information successively from the pre-set buffer space, and to the data information into Row decoding plays.
9. a kind of terminal device, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 7 when executing the computer program The step of any one the method.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence realizes the step such as any one of claim 1 to 7 the method when the computer program is executed by one or more processors Suddenly.
CN201810165901.4A 2018-02-28 2018-02-28 Seamless playing method of multimedia file, terminal equipment and storage medium Expired - Fee Related CN108335706B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810165901.4A CN108335706B (en) 2018-02-28 2018-02-28 Seamless playing method of multimedia file, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810165901.4A CN108335706B (en) 2018-02-28 2018-02-28 Seamless playing method of multimedia file, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108335706A true CN108335706A (en) 2018-07-27
CN108335706B CN108335706B (en) 2021-03-02

Family

ID=62930032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810165901.4A Expired - Fee Related CN108335706B (en) 2018-02-28 2018-02-28 Seamless playing method of multimedia file, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108335706B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157918A (en) * 2021-11-02 2022-03-08 统信软件技术有限公司 Media file playing method and device, computing equipment and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140139687A1 (en) * 2011-06-07 2014-05-22 Huawei Technologies Co., Ltd. Monitoring device and method for monitoring a video session in a data network
CN105657524A (en) * 2016-01-13 2016-06-08 上海视云网络科技有限公司 Seamless video switching method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140139687A1 (en) * 2011-06-07 2014-05-22 Huawei Technologies Co., Ltd. Monitoring device and method for monitoring a video session in a data network
CN105657524A (en) * 2016-01-13 2016-06-08 上海视云网络科技有限公司 Seamless video switching method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157918A (en) * 2021-11-02 2022-03-08 统信软件技术有限公司 Media file playing method and device, computing equipment and readable storage medium
CN114157918B (en) * 2021-11-02 2024-05-14 统信软件技术有限公司 Media file playing method and device, computing equipment and readable storage medium

Also Published As

Publication number Publication date
CN108335706B (en) 2021-03-02

Similar Documents

Publication Publication Date Title
CN101267524B (en) Method for retrieving lost content for a scheduled program and digital video recorder
KR101246936B1 (en) Media timeline sorting
CN104575550B (en) Multimedia file title skipping method and electronic device
US9197908B2 (en) Method for file formation according to freeview AV service
WO2015070761A1 (en) Smart tv media player and caption processing method thereof, and smart tv
CN102118539B (en) Multimedia playing terminal as well as playing method and device for dragging multimedia files
WO2020155964A1 (en) Audio/video switching method and apparatus, and computer device and readable storage medium
CN111510755A (en) Audio and video switching method and device, computer equipment and readable storage medium
CN107801095A (en) A kind of video/audio decoding method and terminal device
CN110418183B (en) Audio and video synchronization method and device, electronic equipment and readable medium
CN109618229A (en) Association playback method, device, server and the storage medium of audio-video
CN105898538A (en) Play method and device and mobile terminal equipment based on Android platform
CN106060627A (en) Audio processing method and device based on multi-way live broadcast
US8988457B2 (en) Multi image-output display mode apparatus and method
US9779093B2 (en) Spatial seeking in media files
CN110381365A (en) Video takes out frame method, device and electronic equipment
CN108335706A (en) A kind of seamless play method, terminal device and the storage medium of multimedia file
CN109495776A (en) The method and intelligent terminal that a kind of audio sends, plays
CN106157988B (en) Play the method and device of multimedia file
KR102278048B1 (en) Image processing apparatus, control method thereof and computer readable medium having computer program recorded therefor
CN105847990A (en) Media file playing method and apparatus
CN110069657A (en) A kind of interactive music order method, device and terminal
CN108012176A (en) A kind of data switching method, device and terminal
CN112911390A (en) Video data playing method and terminal equipment
TW202139043A (en) Method, device, storage medium, and terminal device for generating video cover wherein the timeliness and accuracy of the video cover can be considered in the process of extracting the video cover

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210302

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