A kind of multi-medium play method that is used for mobile communication equipment
Technical field
The present invention relates to be used for the multimedia field of mobile communication equipment terminals, particularly relate to a kind of multi-medium play method that is used for mobile communication equipment.
Background technology
Along with the field of mobile communication development, abundanter: as the Streaming Media compression coding technology to online playing to be arranged, the high definition compression coding technology of playing to local is also arranged based on multimedia technical application.Simultaneously; It is more complicated that media file becomes; The multimedia file of same suffix; The compress technique that adopts has bigger difference, more specifically shows as: one can be by the identification of ordinary playing software, broadcast, and another is using identical media software to open then appearance " can't open " prompting.
Some media play softwares are supported " online updating " function, such as the windows media player of Microsoft, in the time can't opening some media file; Can point out whether whether online query has suitable decoder; If any, after upgrading, just can play such media file.
On personal computer terminal, complete media play software volume is tens of at least million, and the more perfect volume of form support is more more than 100,000,000.Concerning the main flow mobile communication equipment terminals, faint disposal ability is not enough to support so complicated software architecture, and therefore the media play software based on mobile communication equipment terminals generally is the playout software to a certain type of medium.
Science and technology is maked rapid progress; With the mobile phone be typical case's representative various mobile communication equipment terminals hardware performance just with every year number kind speed developing, the multimedia operational capability of the mobile communication equipment terminals that part is high-end is similar with early stage personal computer terminal.According to the development of this speed, also will become abundanter based on the media application of mobile communication equipment terminals, no longer only limit to a few media formats at present.
The deficiency of prior art is:
Media play software based on mobile communication equipment terminals; In order to guarantee installation and operation; Its volume is tens of/one of computer end media play software, and the media play software that in fact a kind of extreme is simplified can only support to play a few common media formats.
And consider from speed and ability that software volume size, hardware store and handles, based on the media play software of mobile communication equipment terminals, almost adopted the form of compression encapsulation bar none.
By top 2 points; We can know that be very poor based on the media play software of mobile communication equipment terminals to the compatibility of media formats: can only support the media file of certain type, and, for media file of the same type; If adopted compress mode than software upgrading; Software also can't correctly be play, and has only the version of the renewal of installing just can deal with problems, and user experience is very unfriendly.
Summary of the invention
The object of the present invention is to provide a kind of multi-medium play method that is used for mobile communication equipment terminals, to solve in the prior art, the multimedia player that is used for mobile communication equipment terminals is only supported the multimedia technical problem of a small amount of type.
The technical scheme that the present invention adopts is following:
A kind of multi-medium play method that is used for mobile communication equipment; This method is by multimedia play system that is installed in mobile communication equipment terminals and the medium back-level server realization that is used to upgrade multimedia play system; Multimedia play system comprises core codec module and playing module; Said core codec module adopts open encapsulation, and upgrades through dynamic link library file.
The core codec module has adopted open encapsulation, and its interactive interface can use a kind of industrywide standard to write, and can support third party's plug-in unit perfectly.Therefore the exploitation of dynamic link library just can obtain the assistance of other companies, and is developing faster.
As a kind of preferred version, the flow process of player method is following:
(21) multimedia play system receives playing request, calls the core codec module and handles;
(22) the core codec module is extracted media information and is sent to the medium back-level server;
(23) the medium back-level server is according to media information, and the pairing dynamic link library file of decoder module that returns these medium of decoding is to mobile communication equipment terminals;
(24) multimedia play system utilizes dynamic link library file to upgrade the core codec module;
(25) multimedia play system calls playing module and plays.
Above-mentioned media information refers to that mainly media file adopts what the sort of coded system, compress mode, decompression mode and/or playback mode etc.
Because the core codec module is to adopt dynamic link library file to upgrade, so multimedia play system can upgrade through network.Simultaneously; Multimedia play system only keeps the media decodes module that the common media data format of several typical cases is supported; When run into can't the decoded media data format situation just point out networking to upgrade the decoding core, therefore original multimedia play system can be kept smaller volume.The user also can network at any time according to user demand and check the renewal decoder module, and therefore, as far as the user, this is a multimedia play system that is fit to user's self-demand.
As further preferred version, the concrete steps of said step (21) are following:
Can multimedia play system calls media data that core codec module check asks to play direct decoding, if can direct decoding, and execution in step (25), otherwise execution in step (22).
As further preferred version, the concrete steps of said step (22) are:
(41) the core codec module is extracted media information and is pointed out the user renewals of networking, if the user selects the networking renewal, and execution in step (23)-(25), otherwise withdraw from.
As further preferred version again, the concrete steps of said step (23) are following:
(51) the medium back-level server is searched corresponding dynamic link library file according to media information;
(52) the medium back-level server finds corresponding dynamic link library file, then notifies mobile communication equipment terminals to upgrade;
(53) mobile communication equipment terminals prompting user renewals of networking, if the user selects the networking renewal, execution in step (24)-(25) then, otherwise withdraw from.
As preferred version further, the concrete steps of said step (51) are following:
(61) the medium back-level server is searched corresponding dynamic link library file according to media information;
(62) if find corresponding dynamic link library file, execution in step (52)-(53) then, otherwise note this media information, and the notice mobile communication equipment terminals withdraws from after providing corresponding prompt.
For there being corresponding dynamic link library file on the medium back-level server, after overwriting, internet searching is perhaps developed by the keeper and is upgraded.
The present invention program has improved multimedia play system that present stage is used for mobile communication equipment terminals to the medium type compatibility, has improved multimedia play system and has upgraded operational processes aspect flow process, for the user provides better experience.
Description of drawings
Fig. 1 is a flow chart of the present invention.
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is carried out further detailed explanation.
As shown in Figure 1, the main flow process that the present technique scheme relates to is following:
1) on the decoding technique basis of personal computer terminal, transplant adaptively to mobile communication equipment terminals, optimize and to be fit to the needed dynamic link library file of various media decodes that mobile communication equipment terminals uses.
Plug-in unit exists with the dynamic link library form, creates the instance of interface class through the derivative function that obtains dynamic link library, and host program just can use the workflow of interface instance completion appointment.Interface class is abstract to a generic operation, the interface class of Video Decoder for example, and the flow process that has can be summarized as:
PDecoderInst->Open (void*pHeaderData, int nHeaderSize) explanation video requency frame data head data: to confirm and initializing decoder;
PDecoderInst->and Decode_frame (void*pEncodedData, int nEncodedDataSize, void*pRawData, int*nRawDataSize): the data behind input encoded data and the interface output decoder;
PDecoderInst->Close (): close decoder.
As long as writing with regard to expanding the more decodings of support according to the unified logic of such video decode, plug-in unit need not revise main program;
2) the core codec module that is used for the multimedia play system of mobile communication equipment terminals adopts open encapsulation: the core codec module can increase the needed dynamic link library file of decoding at any time, makes whole module realize function renewal and the decoding support of satisfying different media data format;
3) core codec module acquiescence keeps the common media data format support to several typical cases, and multimedia play system just can be play several typical cases of portable terminal media data commonly used by direct decoding;
4) set up special medium back-level server, be used to deposit the needed dynamic link libraries file of software decode, and carry out related with the media information type;
5) when the core codec module can't be explained media file, multimedia play system uploaded to the medium back-level server with media information, and being searched according to media information by the medium back-level server does not have corresponding dynamic decoder library file.
If any, provide the prompting of renewal, behind the completion down loading updating, continue playing media;
Otherwise write down corresponding log by the medium back-level server, upgrade by person skilled, after the result of renewal is arranged, the notice mobile communication equipment terminals.