CN104902320A - Playing method and playing device for media file - Google Patents

Playing method and playing device for media file Download PDF

Info

Publication number
CN104902320A
CN104902320A CN201510267663.4A CN201510267663A CN104902320A CN 104902320 A CN104902320 A CN 104902320A CN 201510267663 A CN201510267663 A CN 201510267663A CN 104902320 A CN104902320 A CN 104902320A
Authority
CN
China
Prior art keywords
field
media file
dlna
file
preset keyword
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
CN201510267663.4A
Other languages
Chinese (zh)
Other versions
CN104902320B (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201510267663.4A priority Critical patent/CN104902320B/en
Publication of CN104902320A publication Critical patent/CN104902320A/en
Application granted granted Critical
Publication of CN104902320B publication Critical patent/CN104902320B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • H04N21/8586Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL

Abstract

Embodiments of the invention disclose a playing method and a playing device for a media file, relate to the field of communication, and can solve the possible problem that when the media file is pushed, the playing device is compatible with the media file, but the playing device refuses to play because the playing device is unable to call the player. The method comprises the following steps of receiving the media file comprising a first type field and a second type field, calling the corresponding player according to the first type field, when the player calling is failed, obtaining keywords in the second type field, and updating the first type field according to the keywords and a preset keyword database, wherein the keywords are fields which represent a file format of the media file; and calling the corresponding player according to the updated first type field and playing the media file. The embodiments of the invention are used for playing a DLNA (Digital Living Network Alliance) media file.

Description

A kind of player method of media file and playback equipment
Technical field
The present invention relates to the communications field, particularly relate to a kind of player method and playback equipment of media file.
Background technology
DLNA (Digital Living Network Alliance, DLNA) be that one is intended to solve personal computer (Personal Computer, PC), consumer appliances and mobile device interconnecting at interior wireless network and cable network, make Digital Media and content service can realize sharing, its various technology selected and agreement are the widely used technology of current institute and agreement.
Along with the popularization and application of DLNA technology, manufacturer of various mainstream media releases the client supporting DLNA push function one after another, arrange control point in DLNA standard agreement and must carry critical field " upnp:class " in the attribute information being pushed to DLNA playback equipment, DLNA playback equipment by resolving this critical field to determine the player of the required media file play, and then can play this media file.
But, at present, in the attribute information that these control points push, may be uneven due to software developer's level, product organizes certification just to come into the market without DLNA, or due to reasons such as software bug, there is the situation that critical field " upnp:class " is lost sometimes, such DLNA playback equipment can due to None-identified does not carry the attribute information of critical field " upnp:class " cannot normal play media file, media file may be occurred when pushing, and playback equipment can this media file compatible, but due to critical field " upnp:class " illegal thus can not player be called and refuse play problem, Consumer's Experience is poor.
Summary of the invention
The embodiment of the present invention provides a kind of player method and playback equipment of media file, can solve media file and may occur that when pushing playback equipment can this media file compatible, but refuses the problem play owing to not calling player.
First aspect, provides a kind of player method of media file, comprising:
Receiving media file, described media file comprises first kind field and Second Type field, and calls corresponding player according to described first kind field;
When described player malloc failure malloc, obtain the keyword in Second Type field, and according to described keyword and preset keyword database update first kind field, wherein, described keyword is the field of the file format characterizing described media file;
Call corresponding player according to the first kind field after upgrading, and play described media file.
Second aspect, provides a kind of playback equipment, comprising:
Receiving element, for receiving media file, described media file comprises first kind field and Second Type field;
Broadcast unit, for calling corresponding player according to described first kind field;
Updating block, for when described player malloc failure malloc, obtain the keyword in Second Type field, and according to described keyword and preset keyword database update first kind field, wherein, described keyword is the field of the file format characterizing described media file;
Described broadcast unit, also for calling corresponding player according to the first kind field after renewal, and plays described media file.
The embodiment of the present invention provides a kind of player method and playback equipment of media file, playback equipment receiving media file, media file comprises first kind field and Second Type field, and call corresponding player according to first kind field, when player malloc failure malloc, obtain the keyword in Second Type field, and according to keyword and preset keyword database update first kind field, wherein, keyword is the field of the file format of characterizing media file, corresponding player is called according to the first kind field after upgrading, and play media file, like this, when player malloc failure malloc, obtain in Second Type field can the keyword of file format of characterizing media file, and release first kind field according to the corresponding relation of keyword and first kind field is counter in preset keyword database, and then call corresponding player plays media file according to first kind field, if call player failure just refusal broadcasting media file compared to media file in prior art according to first kind field, the application can solve media file may occur that when pushing playback equipment can this media file compatible, but the problem play is refused due to can not player be called.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The schematic diagram of the network architecture of a kind of DLNA that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of the player method of a kind of media file that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet of the player method of the another kind of media file that Fig. 3 provides for the embodiment of the present invention;
The structural representation of a kind of playback equipment that Fig. 4 provides for the embodiment of the present invention;
The structural representation of the another kind of playback equipment that Fig. 5 provides for the embodiment of the present invention;
The structural representation of another playback equipment that Fig. 6 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In DLNA, the agreement usually adopted is UPnP (Universal Plug and Play, UPnP) agreement, is connected with the peer-to-peer network realizing smart machine, wireless device spreads all over the world with PC etc.As shown in Figure 1, the network architecture of DLNA can comprise control point, playback equipment and DLNA server.Wherein, control point can for the equipment found and in net control, such as, mobile phone, panel computer etc. for DLNA can be provided to serve; Playback equipment can for computer, mobile phone and the intelligent television etc. supporting DLNA to operate; DLNA server provides service for control point and playback equipment, is shared by the media file on control point, so that playback equipment obtains the shared media file in control point from DLNA server and plays.
Apply the above-mentioned network architecture, the embodiment of the present invention provides a kind of player method of media file, as shown in Figure 2, comprising:
201, playback equipment receiving media file, media file comprises first kind field and Second Type field, and calls corresponding player according to first kind field.
Control point can adopt UPnP protocol and after being connected with playback equipment by DLNA server, control point just can be sent to DLNA server, so that playback equipment obtains this media file from DLNA server by needing the media file shared.Wherein this media file comprises the attribute information of media file, the title of such as media file, size, URL, and the information such as the file type of media file.This attribute information comprises first kind field, for calling corresponding player plays media file.Wherein, this media file is the file being applied to DLNA technology, is also DLNA file.
Careless omission during software development or software bug may cause some field errors in attribute information or loss, when playback equipment is when receiving this media file, the first kind field that media file carries can be confirmed: whether upnp:clas is legal, if legal, then call corresponding player; If illegal, then call player failure.Here legal refers to the value that media file carries first kind field, and the value of this first kind field is the normal value of industry standard.
If first kind field is legal, then playback equipment calls the player plays media file corresponding to first kind field.Also be, if carry the value of first kind field upnp:clas in playback equipment determination media file, just first kind field is resolved, the value of such as upnp:clas field is: object.item.videoItem, what represent control point propelling movement is video file, and the video player that playback equipment then calls for displaying video plays this video file; Or the value of upnp:clas field is: object.item.imageItem, what represent control point propelling movement is picture file, and the picture players that playback equipment then calls for playing pictures plays this picture file; Or the value of upnp:clas field is: object.item.audioItem, what represent controller propelling movement is audio file, and playback equipment then calls this audio file of audio player plays for audio plays.
202, when player malloc failure malloc, obtain the keyword in Second Type field, and according to keyword and preset keyword database update first kind field, wherein, keyword is the field of the file format of characterizing media file.
When not carrying in the media file that may cause due to software developer's horizontal problem or software bug or other reason that the value of the value of upnp:clas field or upnp:clas field is lack of standardization makes player malloc failure malloc, playback equipment can obtain the keyword in Second Type field, and upgrade first kind field according to field corresponding with this keyword in preset keyword database, also namely this keyword database comprises the corresponding relation of keyword in Second Type field and first kind field.Wherein, the keyword in Second Type field is the field of the file format of characterizing media file.Such as Second Type field is here DLNA DLNA parameter: protocol Info, protocol Info field comprises the detailed DLNA parameter of media file; Or Second Type field is the URL(uniform resource locator) (Uniform Resource Locator, URL) of media file.
Specifically, when Second Type field is protocol Info, the DLNA parameter that it comprises can be as shown in table 1 below.
Table 1
http-get/rtsp-get * MIME-TYPE DLNA.ORG_PN
Wherein, http-get/rtsp-get represents the transmission means of media file between playback equipment and DLNA server, and http-get is the transmission means of industry standard, and rtsp-get is optional transmission means; The media formats of MIME-TYPE presentation medium file can be such as video/mp4, image/jpeg etc.; The concrete DLNA parameter that DLNA.ORG_PN presentation medium file is corresponding, such as DLNA.ORG_PN can be MPEG4_P2_MP4_SP_AAC, also can be JPEG_SM etc.MIME-TYPE field wherein and DLNA.ORG_PN field can both the file formats of characterizing media file.
Or Second Type field is URL, such as, can be:
http://192.168.2.101:58421/cd/getcontent/0/7/9_1.jpg。
In specific implementation process, keyword in above-mentioned acquisition Second Type field, and first kind field can comprise according to keyword and preset keyword database update: determine whether Second Type field comprises keyword, if comprise, then determine the keyword that whether there is Second Type field in preset keyword database, if exist, then according to field corresponding with the keyword in Second Type field in preset keyword database, upgrade described first kind field.
If Second Type field is protocol Info, in the first mode in the cards, first kind field can be determined by the corresponding relation of the first kind field in preset keyword database (key storehouse) and Second Type field, and the first kind field in step of updating 201, or before renewal first kind field, first determine whether protocol Info field comprises keyword, if comprise, then determine the keyword that whether there is protocol Info field in preset keyword database, if exist, then the field corresponding with the keyword of protocol Info field is defined as first kind field, although this is because media file comprises the value of protocol Info field, but the value of protocol Info field may be caused and lack of standardization due to software bug or other reason, if the value specification of protocol Info field, then determine to there is the field corresponding with the keyword of protocol Info field in preset keyword database.
If Second Type field is protocol Info, in the second mode in the cards, when protocol Info field comprises keyword, can by the keyword of protocol Info field and the corresponding relation of file type in preset keyword database, determine the keyword that whether there is protocol Info field in preset keyword database, if exist, then the file type corresponding with the keyword of protocolInfo field is defined as the file type of media file, and in preset keyword database, also there is the corresponding relation of file type and first kind field, then indirectly can determine the first kind field corresponding with the keyword of protocol Info field.
Concrete, with reference to table 1, because protocolInfo field comprises MIME-TYPE field and DLNA.ORG_PN field, MIME-TYPE field can the file format of presentation medium file, DLNA.ORG_PN field carries the concrete DLNA parameter of media file, also can comprise the file format of media file, therefore, the first kind field in media file properties information can be inferred by MIME-TYPE field or DLNA.ORG_PN field.Therefore, according to the first mode in the cards above-mentioned, if above-mentioned Second Type field is protocolInfo, describedly determine that the keyword that whether there is Second Type field in preset keyword database can comprise: determine in preset keyword database, whether to there is the field identical with the MIME-TYPE field in DLNA parameter or DLNA.ORG_PN field; Describedly upgrade described first kind field according to field corresponding with the field characterizing the file format of described media file in DLNA parameter in preset keyword database and can comprise: according in described preset keyword database with described MIME-TYPE field or field corresponding to described DLNA.ORG_PN field, upgrade described first kind field.
Exemplary, such as when MIME-TYPE field is video/mp4, can determine that the field corresponding with video/mp4 field is: object.item.videoItem according to first kind field and the corresponding relation of MIME-TYPE field, namely corresponding with the keyword of Second Type field first kind field is: object.item.videoItem; Or, when DLNA.ORG_PN field is JPEG_SM, can determine that the field corresponding with JPEG_SM field is: object.item.imageItem according to first kind field and the corresponding relation of DLNA.ORG_PN field, namely corresponding with the keyword of Second Type field first kind field is: object.item.imageItem.
According to above-mentioned the second mode in the cards, playback equipment determination preset keyword database comprise above-mentioned can the field of file format of characterizing media file, during the keyword of i.e. Second Type field, then according to the keyword of Second Type field in preset keyword database and the corresponding relation of file type, determine in preset keyword database, whether to there is the field identical with the MIME-TYPE field in Second Type field or DLNA.ORG_PN field, if exist, then determine to there is the file type corresponding with MIME-TYPE field or DLNA.ORG_PN field in preset keyword database, the file type that the keyword of Second Type field is corresponding is file type corresponding with MIME-TYPE field or DLNA.ORG_PN field in preset keyword database, again according to the corresponding relation of file type and first kind field, then indirectly can determine the first kind field corresponding with MIME-TYPE field or DLNA.ORG_PN field.
Exemplary, such as when MIME-TYPE field is video/mp4, can determine that the file type corresponding with video/mp4 field is video file according to MIME-TYPE field and the corresponding relation of file type, also the file type that namely keyword of Second Type field is corresponding is video file, because first kind field and file type also exist corresponding relation, therefore can be according to the corresponding relation determination first kind field of this file type of video file and first kind field: object.item.videoItem; Or, when DLNA.ORG_PN field is JPEG_SM, can determine that the file type corresponding with JPEG field is picture file according to JPEG field and the corresponding relation of file type, also the file type that namely keyword of Second Type field is corresponding is picture file, can be therefore object.item.imageItem according to the corresponding relation determination first kind field of this file type of picture file and first kind field; Again such as when DLNA.ORG_PN field is MPEG4_P2_MP4_SP_AAC, can determine that the file type corresponding with MP4 field is video file according to MP4 field and the corresponding relation of file type, also the file type that namely keyword of Second Type field is corresponding is video file, therefore can be according to the corresponding relation determination first kind field of this file type of video file and first kind field: object.item.videoItem.
If Second Type field is the URL of media file, then namely can upgrade first kind field for the field of the file format of characterizing media file and the corresponding relation of first kind field according to the keyword in URL.Or, first determine the field that whether there is the file format for characterizing media file in URL, if exist, determine the field whether existed in preset keyword database for the file format of characterizing media file in URL again, if exist, then upgrade first kind field according in preset keyword database with URL for the field that the field of the file format of characterizing media file is corresponding.
Exemplary, if the URL of media file is:
Http: // 192.168.2.101:58421/cd/getcontent/0/7/9_1.jpg, be jpg for the field of the file format of characterizing media file in URL, also jpg field is included in database, and jpg field is corresponding with object.item.imageItem, then first kind field is updated to object.item.imageItem.
203, playback equipment calls corresponding player according to the first kind field after renewal, and plays media file.
Make player malloc failure malloc first kind field is illegal like this, thus when needing to infer first kind field according to Second Type field, can after according to Second Type field and preset keyword database update first kind field, call corresponding player plays media file according to the first kind field in media file after upgrading.First kind field such as, after upgrading in media file is object.item.videoItem, then call video player and play media file.
The embodiment of the present invention provides a kind of player method of media file, receiving media file, media file comprises first kind field and Second Type field, and call corresponding player according to first kind field, when player malloc failure malloc, obtain the keyword in Second Type field, and according to keyword and preset keyword database update first kind field, wherein, keyword is the field of the file format of characterizing media file, corresponding player is called according to the first kind field after upgrading, and play media file, like this, when player malloc failure malloc, can can the corresponding relation of the field of file format of characterizing media file and first kind field be counter releases first kind field according to what carry in media file in preset keyword database, and then call corresponding player plays media file according to first kind field, if call player failure just refusal broadcasting media file compared to media file in prior art according to first kind field, the application can solve media file may occur that when pushing playback equipment can this media file compatible, but the problem play is refused due to can not player be called.
Because the form of URL is comparatively complicated, the form of the URL generated is varied, lack fixing URL specification or other reason, may exist can not according to the first kind field of URL deduction for calling player, such as, not comprising in URL can the field of file format of characterizing media file, make the probability that there is not the field identical with the field in URL in preset keyword database relatively large, therefore, the accuracy of the first kind field determined according to DLNA parameter is higher than the accuracy of the first kind field determined according to URL.Therefore, preferably, above-mentionedly determine whether Second Type field comprises keyword and can be: the field first determining whether to exist in DLNA parameter and preset keyword database the file format for characterizing media file, this be due to the reasons such as software developer's horizontal problem or software bug also likely cause in DLNA parameter for the file format of characterizing media file field lose or lack of standardization, if like this DLNA parameter do not comprise or due in DLNA parameter for the field of the file format of the characterizing media file keyword causing not existing in preset keyword database this Second Type field lack of standardization, then determine whether to comprise keyword according to URL again, therefore, as shown in Figure 3, further embodiment of this invention provides a kind of player method of media file, comprise:
301, playback equipment receiving media file, and determine that whether the first kind field of media file is legal, first kind field is used for calling corresponding player plays media file, if legal, then plays media file; If illegal, then perform step 302.
302, the field of the file format whether comprising characterizing media file in DLNA parameter determined by playback equipment, if comprise, then performs step 303; If do not comprise, then perform step 305.
303, whether there is the field of the file format of characterizing media file in DLNA parameter in playback equipment determination preset keyword database, if exist, then perform step 304, if do not exist, then perform step 305.
304, playback equipment upgrades first kind field according to field corresponding with the field of the file format of characterizing media file in DLNA parameter in preset keyword database, then performs step 308.
Whether comprise the field of the file format of characterizing media file in the URL of 305, playback equipment determination media file, if comprise, then perform step 306, if do not comprise, then perform step 309.
Because media file also can carry the uniform resource position mark URL of this media file in its media file when pushing, the field of the file format of presentation medium file may be carried in this URL, therefore, when DLNA parameter does not comprise the field of the file format of characterizing media file, or due to the field contents of the file format of characterizing media file (illegal) lack of standardization in DLNA parameter make the field of the file format that there is not characterizing media file in DLNA parameter in database time, also can be inferred the content of first kind field by the URL of media file.Like this, can find whether there is the field identical with the field in the URL of media file to determine first kind field from the database preset.
306, whether there is the field of the file format of characterizing media file in URL in playback equipment determination preset keyword database, if exist, then perform step 307, if do not exist, then perform step 309.
Here it can be that the form of URL owing to generating is varied that database not to exist in URL for the field of the file format of characterizing media file, the field not conforming to specification may be there is, make the field do not existed in database for the file format of characterizing media file in URL.
307, playback equipment upgrades first kind field according to field corresponding with the field of the file format of characterizing media file in URL in preset keyword database.
For example, the URL of media file is:
Http: // 192.168.2.101:58421/cd/getcontent/0/7/9_1.jpg, according to the first mode in the cards above-mentioned, the corresponding relation of jpg field and object.item.imageItem field is preserved in preset keyword database, therefore, can determine to there is the field jpg identical with the field in the URL of media file in preset keyword database, the field that this jpg is corresponding is object.item.imageItem, then determine that the field object.item.imageItem corresponding with jpg is first kind field, so that playback equipment just can call this picture file of picture player plays according to the first kind field in the media file after renewal.
According to above-mentioned the second mode in the cards, jpg field is preserved and file type is the corresponding relation of picture file in preset keyword database, therefore, can determine to there is the field jpg identical with the field in the URL of media file in preset keyword database, file type corresponding to this jpg field is picture file, this file type of picture file is again that object.item.imageItem exists corresponding relation with first kind field, therefore, the file type corresponding according to jpg field can determine that first kind field is object.item.imageItem, so that playback equipment calls this picture file of picture player plays according to the first kind field in the media file after renewal.
308, playback equipment calls corresponding player according to the first kind field after renewal, and plays media file.
309, playback equipment refusal plays media file, and display reminding information is with reminding user.
If URL does not exist for there is not the field identical with the field in the URL of media file in the field of the file format of characterizing media file or database, playback equipment cannot infer first kind field, also corresponding player plays media file cannot just be called, playback equipment is just refused to play this media file, display alarm information can cannot play with this media file of reminding user in the display of playback equipment side, cannot can certainly be play by this media file of DLNA server notice control point.
Therefore, the embodiment of the present invention is when the first kind field of media file calls player failure, also can attempt by inferring the content of first kind field for the field of the file format of characterizing media file in the DLNA parameter in media file and upgrading first kind field, if time also illegal for the field of the file format of characterizing media file in DLNA parameter, also can attempt by inferring the content of first kind field for the field of the file format of characterizing media file in URL and upgrading first kind field, thus call corresponding player plays media file according to the first kind field upgraded in rear media file, if do not carry first kind field or first kind field compared to media file in prior art to resolve unsuccessfully just refusal and play media file, the application can solve media file may occur that when pushing playback equipment can this media file compatible, but the problem of player failure and refusal broadcasting is called because first kind field is illegal.
Further embodiment of this invention provides a kind of playback equipment 04, as shown in Figure 4, comprising:
Receiving element 041, for receiving media file; Media file comprises first kind field and Second Type field;
Broadcast unit 042, for calling corresponding player according to first kind field;
Updating block 043, for when player malloc failure malloc, obtain the keyword in Second Type field, and according to keyword and preset keyword database update first kind field, wherein, keyword is the field of the file format of characterizing media file;
Broadcast unit 042, also for calling corresponding player according to the first kind field after renewal, and plays media file.
Optionally, Second Type field is the DLNA DLNA parameter of media file; Or
Second Type field is the uniform resource position mark URL of media file.
Optionally, as shown in Figure 5, updating block 043 can comprise:
Determine subelement 0431, for determining whether Second Type field comprises keyword;
If comprise, then determine the keyword that whether there is Second Type field in preset keyword database;
Upgrading subelement 0432, if for existing, then according to field corresponding with the keyword in Second Type field in preset keyword database, upgrading first kind field.
Optionally, determine that subelement 0431 can specifically for determining the field of the file format whether comprising characterizing media file in DLNA parameter;
If comprise, then determine the field of the file format that whether there is characterizing media file in DLNA parameter in preset keyword database;
Upgrade subelement 0432, if specifically for existing, then first kind field can be upgraded according to field corresponding with the field of the file format of characterizing media file in DLNA parameter in preset keyword database;
If determine the field that subelement 0431 can also be used for DLNA parameter and do not comprise the file format of characterizing media file, or in preset keyword database, there is not the field of file format of characterizing media file in DLNA parameter, then determine the field of the file format whether comprising characterizing media file in URL;
If comprise, then determine the field of the file format that whether there is characterizing media file in URL in preset keyword database;
Upgrade subelement 0432, exist if can also be used for, then upgrade first kind field according to field corresponding with the field of the file format of characterizing media file in URL in preset keyword database.
Optionally, determine that subelement 0431 can be specifically for:
Determine in preset keyword database, whether to there is the field identical with the MIME-TYPE field in DLNA parameter or DLNA.ORG_PN field;
Upgrading subelement 0432 can be specifically for:
According to field corresponding with MIME-TYPE field or DLNA.ORG_PN field in preset keyword database, upgrade first kind field.
The embodiment of the present invention provides a kind of playback equipment, playback equipment receiving media file, media file comprises first kind field and Second Type field, and call corresponding player according to first kind field, when player malloc failure malloc, obtain the keyword in Second Type field, and according to keyword and preset keyword database update first kind field, wherein, keyword is the field of the file format of characterizing media file, corresponding player is called according to the first kind field after upgrading, and play media file, like this, when player malloc failure malloc, can obtain in Second Type field can the keyword of file format of characterizing media file, and release first kind field according to the corresponding relation of the keyword in preset keyword database and first kind field is counter, and then call corresponding player plays media file according to first kind field, if call player failure just refusal broadcasting media file compared to media file in prior art according to first kind field, the application can solve media file may occur that when pushing playback equipment can this media file compatible, but the problem play is refused due to can not player be called.
Further embodiment of this invention provides a kind of playback equipment 06, as shown in Figure 6, comprise: bus 061, the processor 062 be connected in bus 061, receiver 063 and memory 064, wherein, this memory 064 is for storing instruction and data, these data comprise the preset keyword database in the embodiment of the present invention, wherein, receiver 063 performs this instruction and may be used for receiving media file, media file comprises first kind field and Second Type field, and processor 062 performs this instruction and may be used for calling corresponding player according to first kind field; Processor 062 performs this instruction and may be used for when player malloc failure malloc, obtain the keyword in Second Type field, and according to keyword and preset keyword database update first kind field, wherein, keyword is the field of the file format of characterizing media file; Processor 062 performs this instruction and can also be used for calling corresponding player according to the first kind field after upgrading, and plays media file.
In embodiments of the present invention, optionally, Second Type field is the DLNA DLNA parameter of media file; Or
Second Type field is the uniform resource position mark URL of media file.
In embodiments of the present invention, optionally, perform this instruction for obtaining the keyword in Second Type field at processor 062, and comprise according to keyword and preset keyword database update first kind field:
Determine whether Second Type field comprises keyword;
If comprise, then determine the keyword that whether there is Second Type field in preset keyword database;
If exist, then according to field corresponding with the keyword in Second Type field in preset keyword database, upgrade first kind field.
In embodiments of the present invention, optionally, processor 062 performs this instruction for obtaining the keyword in Second Type field, and comprises according to keyword and preset keyword database update first kind field:
Determine the field of the file format whether comprising characterizing media file in DLNA parameter;
If comprise, then determine the field of the file format that whether there is characterizing media file in DLNA parameter in preset keyword database;
If exist, then upgrade first kind field according to field corresponding with the field of the file format of characterizing media file in DLNA parameter in preset keyword database;
If DLNA parameter does not comprise the field of the file format of characterizing media file, or in preset keyword database, there is not the field of file format of characterizing media file in DLNA parameter, then determine the field of the file format whether comprising characterizing media file in URL;
If comprise, then determine the field of the file format that whether there is characterizing media file in URL in preset keyword database;
If exist, then upgrade first kind field according to field corresponding with the field of the file format of characterizing media file in URL in preset keyword database.
In embodiments of the present invention, optionally, processor 062 performs this instruction for determining that the field of the file format that whether there is characterizing media file in DLNA parameter in preset keyword database comprises:
Determine in preset keyword database, whether to there is the field identical with the MIME-TYPE field in DLNA parameter or DLNA.ORG_PN field;
Processor 062 performs this instruction and comprises for upgrading first kind field according to field corresponding with the field of the file format of characterizing media file in DLNA parameter in preset keyword database:
According to field corresponding with MIME-TYPE field or DLNA.ORG_PN field in preset keyword database, upgrade first kind field.
The embodiment of the present invention provides a kind of playback equipment, receiving media file, media file comprises first kind field and Second Type field, and call corresponding player according to first kind field, when player malloc failure malloc, obtain the keyword in Second Type field, and according to keyword and preset keyword database update first kind field, wherein, keyword is the field of the file format of characterizing media file, corresponding player is called according to the first kind field after upgrading, and play media file, like this, when player malloc failure malloc, can obtain in Second Type field can the keyword of file format of characterizing media file, and release first kind field according to the corresponding relation of the keyword in preset keyword database and first kind field is counter, and then call corresponding player plays media file according to first kind field, if call player failure just refusal broadcasting media file compared to media file in prior art according to first kind field, the application can solve media file may occur that when pushing playback equipment can this media file compatible, but the problem play is refused due to can not player be called.
Those skilled in the art are known, the invention provides to technical scheme be not only applicable to the broadcasting of DLNA media file, also the broadcasting of the files in stream media of extended formatting is applicable to, all store the first kind field for calling corresponding player in the header file of files in stream media, and comprise the file field recording its play parameter or chained address.The above-mentioned file field comprising its play parameter of record or chained address, mostly comprises the Second Type field of the file format characterizing files in stream media.Therefore scheme provided by the invention can be utilized equally to improve the resolved probability of files in stream media, make files in stream media be able to normal play.
In several embodiments that the application provides, should be understood that disclosed equipment and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit comprises, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form that hardware also can be adopted to add SFU software functional unit realizes.
The above-mentioned integrated unit realized with the form of SFU software functional unit, can be stored in a computer read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the part steps of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (Read-Only Memory, be called for short ROM), random access memory (Random Access Memory, be called for short RAM), magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a player method for media file, is characterized in that, comprising:
Receiving media file, described media file comprises first kind field and Second Type field, and calls corresponding player according to described first kind field;
When described player malloc failure malloc, obtain the keyword in Second Type field, and according to described keyword and preset keyword database update first kind field, wherein, described keyword is the field of the file format characterizing described media file;
Call corresponding player according to the first kind field after upgrading, and play described media file.
2. method according to claim 1, is characterized in that,
Described Second Type field is the DLNA DLNA parameter of described media file; Or
Described Second Type field is the uniform resource position mark URL of described media file.
3. method according to claim 2, is characterized in that, the keyword in described acquisition Second Type field, and first kind field comprises according to described keyword and preset keyword database update:
Determine whether described Second Type field comprises described keyword;
If comprise, then determine the keyword that whether there is described Second Type field in described preset keyword database;
If exist, then according to field corresponding with the keyword in described Second Type field in described preset keyword database, upgrade described first kind field.
4. method according to claim 3, is characterized in that,
Keyword in described acquisition Second Type field, and first kind field comprises according to described keyword and preset keyword database update:
Determine the field of the file format whether comprising the described media file of described sign in described DLNA parameter;
If comprise, then determine in described preset keyword database, whether to there is the field characterizing the file format of described media file in described DLNA parameter;
If exist, then upgrade described first kind field according to field corresponding with the field characterizing the file format of described media file in described DLNA parameter in described preset keyword database;
If described DLNA parameter does not comprise the field of the file format of the described media file of described sign, or in described preset keyword database, there is not the field characterizing the file format of described media file in described DLNA parameter, then determine the field of the file format whether comprising the described media file of described sign in described URL;
If comprise, then determine the field that whether there is the file format characterizing described media file in described URL in described preset keyword database;
If exist, then upgrade described first kind field according to field corresponding with the field characterizing the file format of described media file in described URL in described preset keyword database.
5. method according to claim 4, is characterized in that, describedly determines that whether there is the field characterizing the file format of described media file in described DLNA parameter in described preset keyword database comprises:
Determine in described preset keyword database, whether to there is the field identical with the MIME-TYPE field in described DLNA parameter or DLNA.ORG_PN field;
Describedly upgrade described first kind field according to field corresponding with the field characterizing the file format of described media file in described DLNA parameter in described preset keyword database and comprise:
According to field corresponding with described MIME-TYPE field or described DLNA.ORG_PN field in described preset keyword database, upgrade described first kind field.
6. a playback equipment, is characterized in that, comprising:
Receiving element, for receiving media file, described media file comprises first kind field and Second Type field;
Broadcast unit, for calling corresponding player according to described first kind field;
Updating block, for when described player malloc failure malloc, obtain the keyword in Second Type field, and according to described keyword and preset keyword database update first kind field, wherein, described keyword is the field of the file format characterizing described media file;
Described broadcast unit, also for calling corresponding player according to the first kind field after renewal, and plays described media file.
7. playback equipment according to claim 6, is characterized in that,
Described Second Type field is the DLNA DLNA parameter of described media file; Or
Described Second Type field is the uniform resource position mark URL of described media file.
8. playback equipment according to claim 7, is characterized in that, described updating block comprises:
Determine subelement, for determining whether described Second Type field comprises described keyword;
If comprise, then determine the keyword that whether there is described Second Type field in described preset keyword database;
Upgrade subelement, if for existing, then according to field corresponding with the keyword in described Second Type field in described preset keyword database, upgrade described first kind field.
9. playback equipment according to claim 8, is characterized in that,
Determine subelement, specifically for determining the field of the file format whether comprising the described media file of described sign in described DLNA parameter;
If comprise, then determine in described preset keyword database, whether to there is the field characterizing the file format of described media file in described DLNA parameter;
Upgrade subelement, if specifically for existing, then upgrade described first kind field according to field corresponding with the field characterizing the file format of described media file in described DLNA parameter in described preset keyword database;
Describedly determine subelement, if also do not comprise the field of the file format of the described media file of described sign for described DLNA parameter, or in described preset keyword database, there is not the field characterizing the file format of described media file in described DLNA parameter, then determine the field of the file format whether comprising the described media file of described sign in described URL;
If comprise, then determine the field that whether there is the file format characterizing described media file in described URL in described preset keyword database;
Described renewal subelement, if also for existing, then upgrade described first kind field according to field corresponding with the field characterizing the file format of described media file in described URL in described preset keyword database.
10. playback equipment according to claim 9, is characterized in that,
Described determine subelement specifically for:
Determine in described preset keyword database, whether to there is the field identical with the MIME-TYPE field in described DLNA parameter or DLNA.ORG_PN field;
Described renewal subelement specifically for:
According to field corresponding with described MIME-TYPE field or described DLNA.ORG_PN field in described preset keyword database, upgrade described first kind field.
CN201510267663.4A 2015-05-22 2015-05-22 A kind of playback method and playback equipment of media file Active CN104902320B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510267663.4A CN104902320B (en) 2015-05-22 2015-05-22 A kind of playback method and playback equipment of media file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510267663.4A CN104902320B (en) 2015-05-22 2015-05-22 A kind of playback method and playback equipment of media file

Publications (2)

Publication Number Publication Date
CN104902320A true CN104902320A (en) 2015-09-09
CN104902320B CN104902320B (en) 2018-07-13

Family

ID=54034671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510267663.4A Active CN104902320B (en) 2015-05-22 2015-05-22 A kind of playback method and playback equipment of media file

Country Status (1)

Country Link
CN (1) CN104902320B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965927A (en) * 2018-07-25 2018-12-07 广州市迪士普音响科技有限公司 A kind of broadcast controlling method and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060087925A1 (en) * 2004-10-26 2006-04-27 Sony Corporation Content using apparatus, content using method, distribution server apparatus, infomation distribution method, and recording medium
CN102263782A (en) * 2010-05-28 2011-11-30 索尼公司 Information processing device, information processing method, and information processing system
CN102790764A (en) * 2012-06-25 2012-11-21 林征 Media projection playing method and system
US20130060911A1 (en) * 2011-09-07 2013-03-07 Thadi M. Nagaraj Streaming of multimedia data from multiple sources
CN103002323A (en) * 2012-11-27 2013-03-27 中兴通讯股份有限公司 Method and terminal for sharing programs in interactive network television system
CN103051957A (en) * 2012-12-17 2013-04-17 北京歌华有线电视网络股份有限公司 Method and system for configuring DLNA (Digital Living Network Alliance) program catalog data in digital television set-top box
CN103327392A (en) * 2013-06-03 2013-09-25 贝壳网际(北京)安全技术有限公司 Video playing processing method and system
CN104394475A (en) * 2014-11-28 2015-03-04 乐视致新电子科技(天津)有限公司 Streaming media file playing method and media player
CN104469414A (en) * 2013-09-22 2015-03-25 中兴通讯股份有限公司 Information system, information put-in method and IPTV system based on multi-screen interaction

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060087925A1 (en) * 2004-10-26 2006-04-27 Sony Corporation Content using apparatus, content using method, distribution server apparatus, infomation distribution method, and recording medium
CN102263782A (en) * 2010-05-28 2011-11-30 索尼公司 Information processing device, information processing method, and information processing system
US20130060911A1 (en) * 2011-09-07 2013-03-07 Thadi M. Nagaraj Streaming of multimedia data from multiple sources
CN102790764A (en) * 2012-06-25 2012-11-21 林征 Media projection playing method and system
CN103002323A (en) * 2012-11-27 2013-03-27 中兴通讯股份有限公司 Method and terminal for sharing programs in interactive network television system
CN103051957A (en) * 2012-12-17 2013-04-17 北京歌华有线电视网络股份有限公司 Method and system for configuring DLNA (Digital Living Network Alliance) program catalog data in digital television set-top box
CN103327392A (en) * 2013-06-03 2013-09-25 贝壳网际(北京)安全技术有限公司 Video playing processing method and system
CN104469414A (en) * 2013-09-22 2015-03-25 中兴通讯股份有限公司 Information system, information put-in method and IPTV system based on multi-screen interaction
CN104394475A (en) * 2014-11-28 2015-03-04 乐视致新电子科技(天津)有限公司 Streaming media file playing method and media player

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965927A (en) * 2018-07-25 2018-12-07 广州市迪士普音响科技有限公司 A kind of broadcast controlling method and system
CN108965927B (en) * 2018-07-25 2021-05-04 广州市迪士普音响科技有限公司 Broadcast control method and system

Also Published As

Publication number Publication date
CN104902320B (en) 2018-07-13

Similar Documents

Publication Publication Date Title
US8417802B2 (en) System and method for configuring a client electronic device
CN104363483A (en) Advertisement pushing method and device based on video picture
WO2015180688A1 (en) Media processing method and device
CN102724334A (en) Notification and acquisition method, device and system for address information change in digital living network alliance (DLNA)
WO2012094432A1 (en) System and method for interfacing content playback devices with network sites to supplement content playback
US7953822B2 (en) Method of and apparatus for downloading data
EP3042500B1 (en) Metadata-based file-identification systems and methods
US20080250504A1 (en) Digital rights management method and apparatus
CN112584200A (en) Screen projection method and system, electronic equipment and storage medium
CN104639973A (en) Information pushing method and device
CN112565877A (en) Screen projection method and system, electronic equipment and storage medium
CN104902320A (en) Playing method and playing device for media file
US20100088732A1 (en) Method and apparatus for using service based on objects for implementing different functions of service
EP2787739A1 (en) Media storage and management system
CN106302617B (en) Data processing method and device applied to computing device
CN103686013A (en) Television peripheral recognizing method, television and television system
CN105095321A (en) Electronic bookmark implementation method and apparatus as well as electronic device
CN104468652A (en) A method for data synchronization and digital media server
US10409773B2 (en) Method and device for cleaning up terminal resource and terminal
CN114942812B (en) Multimedia information sharing method and device and electronic equipment
CN104346338A (en) Multimedia information display method and device for terminal
CN107135409A (en) A kind of detection method of video and audio ability to play
CN104506508B (en) A kind of the file information synchronous method and relevant device
CN104767779A (en) Information processing method and electronic device
CN116419014A (en) Program updating method, device and system and electronic equipment

Legal Events

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