CN105791964B - cross-platform media file playing method and system - Google Patents

cross-platform media file playing method and system Download PDF

Info

Publication number
CN105791964B
CN105791964B CN201610141471.3A CN201610141471A CN105791964B CN 105791964 B CN105791964 B CN 105791964B CN 201610141471 A CN201610141471 A CN 201610141471A CN 105791964 B CN105791964 B CN 105791964B
Authority
CN
China
Prior art keywords
file
type
receiving end
destination
application
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.)
Expired - Fee Related
Application number
CN201610141471.3A
Other languages
Chinese (zh)
Other versions
CN105791964A (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of cross-platform media file playing methods and system, and include the following steps: step S1: receiving end obtains the network identity of mobile terminal, establishes connection with the mobile terminal;Step S2: corresponding transmission channel is opened according to the connection in the receiving end, and monitors the file destination that mobile terminal is sent in real time;Step S3: when the receiving end, which listens to the mobile terminal, has sent the file destination, the file type of the file destination is analyzed in real time;Step S4: corresponding target application is determined according to the file type of the file destination, and the file destination is played by the target application.The present invention determines corresponding target application according to the file type of the file destination, and file destination is played according to target application, so that receiving end is carried out file broadcasting independently of mobile terminal with regard to mounted software platform, avoids the secondary software installation and connection communication carried out in receiving end.

Description

Cross-platform media file playing method and system
Technical field
The present invention relates to the cross-platform transmission of file, and in particular, to a kind of cross-platform media file playing method and is System.
Background technique
With making constant progress for Internet technology, smart electronics product also more more and more universal prevalence.Mobile Internet It is increasingly becoming mainstream, the demand of client is also in continuous diversification, as technology continues to develop and business is carried out in a deep going way, intelligence Television services provide business service from simple for set-top box, expand to as a variety of ends such as mobile phone, PC PC, handheld terminals End provides business service.Multiple-screen integration business model has become the Main way of smart television development.
When smart machine is in local area network, mobile phone or pad can be mutual by the multimedia resource being shared in local area network The television pushed in local area network plays, and multimedia resource includes audio, video and picture;When smart machine is in wide area network When, network multimedia file can be transmitted to intelligent television end broadcasting by mobile phone or pad.The intelligence of each famous brand currently on the market TV all supports multi-screen interactive technology substantially, using also will be increasingly wider.
In the multi-screen interactive of television field, it is often based upon same TV platform at present and is communicated, generally requires in this way The mobile phone of user and TV are respectively connect with the server of software platform respectively, instruction and data is then sent to clothes by mobile phone Business device, server is by data distributing to TV, to play out to media file, causes message transmitting procedure excessively complicated. Particularly, if the media file of mobile phone terminal is after being issued to TV, it is found that the software platform of installation does not support the media file Broadcast format, then user also needs operation TV, opens another playing platform, then operate again in mobile phone terminal and play the media File, process is sufficiently complex, reduces the efficiency of information transmission.
Summary of the invention
For the defects in the prior art, the object of the present invention is to provide a kind of cross-platform media file playing method and System.
The cross-platform media file playing method provided on one side according to the present invention, includes the following steps:
Step S1: receiving end obtains the network identity of mobile terminal, establishes connection with the mobile terminal;
Step S2: corresponding transmission channel is opened according to the connection in the receiving end, and monitors mobile terminal hair in real time The file destination sent;
Step S3: when the receiving end, which listens to the mobile terminal, has sent the file destination, in real time described in analysis The file type of file destination;
Step S4: corresponding target application is determined according to the file type of the file destination, and is answered by the target With the broadcasting file destination.
Preferably, include the following steps: when analyzing the corresponding file type of the file destination in real time
Step A1: the file format of the temporary file of the corresponding caching of file destination described in extract real-time;
Step A2: being matched in file model according to the file format, obtains corresponding file type.
Preferably, include the following steps: when being matched in file model according to the file format
Step B1: the file format is subjected to character cutting and generates cutting segment;
Step B2: being matched in file model according to obtained cutting segment, chooses target patch according to matching probability File type described in Duan Zuowei.
Preferably, include the following steps: when determining corresponding target application according to the file type of the file destination
Step C1: the list of application in the receiving end with the matched multiple application compositions of the file type is called;
Step C2: the target application is determined according to the marking and queuing of multiple applications on a third party site.
Preferably, include the following steps: when the mobile terminal has sent the file destination to the receiving end
Step D1: file destination is subjected to cutting and generates the file information file and file content file;
Step D2: the sequence of the file information file and the file content file according to priority is sent to described connect Receiving end;Wherein, the priority of the file information file is higher than the priority of the file content file.
Preferably, when the file destination is audio file, the file information file includes file name, tray Any one of formula, duration, file size, bit rate or code rate are appointed a variety of;
When the file destination be video file, the file information file include file name, file format, duration, Any one of file size, resolution ratio or frame speed are appointed a variety of.
Preferably, receiving end determines corresponding target application according to the file type of the file destination, specifically:
The corresponding target application of the file type is inquired in the corresponding table of file type application according to the file type;
The corresponding table of file type application is to extract the file type for applying and corresponding to support, stores formation Set tableau format;
Or the corresponding candidate application of the file type is inquired in knowledge base beyond the clouds, and combine and installed in receiving end It is each application to candidate application screen, obtain final target application.
Preferably, in the corresponding table of file type application, each application is corresponding with access times;
When the file type corresponds to multiple target applications, the application for preferentially selecting access times most is answered as target With.
Preferably, further include following steps:
When receiving end obtains the network identity of mobile terminal, when establishing connection with the mobile terminal, institute is inquired in the receiving end The first transmission for stating mobile terminal plays record;
Record is played according to the first transmission, if a application stood out of inquiry access times, and if a answering described It is successively opened with by access times.
Preferably, when receiving end receives the file information file, according to duration information, file type is determined, in turn Determine target application;
It is long at that time when being greater than setting time threshold value, then tentatively judge the type of file destination for video file, and then determination Target application;When duration be less than setting time threshold value when, then tentatively judge the type of file destination for audio file, and then determination Target application;At that time a length of zero, then tentatively judge the type of file destination for picture file, and then determination target application.
The cross-platform media file-playing system provided according to a further aspect of the present invention, including receiving end and movement End;
The receiving end is used to obtain the network identity of mobile terminal, establishes connection with the mobile terminal;
The receiving end is used to open corresponding transmission channel according to the connection, and monitors what mobile terminal was sent in real time File destination;
When the receiving end, which listens to the mobile terminal, has sent the file destination, the file destination is analyzed in real time File type;
The receiving end determines corresponding target application according to the file type of the file destination, and passes through the target File destination described in application plays.
Preferably, it is realized when analyzing the corresponding file type of the file destination in real time by following module:
Temporary file format extraction module, the file of the temporary file for the corresponding caching of file destination described in extract real-time Format;
First file format matching module obtains pair for being matched in file model according to the file format The file type answered.
Preferably, it is realized when being matched in file model according to the file format by following module:
Character cutting module generates cutting segment for the file format to be carried out character cutting;
Second file format matching module, for being matched in file model according to obtained cutting segment, according to Matching probability chooses target fragment as the file type.
Preferably, by following module reality when determining corresponding target application according to the file type of the file destination It is existing:
List of application calling module is formed for calling in the receiving end with the matched multiple applications of the file type List of application;
Target application determining module, for determining the target according to the marking and queuing of multiple applications on a third party site Using.
It preferably, include by following module reality when the mobile terminal has sent the file destination to the receiving end It is existing:
File destination cutting module generates the file information file and file content text for file destination to be carried out cutting Part;
File destination sending module, for by the file information file and the file content file according to priority suitable Sequence is sent to the receiving end;Wherein, the priority of the file information file is higher than the priority of the file content file.
Preferably, when the file destination is audio file, the file information file includes file name, tray Any one of formula, duration, file size, bit rate or code rate are appointed a variety of;
When the file destination be video file, the file information file include file name, file format, duration, Any one of file size, resolution ratio or frame speed are appointed a variety of.
Preferably, receiving end determines corresponding target application according to the file type of the file destination, specifically:
The corresponding target application of the file type is inquired in the corresponding table of file type application according to the file type;
The corresponding table of file type application is to extract the file type for applying and corresponding to support, stores formation Set tableau format;
Or the corresponding candidate application of the file type is inquired in knowledge base beyond the clouds, and combine and installed in receiving end It is each application to candidate application screen, obtain final target application.
Preferably, in the corresponding table of file type application, each application is corresponding with access times;
When the file type corresponds to multiple target applications, the application for preferentially selecting access times most is answered as target With.
Preferably, further includes:
When receiving end obtains the network identity of mobile terminal, when establishing connection with the mobile terminal, institute is inquired in the receiving end The first transmission for stating mobile terminal plays record;
Record is played according to the first transmission, if a application stood out of inquiry access times, and if a answering described It is successively opened with by access times.
Preferably, when receiving end receives the file information file, according to duration information, file type is determined, in turn Determine target application;
It is long at that time when being greater than setting time threshold value, then tentatively judge the type of file destination for video file, and then determination Target application;When duration be less than setting time threshold value when, then tentatively judge the type of file destination for audio file, and then determination Target application;At that time a length of zero, then tentatively judge the type of file destination for picture file, and then determination target application.
Compared with prior art, the present invention have it is following the utility model has the advantages that
1, the present invention determines corresponding target application according to the file type of the file destination, and is broadcast according to target application File destination is put, so that receiving end is carried out file broadcasting independently of mobile terminal with regard to mounted software platform, avoids in receiving end The secondary software of progress is installed and connection communication, in file destination when not supported by certain software platform, can cut automatically It is changed to another software platform to play out file destination, improves the efficiency of information transmission;
2, the present invention monitors the file destination of transmission in receiving end in real time, and analyzes corresponding file type in real time, thus Immediately the matched target application in receiving end is called, file destination whole end of transmission is avoided and just plays out, reduce Response time accelerates the broadcasting speed of file destination.
Detailed description of the invention
Upon reading the detailed description of non-limiting embodiments with reference to the following drawings, other feature of the invention, Objects and advantages will become more apparent upon:
Fig. 1 is the step flow chart of media file playing method cross-platform in the present invention;
Fig. 2 is the structural schematic diagram of media file-playing system cross-platform in the present invention.
Specific embodiment
The present invention is described in detail combined with specific embodiments below.Following embodiment will be helpful to the technology of this field Personnel further understand the present invention, but the invention is not limited in any way.It should be pointed out that the ordinary skill of this field For personnel, without departing from the inventive concept of the premise, various modifications and improvements can be made.These belong to the present invention Protection scope.
In the multi-screen interactive of television field, it is often based upon same TV platform at present and is communicated, generally requires in this way The mobile phone of user and TV are respectively connect with the server of software platform respectively, instruction and data is then sent to clothes by mobile phone Business device, server is by data distributing to TV, to play out to media file, causes message transmitting procedure excessively complicated. Particularly, if the media file of mobile phone terminal is after being issued to TV, it is found that the software platform of installation does not support the media file Broadcast format, then user also needs operation TV, opens another playing platform, then operate again in mobile phone terminal and play the media File, process is sufficiently complex, reduces the efficiency of information transmission.
The cross-platform document play-back method of one kind provided by the invention, according to determining pair of the file type of the file destination The target application answered, and file destination is played according to target application, make receiving end with regard to mounted software platform independently of movement End carry out file broadcasting, avoid receiving end carry out secondary software installation and connection communication, file destination once not by When certain software platform is supported, another software platform can be automatically switched to, file destination is played out, improve information The efficiency of transmission.
In the present embodiment, the cross-platform media file playing method provided according to the present invention, includes the following steps:
Step S1: receiving end obtains the network identity of mobile terminal, establishes connection with the mobile terminal;
Specifically, receiving end obtains network ip address, and interaction binding two is generated in the multi-screen interactive display surface of receiving end Tie up code;The mobile terminal scanning interaction binding two dimensional code, to establish point-to-point connection with the receiving end.
Step S2: corresponding transmission channel is opened according to the connection in the receiving end, and monitors mobile terminal hair in real time The file destination sent;
Step S3: when the receiving end, which listens to the mobile terminal, has sent the file destination, in real time described in analysis The file type of file destination;
Step S4: corresponding target application is determined according to the file type of the file destination, and is answered by the target With the broadcasting file destination.
In the present embodiment, the mobile terminal is laptop, smart phone and tablet computer;The receiving end is peace Smart television in hotel room.The transmission channel be selected from local area network, WLAN, mobile Internet, bluetooth or It is infrared.The present invention can be suitable for the screen interaction of the mobile terminal of the smart television and dweller in hotel room.
Cross-platform media file playing method provided by the invention further include: the mobile terminal determine wherein store to The file destination of transmission forms listed files;
The mobile terminal obtains frame data from frame memory buffer according to the file destination;The frame data are subjected to lattice Data after format is converted are carried out coding and are sent to the receiving end by the transmission channel by formula conversion;
Wherein, coding parameter and transmission speed that the mobile terminal passes through coding described in preceding feedback and rear feedback adjustment;Its In, feeding back before described includes adjusting the coding parameter and transmission speed according to the data volume of the frame memory buffer, after described Feedback includes adjusting the coding parameter and transmission speed according to the adjustment of network transmission packet loss.
The mobile terminal obtains frame data from frame memory buffer framebuffer according to the file destination;It will be described Frame data carry out FFmpeg conversion, and H.264 the data progress after FFmpeg is converted is encoded and is passed by the transmission channel It is defeated to be sent to receiving end.
Wherein, framebuffer is with a picture output device from a memory buffer comprising complete frame data A video display apparatus is driven in area.Framebuffer imitates the function of video card, and video card hardware Structural abstraction is fallen, can Directly to be operated to video memory by the read-write of framebuffer.One that framebuffer can be regarded as to video memory is reflected Picture maps that after the process address space, so that it may directly be written and read.Frame data refer to shown on screen it is interior Hold, i.e. video data.Wherein, FFmpeg (Fast Forward Moving Picture Expert Group) is a video With the free platform of open source of audio stream.It is usually rgb format that frame data are obtained from framebufer, is turned herein by FFmpeg It changes, is converted into the data of nv12T format, comply with the input format of H.264 encoder.FFmpeg is that an open source is exempted from Take cross-platform video and audio stream scheme, belong to free software, it provides the complete of recording, conversion and fluidisation audio-video Solution.H.264 coding is a kind of hard-disk cartridge, and with low bit- rate, the image of high quality, fault-tolerant ability is strong, network is suitable The advantages of Ying Xingqiang, maximum advantage is that have very high data compression ratio, under conditions of same picture quality, H.264 compression ratio is the 2 times or more of MPEG-2, is 1.5~2 times of MPEG-4.It is preferably embedded to improve code efficiency H.264, chip is encoded, the mfc module of embedded chip such as cortext-a8.By H.264 encoding this hard coded Mode substantially reduce coding time, reduce CPU usage.
Preferably, include the following steps: when analyzing the corresponding file type of the file destination in real time
Step A1: the file format of the temporary file of the corresponding caching of file destination described in extract real-time;
Step A2: being matched in file model according to the file format, obtains corresponding file type.
Specifically, when being matched in file model according to the file format, according to " " in file format into Row cutting, for obtained each participle, some participles are expressed as file type, some segment the mark for being expressed as temporary file, These participles are identified in file model, whether file model is that the title of file type is given a mark to these participles Judgement judges which participle can be expressed as file type in each participle.If score value is greater than set preset, corresponding participle It is the title of file type to get having arrived the corresponding file format of file destination.Wherein, the file model is to include various texts The table of part type.When such as the file of entitled " thinkling sound's Ya list 1.rmvb " being matched in file model, according to tray " " in formula carries out cutting, is segmented " thinkling sound Ya list 1 ", participle " rmvb ".The mark that " thinkling sound Ya list 1 " is temporary file is segmented, Segmenting " rmvb " is file type." thinkling sound Ya list 1 " will be segmented and participle " rmvb " identifies in file model, then judgement point Word " rmvb " indicates file type, and is video file type.
Preferably, include the following steps: when being matched in file model according to the file format
Step B1: the file format is subjected to character cutting and generates cutting segment;
Step B2: being matched in file model according to obtained cutting segment, chooses target patch according to matching probability File type described in Duan Zuowei.
Preferably, include the following steps: when determining corresponding target application according to the file type of the file destination
Step C1: the list of application in the receiving end with the matched multiple application compositions of the file type is called;
Step C2: the target application is determined according to the marking and queuing of multiple applications on a third party site.
Specifically, " rmvb " corresponding multiple applications are then called when file type is " rmvb ", such as storm video, fast Multiple applications such as thunder is looked at, QQ is audio-visual, Sohu is audio-visual form list of application;It is checked in 360 sofeware management of third party's website State the scoring of application, wherein the scoring of storm video is higher, then storm video is selected to open file type as the target of " rmvb " File, such as " thinkling sound's Ya list 1.rmvb ".
Preferably, include the following steps: when the mobile terminal has sent the file destination to the receiving end
Step D1: file destination is subjected to cutting and generates the file information file and file content file;
Step D2: the sequence of the file information file and the file content file according to priority is sent to described connect Receiving end;Wherein, the priority of the file information file is higher than the priority of the file content file.
Specifically, file destination is then divided into video content file when the file destination is video file, i.e., upper number File content file and Video Information files, i.e., above-mentioned the file information file;Video Information files include video name, video Format, duration and resolution ratio etc.;Video Information files are preferentially sent to receiving end by mobile terminal, and receiving end is from Video Information files Middle extraction video name such as " thinkling sound's Ya list 1.rmvb ", and then determines file type, and receiving end will preferentially be corresponded to according to file type Application open, when video content file is sent to receiving end, receiving end can in time be played out video file.
Preferably, when the file destination is audio file, the file information file includes file name, tray Any one of formula, duration, file size, bit rate or code rate are appointed a variety of;
When the file destination be video file, the file information file include file name, file format, duration, Any one of file size, resolution ratio or frame speed are appointed a variety of.
Specifically, when receiving end receives the file information file file type can be determined according to file format, into And determine application;
Or, being carried out matching really in file model according to file name when receiving end receives the file information file Determine file type, and then determines target application;
Or, according to duration information, determining file type, and then determine when receiving end receives the file information file Target application;As it is long at that time be greater than setting time threshold value when, then tentatively judge the type of file destination for video file, and then it is true Set the goal application;When duration is less than setting time threshold value, then tentatively judge the type of file destination for audio file, and then it is true Set the goal application;At that time a length of zero, then tentatively judge the type of file destination for picture file, and then determination target application;
When target application can not open target, then files classes are further determined that using the method in step A1, step A2 Type.
Or, determining file type according to document size information, and then really when receiving end receives the file information file Set the goal application;Such as when document size information is greater than setting file committed memory threshold value, then the class of file destination is tentatively judged Type is video file, and then determines target application;When duration is less than setting file committed memory threshold value, then target is tentatively judged The type of file is audio file, and then determines target application.
When target application can not open target, then using the further schedule file class of method in step A1, step A2 Type.
Preferably, receiving end determines corresponding target application according to the file type of the file destination, specifically:
The corresponding target application of the file type is inquired in the corresponding table of file type application according to the file type;
The corresponding table of file type application is to extract the file type for applying and corresponding to support, stores formation Set tableau format;
Or the corresponding candidate application of the file type is inquired in knowledge base beyond the clouds, and combine and installed in receiving end It is each application to candidate application screen, obtain final target application.
Specifically, inquiring the corresponding time of this document type by scanning in knowledge base, in knowledge base beyond the clouds Choosing application obtains candidate application in knowledge base by way of text analyzing, and combines each application pair installed in receiving end Candidate's application is screened, and final target application is obtained.
If more than one candidate application is equipped in receiving end, in conjunction with the scoring in third party's website to described one A above candidate application is screened, and is chosen high candidate application of scoring and is used as target application.Appoint if do not installed in receiving end What candidate application is then chosen high candidate application of scoring directly from third party's website and is downloaded in receiving end as target application After install.
Preferably, in the corresponding table of file type application, each application is corresponding with access times;
When the file type corresponds to multiple target applications, the application for preferentially selecting access times most is answered as target With.
Specifically, the access times for then recording application add one when corresponding file destination is opened in one application of user's selection, When user transmits file to receiving end from mobile terminal, then the application for preferentially selecting access times most is opened as target application File destination such as finds that user tends to using the audio-visual opening video file of QQ with access times are corresponding with by record, then when When the file destination that user sends is video file, then the audio-visual opening video file of QQ is preferentially selected.
Preferably, further include following steps:
When receiving end obtains the network identity of mobile terminal, when establishing connection with the mobile terminal, institute is inquired in the receiving end The first transmission for stating mobile terminal plays record;
Record is played according to the first transmission, inquires several applications that access times are stood out, and will be described several A application is successively opened by access times.
Specifically, the first transmission for obtaining mobile terminal plays record, root when connection is established in receiving end and the mobile terminal The more application of record queries access times is played according to first transmission, if QQ is audio-visual, QQ music, then preferential QQ is audio-visual, QQ music It opens, when determining file type, can in time be opened file destination by above-mentioned application;
It, can be when connection be established with the mobile terminal in receiving end, directly by the file type application in variation The application in the forefront of access times row is opened in corresponding table.
When using cross-platform media file playing method provided by the invention, the present invention can be according to the target text The file type of part determines corresponding target application, and plays file destination according to target application, makes receiving end with regard to mounted Software platform carries out file broadcasting independently of mobile terminal, avoids the secondary software installation and connection communication carried out in receiving end, File destination Yi Dan not by certain software platform support when, can automatically switch to another software platform to file destination into Row plays, and improves the efficiency of information transmission;The present invention monitors the file destination of transmission in receiving end in real time, and analysis pair in real time The file type answered avoids file destination whole end of transmission to call the matched target application in receiving end immediately It just plays out, reduces the 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 end and movement End;
The receiving end is used to obtain the network identity of mobile terminal, establishes connection with the mobile terminal;
The receiving end is used to open corresponding transmission channel according to the connection, and monitors what mobile terminal was sent in real time File destination;
When the receiving end, which listens to the mobile terminal, has sent the file destination, the file destination is analyzed in real time File type;
The receiving end determines corresponding target application according to the file type of the file destination, and passes through the target File destination described in application plays.
Cross-platform media file-playing system provided by the invention further include: the mobile terminal determine wherein store to The file destination of transmission forms listed files;
The mobile terminal obtains frame data from frame memory buffer according to the file destination;The frame data are subjected to lattice Data after format is converted are carried out coding and are sent to the receiving end by the transmission channel by formula conversion;
Wherein, coding parameter and transmission speed that the mobile terminal passes through coding described in preceding feedback and rear feedback adjustment;Its In, feeding back before described includes adjusting the coding parameter and transmission speed according to the data volume of the frame memory buffer, after described Feedback includes adjusting the coding parameter and transmission speed according to the adjustment of network transmission packet loss.
The mobile terminal obtains frame data from frame memory buffer framebuffer according to the file destination;It will be described Frame data carry out FFmpeg conversion, and H.264 the data progress after FFmpeg is converted is encoded and is passed by the transmission channel It is defeated to be sent to receiving end.
Preferably, it is realized when analyzing the corresponding file type of the file destination in real time by following module:
Temporary file format extraction module, the file of the temporary file for the corresponding caching of file destination described in extract real-time Format;
First file format matching module obtains pair for being matched in file model according to the file format The file type answered.
Preferably, it is realized when being matched in file model according to the file format by following module:
Character cutting module generates cutting segment for the file format to be carried out character cutting;
Second file format matching module, for being matched in file model according to obtained cutting segment, according to Matching probability chooses target fragment as the file type.
Preferably, by following module reality when determining corresponding target application according to the file type of the file destination It is existing:
List of application calling module is formed for calling in the receiving end with the matched multiple applications of the file type List of application;
Target application determining module, for determining the target according to the marking and queuing of multiple applications on a third party site Using.
It preferably, include by following module reality when the mobile terminal has sent the file destination to the receiving end It is existing:
File destination cutting module generates the file information file and file content text for file destination to be carried out cutting Part;
File destination sending module, for by the file information file and the file content file according to priority suitable Sequence is sent to the receiving end;Wherein, the priority of the file information file is higher than the priority of the file content file.
Preferably, when the file destination is audio file, the file information file includes file name, tray Any one of formula, duration, file size, bit rate or code rate are appointed a variety of;
When the file destination be video file, the file information file include file name, file format, duration, Any one of file size, resolution ratio or frame speed are appointed a variety of.
Specifically, when receiving end receives the file information file file type can be determined according to file format, into And determine application;
Or, being carried out matching really in file model according to file name when receiving end receives the file information file Determine file type, and then determines target application;
Or, according to duration information, determining file type, and then determine when receiving end receives the file information file Target application;As it is long at that time be greater than setting time threshold value when, then tentatively judge the type of file destination for video file, and then it is true Set the goal application;When duration is less than setting time threshold value, then tentatively judge the type of file destination for audio file, and then it is true Set the goal application;At that time a length of zero, then tentatively judge the type of file destination for picture file, and then determination target application;
When target application can not open target, then files classes are further determined that using the method in step A1, step A2 Type.
Or, determining file type according to document size information, and then really when receiving end receives the file information file Set the goal application;Such as when document size information is greater than setting file committed memory threshold value, then the class of file destination is tentatively judged Type is video file, and then determines target application;When duration is less than setting file committed memory threshold value, then target is tentatively judged The type of file is audio file, and then determines target application.
When target application can not open target, then using the further schedule file class of method in step A1, step A2 Type.
Preferably, receiving end determines corresponding target application according to the file type of the file destination, specifically:
The corresponding target application of the file type is inquired in the corresponding table of file type application according to the file type;
The corresponding table of file type application is to extract the file type for applying and corresponding to support, stores formation Set tableau format;
Or the corresponding candidate application of the file type is inquired in knowledge base beyond the clouds, and combine and installed in receiving end It is each application to candidate application screen, obtain final target application.
Preferably, in the corresponding table of file type application, each application is corresponding with access times;
When the file type corresponds to multiple target applications, the application for preferentially selecting access times most is answered as target With.
Preferably, further includes:
When receiving end obtains the network identity of mobile terminal, when establishing connection with the mobile terminal, institute is inquired in the receiving end The first transmission for stating mobile terminal plays record;
Record is played according to the first transmission, if a application stood out of inquiry access times, and if a answering described It is successively opened with by access times.
Preferably, when receiving end receives the file information file, according to duration information, file type is determined, in turn Determine target application;
It is long at that time when being greater than setting time threshold value, then tentatively judge the type of file destination for video file, and then determination Target application;When duration be less than setting time threshold value when, then tentatively judge the type of file destination for audio file, and then determination Target application;At that time a length of zero, then tentatively judge the type of file destination for picture file, and then determination target application.
In the present embodiment, when using cross-platform media file-playing system provided by the invention, the present invention can Corresponding target application is determined according to the file type of the file destination, and file destination is played according to target application, makes to connect Receiving end carries out file broadcasting independently of mobile terminal with regard to mounted software platform, avoids the secondary software peace carried out in receiving end It is flat can to automatically switch to another software in file destination when not supported by certain software platform for dress and connection communication Platform plays out file destination, improves the efficiency of information transmission;
The present invention monitors the file destination of transmission in receiving end in real time, and analyzes corresponding file type in real time, thus i.e. When call the matched target application in receiving end, avoid file destination whole end of transmission and just play out, reduce sound Between seasonable, the broadcasting speed of file destination is accelerated.
Specific embodiments of the present invention are described above.It is to be appreciated that the invention is not limited to above-mentioned Particular implementation, those skilled in the art can make various deformations or amendments within the scope of the claims, this not shadow Ring substantive content of the invention.

Claims (14)

1. a kind of cross-platform media file playing method, which comprises the steps of:
Step S1: receiving end obtains the network identity of mobile terminal, establishes connection with the mobile terminal;
Step S2: corresponding transmission channel is opened according to the connection in the receiving end, and monitors what mobile terminal was sent in real time File destination;
Step S3: when the receiving end, which listens to the mobile terminal, has sent the file destination, the target is analyzed in real time The file type of file;
Step S4: corresponding target application is determined according to the file type of the file destination, and is broadcast by the target application Put the file destination;
Include the following steps: when determining corresponding target application according to the file type of the file destination
Step C1: the list of application in the receiving end with the matched multiple application compositions of the file type is called;
Step C2: the target application is determined according to the marking and queuing of multiple applications on a third party site.
2. cross-platform media file playing method described in claim 1, which is characterized in that when analyzing the target in real time Include the following steps: when the corresponding file type of file
Step A1: the file format of the temporary file of the corresponding caching of file destination described in extract real-time;
Step A2: being matched in file model according to the file format, obtains corresponding file type.
3. cross-platform media file playing method according to claim 2, which is characterized in that when according to the tray Include the following steps: when formula is matched in file model
Step B1: the file format is subjected to character cutting and generates cutting segment;
Step B2: being matched in file model according to obtained cutting segment, is chosen target fragment according to matching probability and is made For the file type.
4. cross-platform media file playing method according to claim 1, which is characterized in that the mobile terminal is to described Receiving end includes the following steps: when having sent the file destination
Step D1: file destination is subjected to cutting and generates the file information file and file content file;
Step D2: the sequence of the file information file and the file content file according to priority is sent to the reception End;Wherein, the priority of the file information file is higher than the priority of the file content file.
5. cross-platform media file playing method according to claim 4, which is characterized in that
When the file destination is audio file, the file information file includes file name, file format, duration, text Any one of part size, bit rate or code rate are appointed a variety of;
When the file destination is video file, the file information file includes file name, file format, duration, file Any one of size, resolution ratio or frame speed are appointed a variety of.
6. cross-platform media file playing method according to claim 1, which is characterized in that receiving end is according to the mesh The file type of mark file determines corresponding target application, specifically:
The corresponding target application of the file type is inquired in the corresponding table of file type application according to the file type;
The corresponding table of file type application is to extract the file type for applying and corresponding to support, stores the set of formation Tableau format;
Or the corresponding candidate application of the file type is inquired in knowledge base beyond the clouds, and combine mounted each in receiving end It is screened using to candidate's application, obtains final target application.
7. cross-platform media file playing method according to claim 5, which is characterized in that when receiving end receives institute The file information file is stated, according to duration information, determines file type, and then determine target application;
It is long at that time when being greater than setting time threshold value, then tentatively judge the type of file destination for video file, and then determination target Using;When duration be less than setting time threshold value when, then tentatively judge the type of file destination for audio file, and then determination target Using;At that time a length of zero, then tentatively judge the type of file destination for picture file, and then determination target application.
8. a kind of cross-platform media file-playing system, which is characterized in that including receiving end and mobile terminal;
The receiving end is used to obtain the network identity of mobile terminal, establishes connection with the mobile terminal;
The receiving end is used to open corresponding transmission channel according to the connection, and monitors the target that mobile terminal is sent in real time File;
When the receiving end, which listens to the mobile terminal, has sent the file destination, the text of the file destination is analyzed in real time Part type;
The receiving end determines corresponding target application according to the file type of the file destination, and passes through the target application Play the file destination;
It is realized when determining corresponding target application according to the file type of the file destination by following module:
List of application calling module is answered for calling in the receiving end with what the matched multiple applications of the file type formed Use list;
Target application determining module, for determining that the target is answered according to the marking and queuing of multiple applications on a third party site With.
9. cross-platform media file-playing system according to claim 8, which is characterized in that when analyzing the mesh in real time By following module realization when marking the corresponding file type of file:
Temporary file format extraction module, the tray of the temporary file for the corresponding caching of file destination described in extract real-time Formula;
First file format matching module obtains corresponding for being matched in file model according to the file format File type.
10. cross-platform media file-playing system according to claim 9, which is characterized in that when according to the file It is realized when format is matched in file model by following module:
Character cutting module generates cutting segment for the file format to be carried out character cutting;
Second file format matching module, for being matched in file model according to obtained cutting segment, according to matching Probability chooses target fragment as the file type.
11. cross-platform media file-playing system according to claim 8, which is characterized in that the mobile terminal is to institute Stating when receiving end has sent the file destination includes being realized by following module:
File destination cutting module generates the file information file and file content file for file destination to be carried out cutting;
File destination sending module, for sending out the sequence of the file information file and the file content file according to priority It send to the receiving end;Wherein, the priority of the file information file is higher than the priority of the file content file.
12. cross-platform media file-playing system according to claim 11, which is characterized in that
When the file destination is audio file, the file information file includes file name, file format, duration, text Any one of part size, bit rate or code rate are appointed a variety of;
When the file destination is video file, the file information file includes file name, file format, duration, file Any one of size, resolution ratio or frame speed are appointed a variety of.
13. cross-platform media file-playing system according to claim 8, which is characterized in that receiving end is according to The file type of file destination determines corresponding target application, specifically:
The corresponding target application of the file type is inquired in the corresponding table of file type application according to the file type;
The corresponding table of file type application is to extract the file type for applying and corresponding to support, stores the set of formation Tableau format;
Or the corresponding candidate application of the file type is inquired in knowledge base beyond the clouds, and combine mounted each in receiving end It is screened using to candidate's application, obtains final target application.
14. cross-platform media file-playing system according to claim 12, which is characterized in that when receiving end receives The file information file determines file type according to duration information, and then determines target application;
It is long at that time when being greater than setting time threshold value, then tentatively judge the type of file destination for video file, and then determination target Using;When duration be less than setting time threshold value when, then tentatively judge the type of file destination for audio file, and then determination target Using;At that time a length of zero, then tentatively judge the type of file destination for picture file, and then determination target 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 CN105791964A (en) 2016-07-20
CN105791964B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250182B (en) * 2016-07-27 2019-12-24 北京金山安全软件有限公司 File processing method and device and electronic equipment
CN111158543B (en) * 2019-12-24 2023-10-24 华为技术有限公司 File processing method, electronic equipment, system and storage medium
CN112565458B (en) * 2020-12-25 2021-11-16 北京安华金和科技有限公司 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

Also Published As

Publication number Publication date
CN105791964A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
US10244291B2 (en) Authoring system for IPTV network
CN102158553B (en) Method and device for playing multi-media files for remote desktop
CN103188522B (en) Method and system for providing and delivering a composite condensed stream
CN102752667B (en) Multi-stream media live broadcast interaction system and live broadcast interaction method
CN105025094B (en) Multi-screen interaction method and system
JP2018513583A (en) Audio video file live streaming method, system and server
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
CN112653700B (en) Website video communication method based on WEBRTC
CN103002328A (en) Method and device for identifying channels
CN101883097A (en) Method and device for realizing that server equipment shares screen of client equipment
CN107197386B (en) Cross-platform video playing implementation method without client
CN104185040A (en) Application synchronization method, application server and terminal
CN106101766A (en) The control method for playing back of a kind of video ads, device and electronic equipment
CN105791964B (en) cross-platform media file playing method and system
CN105898506A (en) Method and system for multi-screen playing of media files
CN102665109A (en) Transmitting and receiving method of multimedia video data and corresponding devices
CN102572072A (en) Mobile phone video preview method, video preview control device, and mobile phone with device
CN105247875A (en) Distribution control system and distribution system
CN112771881B (en) Bullet screen processing method and device, electronic equipment and computer readable storage medium
CN103517135A (en) Method, system and television capable of playing MP4-format video files continuously
CN101127780A (en) Method for downloading, saving and replaying online video and construction of online video network
CN102065340B (en) System and method for implementing multimedia synchronous interaction
CN103270764B (en) For the method and apparatus processing video signal
US9232256B2 (en) System and method for generating flash-based media stream

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

Granted publication date: 20181204

Termination date: 20200311