CN104902320B - A kind of playback method and playback equipment of media file - Google Patents

A kind of playback method and playback equipment of media file Download PDF

Info

Publication number
CN104902320B
CN104902320B CN201510267663.4A CN201510267663A CN104902320B CN 104902320 B CN104902320 B CN 104902320B CN 201510267663 A CN201510267663 A CN 201510267663A CN 104902320 B CN104902320 B CN 104902320B
Authority
CN
China
Prior art keywords
field
media file
file
dlna
type
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.)
Active
Application number
CN201510267663.4A
Other languages
Chinese (zh)
Other versions
CN104902320A (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a kind of playback method of media file and playback equipments, it is related to the communications field, it can solve the problem of that media file is likely to occur playback equipment in push and can be compatible with the media file but refuse to play due to that cannot call player.Its method is:Receive media file, media file includes first kind field and Second Type field, and corresponding player is called according to first kind field, when player malloc failure malloc, the keyword in Second Type field is obtained, and according to keyword and preset keyword database update first kind field, wherein, keyword is the field for the file format for characterizing media file, calls corresponding player according to updated first kind field, and play media file.The embodiment of the present invention is for playing DLNA media files.

Description

A kind of playback method and playback equipment of media file
Technical field
The present invention relates to the communications field more particularly to the playback methods and playback equipment of a kind of media file.
Background technology
Digital Life Network Alliance (Digital Living Network Alliance, DLNA) is that one kind aims to solve the problem that Wireless network and cable network including personal computer (Personal Computer, PC), consumer appliances and mobile device It interconnects so that Digital Media and content service can be realized shared, and the various technologies and agreement of selection are currently to be answered With extensive technology and agreement.
With the popularization and application of DLNA technologies, various manufacturers of mainstream media release the client for supporting DLNA push function one after another It holds, agreement control point must carry critical field in the attribute information for being pushed to DLNA playback equipments in DLNA standard agreements “upnp:The broadcasting for the media file that class ", DLNA playback equipment can be played by parsing the critical field needed for determination Device, and then play the media file.
But currently, in the attribute information of these control points push, may due to software developer it is horizontal it is irregular not Together, product organizes certification just to come into the market without DLNA, or due to software bug etc., it sometimes appear that critical field “upnp:The case where class " loses, such DLNA playback equipments can not carry critical field " upnp due to None- identified: The attribute information of class " can not normal play media file so that media file is likely to occur playback equipment in push can The compatible media file, but due to critical field " upnp:Class " is illegal to call player and refuse to play The problem of, user experience is poor.
Invention content
The embodiment of the present invention provides a kind of playback method and playback equipment of media file, can solve media file and push away Playback equipment is likely to occur when sending can be compatible with the media file, but refuse asking for broadcasting due to that cannot call player Topic.
In a first aspect, a kind of playback method of media file is provided, including:
Media file is received, the media file includes first kind field and Second Type field, and according to described the A kind of corresponding player of type-word segment call;
When the player malloc failure malloc, obtain the keyword in Second Type field, and according to the keyword and First kind field described in preset keyword database update, wherein the keyword is the file for characterizing the media file The field of format;
Corresponding player is called according to updated first kind field, and plays the media file.
Second aspect provides a kind of playback equipment, including:
Receiving unit, for receiving media file, the media file includes first kind field and Second Type field;
Broadcast unit, for calling corresponding player according to the first kind field;
Updating unit is used for when the player malloc failure malloc, the keyword in acquisition Second Type field, and according to First kind field described in the keyword and preset keyword database update, wherein the keyword is to characterize the matchmaker The field of the file format of body file;
The broadcast unit is additionally operable to call corresponding player according to updated first kind field, and plays institute State media file.
The embodiment of the present invention provides a kind of playback method and playback equipment of media file, and playback equipment receives media text Part, media file includes first kind field and Second Type field, and calls corresponding player according to first kind field, When player malloc failure malloc, the keyword in Second Type field is obtained, and according to keyword and preset keyword database Update first kind field, wherein keyword is the field for the file format for characterizing media file, according to the updated first kind The corresponding player of type-word segment call, and media file is played, in this way, when player malloc failure malloc, obtain Second Type word The keyword of the file format that can characterize media file in section, and according to keyword and first in preset keyword database The correspondence of type field is counter to release first kind field, and then calls corresponding player plays according to first kind field Media file, compared with the prior art middle media file refusal broadcasting if calling player failure according to first kind field Media file, the application can solve media file and be likely to occur playback equipment in push and can be compatible with the media file, but It is due to that cannot call player and the problem of refuse to play.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be in embodiment or description of the prior art Required attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some realities of the present invention Example is applied, it for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of schematic diagram of the network architecture of DLNA provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of the playback method of media file provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of the playback method of another media file provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of playback equipment provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another playback equipment provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another playback equipment provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
In DLNA, the agreement of generally use is assisted for universal plug and play (Universal Plug and Play, UPnP) View, to realize that the peer-to-peer network that smart machine, wireless device and PC etc. spread all over the world connects.As shown in Figure 1, DLNA The network architecture may include control point, playback equipment and DLNA server.Wherein, control point can be to find and control in network Equipment, be for example, capable of providing mobile phone, the tablet computer etc. of DLNA services;Playback equipment can be the electricity for supporting DLNA operations Brain, mobile phone and smart television etc.;DLNA server is put in order to control provides service with playback equipment, by the media file on control point It is shared, in order to which playback equipment obtains the media file shared on control point and broadcasting from DLNA server.
Using the above-mentioned network architecture, the embodiment of the present invention provides a kind of playback method of media file, as shown in Fig. 2, packet It includes:
201, playback equipment receives media file, and media file includes first kind field and Second Type field, and root Corresponding player is called according to first kind field.
After control point can be used UPnP protocol and be connect with playback equipment by DLNA server, control point can will need Shared media file is sent to DLNA server, so that playback equipment obtains the media file from DLNA server.Wherein should Media file includes the attribute information of media file, such as the file of the title of media file, size, URL and media file The information such as type.The attribute information includes first kind field, for calling corresponding player plays media file.Its In, which is the file namely DLNA files applied to DLNA technologies.
Either software bug may result in certain field errors in attribute information or lose for careless omission when software development It loses, when playback equipment is when receiving the media file, can confirm the first kind field that media file carries:upnp:clas It is whether legal, if legal, call corresponding player;If illegal, player is called to fail.Here legal refers to matchmaker Body file carries the value of first kind field, and the normal value that the value of the first kind field is professional standard.
If first kind field is legal, playback equipment calls player plays media text corresponding with first kind field Part.That is, if playback equipment, which determines, carries first kind field upnp in media file:The value of clas, just to the first kind Type-word section is parsed, such as upnp:The value of clas fields is:Object.item.videoItem indicates control point push It is video file, playback equipment is then called plays the video file for playing the video player of video;Or upnp:Clas words Section value be:Object.item.imageItem, indicate control point push is picture file, and playback equipment is then used for The picture players of playing pictures play the picture file;Or upnp:The value of clas fields is: Object.item.audioItem, indicate controller push is audio file, and playback equipment is then called for playing audio The audio player plays audio file.
202, when player malloc failure malloc, the keyword in Second Type field is obtained, and according to keyword and preset Keyword database updates first kind field, wherein keyword is the field for the file format for characterizing media file.
May not have in media file caused by due to software developer's horizontal problem or software bug or other Carry upnp:The value or upnp of clas fields:The value of clas fields is lack of standardization so that when player malloc failure malloc, playback equipment The keyword in Second Type field can be obtained, and more according to field corresponding with the keyword in preset keyword database New first kind field namely the keyword database include keyword and first kind field in Second Type field Correspondence.Wherein, the keyword in Second Type field is the field for the file format for characterizing media file.Such as here Second Type field is Digital Life Network Alliance DLNA parameters:Protocol Info, protocol Info fields include matchmaker The detailed DLNA parameters of body file;Or uniform resource locator (the Uniform that Second Type field is media file Resource Locator, URL).
Specifically, Second Type field be protocol Info when comprising DLNA parameters can be such as the following table 1 institute Show.
Table 1
http-get/rtsp-get * MIME-TYPE DLNA.ORG_PN
Wherein, http-get/rtsp-get indicates the transmission mode of media file between playback equipment and DLNA server, Http-get is the transmission mode of professional standard, and rtsp-get is optional transmission mode;MIME-TYPE indicates media file Media formats, such as can be video/mp4, image/jpeg etc.;DLNA.ORG_PN indicates that media file is corresponding specific DLNA parameters, such as DLNA.ORG_PN can be MPEG4_P2_MP4_SP_AAC, or JPEG_SM etc..It is therein MIME-TYPE fields and DLNA.ORG_PN fields can characterize the file format of media file.
Alternatively, Second Type field is URL, such as can be:
http://192.168.2.101:58421/cd/getcontent/0/7/9_1.jpg。
During specific implementation, the keyword in above-mentioned acquisition Second Type field, and according to keyword and default key Numerical data base updates the first kind field:Determine whether Second Type field includes keyword, if including, Determine the keyword that whether there is Second Type field in preset keyword database, and if it exists, then according to preset keyword number According to field corresponding with the keyword in Second Type field in library, the first kind field is updated.
If Second Type field is protocol Info, in the first mode in the cards, can be closed by default First kind field and the correspondence of Second Type field in key numerical data base (libraries key) determine first kind field, And the first kind field in step 201 is updated, or before updating first kind field, first determine protocol Info Whether field includes keyword, if including, it is determined that with the presence or absence of protocol Info fields in preset keyword database Keyword, and if it exists, field corresponding with the keyword of protocol Info fields is then determined as first kind field, this Be since although media file includes the value of protocol Info fields, may software bug or it is other due to Lead to the value of protocol Info fields and lack of standardization, if the value specification of protocol Info fields, it is determined that default to close There is field corresponding with the keyword of protocol Info fields in key numerical data base.
If Second Type field is protocol Info, in second of mode in the cards, in protocol In the case that Info fields include keyword, the key of protocol Info fields in preset keyword database can be passed through The correspondence of word and file type determines the key that whether there is protocol Info fields in preset keyword database Word, and if it exists, file type corresponding with the keyword of protocolInfo fields is then determined as to the files classes of media file Type, and there is also the correspondences of file type and first kind field in preset keyword database, then can determine indirectly Go out first kind field corresponding with the keyword of protocol Info fields.
Specifically, with reference to table 1, since protocolInfo fields include MIME-TYPE fields and DLNA.ORG_PN words Section, MIME-TYPE fields can indicate the file format of media file, and it is specific that DLNA.ORG_PN fields carry media file DLNA parameters, the file format of media file can also be included, therefore, MIME-TYPE fields or DLNA.ORG_ can be passed through PN fields infer the first kind field in media file properties information.Therefore, according to the first above-mentioned mode in the cards, If above-mentioned Second Type field is protocolInfo, it whether there is Second Type word in the determining preset keyword database Section keyword may include:It determines in preset keyword database and whether there is and the MIME-TYPE fields in DLNA parameters Or the identical field of DLNA.ORG_PN fields;In the database according to preset keyword with the matchmaker is characterized in DLNA parameters The corresponding field of field of the file format of body file updates the first kind field and may include:According to the default key Field corresponding with the MIME-TYPE fields or the DLNA.ORG_PN fields, updates the first kind in numerical data base Field.
It illustratively, can be according to first kind field and MIME- such as when MIME-TYPE fields are video/mp4 The correspondence of TYPE field determines that field corresponding with video/mp4 fields is:Object.item.videoItem, i.e., with The corresponding first kind field of keyword of Second Type field is:object.item.videoItem;Alternatively, working as It, can be true according to first kind field and the correspondence of DLNA.ORG_PN fields when DLNA.ORG_PN fields are JPEG_SM Determining field corresponding with JPEG_SM fields is:Object.item.imageItem, the i.e. keyword pair with Second Type field The first kind field answered is:object.item.imageItem.
According to above-mentioned second mode in the cards, playback equipment determines that preset keyword database includes above-mentioned energy When enough characterizing the field, the i.e. keyword of Second Type field of file format of media file, then according to preset keyword data The correspondence of the keyword of Second Type field and file type in library, determine in preset keyword database with the presence or absence of with MIME-TYPE fields in Second Type field or the identical field of DLNA.ORG_PN fields, and if it exists, then determine default close There is file type corresponding with MIME-TYPE fields or DLNA.ORG_PN fields in key numerical data base, Second Type field The corresponding file type of keyword is corresponding with MIME-TYPE fields or DLNA.ORG_PN fields in preset keyword database File type can then be determined indirectly and MIME-TYPE further according to the correspondence of file type and first kind field Field or the corresponding first kind field of DLNA.ORG_PN fields.
It illustratively, can be according to MIME-TYPE fields and file such as when MIME-TYPE fields are video/mp4 The correspondence of type determines that file type corresponding with video/mp4 fields is video file namely Second Type field The corresponding file type of keyword is video file, since first kind field and file type are there is also correspondence, It can determine that first kind field is according to the correspondence of this file type of video file and first kind field: object.item.videoItem;Alternatively, when DLNA.ORG_PN fields are JPEG_SM, it can be according to JPEG fields and text The correspondence of part type determines that file type corresponding with JPEG fields is the key of picture file namely Second Type field The corresponding file type of word is picture file, therefore can be according to pair of picture file this file type and first kind field It should be related to that determining first kind field is object.item.imageItem;Again for example when DLNA.ORG_PN fields are MPEG4_ When P2_MP4_SP_AAC, files classes corresponding with MP4 fields can be determined according to the correspondence of MP4 fields and file type Type be video file namely Second Type field the corresponding file type of keyword be video file, therefore can according to regarding The correspondence of this file type of frequency file and first kind field determines that first kind field is: object.item.videoItem。
It, can be according to the keyword in URL i.e. for characterizing media if Second Type field is the URL of media file The field of the file format of file updates first kind field with the correspondence of first kind field.Alternatively, first determining in URL With the presence or absence of the field of the file format for characterizing media file, and if it exists, determine again in preset keyword database whether There are in URL for characterize media file file format field, and if it exists, then according in preset keyword database with The corresponding field update first kind field of field of file format in URL for characterizing media file.
Illustratively, if the URL of media file is:
http://192.168.2.101:For characterizing matchmaker in 58421/cd/getcontent/0/7/9_1.jpg, URL The field of the file format of body file is jpg, also includes jpg fields in database, and jpg fields with Object.item.imageItem is corresponded to, then first kind field is updated to object.item.imageItem.
203, playback equipment calls corresponding player according to updated first kind field, and plays media file.
It is illegal in first kind field in this way so that player malloc failure malloc, to need to push away according to Second Type field , can be after according to Second Type field and the preset keyword database update first kind field when disconnected first kind field, root Corresponding player plays media file is called according to the first kind field in media file after update.Such as media text after update First kind field in part is object.item.videoItem, then video player is called to play media file.
The embodiment of the present invention provides a kind of playback method of media file, receives media file, and media file includes first Type field and Second Type field, and corresponding player is called according to first kind field, when player malloc failure malloc, The keyword in Second Type field is obtained, and according to keyword and preset keyword database update first kind field, In, keyword is the field for the file format for characterizing media file, is broadcast accordingly according to updated first kind field calling Device is put, and plays media file, in this way, when player malloc failure malloc, it can be according to media file in preset keyword database The field of the file format that can characterize media file of middle carrying with the correspondence of first kind field is counter releases the first kind Type-word section, and then corresponding player plays media file is called according to first kind field, compared with the prior art in media File refusal if calling player failure according to first kind field plays media file, and the application can solve media text Part is likely to occur playback equipment in push can be compatible with the media file, but refuse to play due to that cannot call player The problem of.
Since the format of URL is complex, the format of the URL of generation is varied, lacks fixed URL specifications or other Reason, it is understood that there may be the first kind field for calling player cannot be inferred according to URL, such as not including in URL can Characterize the field of the file format of media file so that there is no identical with the field in URL in preset keyword database The probability of field is relatively large, and therefore, the accuracy for the first kind field determined according to DLNA parameters is more true than according to URL The accuracy for the first kind field made is high.It is preferred, therefore, that whether above-mentioned determining Second Type field can including keyword Think:It first determines in DLNA parameters and preset keyword database with the presence or absence of the word of the file format for characterizing media file Section, this is because the reasons such as software developer's horizontal problem or software bug are also possible to cause in DLNA parameters for characterizing If the field of the file format of media file loses either DLNA parameters so lack of standardization In lack of standardization lead to that second class is not present in preset keyword database for the field of the file format that characterizes media file The keyword of type-word section then determines whether to include keyword further according to URL, therefore, as shown in figure 3, further embodiment of this invention A kind of playback method of media file is provided, including:
301, playback equipment receives media file, and determines whether the first kind field of media file is legal, the first kind Type-word section is for calling corresponding player plays media file to play media file if legal;If illegal, execute Step 302.
302, playback equipment determines in DLNA parameters whether include the field for the file format for characterizing media file, if wrapping It includes, thens follow the steps 303;If not including, 305 are thened follow the steps.
303, playback equipment determines in preset keyword database with the presence or absence of the text for characterizing media file in DLNA parameters The field of part format, and if it exists, then follow the steps 304, if being not present, then follow the steps 305.
304, playback equipment is according to the file format with characterization media file in DLNA parameters in preset keyword database The corresponding field of field update first kind field, then execute step 308.
305, playback equipment determine in the URL of media file whether include characterization media file file format field, If including thening follow the steps 306, if not including, thening follow the steps 309.
Since media file can also carry the uniform resource locator of the media file in push in its media file The field for the file format for indicating media file may be carried in URL, the URL, therefore, when DLNA parameters do not include characterization The field of the file format of media file, or the field contents of the file format due to characterizing media file in DLNA parameters are not advised Model is (illegal) so that there is no when the field of the file format of characterization media file, can also lead in DLNA parameters in database The URL for crossing media file is inferred to the content of first kind field.In this way, can look for whether exist from preset database Identical with the field in the URL of media file field determines first kind field.
306, playback equipment determines in preset keyword database with the presence or absence of the file format for characterizing media file in URL Field, and if it exists, then follow the steps 307, if being not present, then follow the steps 309.
Here the field that the file format for characterizing media file in URL is not present in database can be due to generating URL format it is varied, it is understood that there may be do not conform to the field of specification so that in database there is no in URL for characterizing matchmaker The field of the file format of body file.
307, playback equipment is according to the field with the file format for characterizing media file in URL in preset keyword database Corresponding field updates first kind field.
For example, the URL of media file is:
http://192.168.2.101:58421/cd/getcontent/0/7/9_1.jpg, according to it is above-mentioned the first can The mode that can be realized, preserves pair of jpg fields and object.item.imageItem fields in preset keyword database It should be related to, accordingly, it can be determined that there is field jpg identical with the field in the URL of media file in preset keyword database, The corresponding fields of the jpg are object.item.imageItem, it is determined that field corresponding with jpg Object.item.imageItem is first kind field, in order to which playback equipment can be according in updated media file First kind field call the picture player plays picture files.
According to above-mentioned second mode in the cards, jpg fields and file are preserved in preset keyword database Type be picture file correspondence, accordingly, it can be determined that in preset keyword database exist in the URL of media file The identical field jpg of field, the corresponding file type of jpg fields be picture file, this file type of picture file again with First kind field is that there are correspondences by object.item.imageItem, therefore, according to the corresponding files classes of jpg fields Type can determine that first kind field is object.item.imageItem, in order to which playback equipment is according to updated media First kind field in file calls the picture player plays picture file.
308, playback equipment calls corresponding player according to updated first kind field, and plays media file.
309, playback equipment refusal plays media file, and display reminding information is to remind user.
If there is no there is no literary with media in the field of the file format for characterizing media file or database by URL The identical field of field in the URL of part, playback equipment can not be inferred to first kind field, also can not just call and broadcast accordingly It puts device and plays media file, playback equipment is just refused to play the media file, can be shown in the display of playback equipment side Prompting message is to remind user that the media file can not play, naturally it is also possible to notify the control point media by DLNA server File can not play.
Therefore, the embodiment of the present invention can also be attempted when the first kind field of media file calls player failure Infer first kind field by the field of the file format for characterizing media file in the DLNA parameters in media file Content simultaneously updates first kind field, if the field of the file format in DLNA parameters for characterizing media file is also illegal When, the content that first kind field is inferred by the field of the file format for characterizing media file in URL can also be attempted And first kind field is updated, to call corresponding player plays according to the first kind field in media file after update Media file, if media file does not carry first kind field or the parsing of first kind field in compared with the prior art Just refusal plays media file for failure, and the application can solve media file and be likely to occur playback equipment in push and can be compatible with The media file, but the problem of refuse to play due to the failure of first kind field illegal calling player.
Further embodiment of this invention provides a kind of playback equipment 04, as shown in figure 4, including:
Receiving unit 041, for receiving media file;Media file includes first kind field and Second Type field;
Broadcast unit 042, for calling corresponding player according to first kind field;
Updating unit 043 is used for when player malloc failure malloc, the keyword in acquisition Second Type field, and according to Keyword and preset keyword database update first kind field, wherein keyword is the file format for characterizing media file Field;
Broadcast unit 042 is additionally operable to call corresponding player according to updated first kind field, and plays media File.
Optionally, Second Type field is the Digital Life Network Alliance DLNA parameters of media file;Or
Second Type field is the uniform resource position mark URL of media file.
Optionally, as shown in figure 5, updating unit 043 may include:
Determination subelement 0431, for determining whether Second Type field includes keyword;
If including, it is determined that it whether there is the keyword of Second Type field in preset keyword database;
Update subelement 0432, if in the presence of, according in preset keyword database in Second Type field The corresponding field of keyword updates first kind field.
Optionally, determination subelement 0431 can be specifically used for determining in DLNA parameters whether including characterization media file The field of file format;
If including, it is determined that with the presence or absence of the tray for characterizing media file in DLNA parameters in preset keyword database The field of formula;
Update subelement 0432, if can be specifically used in the presence of, according in preset keyword database with DLNA parameters The corresponding field of field of the file format of middle characterization media file updates first kind field;
If determination subelement 0431 can be also used for the word of the file format including characterization media file in DLNA parameters There is no the fields of the file format of characterization media file in DLNA parameters in section or preset keyword database, it is determined that URL In whether include characterization media file file format field;
If including, it is determined that with the presence or absence of the file format of characterization media file in URL in preset keyword database Field;
Update subelement 0432, if can be also used in the presence of, according in preset keyword database with matchmaker is characterized in URL The corresponding field of field of the file format of body file updates first kind field.
Optionally, determination subelement 0431 can be specifically used for:
It determines in preset keyword database and whether there is and the MIME-TYPE fields or DLNA.ORG_ in DLNA parameters The identical field of PN fields;
Update subelement 0432 can be specifically used for:
According to field corresponding with MIME-TYPE fields or DLNA.ORG_PN fields in preset keyword database, update First kind field.
The embodiment of the present invention provides a kind of playback equipment, and playback equipment receives media file, and media file includes the first kind Type-word section and Second Type field, and call corresponding player to be obtained when player malloc failure malloc according to first kind field The keyword in Second Type field is taken, and according to keyword and preset keyword database update first kind field, wherein Keyword is the field for the file format for characterizing media file, and corresponding play is called according to updated first kind field Device, and media file is played, in this way, when player malloc failure malloc, can obtain can characterize media text in Second Type field The keyword of the file format of part, and according to the correspondence of keyword and first kind field in preset keyword database It is anti-to release first kind field, and then corresponding player plays media file is called according to first kind field, compared to existing There is media file refusal if calling player failure according to first kind field in technology to play media file, the application energy Enough solution media file is likely to occur playback equipment in push can be compatible with the media file, but since broadcasting cannot be called Device and refuse play the problem of.
Further embodiment of this invention provides a kind of playback equipment 06, as shown in fig. 6, including:Bus 061 is connected to bus Processor 062, receiver 063 on 061 and memory 064, wherein the memory 064 for storing instruction and data, should Data include the preset keyword database in the embodiment of the present invention, wherein receiver 063 executes the instruction and can be used for receiving Media file, media file include first kind field and Second Type field, and processor 062 executes the instruction and can be used for root Corresponding player is called according to first kind field;Processor 062 executes the instruction and can be used for when player malloc failure malloc, The keyword in Second Type field is obtained, and according to keyword and preset keyword database update first kind field, In, keyword is the field for the file format for characterizing media file;Processor 062 executes the instruction and can be also used for according to update First kind field afterwards calls corresponding player, and plays media file.
In embodiments of the present invention, optionally, Second Type field is the Digital Life Network Alliance DLNA of media file Parameter;Or
Second Type field is the uniform resource position mark URL of media file.
In embodiments of the present invention, optionally, the instruction is executed for obtaining in Second Type field in processor 062 Keyword, and include according to keyword and preset keyword database update first kind field:
Determine whether Second Type field includes keyword;
If including, it is determined that it whether there is the keyword of Second Type field in preset keyword database;
If in the presence of according to field corresponding with the keyword in Second Type field in preset keyword database, more New first kind field.
In embodiments of the present invention, optionally, processor 062 executes the instruction and is used to obtain the pass in Second Type field Key word, and include according to keyword and preset keyword database update first kind field:
It whether determines in DLNA parameters including the field for the file format for characterizing media file;
If including, it is determined that with the presence or absence of the tray for characterizing media file in DLNA parameters in preset keyword database The field of formula;
If in the presence of according to the word with the file format for characterizing media file in DLNA parameters in preset keyword database The corresponding field of section updates first kind field;
If in the field or preset keyword database of the file format including characterization media file in DLNA parameters not Whether there are the fields for the file format that media file is characterized in DLNA parameters, it is determined that include characterization media file in URL The field of file format;
If including, it is determined that with the presence or absence of the file format of characterization media file in URL in preset keyword database Field;
If in the presence of according to the field pair with the file format for characterizing media file in URL in preset keyword database The field update first kind field answered.
In embodiments of the present invention, optionally, processor 062 executes the instruction for determining in preset keyword database Include with the presence or absence of the field of file format for characterizing media file in DLNA parameters:
It determines in preset keyword database and whether there is and the MIME-TYPE fields or DLNA.ORG_ in DLNA parameters The identical field of PN fields;
Processor 062 executes the instruction for characterizing media file with DLNA parameters according in preset keyword database The field corresponding field update first kind field of file format include:
According to field corresponding with MIME-TYPE fields or DLNA.ORG_PN fields in preset keyword database, update First kind field.
The embodiment of the present invention provides a kind of playback equipment, receives media file, media file include first kind field and Second Type field, and corresponding player is called according to first kind field, when player malloc failure malloc, obtain the second class Keyword in type-word section, and according to keyword and preset keyword database update first kind field, wherein keyword is The field for characterizing the file format of media file is called corresponding player according to updated first kind field, and is played Media file can obtain the tray that media file can be characterized in Second Type field in this way, when player malloc failure malloc The keyword of formula, and according to the correspondence anti-release first of keyword and first kind field in preset keyword database Type field, and then corresponding player plays media file is called according to first kind field, compared with the prior art in matchmaker Body file refusal if calling player failure according to first kind field plays media file, and the application can solve media File is likely to occur playback equipment in push can be compatible with the media file, but refuse to broadcast due to that cannot call player The problem of putting.
Skilled person will appreciate that, the technical solution that the present invention is supplied to is not only applicable to DLNA media files It plays, is also applied for the broadcasting of the files in stream media of extended formatting, is stored in the header file of files in stream media for calling The first kind field of corresponding player, and include the file field for recording its play parameter or chained address.It is above-mentioned to include The file field of its play parameter or chained address is recorded, mostly includes the Second Type of the file format of characterization files in stream media Field.Therefore equally the resolved probability of files in stream media can be improved using scheme provided by the invention, keeps Streaming Media literary Part is able to normal play.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only 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 tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be the INDIRECT COUPLING or logical by some interfaces, device or unit Letter connection 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 present invention can be integrated in a processing unit, it can also It is that the independent physics of each unit includes, 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 hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can be stored in one and computer-readable deposit In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the portion of each embodiment the method for the present invention Step by step.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc. are various to store The medium of program code.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, it will be understood by those of ordinary skill in the art that:It still may be used With technical scheme described in the above embodiments is modified or equivalent replacement of some of the technical features; And these modifications or replacements, various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. a kind of playback method of media file, which is characterized in that including:
Media file is received, the media file includes first kind field and Second Type field, and according to the first kind The corresponding player of type-word segment call;
When the player malloc failure malloc, the keyword in Second Type field is obtained, and according to preset keyword database In field corresponding with the keyword in the Second Type field, update the first kind field, wherein the keyword For the field of the file format of the characterization media file;
Corresponding player is called according to updated first kind field, and plays the media file.
2. according to the method described in claim 1, it is characterized in that,
The Second Type field is the Digital Life Network Alliance DLNA parameters of the media file;Or
The Second Type field is the uniform resource position mark URL of the media file.
3. according to the method described in claim 2, it is characterized in that, the keyword obtained in Second Type field, and root According to field corresponding with the keyword in the Second Type field in preset keyword database, the first kind type-word is updated Section include:
Determine whether the Second Type field includes the keyword;
If including, it is determined that it whether there is the keyword of the Second Type field in the preset keyword database;
If in the presence of according to word corresponding with the keyword in the Second Type field in the preset keyword database Section, updates the first kind field.
4. according to the method described in claim 3, it is characterized in that,
The keyword obtained in Second Type field, and according to described in the keyword and preset keyword database update First kind field includes:
The field for whether including the file format for characterizing the media file in the DLNA parameters determined;
If including, it is determined that it whether there is in the DLNA parameters in the preset keyword database and characterize the media file File format field;
If in the presence of, according in the preset keyword database with file that the media file is characterized in the DLNA parameters The corresponding field of field of format updates the first kind field;
If in the DLNA parameters not including the field of the file format of the characterization media file or the default key There is no the fields for the file format that the media file is characterized in the DLNA parameters in numerical data base, it is determined that the URL In whether include the characterization media file file format field;
If including, it is determined that with the presence or absence of the text for characterizing the media file in the URL in the preset keyword database The field of part format;
If in the presence of, according in the preset keyword database with file format that the media file is characterized in the URL The corresponding field of field update the first kind field.
5. according to the method described in claim 4, it is characterized in that, whether being deposited in the determination preset keyword database The field for the file format for characterizing the media file in the DLNA parameters includes:
Determine in the preset keyword database with the presence or absence of in the DLNA parameters MIME-TYPE fields or The identical field of DLNA.ORG_PN fields;
It is described according in the preset keyword database with file format that the media file is characterized in the DLNA parameters The corresponding field of field update the first kind field and include:
According to corresponding with the MIME-TYPE fields or the DLNA.ORG_PN fields in the preset keyword database Field updates the first kind field.
6. a kind of playback equipment, which is characterized in that including:
Receiving unit, for receiving media file, the media file includes first kind field and Second Type field;
Broadcast unit, for calling corresponding player according to the first kind field;
Updating unit, for when the player malloc failure malloc, obtaining the keyword in Second Type field, and according to default Field corresponding with the keyword in the Second Type field, updates the first kind field in keyword database, In, the keyword is the field for the file format for characterizing the media file;
The broadcast unit is additionally operable to call corresponding player according to updated first kind field, and plays the matchmaker Body file.
7. playback equipment according to claim 6, which is characterized in that
The Second Type field is the Digital Life Network Alliance DLNA parameters of the media file;Or
The Second Type field is the uniform resource position mark URL of the media file.
8. playback equipment according to claim 7, which is characterized in that the updating unit includes:
Determination subelement, for determining whether the Second Type field includes the keyword;
If including, it is determined that it whether there is the keyword of the Second Type field in the preset keyword database;
Update subelement, if in the presence of, according in the preset keyword database in the Second Type field The corresponding field of keyword updates the first kind field.
9. playback equipment according to claim 8, which is characterized in that
Determination subelement is specifically used for determining in the DLNA parameters whether including the tray for characterizing the media file The field of formula;
If including, it is determined that it whether there is in the DLNA parameters in the preset keyword database and characterize the media file File format field;
Update subelement, if specifically in the presence of, according in the preset keyword database with table in the DLNA parameters The corresponding field of field for levying the file format of the media file updates the first kind field;
The determination subelement, if it does not include the file format for characterizing the media file to be additionally operable in the DLNA parameters Field or the preset keyword database in there is no the file formats that the media file is characterized in the DLNA parameters Field, it is determined that in the URL whether include the characterization media file file format field;
If including, it is determined that with the presence or absence of the text for characterizing the media file in the URL in the preset keyword database The field of part format;
The update subelement, if be additionally operable in the presence of, according in the preset keyword database with institute is characterized in the URL The corresponding field of field for stating the file format of media file updates the first kind field.
10. playback equipment according to claim 9, which is characterized in that
The determination subelement is specifically used for:
Determine in the preset keyword database with the presence or absence of in the DLNA parameters MIME-TYPE fields or The identical field of DLNA.ORG_PN fields;
The update subelement is specifically used for:
According to corresponding with the MIME-TYPE fields or the DLNA.ORG_PN fields in the preset keyword database Field updates the 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 CN104902320A (en) 2015-09-09
CN104902320B true 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)

Families Citing this family (1)

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

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006127574A (en) * 2004-10-26 2006-05-18 Sony Corp Content using device, content using method, distribution server device, information distribution method and recording medium
US9591361B2 (en) * 2011-09-07 2017-03-07 Qualcomm Incorporated Streaming of multimedia data from multiple sources
CN104394475A (en) * 2014-11-28 2015-03-04 乐视致新电子科技(天津)有限公司 Streaming media file playing method and media player

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Also Published As

Publication number Publication date
CN104902320A (en) 2015-09-09

Similar Documents

Publication Publication Date Title
US9148756B2 (en) Output of content from the internet on a media rendering device
JP5974392B2 (en) System and method for secure asynchronous event notification for adaptive streaming based on ISO base media file format
EP2490404B1 (en) Method and digital media player for mounting a network attached storage device
CN108156152B (en) Method, apparatus, storage medium and the terminal device Streaming Media downloading and played
CN104837057B (en) Video file broadcasting method, device and system
US10554745B2 (en) Method and apparatus for managing connection between broadcasting reception device and another device which are connected through network
CN105430482A (en) Multi-screen interaction method and terminal equipment
CN102612052A (en) Wireless communication device, program, and wireless communication system
EP2647167B1 (en) Recording in a local network
CN104469477B (en) Media resource method for pushing and device
EP2811690B1 (en) Method and apparatus for managing wireless docking network
CN105808299B (en) The control method and system of the automatic carry of external equipment and notice
CN104902320B (en) A kind of playback method and playback equipment of media file
CN104079589B (en) A kind of display methods of plug-in captions, system and digital multimedia renderer
US20130340015A1 (en) Method for accessing multimedia content within a home
EP3160101B1 (en) Multi-media resource management method, cloud server and electronic device
CN103631872B (en) A kind of method for broadcasting multimedia file and electric terminal
CN105100882B (en) The control method and terminal device of a kind of mobile terminal to Intelligent television terminal
CN105095321A (en) Electronic bookmark implementation method and apparatus as well as electronic device
CN108200469A (en) A kind of audio and video projective techniques, device and system
CN107277627A (en) A kind of detecting system of video and audio ability to play
US20080307092A1 (en) Method and apparatus for determining whether content is usable
FR3068852A1 (en) METHOD FOR MANAGING THE RIGHT OF ACCESS TO DIGITAL CONTENT
CN104581365B (en) Method, slave unit, main equipment and the system for controlling multimedia file to push
CN103313093A (en) Method and index system for distributed video on demand

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