CN105791964A - Cross-platform media file playing method and system - Google Patents

Cross-platform media file playing method and system Download PDF

Info

Publication number
CN105791964A
CN105791964A CN201610141471.3A CN201610141471A CN105791964A CN 105791964 A CN105791964 A CN 105791964A CN 201610141471 A CN201610141471 A CN 201610141471A CN 105791964 A CN105791964 A CN 105791964A
Authority
CN
China
Prior art keywords
file
type
application
destination
receiving terminal
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
CN201610141471.3A
Other languages
Chinese (zh)
Other versions
CN105791964B (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.)
Culture Media (shanghai) Co Ltd
Original Assignee
Culture Media (shanghai) 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 Culture Media (shanghai) Co Ltd filed Critical Culture Media (shanghai) Co Ltd
Priority to CN201610141471.3A priority Critical patent/CN105791964B/en
Publication of CN105791964A publication Critical patent/CN105791964A/en
Application granted granted Critical
Publication of CN105791964B publication Critical patent/CN105791964B/en
Expired - Fee Related 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/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/43615Interfacing a Home Network, e.g. for connecting the client to a plurality of peripherals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
    • 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Abstract

The invention provides a cross-platform media file playing method and system. The method comprises: step one, a receiving terminal obtains a network identifier of a mobile terminal and establishes connection with the mobile terminal; step two, the receiving terminal opens a corresponding transmission channel based on the connection and monitors a target file sent by the mobile terminal in real time; step three, when the receiving terminal monitors the target file sending by the mobile terminal, a file type of the target file is analyzed in real time; and step four, a corresponding target application is determined based on the file type of the target file and the target file is played by using the target application. According to the invention, the corresponding target application is determined based on the file type of the target file; and target file is played according to the target application, so that the receiving terminal can play the file in independence of the mobile terminal at an installed software platform. Therefore, secondary software installation and connection communication at the receiving terminal can be avoided.

Description

Cross-platform media file playing method and system
Technical field
The present invention relates to the cross-platform transmission of file, in particular it relates to a kind of cross-platform media file playing method and system.
Background technology
Along with making constant progress of Internet technology, smart electronics product is also more and more universal popular.Mobile Internet is increasingly becoming main flow, the demand of client is also in continuous diversification, along with carrying out in a deep going way of technology development and business, intelligent television business provides business service from simple for Set Top Box, expands to and provides business service into multiple terminals such as mobile phone, PC PC, handheld terminals.Multiple-screen integration business model has become the Main way of intelligent television development.
When smart machine is in LAN, the multimedia resource being shared in LAN can be pushed to the television in LAN and play by mobile phone or pad mutually, and multimedia resource includes audio frequency, video and picture;When smart machine is in wide area network, network multimedia file can be sent to intelligent television end and play by mobile phone or pad.The intelligent television of each famous brand in the market, substantially all supports multi-screen interactive technology, and application also will be more and more wider.
In the multi-screen interactive of TV domain, it is often based upon same TV platform at present to communicate, so generally require and mobile phone and the TV of user are each connected with the server of software platform respectively, then by mobile phone transmission instruction and data to server, server is by data distributing to TV, thus media file is played out, cause message transmitting procedure excessively complicated.Especially, if the media file of mobile phone terminal is after being issued to TV, find that the software platform installed does not support the broadcast format of this media file, then user also needs operation TV, open another kind of playing platform, again playing this media file in mobile phone terminal operation again, process is sufficiently complex, reduces the efficiency of information transmission.
Summary of the invention
For defect of the prior art, it is an object of the invention to provide a kind of cross-platform media file playing method and system.
According to the cross-platform media file playing method that one aspect of the invention provides, comprise the steps:
Step S1: receiving terminal obtains the network identity of mobile terminal, sets up with described mobile terminal and is connected;
Step S2: described receiving terminal opens corresponding transmission channel according to described connection, and monitors the file destination that mobile terminal sends in real time;
Step S3: when described receiving terminal listen to described mobile terminal have sent described file destination time, analyze in real time the file type of described file destination;
Step S4: determine the intended application of correspondence according to the file type of described file destination, and play described file destination by described intended application.
Preferably, comprise the steps: when the file type that the described file destination of analysis in real time is corresponding
Step A1: the file format of the temporary file of file destination correspondence buffer memory described in extract real-time;
Step A2: mate in file model according to described file format, obtains the file type of correspondence.
Preferably, comprise the steps: when mating in file model according to described file format
Step B1: described file format is carried out character cutting and generates cutting fragment;
Step B2: the cutting fragment according to obtaining is mated in file model, chooses target fragment as described file type according to matching probability.
Preferably, comprise the steps: when determining the intended application of correspondence according to the file type of described file destination
Step C1: call the list of application of the multiple application composition mated in described receiving terminal with described file type;
Step C2: determine described intended application according to multiple application marking and queuing on a third party site.
Preferably, described mobile terminal comprises the steps: when have sent described file destination to described receiving terminal
Step D1: file destination is carried out cutting and generates fileinfo file and file content file;
Step D2: described fileinfo file and described file content file order according to priority are sent to described receiving terminal;Wherein, the priority of described fileinfo file is higher than the priority of described file content file.
Preferably, when described file destination is audio file, described fileinfo file includes any one in file name, file format, duration, file size, bit rate or code check or appoints multiple;
When described file destination is video file, described fileinfo file includes any one in file name, file format, duration, file size, resolution or frame speed or appoints multiple.
Preferably, receiving terminal determines the intended application of correspondence according to the file type of described file destination, particularly as follows:
Inquire about, in the corresponding table of file type application, the intended application that described file type is corresponding according to described file type;
The corresponding table of described file type application is application and the corresponding file type supported are extracted, the set tableau format that storage is formed;
Or knowledge base beyond the clouds is inquired about candidate's application that described file type is corresponding, and in conjunction with each application mounted in receiving terminal, candidate's application is screened, obtain final intended application.
Preferably, in the corresponding table of described file type application, each application is to there being access times;
When the corresponding multiple intended application of described file type, the maximum application of prioritizing selection access times is as intended application.
Preferably, also comprise the steps:
When receiving terminal obtains the network identity of mobile terminal, when being connected with the foundation of described mobile terminal, described receiving terminal is inquired about the formerly transmission of described mobile terminal and is play record;
Record is play according to described first transmission, if the individual application that inquiry access times are stood out, and if described individual application being opened successively by access times.
Preferably, when receiving terminal receives described fileinfo file, according to duration information, it is determined that file type, and then intended application is determined;
Grew up at that time in time setting time threshold, then tentatively judge that the type of file destination is video file, and then determine intended application;When duration is less than when setting time threshold, then tentatively judges that the type of file destination is audio file, and then determine intended application;When duration is zero, then tentatively judge that the type of file destination is picture file, and then determine intended application.
The cross-platform media file-playing system provided according to a further aspect of the present invention, including receiving terminal and mobile terminal;
Described receiving terminal, for obtaining the network identity of mobile terminal, is set up with described mobile terminal and is connected;
Described receiving terminal is for opening corresponding transmission channel according to described connection, and monitors the file destination that mobile terminal sends in real time;
When described receiving terminal listen to described mobile terminal have sent described file destination time, analyze in real time the file type of described file destination;
Described receiving terminal determines the intended application of correspondence according to the file type of described file destination, and plays described file destination by described intended application.
Preferably, realized by such as lower module when the file type that the described file destination of analysis in real time is corresponding:
Temporary file form extraction module, the file format of the temporary file of file destination correspondence buffer memory described in extract real-time;
First file format matching module, for mating in file model according to described file format, obtains the file type of correspondence.
Preferably, realized by such as lower module when mating in file model according to described file format:
Character cutting module, generates cutting fragment for described file format carries out character cutting;
Second file format matching module, for mating in file model according to the cutting fragment obtained, chooses target fragment as described file type according to matching probability.
Preferably, realized by such as lower module when determining the intended application of correspondence according to the file type of described file destination:
List of application calling module, for calling the list of application of the multiple application composition mated in described receiving terminal with described file type;
Intended application determines module, for determining described intended application according to multiple application marking and queuing on a third party site.
Preferably, described mobile terminal includes when have sent described file destination to described receiving terminal being realized by such as lower module:
File destination cutting module, generates fileinfo file and file content file for file destination carries out cutting;
File destination sending module, for sending described fileinfo file and described file content file order according to priority to described receiving terminal;Wherein, the priority of described fileinfo file is higher than the priority of described file content file.
Preferably, when described file destination is audio file, described fileinfo file includes any one in file name, file format, duration, file size, bit rate or code check or appoints multiple;
When described file destination is video file, described fileinfo file includes any one in file name, file format, duration, file size, resolution or frame speed or appoints multiple.
Preferably, receiving terminal determines the intended application of correspondence according to the file type of described file destination, particularly as follows:
Inquire about, in the corresponding table of file type application, the intended application that described file type is corresponding according to described file type;
The corresponding table of described file type application is application and the corresponding file type supported are extracted, the set tableau format that storage is formed;
Or knowledge base beyond the clouds is inquired about candidate's application that described file type is corresponding, and in conjunction with each application mounted in receiving terminal, candidate's application is screened, obtain final intended application.
Preferably, in the corresponding table of described file type application, each application is to there being access times;
When the corresponding multiple intended application of described file type, the maximum application of prioritizing selection access times is as intended application.
Preferably, also include:
When receiving terminal obtains the network identity of mobile terminal, when being connected with the foundation of described mobile terminal, described receiving terminal is inquired about the formerly transmission of described mobile terminal and is play record;
Record is play according to described first transmission, if the individual application that inquiry access times are stood out, and if described individual application being opened successively by access times.
Preferably, when receiving terminal receives described fileinfo file, according to duration information, it is determined that file type, and then intended application is determined;
Grew up at that time in time setting time threshold, then tentatively judge that the type of file destination is video file, and then determine intended application;When duration is less than when setting time threshold, then tentatively judges that the type of file destination is audio file, and then determine intended application;When duration is zero, then tentatively judge that the type of file destination is picture file, and then determine intended application.
Compared with prior art, the present invention has following beneficial effect:
1, the present invention determines the intended application of correspondence according to the file type of described file destination, and play file destination according to intended application, receiving terminal is made to carry out file broadcasting with regard to mounted software platform independent of mobile terminal, avoid the secondary software installation carried out at receiving terminal to communicate with connecting, at file destination once do not supported by certain software platform, another kind of software platform can be automatically switched to file destination is played out, improve the efficiency of information transmission;
2, the present invention monitors the file destination of transmission in real time at receiving terminal, and analyze the file type of correspondence in real time, thus immediately calling the intended application of receiving terminal this locality coupling, it is to avoid file destination whole end of transmission just plays out, decrease response time, accelerate the broadcasting speed of file destination.
Accompanying drawing explanation
By reading detailed description non-limiting example made with reference to the following drawings, the other features, objects and advantages of the present invention will become more apparent upon:
Fig. 1 is the flow chart of steps of media file playing method cross-platform in the present invention;
Fig. 2 is the structural representation of media file-playing system cross-platform in the present invention.
Detailed description of the invention
Below in conjunction with specific embodiment, the present invention is described in detail.Following example will assist in those skilled in the art and are further appreciated by the present invention, but do not limit the present invention in any form.It should be pointed out that, to those skilled in the art, without departing from the inventive concept of the premise, it is also possible to make some deformation and improvement.These broadly fall into protection scope of the present invention.
In the multi-screen interactive of TV domain, it is often based upon same TV platform at present to communicate, so generally require and mobile phone and the TV of user are each connected with the server of software platform respectively, then by mobile phone transmission instruction and data to server, server is by data distributing to TV, thus media file is played out, cause message transmitting procedure excessively complicated.Especially, if the media file of mobile phone terminal is after being issued to TV, find that the software platform installed does not support the broadcast format of this media file, then user also needs operation TV, open another kind of playing platform, again playing this media file in mobile phone terminal operation again, process is sufficiently complex, reduces the efficiency of information transmission.
A kind of cross-platform document play-back method provided by the invention, file type according to described file destination determines the intended application of correspondence, and play file destination according to intended application, receiving terminal is made to carry out file broadcasting with regard to mounted software platform independent of mobile terminal, avoid the secondary software installation carried out at receiving terminal to communicate with connecting, at file destination once do not supported by certain software platform, another kind of software platform can be automatically switched to file destination is played out, improve the efficiency of information transmission.
In the present embodiment, according to cross-platform media file playing method provided by the invention, comprise the steps:
Step S1: receiving terminal obtains the network identity of mobile terminal, sets up with described mobile terminal and is connected;
Specifically, receiving terminal obtain network ip address, and receiving terminal multi-screen interactive display surface generate bind Quick Response Code alternately;Described mutual binding Quick Response Code is scanned in mobile terminal, thus setting up point-to-point connection with described receiving terminal.
Step S2: described receiving terminal opens corresponding transmission channel according to described connection, and monitors the file destination that mobile terminal sends in real time;
Step S3: when described receiving terminal listen to described mobile terminal have sent described file destination time, analyze in real time the file type of described file destination;
Step S4: determine the intended application of correspondence according to the file type of described file destination, and play described file destination by described intended application.
In the present embodiment, described mobile terminal is notebook computer, smart mobile phone and panel computer;Described receiving terminal is the intelligent television being arranged in hotel room.Described transmission channel is selected from LAN, WLAN, mobile Internet, bluetooth or infrared.The screen of the mobile terminal that the present invention can be applicable to the intelligent television in hotel room and dweller is mutual.
Cross-platform media file playing method provided by the invention also includes: the file destination waiting for transmission wherein stored is determined in described mobile terminal, forms listed files;
Described mobile terminal is according to described file destination getting frame data from frame memory buffer;Described frame data are carried out form conversion, is encoded being sent to described receiving terminal by described transmission channel by the data after form is changed;
Wherein, described mobile terminal is by the coding parameter encoded described in front feedback and rear feedback adjustment and transmission speed;Wherein, before described, feedback includes the data volume described coding parameter of adjustment according to described frame memory buffer and transmission speed, and described rear feedback includes transmitting packet loss adjustment according to network and adjusts described coding parameter and transmission speed.
Described mobile terminal is according to described file destination getting frame data from frame memory buffer framebuffer;Described frame data are carried out FFmpeg conversion, H.264 the data after FFmpeg changes is encoded and is sent to receiving terminal by described transmission channel.
Wherein, framebuffer drives a video display apparatus with a picture output device from the core buffer comprising complete frame data.Framebuffer imitates the function of video card, is fallen by video card hardware Structural abstraction, it is possible to directly video memory is operated by the read-write of framebuffer.Framebuffer can be regarded a reflection of video memory as, after mapping that to the process address space, it is possible to be made directly read-write operation.Frame data refer to the content of display, i.e. video data on screen.Wherein, FFmpeg (FastForwardMovingPictureExpertGroup) is the free platform of increasing income of a video and audio stream.From framebufer, getting frame data are generally rgb form, are changed by FFmpeg at this, are converted into the data of nv12T form so that it is meet the pattern of the input of H.264 encoder.FFmpeg is increase income freely cross-platform video and an audio stream scheme, belongs to free software, it provides the total solution of recording, conversion and fluidisation audio frequency and video.H.264 coding is a kind of hard-disk cartridge, there is low bit-rate, high-quality image, fault-tolerant ability is strong, network adaptability is strong advantage, its maximum advantage is to have significantly high data compression ratio, when equal picture quality, H.264 compression ratio is more than 2 times of MPEG-2, is 1.5~2 times of MPEG-4.Formula chip can be preferably embedded into for raising code efficiency H.264 to encode, the mfc module of embedded chip such as cortext a8.Substantially reduce coding time by H.264 encoding the mode of this hard coded, decrease CPU usage.
Preferably, comprise the steps: when the file type that the described file destination of analysis in real time is corresponding
Step A1: the file format of the temporary file of file destination correspondence buffer memory described in extract real-time;
Step A2: mate in file model according to described file format, obtains the file type of correspondence.
It is specially, when mating in file model according to described file format, cutting is carried out according to ". " in file format, for each participle obtained, some participle is expressed as file type, and some participle is expressed as the mark of temporary file, is identified by these participles in file model, whether these participles are that the title of file type carries out marking and judges by file model, it is judged that in each participle, which participle can be expressed as file type.If score value is preset more than set, then the corresponding title that participle is file type, namely obtain the file format that file destination is corresponding.Wherein, described file model is the form comprising various file type.When file as name is called " thinkling sound Ya list 1.rmvb " mates in file model, carry out cutting according to ". " in file format, obtain participle " thinkling sound's Ya list 1 ", participle " rmvb ".The mark that participle " thinkling sound's Ya list 1 " is temporary file, participle " rmvb " is file type.Participle " thinkling sound's Ya list 1 " and participle " rmvb " are identified in file model, then judge that participle " rmvb " represents file type, and be video file type.
Preferably, comprise the steps: when mating in file model according to described file format
Step B1: described file format is carried out character cutting and generates cutting fragment;
Step B2: the cutting fragment according to obtaining is mated in file model, chooses target fragment as described file type according to matching probability.
Preferably, comprise the steps: when determining the intended application of correspondence according to the file type of described file destination
Step C1: call the list of application of the multiple application composition mated in described receiving terminal with described file type;
Step C2: determine described intended application according to multiple application marking and queuing on a third party site.
Specifically, when file type is " rmvb ", then call multiple application that " rmvb " is corresponding, such as MPC, multiple application composition list of application such as a sudden peal of thunder is looked at, QQ is audio-visual, Sohu is audio-visual;Checking the scoring of above-mentioned application on third party's website 360 software house keeper, wherein, the scoring of MPC is higher, then select MPC to open the file type file destination for " rmvb ", such as " thinkling sound Ya list 1.rmvb ".
Preferably, described mobile terminal comprises the steps: when have sent described file destination to described receiving terminal
Step D1: file destination is carried out cutting and generates fileinfo file and file content file;
Step D2: described fileinfo file and described file content file order according to priority are sent to described receiving terminal;Wherein, the priority of described fileinfo file is higher than the priority of described file content file.
Specifically, when described file destination is video file, then file destination is divided into video content file, i.e. the upper file content file counted and Video Information files, i.e. above-mentioned fileinfo file;Video Information files includes video name, video format, duration and resolution etc.;Video Information files is preferentially sent to receiving terminal by mobile terminal, receiving terminal extracts video name such as " thinkling sound Ya list 1.rmvb " from Video Information files, and then determine file type, corresponding application is preferentially opened by receiving terminal according to file type, when video content file is sent to receiving terminal, video file can be played out by receiving terminal in time.
Preferably, when described file destination is audio file, described fileinfo file includes any one in file name, file format, duration, file size, bit rate or code check or appoints multiple;
When described file destination is video file, described fileinfo file includes any one in file name, file format, duration, file size, resolution or frame speed or appoints multiple.
Specifically, when receiving terminal receives described fileinfo file, it is possible to determine file type according to file format, and then determine application;
Or, when receiving terminal receives described fileinfo file, in file model, carry out coupling according to file name and determine file type, and then determine intended application;
Or, when receiving terminal receives described fileinfo file, according to duration information, it is determined that file type, and then determine intended application;As grown up at that time in time setting time threshold, then tentatively judge that the type of file destination is video file, and then determine intended application;When duration is less than when setting time threshold, then tentatively judges that the type of file destination is audio file, and then determine intended application;When duration is zero, then tentatively judge that the type of file destination is picture file, and then determine intended application;
When intended application cannot open target, then the method in step A1, step A2 is adopted to further determine that file type.
Or, when receiving terminal receives described fileinfo file, determine file type according to document size information, and then determine intended application;As when document size information is more than enactment document committed memory threshold value, then tentatively judged that the type of file destination is video file, and then determine intended application;When duration is less than enactment document committed memory threshold value, then tentatively judges that the type of file destination is audio file, and then determine intended application.
When intended application cannot open target, then adopt the further schedule file type of method in step A1, step A2.
Preferably, receiving terminal determines the intended application of correspondence according to the file type of described file destination, particularly as follows:
Inquire about, in the corresponding table of file type application, the intended application that described file type is corresponding according to described file type;
The corresponding table of described file type application is application and the corresponding file type supported are extracted, the set tableau format that storage is formed;
Or knowledge base beyond the clouds is inquired about candidate's application that described file type is corresponding, and in conjunction with each application mounted in receiving terminal, candidate's application is screened, obtain final intended application.
It is specially, by scanning in knowledge base, knowledge base beyond the clouds is inquired about candidate's application that this document type is corresponding, in knowledge base, obtains candidate's application by the mode of text analyzing, and in conjunction with each application installed in receiving terminal, candidate's application is screened, obtain final intended application.
If receiving terminal is provided with more than one candidate application, then in conjunction with the scoring in third party's website, the above candidate's application of one is screened, choose the high candidate of scoring and apply as intended application.If receiving terminal is not installed any candidate application, then directly choose from third party's website after the high candidate's application of scoring is downloaded in receiving terminal as intended application and install.
Preferably, in the corresponding table of described file type application, each application is to there being access times;
When the corresponding multiple intended application of described file type, the maximum application of prioritizing selection access times is as intended application.
It is specially, when the file destination that user selects an application to open correspondence, the access times then recording application add one, when user is transmitted file by mobile terminal to receiving terminal, the application that then prioritizing selection access times are maximum opens file destination as intended application, as passed through to record with to access times should be had to find, user tends to adopt that QQ is audio-visual opens video file, then when the file destination sent as user is video file, then prioritizing selection QQ is audio-visual opens video file.
Preferably, also comprise the steps:
When receiving terminal obtains the network identity of mobile terminal, when being connected with the foundation of described mobile terminal, described receiving terminal is inquired about the formerly transmission of described mobile terminal and is play record;
Record is play according to described first transmission, several application that inquiry access times are stood out, and several application described are opened successively by access times.
It is specially, when receiving terminal is connected with the foundation of described mobile terminal, record is play in the formerly transmission obtaining mobile terminal, the application that record queries access times are more is play according to first transmitting, as audio-visual in QQ, QQ music, then preferential that QQ is audio-visual, QQ music is opened, when determining file type, it is possible to opened by file destination by above-mentioned application in time;
In variation, it is possible to when receiving terminal is connected with the foundation of described mobile terminal, directly the application in the prostatitis of access times row in corresponding for the application of described file type table is opened.
When using cross-platform media file playing method provided by the invention, the present invention can determine the intended application of correspondence according to the file type of described file destination, and play file destination according to intended application, receiving terminal is made to carry out file broadcasting with regard to mounted software platform independent of mobile terminal, avoid the secondary software installation carried out at receiving terminal to communicate with connecting, at file destination once do not supported by certain software platform, another kind of software platform can be automatically switched to file destination is played out, improve the efficiency of information transmission;The present invention monitors the file destination of transmission in real time at receiving terminal, and analyze the file type of correspondence in real time, thus immediately calling the intended application of receiving terminal this locality coupling, it is to avoid file destination whole end of transmission just plays out, decrease response time, accelerate the broadcasting speed of file destination.
The cross-platform media file-playing system provided according to a further aspect of the present invention, including receiving terminal and mobile terminal;
Described receiving terminal, for obtaining the network identity of mobile terminal, is set up with described mobile terminal and is connected;
Described receiving terminal is for opening corresponding transmission channel according to described connection, and monitors the file destination that mobile terminal sends in real time;
When described receiving terminal listen to described mobile terminal have sent described file destination time, analyze in real time the file type of described file destination;
Described receiving terminal determines the intended application of correspondence according to the file type of described file destination, and plays described file destination by described intended application.
Cross-platform media file-playing system provided by the invention also includes: the file destination waiting for transmission wherein stored is determined in described mobile terminal, forms listed files;
Described mobile terminal is according to described file destination getting frame data from frame memory buffer;Described frame data are carried out form conversion, is encoded being sent to described receiving terminal by described transmission channel by the data after form is changed;
Wherein, described mobile terminal is by the coding parameter encoded described in front feedback and rear feedback adjustment and transmission speed;Wherein, before described, feedback includes the data volume described coding parameter of adjustment according to described frame memory buffer and transmission speed, and described rear feedback includes transmitting packet loss adjustment according to network and adjusts described coding parameter and transmission speed.
Described mobile terminal is according to described file destination getting frame data from frame memory buffer framebuffer;Described frame data are carried out FFmpeg conversion, H.264 the data after FFmpeg changes is encoded and is sent to receiving terminal by described transmission channel.
Preferably, realized by such as lower module when the file type that the described file destination of analysis in real time is corresponding:
Temporary file form extraction module, the file format of the temporary file of file destination correspondence buffer memory described in extract real-time;
First file format matching module, for mating in file model according to described file format, obtains the file type of correspondence.
Preferably, realized by such as lower module when mating in file model according to described file format:
Character cutting module, generates cutting fragment for described file format carries out character cutting;
Second file format matching module, for mating in file model according to the cutting fragment obtained, chooses target fragment as described file type according to matching probability.
Preferably, realized by such as lower module when determining the intended application of correspondence according to the file type of described file destination:
List of application calling module, for calling the list of application of the multiple application composition mated in described receiving terminal with described file type;
Intended application determines module, for determining described intended application according to multiple application marking and queuing on a third party site.
Preferably, described mobile terminal includes when have sent described file destination to described receiving terminal being realized by such as lower module:
File destination cutting module, generates fileinfo file and file content file for file destination carries out cutting;
File destination sending module, for sending described fileinfo file and described file content file order according to priority to described receiving terminal;Wherein, the priority of described fileinfo file is higher than the priority of described file content file.
Preferably, when described file destination is audio file, described fileinfo file includes any one in file name, file format, duration, file size, bit rate or code check or appoints multiple;
When described file destination is video file, described fileinfo file includes any one in file name, file format, duration, file size, resolution or frame speed or appoints multiple.
Specifically, when receiving terminal receives described fileinfo file, it is possible to determine file type according to file format, and then determine application;
Or, when receiving terminal receives described fileinfo file, in file model, carry out coupling according to file name and determine file type, and then determine intended application;
Or, when receiving terminal receives described fileinfo file, according to duration information, it is determined that file type, and then determine intended application;As grown up at that time in time setting time threshold, then tentatively judge that the type of file destination is video file, and then determine intended application;When duration is less than when setting time threshold, then tentatively judges that the type of file destination is audio file, and then determine intended application;When duration is zero, then tentatively judge that the type of file destination is picture file, and then determine intended application;
When intended application cannot open target, then the method in step A1, step A2 is adopted to further determine that file type.
Or, when receiving terminal receives described fileinfo file, determine file type according to document size information, and then determine intended application;As when document size information is more than enactment document committed memory threshold value, then tentatively judged that the type of file destination is video file, and then determine intended application;When duration is less than enactment document committed memory threshold value, then tentatively judges that the type of file destination is audio file, and then determine intended application.
When intended application cannot open target, then adopt the further schedule file type of method in step A1, step A2.
Preferably, receiving terminal determines the intended application of correspondence according to the file type of described file destination, particularly as follows:
Inquire about, in the corresponding table of file type application, the intended application that described file type is corresponding according to described file type;
The corresponding table of described file type application is application and the corresponding file type supported are extracted, the set tableau format that storage is formed;
Or knowledge base beyond the clouds is inquired about candidate's application that described file type is corresponding, and in conjunction with each application mounted in receiving terminal, candidate's application is screened, obtain final intended application.
Preferably, in the corresponding table of described file type application, each application is to there being access times;
When the corresponding multiple intended application of described file type, the maximum application of prioritizing selection access times is as intended application.
Preferably, also include:
When receiving terminal obtains the network identity of mobile terminal, when being connected with the foundation of described mobile terminal, described receiving terminal is inquired about the formerly transmission of described mobile terminal and is play record;
Record is play according to described first transmission, if the individual application that inquiry access times are stood out, and if described individual application being opened successively by access times.
Preferably, when receiving terminal receives described fileinfo file, according to duration information, it is determined that file type, and then intended application is determined;
Grew up at that time in time setting time threshold, then tentatively judge that the type of file destination is video file, and then determine intended application;When duration is less than when setting time threshold, then tentatively judges that the type of file destination is audio file, and then determine intended application;When duration is zero, then tentatively judge that the type of file destination is picture file, and then determine intended application.
In the present embodiment, when using cross-platform media file-playing system provided by the invention, the present invention can determine the intended application of correspondence according to the file type of described file destination, and play file destination according to intended application, receiving terminal is made to carry out file broadcasting with regard to mounted software platform independent of mobile terminal, avoid the secondary software installation carried out at receiving terminal to communicate with connecting, at file destination once do not supported by certain software platform, another kind of software platform can be automatically switched to file destination is played out, improve the efficiency of information transmission;
The present invention monitors the file destination of transmission in real time at receiving terminal, and analyze the file type of correspondence in real time, thus immediately calling the intended application of receiving terminal this locality coupling, it is to avoid file destination whole end of transmission just plays out, decrease response time, accelerate the broadcasting speed of file destination.
Above specific embodiments of the invention are described.It is to be appreciated that the invention is not limited in above-mentioned particular implementation, those skilled in the art can make various deformation or amendment within the scope of the claims, and this has no effect on the flesh and blood of the present invention.

Claims (16)

1. media file playing method one kind cross-platform, it is characterised in that comprise the steps:
Step S1: receiving terminal obtains the network identity of mobile terminal, sets up with described mobile terminal and is connected;
Step S2: described receiving terminal opens corresponding transmission channel according to described connection, and monitors the file destination that mobile terminal sends in real time;
Step S3: when described receiving terminal listen to described mobile terminal have sent described file destination time, analyze in real time the file type of described file destination;
Step S4: determine the intended application of correspondence according to the file type of described file destination, and play described file destination by described intended application.
2. the cross-platform media file playing method described in a claim 1, it is characterised in that comprise the steps: when the file type that the described file destination of analysis in real time is corresponding
Step A1: the file format of the temporary file of file destination correspondence buffer memory described in extract real-time;
Step A2: mate in file model according to described file format, obtains the file type of correspondence.
3. cross-platform media file playing method according to claim 2, it is characterised in that comprise the steps: when mating in file model according to described file format
Step B1: described file format is carried out character cutting and generates cutting fragment;
Step B2: the cutting fragment according to obtaining is mated in file model, chooses target fragment as described file type according to matching probability.
4. cross-platform media file playing method according to claim 1, it is characterised in that comprise the steps: when determining the intended application of correspondence according to the file type of described file destination
Step C1: call the list of application of the multiple application composition mated in described receiving terminal with described file type;
Step C2: determine described intended application according to multiple application marking and queuing on a third party site.
5. cross-platform media file playing method according to claim 1, it is characterised in that described mobile terminal comprises the steps: when have sent described file destination to described receiving terminal
Step D1: file destination is carried out cutting and generates fileinfo file and file content file;
Step D2: described fileinfo file and described file content file order according to priority are sent to described receiving terminal;Wherein, the priority of described fileinfo file is higher than the priority of described file content file.
6. cross-platform media file playing method according to claim 5, it is characterised in that
When described file destination is audio file, described fileinfo file includes any one in file name, file format, duration, file size, bit rate or code check or appoints multiple;
When described file destination is video file, described fileinfo file includes any one in file name, file format, duration, file size, resolution or frame speed or appoints multiple.
7. cross-platform media file playing method according to claim 1, it is characterised in that receiving terminal determines the intended application of correspondence according to the file type of described file destination, particularly as follows:
Inquire about, in the corresponding table of file type application, the intended application that described file type is corresponding according to described file type;
The corresponding table of described file type application is application and the corresponding file type supported are extracted, the set tableau format that storage is formed;
Or knowledge base beyond the clouds is inquired about candidate's application that described file type is corresponding, and in conjunction with each application mounted in receiving terminal, candidate's application is screened, obtain final intended application.
8. cross-platform media file playing method according to claim 6, it is characterised in that when receiving terminal receives described fileinfo file, according to duration information, it is determined that file type, and then determine intended application;
Grew up at that time in time setting time threshold, then tentatively judge that the type of file destination is video file, and then determine intended application;When duration is less than when setting time threshold, then tentatively judges that the type of file destination is audio file, and then determine intended application;When duration is zero, then tentatively judge that the type of file destination is picture file, and then determine intended application.
9. media file-playing system one kind cross-platform, it is characterised in that include receiving terminal and mobile terminal;
Described receiving terminal, for obtaining the network identity of mobile terminal, is set up with described mobile terminal and is connected;
Described receiving terminal is for opening corresponding transmission channel according to described connection, and monitors the file destination that mobile terminal sends in real time;
When described receiving terminal listen to described mobile terminal have sent described file destination time, analyze in real time the file type of described file destination;
Described receiving terminal determines the intended application of correspondence according to the file type of described file destination, and plays described file destination by described intended application.
10. cross-platform media file-playing system according to claim 9, it is characterised in that realized by such as lower module when the file type that the described file destination of analysis in real time is corresponding:
Temporary file form extraction module, the file format of the temporary file of file destination correspondence buffer memory described in extract real-time;
First file format matching module, for mating in file model according to described file format, obtains the file type of correspondence.
11. cross-platform media file-playing system according to claim 10, it is characterised in that realized by such as lower module when mating in file model according to described file format:
Character cutting module, generates cutting fragment for described file format carries out character cutting;
Second file format matching module, for mating in file model according to the cutting fragment obtained, chooses target fragment as described file type according to matching probability.
12. cross-platform media file-playing system according to claim 9, it is characterised in that realized by such as lower module when determining the intended application of correspondence according to the file type of described file destination:
List of application calling module, for calling the list of application of the multiple application composition mated in described receiving terminal with described file type;
Intended application determines module, for determining described intended application according to multiple application marking and queuing on a third party site.
13. cross-platform media file-playing system according to claim 9, it is characterised in that described mobile terminal includes when have sent described file destination to described receiving terminal being realized by such as lower module:
File destination cutting module, generates fileinfo file and file content file for file destination carries out cutting;
File destination sending module, for sending described fileinfo file and described file content file order according to priority to described receiving terminal;Wherein, the priority of described fileinfo file is higher than the priority of described file content file.
14. cross-platform media file-playing system according to claim 13, it is characterised in that
When described file destination is audio file, described fileinfo file includes any one in file name, file format, duration, file size, bit rate or code check or appoints multiple;
When described file destination is video file, described fileinfo file includes any one in file name, file format, duration, file size, resolution or frame speed or appoints multiple.
15. cross-platform media file-playing system according to claim 9, it is characterised in that receiving terminal determines the intended application of correspondence according to the file type of described file destination, particularly as follows:
Inquire about, in the corresponding table of file type application, the intended application that described file type is corresponding according to described file type;
The corresponding table of described file type application is application and the corresponding file type supported are extracted, the set tableau format that storage is formed;
Or knowledge base beyond the clouds is inquired about candidate's application that described file type is corresponding, and in conjunction with each application mounted in receiving terminal, candidate's application is screened, obtain final intended application.
16. cross-platform media file-playing system according to claim 14, it is characterised in that when receiving terminal receives described fileinfo file, according to duration information, it is determined that file type, and then determine intended application;
Grew up at that time in time setting time threshold, then tentatively judge that the type of file destination is video file, and then determine intended application;When duration is less than when setting time threshold, then tentatively judges that the type of file destination is audio file, and then determine intended application;When duration is zero, then tentatively judge that the type of file destination is picture file, and then determine intended application.
CN201610141471.3A 2016-03-11 2016-03-11 cross-platform media file playing method and system Expired - Fee Related CN105791964B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610141471.3A CN105791964B (en) 2016-03-11 2016-03-11 cross-platform media file playing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610141471.3A CN105791964B (en) 2016-03-11 2016-03-11 cross-platform media file playing method and system

Publications (2)

Publication Number Publication Date
CN105791964A true CN105791964A (en) 2016-07-20
CN105791964B CN105791964B (en) 2018-12-04

Family

ID=56393403

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610141471.3A Expired - Fee Related CN105791964B (en) 2016-03-11 2016-03-11 cross-platform media file playing method and system

Country Status (1)

Country Link
CN (1) CN105791964B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250182A (en) * 2016-07-27 2016-12-21 北京金山安全软件有限公司 File processing method and device and electronic equipment
CN111158543A (en) * 2019-12-24 2020-05-15 华为技术有限公司 File processing method, electronic equipment, system and storage medium
CN112565458A (en) * 2020-12-25 2021-03-26 北京安华金和科技有限公司 Platform remote control method and device, storage medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005121950A2 (en) * 2004-06-08 2005-12-22 Dartdevices Corporation Architecture apparatus and method for seamless universal device interoperability platform
CN102118533A (en) * 2010-12-22 2011-07-06 青岛海信宽带多媒体技术有限公司 Realization method and realization device for playing mobile phone resources on television
EP2387205A1 (en) * 2010-05-14 2011-11-16 Samsung Electronics Co., Ltd. Method and System for Providing Wi-Fi Service by Wi-Fi Device
CN102881303A (en) * 2012-09-10 2013-01-16 青岛海信电器股份有限公司 Play method and play device of multimedia file
CN103036922A (en) * 2011-09-30 2013-04-10 青岛海信电器股份有限公司 Method for browsing media files continuously in different electronic terminals and electronic terminal
CN105025094A (en) * 2015-07-09 2015-11-04 传成文化传媒(上海)有限公司 Multi-screen interaction method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005121950A2 (en) * 2004-06-08 2005-12-22 Dartdevices Corporation Architecture apparatus and method for seamless universal device interoperability platform
EP2387205A1 (en) * 2010-05-14 2011-11-16 Samsung Electronics Co., Ltd. Method and System for Providing Wi-Fi Service by Wi-Fi Device
CN102118533A (en) * 2010-12-22 2011-07-06 青岛海信宽带多媒体技术有限公司 Realization method and realization device for playing mobile phone resources on television
CN103036922A (en) * 2011-09-30 2013-04-10 青岛海信电器股份有限公司 Method for browsing media files continuously in different electronic terminals and electronic terminal
CN102881303A (en) * 2012-09-10 2013-01-16 青岛海信电器股份有限公司 Play method and play device of multimedia file
CN105025094A (en) * 2015-07-09 2015-11-04 传成文化传媒(上海)有限公司 Multi-screen interaction method and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250182A (en) * 2016-07-27 2016-12-21 北京金山安全软件有限公司 File processing method and device and electronic equipment
CN106250182B (en) * 2016-07-27 2019-12-24 北京金山安全软件有限公司 File processing method and device and electronic equipment
CN111158543A (en) * 2019-12-24 2020-05-15 华为技术有限公司 File processing method, electronic equipment, system and storage medium
WO2021129186A1 (en) * 2019-12-24 2021-07-01 华为技术有限公司 File processing method, electronic apparatus, system, and storage medium
CN111158543B (en) * 2019-12-24 2023-10-24 华为技术有限公司 File processing method, electronic equipment, system and storage medium
CN112565458A (en) * 2020-12-25 2021-03-26 北京安华金和科技有限公司 Platform remote control method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN105791964B (en) 2018-12-04

Similar Documents

Publication Publication Date Title
JP6570646B2 (en) Audio video file live streaming method, system and server
TWI229559B (en) An object oriented video system
CN103037254B (en) Personal media broadcasting system
CN101594528B (en) Information processing system, information processing apparatus, information processing method, and program
CN105025094B (en) Multi-screen interaction method and system
US8122480B2 (en) Method and apparatus for facilitating interactions with an object in a digital video feed to access associated content
US20060242676A1 (en) Live streaming broadcast method, live streaming broadcast device, live streaming broadcast system, program, recording medium, broadcast method, and broadcast device
CN102158553A (en) Method and device for playing multi-media files for remote desktop
CN101480019A (en) Composition of local user interface with remotely generated user interface and media
CN101472138A (en) System and method for implementing share of digital set-top box program stream
CN101312460A (en) Method for converting media file of multiple formats into target device supported media file
CN105247875A (en) Distribution control system and distribution system
CN105847904B (en) Distribution control equipment and distribution control method
CN104469397A (en) Distribution management apparatus and distribution management system
CN102065340B (en) System and method for implementing multimedia synchronous interaction
CN101127780A (en) Method for downloading, saving and replaying online video and construction of online video network
CN105791964A (en) Cross-platform media file playing method and system
TW535437B (en) Dynamic generation of video content for presentation by a media server
CN113301359A (en) Audio and video processing method and device and electronic equipment
CN101420546A (en) Digital television set-top box and customized setting method
CN102047662B (en) Encoder
US9084011B2 (en) Method for advertising based on audio/video content and method for creating an audio/video playback application
CN111869225B (en) Information processing apparatus, information processing method, and non-transitory computer readable storage medium
CN101984622A (en) Real-time transport protocol based bidirectional voice frequency mapping system and method
CN101237575A (en) A TV and method for playing Real format stream media

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20181204

Termination date: 20200311

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