CN105430449B - Media file playing method, apparatus and system - Google Patents

Media file playing method, apparatus and system Download PDF

Info

Publication number
CN105430449B
CN105430449B CN201510828146.XA CN201510828146A CN105430449B CN 105430449 B CN105430449 B CN 105430449B CN 201510828146 A CN201510828146 A CN 201510828146A CN 105430449 B CN105430449 B CN 105430449B
Authority
CN
China
Prior art keywords
media file
data
data frame
target
currently playing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510828146.XA
Other languages
Chinese (zh)
Other versions
CN105430449A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510828146.XA priority Critical patent/CN105430449B/en
Publication of CN105430449A publication Critical patent/CN105430449A/en
Application granted granted Critical
Publication of CN105430449B publication Critical patent/CN105430449B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/232Content retrieval operation locally within server, e.g. reading video streams from disk arrays
    • 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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • 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/26291Content 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 for providing content or additional data updates, e.g. updating software modules, stored at the client

Abstract

The disclosure is directed to a kind of media file playing methods, apparatus and system, belong to playback of media files field field.This method comprises: detecting whether there is target media file during media file client terminal playing media file in Media file server, target media file is the highest version file of the currently playing media file of media file client;When, there are when target media file, according to the currently playing data frame of currently playing media file, determining the data to be played in target media file in Media file server;The data to be played in target media file are sent to media file client, in order to which media file client is according to the broadcasting of data to be played progress target media file.The disclosure solves the problems, such as that media file handoff procedure is complicated in the related technology, has reached the beneficial effect of the handoff procedure of simplified media file.The disclosure is used for the broadcasting of media file.

Description

Media file playing method, apparatus and system
Technical field
This disclosure relates to playback of media files field, in particular to a kind of media file playing method, apparatus and system.
Background technique
With the fast development of electronic technology, the application of the electronic product based on electronic technology is also more and more extensive.Wherein, The terminals such as smart phone, computer are exactly a kind of typical electronic product.
Media file client for playing media file can be installed, wherein media file can be view in terminal Frequency file or audio file.Using media file as video file, media file client is related skill for videoconference client In art, videoconference client can detecte with the presence or absence of target video file, the target video during playing video file File is the highest version file of currently playing video file, and the highest version file of currently playing video file is referred to and is somebody's turn to do The actual video content of currently playing video file is identical, but result of broadcast is better than the text of the currently playing video file Part, for example, the highest version file clarity be higher than currently playing video file clarity, when there are target video files When, videoconference client can on the broadcast interface of currently playing video file display alarm information, when video consumer terminate When receiving user and being operated triggered switching command according to the prompting message, videoconference client is by currently playing video text Part switches to target video file and plays out.
Summary of the invention
In order to solve the problems, such as present in the relevant technologies, present disclose provides a kind of media file playing method, device and System.The technical solution is as follows:
According to the disclosure in a first aspect, providing a kind of media file playing method, which comprises
During media file client terminal playing media file, detects and whether there is target in Media file server Media file, the target media file are the highest version file of the currently playing media file of the media file client;
When in the Media file server there are when the target media file, according to the currently playing media text The currently playing data frame of part determines the data to be played in the target media file;
The data to be played in the target media file are sent to the media file client, in order to the media File client carries out the broadcasting of the target media file according to the data to be played.
Optionally, the currently playing data frame according to the currently playing media file, determines the target matchmaker Data to be played in body file, comprising:
Advertisement message is sent to the media file client, the advertisement message is for informing the media file client Hold in the Media file server that there are the target media files;
Receive the switching request that the media file client is sent according to the advertisement message, the switching request packet Include: the media file client is mentioned from the data of the currently playing media file when receiving the advertisement message The currently playing data frame taken;
In the data of the target media file, determining first object data identical with the currently playing data frame Frame;
Determine the first object data frame corresponding first object playing time in the target media file;
From the data of the target media file, the second mesh played after the first object playing time is determined Mark data;
Using the first object data frame and second target data as the data to be played.
Optionally, described in the data of the target media file, determination is identical with the currently playing data frame First object data frame, comprising:
Determine the currently playing data frame corresponding first playing time in the currently playing media file;
By the currently playing data frame successively in the target media file include first playing time it is pre- If the data in the period are compared;
It is extracted and the currently playing data frame in the data in the preset time period for including first playing time Identical first object data frame.
Optionally, the switching request further include: in the currently playing media file with the currently playing data Corresponding first playing time of frame,
It is described in the data of the target media file, determining first object identical with the currently playing data frame Data frame, comprising:
According to the switching request, by the currently playing data frame successively with include described in the target media file Data in the preset time period of first playing time are compared;
It is extracted and the currently playing data frame in the data in the preset time period for including first playing time Identical first object data frame.
Optionally, described in the data of the target media file, determination is identical with the currently playing data frame First object data frame, comprising:
By the currently playing data frame successively in the target media file include each playing time data into Row compares;
Extract first object data frame identical with the currently playing data frame in the data of the target media file.
Optionally, described successively to broadcast the currently playing data frame including described first with the target media file The data put in the preset time period at moment are compared, comprising:
By in the target media file include first playing time preset time period in data be divided into Few two data segments;
At least one feature data frame is extracted in each data segment, each feature data frame is described every for characterizing The attribute of the corresponding broadcasting content of data segment where a feature data frame;
The currently playing data frame is successively compared at least one described feature data frame.
Optionally, the currently playing data frame according to the currently playing media file, determines the target matchmaker Data to be played in body file, comprising:
Count the number of the target media file;
When the number of the target media file is greater than or equal to 2, according to working as the currently playing media file Preceding played data frame determines the data to be played from the highest target media file of version.
Optionally, described during media file client terminal playing media file, it detects in Media file server With the presence or absence of target media file, comprising:
During the media file client terminal playing media file, it is periodically detected the Media file server In whether there is the target media file;
Alternatively,
When receiving the detection request that the media file client is sent, detecting in the Media file server is It is no that there are the target media files.
According to the second aspect of the disclosure, a kind of media file playing method is provided, which comprises
During media file client terminal playing media file, the target medium that Media file server is sent is received Data to be played in file, the data to be played in the target media file are that the Media file server detects institute It states in Media file server there are when the target media file, according to the currently playing data of currently playing media file What frame determined, the target media file is the highest version file of the currently playing media file;
The broadcasting of the target media file is carried out according to the data to be played.
Optionally, before the data to be played in the target media file that the reception Media file server is sent, The method also includes:
The advertisement message that the Media file server is sent is received, the advertisement message is for informing the media file There are the target media files in Media file server described in client;
Currently playing data frame, institute are extracted from the data of the currently playing media file according to the advertisement message Stating currently playing data frame is the data frame played when receiving the advertisement message;
Switching request is generated according to the currently playing data frame, the switching request includes: the currently playing data Frame;
The switching request is sent to the Media file server, in order to which the Media file server is according to Currently playing data frame determines the data to be played from the data of the target media file.
Optionally, the broadcasting that the target media file is carried out according to the data to be played, comprising:
Judge the buffering progress of the data to be played whether be greater than the currently playing media file from receiving The playback progress started when the advertisement message;
When the buffering progress of the data to be played be greater than the currently playing media file from receiving the announcement When the playback progress started when knowing message, the broadcasting of the target media file is carried out according to the data to be played.
Optionally, whether the buffering progress for judging the data to be played is greater than the currently playing media file The playback progress since when receiving the advertisement message, comprising:
Determine the first playing time corresponding with the currently playing data frame in the currently playing media file;
The currently playing moment is determined according to the playback progress of the currently playing media file;
In the buffered data of the data to be played, determining first object number identical with the currently playing data frame According to frame, the buffered data of the data to be played includes at least one data frame;
Determine the first object data frame corresponding first object playing time in the target media file;
Determine the last one data frame to be played in the buffered data of the data to be played in the target medium Corresponding second target play moment in file;
The play time calculated between the currently playing moment and first playing time is poor;
The object time calculated between second target play moment and the first object playing time is poor;
It is poor to judge whether the object time difference is greater than the play time;
When the object time difference is greater than the play time difference, determine that the buffering progress of the data to be played is greater than The playback progress since when receiving the advertisement message of the currently playing media file.
Optionally, the broadcasting that the target media file is carried out according to the data to be played, comprising:
The data frame of the currently playing moment broadcasting is determined in the data of the currently playing media file;
It is determined in the buffered data of the data to be played identical with the data frame that the currently playing moment plays Target data frame to be played;
Play in order in target data frame to be played and the buffered data of the data to be played in the target The data to be played played after the corresponding playing time of data frame to be played.
Optionally, the switching request further include: in the currently playing media file with the currently playing data Corresponding first playing time of frame.
According to the third aspect of the disclosure, a kind of playback of media files device is provided, described device includes:
Detection module is configured as during media file client terminal playing media file, detection media file clothes It is engaged in whether there is target media file in device, the target media file is the currently playing media of the media file client The highest version file of file;
Determining module, be configured as when in the Media file server there are when the target media file, according to institute The currently playing data frame for stating currently playing media file determines the data to be played in the target media file;
Sending module is configured as sending the number to be played in the target media file to the media file client According in order to which the media file client carries out according to the data to be played the broadcasting of the target media file.
Optionally, the determining module, comprising:
Sending submodule is configured as sending advertisement message to the media file client, and the advertisement message is used for Inform that there are the target media files in Media file server described in the media file client;
Receiving submodule is configured as receiving the media file client and be asked according to the switching that the advertisement message is sent Ask, the switching request include: the media file client when receiving the advertisement message from described currently playing The currently playing data frame extracted in the data of media file;
First determines submodule, is configured as in the data of the target media file, it is determining with it is described currently playing The identical first object data frame of data frame;
Second determines submodule, is configured to determine that the first object data frame is corresponding in the target media file First object playing time;
Third determines submodule, is configured as from the data of the target media file, determines in the first object The second target data played after playing time;
As submodule, it is configured as using the first object data frame and second target data as described wait broadcast Put data.
Optionally, described first submodule is determined, comprising:
Moment determines submodule, is configured to determine that the currently playing data frame in the currently playing media file In corresponding first playing time;
Comparative sub-module, be configured as by the currently playing data frame successively in the target media file include institute The data stated in the preset time period of the first playing time are compared;
Extracting sub-module, be configured as include first playing time preset time period in data in extract with The identical first object data frame of the currently playing data frame.
Optionally, the switching request further include: in the currently playing media file with the currently playing data Corresponding first playing time of frame,
Described first determines submodule, comprising:
Comparative sub-module, is configured as according to the switching request, by the currently playing data frame successively with the mesh Data in mark media file in the preset time period including first playing time are compared;
Extracting sub-module, be configured as include first playing time preset time period in data in extract with The identical first object data frame of the currently playing data frame.
Optionally, described first submodule is determined, comprising:
Comparative sub-module, be configured as by the currently playing data frame successively with include each in the target media file The data of a playing time are compared;
Extracting sub-module is configured as in the data for extracting the target media file and the currently playing data frame phase Same first object data frame.
Optionally, the Comparative sub-module, is configured as:
By in the target media file include first playing time preset time period in data be divided into Few two data segments;
At least one feature data frame is extracted in each data segment, each feature data frame is described every for characterizing The attribute of the corresponding broadcasting content of data segment where a feature data frame;
The currently playing data frame is successively compared at least one described feature data frame.
Optionally, the determining module, is configured as:
Count the number of the target media file;
When the number of the target media file is greater than or equal to 2, according to working as the currently playing media file Preceding played data frame determines the data to be played from the highest target media file of version.
Optionally, the detection module, is configured as:
During the media file client terminal playing media file, it is periodically detected the Media file server In whether there is the target media file;
Alternatively,
When receiving the detection request that the media file client is sent, detecting in the Media file server is It is no that there are the target media files.
According to the fourth aspect of the disclosure, a kind of playback of media files device is provided, described device includes:
First receiving module is configured as during media file client terminal playing media file, receives media text The data to be played in target media file that part server is sent, the data to be played in the target media file are described Media file server detects in the Media file server there are when the target media file, according to currently playing What the currently playing data frame of media file determined, the target media file is the high version of the currently playing media file This document;
Playing module is configured as carrying out the broadcasting of the target media file according to the data to be played.
Optionally, described device further include:
Second receiving module is configured as receiving the advertisement message that the Media file server is sent, and the informing disappears There are the target media files in Media file server described in the media file client for informing for breath;
Extraction module is configured as being extracted from the data of the currently playing media file according to the advertisement message Currently playing data frame, the currently playing data frame are the data frames played when receiving the advertisement message;
Generation module is configured as generating switching request according to the currently playing data frame, and the switching request includes: The currently playing data frame;
Sending module is configured as sending the switching request to the Media file server, in order to the media File server determines the number to be played according to the currently playing data frame from the data of the target media file According to.
Optionally, the playing module, comprising:
Judging submodule is configured as judging whether the buffering progress of the data to be played is greater than described currently playing The playback progress since when receiving the advertisement message of media file;
Submodule is played, is configured as being greater than the currently playing media text when the buffering progress of the data to be played When the playback progress since when receiving the advertisement message of part, the target medium is carried out according to the data to be played The broadcasting of file.
Optionally, the judging submodule, is configured as:
Determine the first playing time corresponding with the currently playing data frame in the currently playing media file;
The currently playing moment is determined according to the playback progress of the currently playing media file;
In the buffered data of the data to be played, determining first object number identical with the currently playing data frame According to frame, the buffered data of the data to be played includes at least one data frame;
Determine the first object data frame corresponding first object playing time in the target media file;
Determine the last one data frame to be played in the buffered data of the data to be played in the target medium Corresponding second target play moment in file;
The play time calculated between the currently playing moment and first playing time is poor;
The object time calculated between second target play moment and the first object playing time is poor;
It is poor to judge whether the object time difference is greater than the play time;
When the object time difference is greater than the play time difference, determine that the buffering progress of the data to be played is greater than The playback progress since when receiving the advertisement message of the currently playing media file.
Optionally, the broadcasting submodule, is configured as:
The data frame of the currently playing moment broadcasting is determined in the data of the currently playing media file;
It is determined in the buffered data of the data to be played identical with the data frame that the currently playing moment plays Target data frame to be played;
Play in order in target data frame to be played and the buffered data of the data to be played in the target The data to be played played after the corresponding playing time of data frame to be played.
Optionally, the switching request further include: in the currently playing media file with the currently playing data Corresponding first playing time of frame.
According to the 5th of the disclosure the aspect, a kind of playback of media files device is provided, comprising:
Processor;
For storing the memory of the executable instruction of the processor;
Wherein, the processor is configured to:
During media file client terminal playing media file, detects and whether there is target in Media file server Media file, the target media file are the highest version file of the currently playing media file of the media file client;
When in the Media file server there are when the target media file, according to the currently playing media text The currently playing data frame of part determines the data to be played in the target media file;
The data to be played in the target media file are sent to the media file client, in order to the media File client carries out the broadcasting of the target media file according to the data to be played.
According to the 6th of the disclosure the aspect, a kind of playback of media files device is provided, comprising:
Processor;
For storing the memory of the executable instruction of the processor;
Wherein, the processor is configured to:
During media file client terminal playing media file, the target medium that Media file server is sent is received Data to be played in file, the data to be played in the target media file are that the Media file server detects institute It states in Media file server there are when the target media file, according to the currently playing data of currently playing media file What frame determined, the target media file is the highest version file of the currently playing media file;
The broadcasting of the target media file is carried out according to the data to be played.
According to the 7th of the disclosure the aspect, a kind of media file-playing system is provided, the system comprises: media file clothes It is engaged in device and terminal, media file client is installed in the terminal,
The Media file server includes playback of media files device described in the third aspect;
The media file client includes playback of media files device described in fourth aspect.
According to the eighth aspect of the disclosure, a kind of media file-playing system is provided, the system comprises: media file clothes It is engaged in device and terminal, media file client is installed in the terminal,
The Media file server includes playback of media files device described in the 5th aspect;
The media file client includes playback of media files device described in the 6th aspect.
The technical solution of the offer of the disclosure can include the following benefits:
Media file playing method, the apparatus and system of the offer of the disclosure, Media file server pass through detection media It whether there is target media file in file server, target media file is the currently playing media text of media file client The highest version file of part, when in Media file server there are when target media file, according to currently playing media file Currently playing data frame determines the data to be played in target media file, sends target medium text to media file client Data to be played in part, in order to which media file client is according to the broadcasting of data to be played progress target media file.By In that can realize that media file switches without user's operation, therefore, it is multiple to solve media file handoff procedure in the related technology Miscellaneous problem has reached the beneficial effect of simplified media file handoff procedure.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited It is open.
Detailed description of the invention
In order to illustrate more clearly of embodiment of the disclosure, attached drawing needed in embodiment description will be made below Simply introduce, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present disclosure, common for this field For technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of structure of implementation environment involved in the media file playing method of each embodiment offer of the disclosure Schematic diagram;
Fig. 2 is a kind of method flow diagram of media file playing method shown according to an exemplary embodiment;
Fig. 3 is a kind of method flow diagram of the media file playing method shown according to another exemplary embodiment;
Fig. 4-1 is a kind of method flow diagram of media file playing method shown according to another exemplary embodiment;
Fig. 4-2 is a kind of Media file server of Fig. 4-1 illustrated embodiment offer in the data of target media file Determine the method flow diagram of data to be played;
Fig. 4-3 be Fig. 4-1 illustrated embodiment provide a kind of Media file server determine in target media file to The method flow diagram of played data;
Fig. 4-4 is a kind of Media file server of Fig. 4-1 illustrated embodiment offer in the data of target media file Determine the method flow diagram of first object data frame;
Fig. 4-5 is a kind of Media file server for providing of Fig. 4-1 illustrated embodiment by currently playing data frame and target The method flow diagram that the data in preset time period in media file including the first playing time are compared;
Fig. 4-6 is data of another Media file server in target media file of Fig. 4-1 illustrated embodiment offer The method flow diagram of middle determining first object data frame;
Fig. 4-7 is data of another Media file server in target media file of Fig. 4-1 illustrated embodiment offer The method flow diagram of middle determining first object data frame;
Fig. 4-8 is that a kind of media file client that Fig. 4-1 illustrated embodiment provides carries out target according to data to be played The method flow diagram of the broadcasting of media file;
Fig. 4-9 is that a kind of media file client that Fig. 4-1 illustrated embodiment provides judges being buffered into for data to be played Whether degree is greater than the method flow diagram of the playback progress of currently playing media file;
Fig. 4-10 is that a kind of media file client that Fig. 4-1 illustrated embodiment provides carries out target according to data to be played The method flow diagram of the broadcasting of media file;
Fig. 5 is a kind of block diagram of playback of media files device shown according to an exemplary embodiment;
Fig. 6-1 is a kind of block diagram of the playback of media files device shown according to another exemplary embodiment;
Fig. 6-2 is a kind of block diagram for determining module that Fig. 6-1 illustrated embodiment provides;
Fig. 6-3 is the block diagram that one kind first that Fig. 6-1 illustrated embodiment provides determines submodule;
Fig. 6-4 is the block diagram that the another kind first that Fig. 6-1 illustrated embodiment provides determines submodule;
Fig. 6-5 is the block diagram for another the first determining submodule that Fig. 6-1 illustrated embodiment provides;
Fig. 7 is a kind of block diagram of playback of media files device shown according to another exemplary embodiment;
Fig. 8-1 is a kind of block diagram of the playback of media files device shown according to a further exemplary embodiment;
Fig. 8-2 is a kind of block diagram for playing module that Fig. 8-1 illustrated embodiment provides;
Fig. 9 is a kind of block diagram of playback of media files device shown according to an exemplary embodiment;
Figure 10 is a kind of block diagram of the playback of media files device shown according to another exemplary embodiment;
Figure 11 is a kind of block diagram of media file-playing system shown according to an exemplary embodiment.
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Specific embodiment
In order to keep the purposes, technical schemes and advantages of the disclosure clearer, below in conjunction with attached drawing to the disclosure make into It is described in detail to one step, it is clear that described embodiment is only disclosure some embodiments, rather than whole implementation Example.It is obtained by those of ordinary skill in the art without making creative efforts based on the embodiment in the disclosure All other embodiment belongs to the range of disclosure protection.
Fig. 1 is a kind of structure of implementation environment involved in the media file playing method of each embodiment offer of the disclosure Schematic diagram.Referring to Fig. 1, which includes: terminal 120 and server 140.
Terminal 120 and server 140 can may include by cable network or wireless network connection, the wireless network But it is not limited to: Wireless Fidelity (English: Wireless Fidelity;Referred to as: WIFI), bluetooth, infrared, purple honeybee (English: Zigbee), data, the embodiment of the present disclosure do not limit this.
Wherein, terminal 120 can be smart phone, tablet computer, smart television, desktop computer, dynamic image expert (the English: Moving Picture Experts GroupAudio Layer IV of compression standard audio level 4;Referred to as: MP4) broadcast Put the device, (English: Moving Picture Experts GroupAudio of dynamic image expert's compression standard audio level 3 Layer III;Referred to as: MP3) player etc., can be with installation media file client, media file client in terminal 120 End can be videoconference client (for example, youku.com's client), may be audio client (for example, KuGoo music client end), Disclosure implementation does not limit this.
Server 140 can be Media file server, exemplary, which can be a server, or The server cluster consisted of several servers or a cloud computing service center.The server 140 can be and end The matched Media file server of media file client installed on end 120, the embodiment of the present disclosure is to this restriction.
Media file client in terminal 120 can be by the network connection between Media file server from media File server obtains the data of media file and plays out, during media file client terminal playing media file, Media file server can detecte with the presence or absence of target media file in Media file server, and target media file is media The highest version file of the currently playing media file of file client;When there are target media files in Media file server When, Media file server can determine target media file according to the currently playing data frame of currently playing media file In data to be played;Then the data to be played in target media file, media file visitor are sent to media file client Family end can receive the data to be played in the target media file of Media file server transmission, be carried out according to data to be played The broadcasting of target media file.
Optionally, when, there are when target media file, Media file server can be to media in Media file server File client sends advertisement message, and advertisement message is for informing that there are targets in media file client media file server Media file;Media file client can be extracted from the data of currently playing media file according to advertisement message and currently be broadcast Data frame is put, currently playing data frame is the data frame played when receiving advertisement message, is generated according to currently playing data frame Then switching request including currently playing data frame sends switching request to Media file server.Media file server It can determine first object data frame identical with currently playing data frame in the data of target media file, determine first Target data frame corresponding first object playing time in target media file is determined from the data of target media file The second target data played after first object playing time, using first object data frame and the second target data as to Played data.
Optionally, Media file server can determine that currently playing data frame is corresponding in currently playing media file The first playing time;By currently playing data frame successively in target media file include the first playing time preset time Data in section are compared;It is extracted and currently playing data in the data in the preset time period for including the first playing time The identical first object data frame of frame.Alternatively, optional, switching request can also include: that media file client is currently playing Media file in the first playing time corresponding with currently playing data frame, Media file server can ask according to switching Ask, by currently playing data frame successively in target media file include the first playing time preset time period in data into Row compares;Identical with currently playing data frame first is extracted in the data in the preset time period for including the first playing time Target data frame.Alternatively, optional, Media file server can be by currently playing data frame successively and in target media file Data including each playing time are compared;It extracts identical with currently playing data frame in the data of target media file First object data frame.
Optionally, Media file server successively plays currently playing data frame with target media file including first It will include the in target media file that it may include: Media file server that data in the preset time period at moment, which are compared, Data in the preset time period of one playing time are divided at least two data segments;At least one is extracted in each data segment Feature data frame, the category of the corresponding broadcasting content of data segment where each feature data frame is used to characterize each feature data frame Property;Currently playing data frame is successively compared at least one feature data frame.
Optionally, when, there are when target media file, Media file server can count mesh in Media file server Mark the number of media file;When the number of target media file is greater than or equal to 2, Media file server is according to currently playing Media file currently playing data frame, data to be played are determined from the highest target media file of version.
Optionally, Media file server can be during media file client terminal playing media file, periodically It detects and whether there is target media file in Media file server;Alternatively, Media file server can receive media When the detection request that file client is sent, detects and whether there is target media file in Media file server.The disclosure is real Example is applied not limit this.
Optionally, media file client may include: matchmaker according to the broadcasting that data to be played carry out target media file Body file client judge the buffering progress of data to be played whether be greater than currently playing media file from receive inform The playback progress started when message;When data to be played buffering progress be greater than currently playing media file from receive accuse When the playback progress started when knowing message, the broadcasting of target media file is carried out according to data to be played.
Exemplary, media file client judges whether the buffering progress of data to be played is greater than currently playing media text The playback progress since when receiving advertisement message of part may include: that media file client determines currently playing media The first playing time corresponding with currently playing data frame in file;It is determined according to the playback progress of currently playing media file The currently playing moment;In the buffered data of data to be played, first object data identical with currently playing data frame are determined Frame, the buffered data of data to be played include at least one data frame;Determine first object data frame in target media file Corresponding first object playing time;Determine the last one data frame to be played in the buffered data of data to be played in mesh Mark corresponding second target play moment in media file;When calculating the broadcasting between currently playing moment and the first playing time Between it is poor;The object time calculated between the second target play moment and first object playing time is poor;Judging object time difference is It is no poor greater than play time;When object time difference is greater than play time difference, media file client determines data to be played Buffering progress is greater than the playback progress since when receiving advertisement message of currently playing media file.
Exemplary, media file client may include: matchmaker according to the broadcasting that data to be played carry out target media file Body file client determines the data frame played at the currently playing moment in the data of currently playing media file;To be played Target data frame to be played identical with the data frame that the currently playing moment plays is determined in the buffered data of data;It plays in order In target data frame to be played and the buffered data of data to be played the corresponding playing time of target data frame to be played it The data to be played played afterwards.
Fig. 2 is a kind of method flow diagram of media file playing method shown according to an exemplary embodiment, this implementation It is illustrated in the server 140 that example is applied in implementation environment shown in Fig. 1 with the media file playing method, the clothes Business device 140 can be Media file server.Referring to fig. 2, which may include the following steps:
In step 201, it during media file client terminal playing media file, detects in Media file server With the presence or absence of target media file, target media file is the highest version text of the currently playing media file of media file client Part.
In step 202, when in Media file server there are when target media file, according to currently playing media text The currently playing data frame of part determines the data to be played in target media file.
In step 203, the data to be played in target media file are sent to media file client, in order to media File client carries out the broadcasting of target media file according to data to be played.
In conclusion the media file playing method that the embodiment of the present disclosure provides, Media file server passes through detection matchmaker It whether there is target media file in body file server, target media file is the currently playing media of media file client The highest version file of file, when in Media file server there are when target media file, according to currently playing media file Currently playing data frame, determine the data to be played in target media file, to media file client send target medium Data to be played in file, in order to which media file client is according to the broadcasting of data to be played progress target media file. Due to that can realize that media file switches without user's operation, solve media file handoff procedure in the related technology Complicated problem, has reached the beneficial effect of simplified media file handoff procedure.
Optionally, step 202 may include:
Advertisement message is sent to media file client, advertisement message is for informing that media file client media file takes Being engaged in device, there are target media files;
The switching request that media file client is sent according to advertisement message is received, switching request includes: media file visitor The currently playing data frame that family end is extracted from the data of currently playing media file when receiving advertisement message;
In the data of target media file, first object data frame identical with currently playing data frame is determined;
Determine first object data frame corresponding first object playing time in target media file;
From the data of target media file, the second target data played after first object playing time is determined;
Using first object data frame and the second target data as data to be played.
Optionally, in the data of target media file, first object data identical with currently playing data frame are determined Frame, comprising:
Determine currently playing data frame corresponding first playing time in currently playing media file;
By currently playing data frame successively and in the preset time period in target media file including the first playing time Data are compared;
Identical with currently playing data frame the is extracted in the data in the preset time period for including the first playing time One target data frame.
Optionally, switching request further include: corresponding with currently playing data frame first in currently playing media file Playing time,
In the data of target media file, first object data frame identical with currently playing data frame is determined, comprising:
According to switching request, by currently playing data frame successively with include the pre- of the first playing time in target media file If the data in the period are compared;
Identical with currently playing data frame the is extracted in the data in the preset time period for including the first playing time One target data frame.
Optionally, in the data of target media file, first object data identical with currently playing data frame are determined Frame, comprising:
Currently playing data frame is successively compared with the data in target media file including each playing time;
Extract first object data frame identical with currently playing data frame in the data of target media file.
Optionally, by currently playing data frame successively in target media file include the first playing time preset time Data in section are compared, comprising:
Data in preset time period in target media file including the first playing time are divided at least two numbers According to section;
At least one feature data frame is extracted in each data segment, each feature data frame is for characterizing each characteristic According to the attribute of the corresponding broadcasting content of data segment where frame;
Currently playing data frame is successively compared at least one feature data frame.
Optionally, step 202 may include:
Count the number of target media file;
When the number of target media file is greater than or equal to 2, according to the currently playing number of currently playing media file According to frame, data to be played are determined from the highest target media file of version.
Optionally, step 201 may include:
During media file client terminal playing media file, it is periodically detected in Media file server and whether deposits In target media file;
Alternatively,
In the detection request for receiving the transmission of media file client, detects and whether there is mesh in Media file server Mark media file.
All the above alternatives can form the alternative embodiment of the disclosure, herein no longer using any combination It repeats one by one.
In conclusion the media file playing method that the embodiment of the present disclosure provides, Media file server passes through detection matchmaker It whether there is target media file in body file server, target media file is the currently playing media of media file client The highest version file of file, when in Media file server there are when target media file, according to currently playing media file Currently playing data frame, determine the data to be played in target media file, to media file client send target medium Data to be played in file, in order to which media file client is according to the broadcasting of data to be played progress target media file. Due to that can realize that media file switches without user's operation, solve media file handoff procedure in the related technology Complicated problem, has reached the beneficial effect of simplified media file handoff procedure.
Fig. 3 is a kind of method flow diagram of the media file playing method shown according to another exemplary embodiment, this reality It applies in the terminal 120 that example is applied in implementation environment shown in Fig. 1 with the media file playing method and is illustrated, the end It can be executed by media file client with installation media file client, the media file playing method in end 120.Ginseng See Fig. 3, which may include the following steps:
In step 301, during media file client terminal playing media file, Media file server hair is received Data to be played in the target media file sent, the data to be played in target media file are Media file server detections It is true according to the currently playing data frame of currently playing media file into Media file server there are when target media file Fixed, target media file is the highest version file of currently playing media file.
In step 302, the broadcasting of target media file is carried out according to data to be played.
In conclusion the media file playing method that the embodiment of the present disclosure provides, media file client is by receiving matchmaker The data to be played in target media file that body file server is sent, the data to be played in target media file are media File server detects in Media file server there are when target media file, according to working as currently playing media file What preceding played data frame determined, target media file is the highest version file of currently playing media file, according to number to be played According to the broadcasting for carrying out target media file.Due to that can realize that media file switches without user's operation, solve phase The problem of media file handoff procedure complexity in the technology of pass, has reached the beneficial effect of simplified media file handoff procedure.
Optionally, before step 301, this method can also include:
The advertisement message that Media file server is sent is received, advertisement message is for informing media file client media text There are target media files in part server;
Currently playing data frame, currently playing number are extracted from the data of currently playing media file according to advertisement message It is the data frame played when receiving advertisement message according to frame;
Switching request is generated according to currently playing data frame, switching request includes: currently playing data frame;
Switching request is sent to Media file server, in order to which Media file server is according to currently playing data frame, Data to be played are determined from the data of target media file.
Optionally, step 302 may include:
Judge the buffering progress of data to be played whether be greater than currently playing media file from receiving advertisement message When the playback progress that starts;
When the buffering progress of data to be played be greater than currently playing media file since when receiving advertisement message Playback progress when, according to data to be played carry out target media file broadcasting.
Optionally, judge the buffering progress of data to be played whether be greater than currently playing media file from receive accuse The playback progress started when knowing message, comprising:
Determine the first playing time corresponding with currently playing data frame in currently playing media file;
The currently playing moment is determined according to the playback progress of currently playing media file;
In the buffered data of data to be played, first object data frame identical with currently playing data frame is determined, to The buffered data of played data includes at least one data frame;
Determine first object data frame corresponding first object playing time in target media file;
Determine that the last one data frame to be played in the buffered data of data to be played is right in target media file The second target play moment answered;
The play time calculated between currently playing moment and the first playing time is poor;
The object time calculated between the second target play moment and first object playing time is poor;
It is poor to judge whether object time difference is greater than play time;
When object time difference is greater than play time difference, determine that the buffering progress of data to be played is greater than currently playing matchmaker The playback progress since when receiving advertisement message of body file.
Optionally, the broadcasting of target media file is carried out according to data to be played, comprising:
The data frame of currently playing moment broadcasting is determined in the data of currently playing media file;
Determine that target identical with the data frame that the currently playing moment plays waits broadcasting in the buffered data of data to be played Put data frame;
Play in order in target data frame to be played and the buffered data of data to be played in target data frame to be played The data to be played played after corresponding playing time.
Optionally, switching request further include: corresponding with currently playing data frame first in currently playing media file Playing time.
All the above alternatives can form the alternative embodiment of the disclosure, herein no longer using any combination It repeats one by one.
In conclusion the media file playing method that the embodiment of the present disclosure provides, media file client is by receiving matchmaker The data to be played in target media file that body file server is sent, the data to be played in target media file are media File server detects in Media file server there are when target media file, according to working as currently playing media file What preceding played data frame determined, target media file is the highest version file of currently playing media file, according to number to be played According to the broadcasting for carrying out target media file.Due to that can realize that media file switches without user's operation, solve phase The problem of media file handoff procedure complexity in the technology of pass, has reached the beneficial effect of simplified media file handoff procedure.
Fig. 4-1 is a kind of method flow diagram of media file playing method shown according to another exemplary embodiment, this Embodiment is applied to be illustrated in implementation environment shown in Fig. 1 with the media file playing method.Referring to fig. 4-1, should Media file playing method may include the following steps:
In step 401, during media file client terminal playing media file, Media file server detects matchmaker It whether there is target media file in body file server, target media file is the currently playing media of media file client The highest version file of file.
Wherein, media file client can be videoconference client, or audio client, videoconference client are for example excellent Cruel client, iqiyi.com client etc., audio client such as KuGoo music client end, Baidu music client etc., media file It can be video file, or audio file, the embodiment of the present disclosure do not limit this.
Media file client needs to obtain the number for corresponding to the media file from server when playing media file According to, wherein the server can be Media file server matched with the media file client, be also possible to third party's clothes Business device, for example, the server can be youku.com's server, be also possible to like when media file client is youku.com's client Odd skill server (third-party server), the embodiment of the present disclosure does not limit this.
When media file client obtains the data of media file from Media file server, Media file server can To send the data of media file to media file client, at this point, Media file server can consider media file client End is playing media file;Alternatively, media file client when playing media file, can be sent to Media file server Instruction information is played, Media file server can indicate that information determines that this broadcasts media file client in broadcasting according to the broadcasting Put media file indicated by instruction information.
Media file server determines that media file client when playing media file, can detecte media file service It whether there is target media file in device, which is the height of the currently playing media file of media file client Version file.It is exemplary, it is assumed that the currently playing media file of the media file client is the view of file entitled " XXX.wmv " Frequency file, then the target media file is also the video file of " XXX.wmv ", and the FileVersion of the target media file is higher than The FileVersion of currently playing media file, for example, the clarity of the target media file is greater than the currently playing media The clarity of file, the sound quality of the target media file are better than the sound quality etc. of the currently playing media file.
Optionally, Media file server can be determined according to the data of the media file sent to media file client The mark of the currently playing media file of media file client and the FileVersion of the currently playing media file, or Person, media file client can be by the mark of currently playing media file and the files of the currently playing media file Version, which is carried, is sent to Media file server in playing instruction information.Media file server can store media file mark Know the corresponding relationship with FileVersion, media file identification and FileVersion are inquired according to the mark of currently playing media file Corresponding relationship, obtain the media file of all versions corresponding with the mark of the currently playing media file, then detect It whether there is target media file in the media file of all versions corresponding with the mark of the currently playing media file.Show Example, it is illustrated so that media file is video file as an example, then the media file identification and text of Media file server storage The corresponding relationship of part version can be as shown in table 1 below:
Table 1
Assuming that the currently playing media file of media file client is identified as ID-A, FileVersion A1, then media File server is according to mark ID-A, corresponding relationship shown in inquiry table 1, on available Media file server with mark The media file of the corresponding all versions of ID-A, referring to table 1 it is found that there are 3 and mark ID-A on the Media file server Corresponding media file, this 3 media files corresponding with mark ID-A are respectively media file, the file that FileVersion is A1 The media file that the media file and FileVersion that version is A2 are A3, wherein the media file that FileVersion is A1 is SD File (that is, the clarity that FileVersion is the media file of A1 belongs to clarity range corresponding to SD), FileVersion Media file for A2 be high definition (that is, the clarity that FileVersion is the media file of A2 belong to it is clear corresponding to high definition Spend range), the media file that FileVersion is A3 is ultra high-definition file (that is, FileVersion is the clear of the media file of A3 Degree belongs to clarity range corresponding to ultra high-definition), hence, it can be determined that FileVersion A2 is higher than FileVersion A1, file version This A3 is higher than FileVersion A2, and Media file server can determine mesh in this 3 media files corresponding with mark ID-A Media file is marked, it is exemplary, since FileVersion A2, FileVersion A3 are above FileVersion A1, media file service Device determines the media file that target media file is the media file that FileVersion is A2 and FileVersion is A3.
It should be noted that about media file identification ID-B and media file identification ID-B correspondence in above-mentioned table 1 The description of FileVersion, media file identification ID-C and the corresponding FileVersion of media file identification ID-C description can be with With reference to the above-mentioned description to media file identification ID-A and the corresponding FileVersion of media file identification ID-A, the disclosure is implemented Details are not described herein for example.
It should also be noted that, in the embodiments of the present disclosure, the data of currently playing media file can be media text What part client was obtained from Media file server matched with media file client, it is also possible to media file client It is obtained from third-party server.If the data of currently playing media file be media file client from media file It is obtained on the matched Media file server of client, then the Media file server can be in media file client terminal playing During media file, it is periodically detected in Media file server with the presence or absence of target media file, if currently playing What the digital media file client of media file was obtained from third-party server, then the media file client can to The matched Media file server of the media file client sends detection request, can carry media file in detection request The mark of the currently playing media file of client, Media file server matched with the media file client can connect When receiving detection request, according to the mark of the media file of the carrying in detection request, detect in Media file server With the presence or absence of target media file, the embodiment of the present disclosure is not limited this.
In step 402, when there are when target media file, Media file server is according to working as in Media file server The currently playing data frame of the media file of preceding broadcasting determines the data to be played in target media file.
If in step 401, Media file server detects that there are target media files in Media file server, then Media file server determines target matchmaker according to the currently playing data frame of the currently playing media file of media file client Data to be played in body file.
It is exemplary, Fig. 4-2 is please referred to, shows a kind of Media file server that Fig. 4-1 illustrated embodiment provides The method flow diagram of data to be played is determined in the data of target media file, referring to fig. 4-2, this method process may include The following steps:
In sub-step 402A, Media file server counts the number of target media file.
Media file server can be with the number for the target media file that statistic mixed-state arrives, exemplary, media file service Device statistic mixed-state to the target media file for being identified as ID-A number.By above-mentioned steps 201 it is found that Media file server Determine the media file that target media file is the media file that FileVersion is A2 and FileVersion is A3.Therefore, media text The number for the target media file that part server statistics arrive is 2.
In sub-step 402B, when the number of target media file is greater than or equal to 2, Media file server is according to working as The currently playing data frame of the media file of preceding broadcasting determines data to be played from the highest target media file of version.
When Media file server determines the number of target media file more than or equal to 2 in sub-step 402A, Media file server is according to the currently playing data frame of currently playing media file, from the highest target media file of version Middle determination data to be played, it is exemplary, due to FileVersion A3 be higher than FileVersion A2, Media file server according to The currently playing data frame of currently playing media file determines number to be played from the target media file that FileVersion is A3 According to.
Optionally, in this step 402B, Media file server can first be arranged the FileVersion of media file Then sequence determines the highest target media file of FileVersion according to ranking results, further according to currently playing media file Currently playing data frame, data to be played are determined from the highest target media file of version.
It is exemplary, Fig. 4-3 is please referred to, shows a kind of Media file server that Fig. 4-1 illustrated embodiment provides Determine the method flow diagram of the data to be played in target media file, referring to fig. 4-3, this method process may include following several A step:
In sub-step 4021, Media file server sends advertisement message to media file client, and advertisement message is used There are target media files in informing media file client media file server.
When Media file server detects in Media file server the media file service there are when target media file Device can send advertisement message to media file client, and the notification is for informing that media file client media file takes Being engaged in device, there are target media files, exemplary, and the information such as the FileVersion of file destination can be carried in the advertisement message, this Open embodiment does not limit this.In practical application, which can be Media file server and media file visitor The character string etc. that family end can identify, the embodiment of the present disclosure does not limit this.
In sub-step 4022, media file client receives the advertisement message that Media file server is sent.
When Media file server sends advertisement message to media file client, media file client can receive this Advertisement message.Wherein, there are target medium texts in media file client media file server for informing for the advertisement message Part.
In sub-step 4023, media file client is according to advertisement message from the data of currently playing media file Currently playing data frame is extracted, currently playing data frame is the data frame played when receiving advertisement message.
It, can be according to the advertisement message when media file client receives the advertisement message of Media file server transmission Currently playing data frame is extracted in the data of the media file currently playing from media file client, the current played data frame It can be media file client and receive data frame being played on when advertisement message.It is exemplary, it is assumed that receive informing and disappear When breath, media file client data frame being played on is the 1120354th data frame in currently playing media file, 1120354th data frame can be data frame W, then the current data frame that media file client is extracted is data frame W. In practical application, when the currently playing media file of media file client is video file, which can Exemplary to be a frame image, which is the 1120354th frame image.
In sub-step 4024, media file client generates switching request, switching request according to currently playing data frame It include: currently playing data frame.
After extracting currently playing data frame, it includes working as that media file client can be generated according to currently playing data frame The switching request of preceding played data frame.Exemplary, media file client generates the switching request including data frame W.Optionally, It can also include corresponding with currently playing data frame in the currently playing media file of media file client in the switching request The first playing time, which can be 1:28:30 (1 hour 28 points and 30 seconds), the embodiment of the present disclosure to this not It limits.
In sub-step 4025, media file client sends switching request to Media file server.
It, can be to Media file server after media file client generates the switching request including currently playing data frame The switching request that this includes currently playing data frame is sent, exemplary, media file client is sent to Media file server Switching request including data frame W.Wherein, it includes currently playing data that media file client is sent to Media file server The switching request of frame can be in order to which Media file server be according to currently playing data frame, from the data of target media file really Fixed data to be played.
In sub-step 4026, Media file server receives the switching request that media file client is sent.
When media file client sends switching request to Media file server, Media file server can receive matchmaker The switching request that body file client is sent, wherein the switching request may include: that media file client is receiving informing The currently playing data frame extracted from the data of currently playing media file when message.It is exemplary, Media file server Receive the switching request including data frame W that media file client is sent.
In sub-step 4027, Media file server is in the data of target media file, determining and currently playing number According to the identical first object data frame of frame.
After Media file server receives the switching request of media file client transmission, the switching request can parse Currently playing data frame is obtained, then in the data of target media file, determines identical with currently playing data frame first Target data frame.
It is exemplary, Fig. 4-4 is please referred to, shows a kind of Media file server that Fig. 4-1 illustrated embodiment provides The method flow diagram of first object data frame is determined in the data of target media file, referring to fig. 4-4, this method process can be with It comprises the following steps:
In sub-step 40271a, Media file server determines currently playing data frame in currently playing media file In corresponding first playing time.
It can store the information of currently playing media file in Media file server, the currently playing media file Information may include: data frame and playing time corresponding relationship, record in the corresponding relationship of the data frame and playing time The data in data frame and the currently playing media file in the currently playing media file of media file client The corresponding playing time of frame.Media file server can inquire pair of data frame and playing time according to currently playing data frame It should be related to obtain currently playing data frame corresponding first playing time in currently playing media file.It is exemplary, media File server inquires the corresponding relationship of data frame and playing time according to data frame W (currently playing data frame), obtains data Frame W corresponding first playing time in currently playing media file, first playing time can be 1:28:30.
In sub-step 40272a, Media file server by currently playing data frame successively with wrapped in target media file The data included in the preset time period of the first playing time are compared.
Media file server determines corresponding first broadcasting in currently playing media file of currently playing data frame It, can be by currently playing data frame successively and in the preset time period in target media file including the first playing time after moment Data be compared.Wherein, preset time period can be set according to actual needs, and the embodiment of the present disclosure does not limit this, Exemplary, preset time period can be 5 minutes, then the preset time period including the first playing time can be 1:26:30~1: 31:30, then Media file server is by data frame W successively and in target media file in period 1:26:30~1:31:30 Data are compared.
It is exemplary, Fig. 4-5 is please referred to, shows a kind of Media file server that Fig. 4-1 illustrated embodiment provides Currently playing data frame is successively carried out with the data in the preset time period in target media file including the first playing time The method flow diagram compared, referring to fig. 4-5, this method process may include the following steps:
In sub-step 40272a1, Media file server will include the pre- of the first playing time in target media file If the data in the period are divided at least two data segments.
Media file server can be by the number in the preset time period in target media file including the first playing time According to being divided at least two data segments, wherein Media file server can be to the preset time period including the first playing time Interior data are divided at equal intervals, can also be according in the preset time period in target media file including the first playing time Data in data interframe the degree of correlation to include the first playing time preset time period in data divide, this public affairs Embodiment is opened not limit this.Exemplary, the data in the preset time period including the first playing time may include multiple Data frame, Media file server can calculate the similarity between multiple data frames, by the similarity between multiple data frames As the degree of correlation between multiple data frame, then according to the degree of correlation in the preset time period including the first playing time Data are divided.
Exemplary, the preset time period including the first playing time can be 1:26:30~1:31:30, should include first Data in the preset time period of playing time can be K1K2K3K4W2WW7P4P2P0V0V9, should be including the pre- of the first playing time If in the data in the period including data frame K1, data frame K2, data frame K3, data frame K4, data frame W2, data frame W, data Frame W7, data frame P4, data frame P2, data frame P0, data frame V0With data frame V9
Assuming that the playing duration of each data frame is equal, if being divided at equal intervals, and 4 data segments are divided into, then 4 data segments are respectively data segment K1K2K3, data segment K4W2W, data segment W7P4P2With data segment P0V0V9, in each data segment Including 3 data frames.
If according to the data frame in the data in the preset time period in target media file including the first playing time Between the degree of correlation divided, then Media file server can calculate data frame K1, data frame K2, data frame K3, data frame K4, data frame W2, data frame W, data frame W7, data frame P4, data frame P2, data frame P0, data frame V0With data frame V9Between The degree of correlation is greater than preset threshold and adjacent data frame dividing is one group, exemplary, data frame K by the degree of correlation1With data frame K2 The degree of correlation be greater than preset threshold, data frame K2With data frame K3The degree of correlation be greater than preset threshold, data frame K3With data frame K4 The degree of correlation be greater than preset threshold, data frame K4With data frame W2The degree of correlation be less than preset threshold, then Media file server will Data frame K1, data frame K2, data frame K3With data frame K4It is divided into one group, similarly it is found that data frame W2, data frame W and data Frame W7It is one group, data frame P4, data frame P2With data frame P0It is one group, data frame V0With data frame V9It is one group, then divides Data segment may include 4 data segments, which is respectively data segment K1K2K3K4, data segment W2WW7, data segment P4P2P0 With data segment V0V9
In sub-step 40272a2, Media file server extracts at least one feature data frame in each data segment, The attribute of the corresponding broadcasting content of data segment where each feature data frame is used to characterize each feature data frame.
Data in preset time period in target media file including the first playing time are divided at least two numbers After section, Media file server can extract at least one feature data frame in each data segment, wherein each characteristic The attribute of the corresponding broadcasting content of data segment, exemplary where being used to characterize each feature data frame according to frame, when media file is When video file, this feature data frame that is to say that characteristic image, this feature image can be in the data segment of this feature image place Representative image, the embodiment of the present disclosure do not limit this.Wherein, Media file server can calculate in each data segment Then the characteristic value of each data frame determines feature data frame according to the characteristic value of each data frame, and extract this feature data Frame.Wherein, Media file server determines that the detailed implementation of feature data frame can be implemented with reference to the relevant technologies, the disclosure Details are not described herein for example.
It is exemplary, using at least two data segments as data segment K1K2K3K4, data segment W2WW7, data segment P4P2P0And data segment V0V9, and assume that Media file server extracts a feature data frame from each data segment, then Media file server extracts The feature data frame arrived can be with are as follows: feature data frame K2, feature data frame W, feature data frame P0With feature data frame V9
In sub-step 40272a3, Media file server by currently playing data frame successively at least one characteristic It is compared according to frame.
It, can be successively special at least one by currently playing data frame after Media file server extracts feature data frame Sign data frame be compared, it is exemplary, Media file server by currently playing data frame W successively with feature data frame K2, it is special Levy data frame W, feature data frame P0With feature data frame V9It is compared.
In sub-step 40273a, data of the Media file server in the preset time period for including the first playing time It is middle to extract first object data frame identical with currently playing data frame.
By currently playing data frame successively and in the preset time period in target media file including the first playing time After data are compared, Media file server can determine that this includes the data in the preset time period of the first playing time In first object data frame identical with currently playing data frame, Media file server can extract the first object data Frame.It is exemplary, by above-mentioned steps 40272a it is found that include the first playing time preset time period in data in currently broadcast It puts the identical first object data frame of data frame and is characterized data frame W, then Media file server extracts this feature data frame W.
Optionally, in the embodiments of the present disclosure, switching request can also include: the currently playing matchmaker of media file client The first playing time corresponding with currently playing data frame in body file.When switching request further includes that media file client is current In the media file of broadcasting when the first playing time corresponding with currently playing data frame, Media file server can be according to figure Method shown in 4-6 determines first object data frame.
It is exemplary, Fig. 4-6 is please referred to, shows another media file service that Fig. 4-1 illustrated embodiment provides Device determines the method flow diagram of first object data frame in the data of target media file, and referring to fig. 4-6, this method process can To comprise the following steps:
In sub-step 40271b, Media file server according to switching request, by currently playing data frame successively with mesh Data in mark media file in the preset time period including the first playing time are compared.
Wherein, Media file server can parse switching request, obtain the currently playing media of media file client Currently playing data frame in file the first playing time corresponding with the current played data frame.Then by currently playing data Frame is successively compared with the data in the preset time period in target media file including the first playing time.Wherein, media File server is by currently playing data frame successively and in the preset time period in target media file including the first playing time The process that is compared of data can with reference in Fig. 4-4 illustrated embodiment sub-step 40272a and corresponding Fig. 4-5 institute Show embodiment, details are not described herein for the embodiment of the present disclosure.
In sub-step 40272b, data of the Media file server in the preset time period for including the first playing time It is middle to extract first object data frame identical with currently playing data frame.
The realization process of sub-step 40272b can be with reference to the sub-step 40273a in Fig. 4-4 illustrated embodiment, this public affairs Opening embodiment, details are not described herein.
It is exemplary, Fig. 4-7 is please referred to, shows another media file service that Fig. 4-1 illustrated embodiment provides Device determines the method flow diagram of first object data frame in the data of target media file, and referring to fig. 4-7, this method process can To comprise the following steps:
In sub-step 40271c, Media file server by currently playing data frame successively with wrapped in target media file The data for including each playing time are compared.
Wherein, the data in target media file including each playing time that is to say all numbers of target media file According to showing that is, currently playing data frame is successively compared with all data of target media file by Media file server Example, it is assumed that be ... DD including the data of each playing time in target media file2D0D6......K1K2K3K4W2WW7P4P2P0V0V9M1M2M3......MCK3..., then Media file server by currently playing data frame W successively with number According to ... DD2D0D6......K1K2K3K4W2WW7P4P2P0V0V9M1M2M3......MCK3.. ... each data frame in is compared.
In sub-step 40272c, Media file server extract target media file data in currently playing data The identical first object data frame of frame.
After currently playing data frame is successively compared with the data in target media file including each playing time, Media file server can determine that this includes identical with currently playing data frame first in the data of each playing time Target data frame, Media file server can extract the first object data frame.Referring to step 40271c it is found that including each First object data frame identical with currently playing data frame is data frame W, then media file service in the data of playing time Device extracts data frame W.
In sub-step 4028, Media file server determines that first object data frame is corresponding in target media file First object playing time.
It can store the information of target media file in Media file server, the information of the target media file can wrap It includes: having recorded target medium text in the corresponding relationship of the corresponding relationship of data frame and playing time, the data frame and playing time The corresponding playing time of data frame in data frame and the target media file in part.Media file server can basis First object data frame inquiry data frame and the corresponding relationship of playing time obtain first object data frame in target media file In corresponding first object playing time.It is exemplary, Media file server according to first object data frame W inquire data frame with The corresponding relationship of playing time obtains first object data frame W corresponding first object playing time in target media file, The first object playing time can be 1:30:30 (1 hour 30 points and 30 seconds).
In sub-step 4029, Media file server from the data of target media file, broadcast in first object by determination Put the second target data played after the moment.
Exemplary, Media file server determines the number played after 1:30:30 from the data of target media file According to the data played after the 1:30:30 can be the second target data.Wherein, Media file server can be according to first Data in the information of the target media file of inquiry of each moment Media file server storage after target play moment The corresponding relationship of frame and playing time obtains the data frame of the broadcasting of each moment after first object playing time, according to more The data frame that a moment plays obtains the second target data.It is exemplary, it is assumed that the data of broadcasting are after 1:30:30 W7P4P2P0V0V9M1M2M3......MCK3..., then Media file server can inquire the information of the target media file In data frame and playing time available second target data of corresponding relationship be W7P4P2P0V0V9M1M2M3......MCK3 ..., the embodiment of the present disclosure does not limit this.
In sub-step 4030, Media file server is using first object data frame and the second target data as to be played Data.
After determining first object data frame and the second target data, Media file server can be by first object data frame Exemplary with the second target data as data to be played, Media file server is by first object data frame W and the second target Data W7P4P2P0V0V9M1M2M3......MCK3... as data to be played, then the data to be played can be WW7P4P2P0V0V9M1M2M3......MCK3......。
In step 403, Media file server is sent to be played in target media file to media file client Data.
After Media file server determines the data to be played in target media file, it can be sent out to media file client Give the data to be played in the target media file, in order to media file client according in the target media file wait broadcast Put the broadcasting that data carry out target media file.It should be noted that in the embodiments of the present disclosure, Media file server can be with The data to be played in target media file are determined on one side, send data to be played, the disclosure to media file client on one side Embodiment does not limit this.Exemplary, Media file server determines WW7P4WW is sent to media file client afterwards7P4, And determine P2P0V0Wait played data.
In step 404, media file client receive Media file server send target media file in Played data.
When Media file server sends the data to be played in target media file to media file client, media text Part client can receive the data to be played in the target media file of Media file server transmission.
In step 405, media file client carries out the broadcasting of target media file according to data to be played.
It, can be according to target media file after media file client receives the data to be played in target media file In data to be played carry out target media file broadcasting.
It is exemplary, Fig. 4-8 is please referred to, shows a kind of media file client that Fig. 4-1 illustrated embodiment provides The method flow diagram of the broadcasting of target media file is carried out according to data to be played, referring to fig. 4-8, this method process may include The following steps:
In sub-step 4051, it is currently playing that media file client judges whether the buffering progress of data to be played is greater than Media file the playback progress since when receiving advertisement message.
It should be noted that in the embodiments of the present disclosure, media file client extracts currently playing data frame, generates and cut It changes request, send switching request and Media file server to Media file server in the data of target media file really During fixed data to be played, media file client is also playing currently playing media file, that is, in media file Before client terminal playing target media file, media file client is playing always currently playing media file.Therefore, in order to Target media file and currently playing media file is set to reach seamless connection switching, reaching makes user's unaware handoff procedure Effect, media file client may determine that the buffering progress of data to be played whether be greater than currently playing media file from The playback progress started when receiving advertisement message, when the buffering progress of data to be played is greater than currently playing media file When playback progress since when receiving advertisement message, media file client carries out target medium text according to data to be played The broadcasting of part.
It is exemplary, Fig. 4-9 is please referred to, shows a kind of media file client that Fig. 4-1 illustrated embodiment provides Judge the buffering progress of data to be played whether be greater than currently playing media file since when receiving advertisement message The method flow diagram of playback progress, referring to fig. 4-9, this method process may include the following steps:
In sub-step 40511, media file client determine in currently playing media file with currently playing data Corresponding first playing time of frame.
It can store the information of the played data in currently playing media file in media file client, this is current The information of played data in the media file of broadcasting may include: the corresponding relationship of played data frame and playing time, It is had recorded in the currently playing media file of media file client in the played data frame and the corresponding relationship of playing time Played data in played data frame and the played data frame playing time.Media file client can root Currently playing data frame is obtained current according to the corresponding relationship that currently playing data frame inquires played data frame and playing time Corresponding first playing time in the media file of broadcasting.Exemplary, media file client is looked into according to currently playing data frame W The corresponding relationship for asking played data frame and playing time, obtains currently playing data frame W in currently playing media file Corresponding first playing time, first playing time can be 1:28:30.
In sub-step 40512, media file client is worked as according to the determination of the playback progress of currently playing media file Preceding playing time.
Wherein, playback progress is playing time, and therefore, media file client can be by currently playing media file Playback progress as the currently playing moment.Exemplary, the playback progress of currently playing media file can be 1:29:00 (1 Hours 29 points 0 second), therefore, the currently playing moment can be 1:29:00.
In sub-step 40513, media file client in the buffered data of data to be played, it is determining with it is currently playing The identical first object data frame of data frame, the buffered data of data to be played include at least one data frame.
Wherein, since Media file server can be sent while determining data to be played to media file client The data to be played after media file client receives data to be played, can be stored in the slow of terminal by data to be played It deposits in space, the data to be played stored in the spatial cache are the buffered data of data to be played, the data to be played Buffered data may include at least one data frame.Media file client can be in the buffered data of data to be played, really Fixed first object data frame identical with currently playing data frame.
Exemplary, data to be played can be WW7P4P2P0V0V9M1M2M3......MCK3..., the data to be played Buffered data can be WW7P4P2P0V0V9M1M2, include data frame W, data frame W in the buffered data of the data to be played7、 Data frame P4, data frame P2, data frame P0, data frame V0, data frame V9, data frame M1With data frame M2Totally 9 data frames.By upper State sub-step 4023 it is found that currently playing data frame be W, therefore, media file client can by currently playing data frame W according to The secondary data frame with the buffered data of data to be played is compared, and determines the first mesh identical with currently playing data frame Mark data frame W.
In sub-step 40514, media file client determines that first object data frame is corresponding in target media file First object playing time.
Media file server may include data to be played into the data to be played that media file client is sent Information, media file client can store the information of the buffered data of the data to be played of target media file, target matchmaker The information of the buffered data of the data to be played of body file may include: the corresponding relationship of buffered data frames and playing time, should It is had recorded in the buffered data of data to be played of target media file in the corresponding relationship of buffered data frames and playing time The playing time of buffered data frames and buffered data frames.Media file client can inquire slow according to first object data frame It rushes data frame and obtains first object data frame corresponding first object in target media file with the corresponding relationship of playing time Playing time.Exemplary, media file client inquires pair of buffered data frames and playing time according to first object data frame W It should be related to, obtain first object data frame W corresponding first object playing time, the first object in target media file and broadcast Putting the moment can be 1:30:30.
In sub-step 40515, media file client determine in the buffered data of data to be played the last one wait for The data frame of broadcasting corresponding second target play moment in target media file.
Media file client can be according to the last one data frame to be played in the buffered data of data to be played The corresponding relationship of buffered data frames and playing time is inquired, the last one obtained in the buffered data of the data to be played waits broadcasting The data frame put corresponding second target play moment in target media file.It is exemplary, the buffered data of data to be played It can be WW7P4P2P0V0V9M1M2, then the last one data frame to be played in the buffered data of data to be played is data frame M2, data frame M that media file client can be to be played according to the last one in the buffered data of data to be played2Inquiry The corresponding relationship of buffered data frames and playing time, the last one obtained in the buffered data of the data to be played are to be played Data frame M2Corresponding second target play moment in target media file, second target play moment can be 1:31: 10。
In sub-step 40516, media file client calculates broadcasting between currently playing moment and the first playing time Put the time difference.
After media file client determines currently playing moment and the first playing time, can calculate the currently playing moment with Play time between first playing time is poor.Exemplary, the currently playing moment is 1:29:00, and the first playing time is 1:28: 30, therefore, the play time difference between the current playing time 1:29:00 and first playing time 1:28:30 is 30 seconds.
In sub-step 40517, media file client calculates the second target play moment and first object playing time Between object time it is poor.
After media file client determines the second target play moment and first object playing time, second can be calculated Object time between target play moment and first object playing time is poor.Exemplary, the second target play moment can be 1:31:10, first object playing time can be 1:30:30, therefore, the second target play moment 1:31:10 and this first Object time difference between target play moment 1:30:30 is 40 seconds.
In sub-step 40518, it is poor that media file client judges whether object time difference is greater than play time.
Object time difference can be compared by media file client with play time difference, whether judge object time difference It is poor greater than play time.In the embodiments of the present disclosure, object time difference is 40 seconds, and play time difference is 30 seconds, due to 40 seconds big In 30 seconds, therefore, media file client compare object time difference and play time difference can determine object time difference be greater than broadcast Put the time difference.
In sub-step 40519, when object time difference is greater than play time difference, media file client determines to be played The buffering progress of data is greater than the playback progress since when receiving advertisement message of currently playing media file.
If in sub-step 40518, media file client determine object time difference be greater than play time it is poor, then explanation to The buffering progress of played data is greater than the playback progress since when receiving advertisement message of currently playing media file, because This, media file client determine data to be played buffering progress be greater than currently playing media file from receive inform The playback progress started when message.
In sub-step 4052, when the buffering progress of data to be played be greater than currently playing media file from receiving When the playback progress started when advertisement message, media file client carries out broadcasting for target media file according to data to be played It puts.
If it is currently playing that media file client determines that the buffering progress of data to be played is greater than in sub-step 4051 The playback progress since when receiving advertisement message of media file, then media file client is carried out according to data to be played The broadcasting of target media file.
It is exemplary, Fig. 4-10 is please referred to, shows a kind of media file client that Fig. 4-1 illustrated embodiment provides The method flow diagram of the broadcasting of target media file is carried out according to data to be played, referring to fig. 4-10, this method process can wrap Include the following steps:
In sub-step 40521, the determination in the data of currently playing media file of media file client is currently broadcast Put the data frame played constantly.
It can store the information of the played data in currently playing media file in media file client, this is currently broadcast The information for the played data in media file put may include: the corresponding relationship of played data frame and playing time, the broadcasting Data frame may include currently playing data frame and played data frame, in the corresponding relationship of the played data frame and playing time Have recorded the played data frame and played data in the played data in the currently playing media file of media file client The playing time of frame.It is corresponding with playing time that media file client can inquire played data frame according to the currently playing moment Relationship obtains the data frame played at the currently playing moment.Exemplary, the currently playing moment is 1:29:00, media file client The corresponding relationship that played data frame and playing time are inquired according to currently playing moment 1:29:00, obtains the currently playing moment 1: The data frame that 29:00 is played, the data frame which plays can be data frame V9
In sub-step 40522, media file client in the buffered data of data to be played determine with it is currently playing The identical target of the data frame data frame to be played that moment plays.
Media file client can pass through the buffer number of the data frame and data to be played that play the currently playing moment Data frame in is compared, the determining data frame played with the currently playing moment in the buffered data of data to be played Identical target data frame to be played.
Exemplary, the buffered data of data to be played can be WW7P4P2P0V0V9M1M2, media file client will be current The data frame V that playing time plays9It is compared, is determined wait broadcast with each data frame in the buffered data of data to be played Put the target to be played data frame V identical with the data frame of broadcasting of currently playing moment in the buffered data of data9
In sub-step 40523, media file client plays in order target data frame to be played and data to be played The data to be played played after the corresponding playing time of target data frame to be played in buffered data.
After media file client determines target data frame to be played, can play in order target data frame to be played and The data to be played played after the corresponding playing time of target data frame to be played in the buffered data of data to be played, Wherein, the buffered data of data to be played is WW7P4P2P0V0V9M1M2, target data frame to be played is V9, to be played in the target Data frame V9The data to be played put after corresponding playing time include: data frame M1With data frame M2, therefore, media file Client plays in order target data frame V to be played9, data frame M1With data frame M2And the subsequent data being buffered to.
It should be noted that the sequencing for the media file playing method step that the embodiment of the present disclosure provides can carry out Appropriate adjustment, step according to circumstances can also accordingly be increased and decreased, and anyone skilled in the art is in the disclosure In the technical scope of exposure, the method that can readily occur in variation should all cover within the protection scope of the disclosure, therefore no longer It repeats.
In conclusion the media file playing method that the embodiment of the present disclosure provides, Media file server passes through detection matchmaker It whether there is target media file in body file server, target media file is the currently playing media of media file client The highest version file of file, when in Media file server there are when target media file, according to currently playing media file Currently playing data frame, determine the data to be played in target media file, to media file client send target medium Data to be played in file, media file client carry out the broadcasting of target media file according to data to be played.Due to nothing It needs the user's operation can to realize that media file switches, therefore, it is complicated to solve media file handoff procedure in the related technology Problem has reached the beneficial effect of simplified media file handoff procedure.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.It is real for disclosure device Undisclosed details in example is applied, embodiments of the present disclosure is please referred to.
Fig. 5 is a kind of block diagram of playback of media files device 500 shown according to an exemplary embodiment, the media file Playing device 500 being implemented in combination with as the server in implementation environment shown in Fig. 1 by software, hardware or both 140 it is some or all of, which can be Media file server.Referring to Fig. 5, the playback of media files device 500 may include:
Detection module 510 is configured as during media file client terminal playing media file, detects media file It whether there is target media file in server, target media file is the currently playing media file of media file client Highest version file.
Determining module 520 is configured as detecting that there are target medium texts in Media file server when detection module 510 When part, according to the currently playing data frame of currently playing media file, the data to be played in target media file are determined.
Sending module 530 is configured as sending the target media file that determining module 520 determines to media file client In data to be played, in order to media file client according to data to be played carry out target media file broadcasting.
In conclusion the playback of media files device that the embodiment of the present disclosure provides, Media file server passes through detection matchmaker It whether there is target media file in body file server, target media file is the currently playing media of media file client The highest version file of file, when in Media file server there are when target media file, according to currently playing media file Currently playing data frame, determine the data to be played in target media file, to media file client send target medium Data to be played in file, in order to which media file client is according to the broadcasting of data to be played progress target media file. Due to that can realize that media file switches without user's operation, solve media file handoff procedure in the related technology Complicated problem, has reached the beneficial effect of simplified media file handoff procedure.
Fig. 6-1 is a kind of block diagram of the playback of media files device 600 shown according to another exemplary embodiment, the media File playing device 600 being implemented in combination with as the service in implementation environment shown in Fig. 1 by software, hardware or both Device 140 it is some or all of, which can be Media file server.Referring to Fig. 6-1, the playback of media files Device 600 can include but is not limited to:
Detection module 610 is configured as during media file client terminal playing media file, detects media file It whether there is target media file in server, target media file is the currently playing media file of media file client Highest version file;
Determining module 620 is configured as detecting that there are target medium texts in Media file server when detection module 610 When part, according to the currently playing data frame of currently playing media file, the data to be played in target media file are determined;
Sending module 630 is configured as sending the target media file that determining module 620 determines to media file client In data to be played, in order to media file client according to data to be played carry out target media file broadcasting.
Optionally, Fig. 6-2 is please referred to, thus it is shown that a kind of frame for determining module 620 that Fig. 6-1 illustrated embodiment provides Figure, referring to Fig. 6-2, which may include:
Sending submodule 621 is configured as sending advertisement message to media file client, and advertisement message is for informing matchmaker There are target media files in body file client media file server;
Receiving submodule 622 is configured as reception media file client and is disappeared according to the informing that sending submodule 621 is sent Cease send switching request, switching request include: media file client when receiving advertisement message from currently playing matchmaker The currently playing data frame extracted in the data of body file;
First determines submodule 623, is configured as in the data of target media file, determining and receiving submodule 622 The identical first object data frame of currently playing data frame in the switching request received;
Second determines submodule 624, and the first object data frame for being configured to determine that first determines that submodule 623 determines exists Corresponding first object playing time in target media file;
Third determines submodule 625, is configured as from the data of target media file, determines and determines submodule second The second target data played after the 624 first object playing times determined;
As submodule 626, it is configured as determining that the determining first object data frame of submodule 623 and third are true for first The second target data that stator modules 625 determine is as data to be played.
Optionally, Fig. 6-3 is please referred to, thus it is shown that one kind first that Fig. 6-1 illustrated embodiment provides determines submodule 623 Block diagram, referring to Fig. 6-3, this first determines that submodule 623 may include:
Moment determines submodule 6231, is configured to determine that current in switching request that receiving submodule 622 receives Played data frame corresponding first playing time in currently playing media file;
Comparative sub-module 6232, the currently playing number being configured as in the switching request for receiving receiving submodule 622 According to frame successively in target media file include the moment determine submodule 6231 determine the first playing time preset time period Interior data are compared;
Extracting sub-module 6233 is configured as including the pre- of the first playing time for determining that submodule 6231 determines at the moment If being extracted in the data in the period identical with the currently playing data frame in the switching request that receiving submodule 622 receives First object data frame.
Optionally, switching request further include: corresponding with currently playing data frame first in currently playing media file Playing time please refers to Fig. 6-4, thus it is shown that the another kind first that Fig. 6-1 illustrated embodiment provides determines the frame of submodule 623 Figure, referring to Fig. 6-4, which may include:
Comparative sub-module 6232 is configured as the switching request received according to receiving submodule 622, by currently playing number It is successively compared with the data in the preset time period in target media file including the first playing time according to frame;
Extracting sub-module 6233, be configured as include the first playing time preset time period in data in extract with The identical first object data frame of currently playing data frame in the switching request that receiving submodule 622 receives.
Optionally, Fig. 6-5 is please referred to, thus it is shown that another first determining submodule that Fig. 6-1 illustrated embodiment provides 623 block diagram, referring to Fig. 6-5, which may include:
Comparative sub-module 6234, the currently playing number being configured as in the switching request for receiving receiving submodule 622 It is successively compared with the data in target media file including each playing time according to frame;
Extracting sub-module 6235 is configured as receiving in the data for extracting target media file with receiving submodule 622 Switching request in the identical first object data frame of currently playing data frame.
Optionally, Comparative sub-module 6232 are configured as:
Data in preset time period in target media file including the first playing time are divided at least two numbers According to section;
At least one feature data frame is extracted in each data segment, each feature data frame is for characterizing each characteristic According to the attribute of the corresponding broadcasting content of data segment where frame;
Currently playing data frame is successively compared at least one feature data frame.
Optionally, determining module 620 are configured as:
Count the number of target media file;
When the number of target media file is greater than or equal to 2, according to the currently playing number of currently playing media file According to frame, data to be played are determined from the highest target media file of version.
Optionally, detection module 610 are configured as:
During media file client terminal playing media file, it is periodically detected in Media file server and whether deposits In target media file;
Alternatively,
In the detection request for receiving the transmission of media file client, detects and whether there is mesh in Media file server Mark media file.
In conclusion the playback of media files device that the embodiment of the present disclosure provides, Media file server passes through detection matchmaker It whether there is target media file in body file server, target media file is the currently playing media of media file client The highest version file of file, when in Media file server there are when target media file, according to currently playing media file Currently playing data frame, determine the data to be played in target media file, to media file client send target medium Data to be played in file, in order to which media file client is according to the broadcasting of data to be played progress target media file. Due to that can realize that media file switches without user's operation, solve media file handoff procedure in the related technology Complicated problem, has reached the beneficial effect of simplified media file handoff procedure.
Fig. 7 is a kind of block diagram of playback of media files device 700 shown according to another exemplary embodiment, media text Part playing device 700 being implemented in combination with as the terminal in implementation environment shown in Fig. 1 by software, hardware or both Some or all of on 120, which can be with installation media file client.Referring to Fig. 7, playback of media files dress Setting 700 may include:
First receiving module 710 is configured as during media file client terminal playing media file, receives media The data to be played in target media file that file server is sent, the data to be played in target media file are media texts Part server detects in Media file server there are when target media file, according to the current of currently playing media file What played data frame determined, target media file is the highest version file of currently playing media file.
Playing module 720 is configured as the data to be played received according to the first receiving module 710 and carries out target medium The broadcasting of file.
In conclusion the playback of media files device that the embodiment of the present disclosure provides, media file client is by receiving matchmaker The data to be played in target media file that body file server is sent, the data to be played in target media file are media File server detects in Media file server there are when target media file, according to working as currently playing media file What preceding played data frame determined, target media file is the highest version file of currently playing media file, according to number to be played According to the broadcasting for carrying out target media file.Due to that can realize that media file switches without user's operation, solve phase The problem of media file handoff procedure complexity in the technology of pass, has reached the beneficial effect of simplified media file handoff procedure.
Fig. 8-1 is a kind of block diagram of the playback of media files device 800 shown according to a further exemplary embodiment, the media File playing device 800 being implemented in combination with as the terminal in implementation environment shown in Fig. 1 by software, hardware or both Some or all of on 120, which can be with installation media file client.Referring to Fig. 8-1, the playback of media files Device 800 may include:
First receiving module 810 is configured as during media file client terminal playing media file, receives media The data to be played in target media file that file server is sent, the data to be played in target media file are media texts Part server detects in Media file server there are when target media file, according to the current of currently playing media file What played data frame determined, target media file is the highest version file of currently playing media file;
Playing module 820 is configured as the data to be played received according to the first receiving module 810 and carries out target medium The broadcasting of file.
Optionally, please continue to refer to Fig. 8-1, which can also include:
Second receiving module 830 is configured as receiving the advertisement message that Media file server is sent, and advertisement message is used for Inform that there are target media files in media file client media file server;
Extraction module 840 is configured as according to the received advertisement message of the second receiving module 830 from currently playing media Currently playing data frame is extracted in the data of file, currently playing data frame is the data frame played when receiving advertisement message;
Generation module 850 is configured as generating switching request according to the currently playing data frame that extraction module 840 extracts, Switching request includes: currently playing data frame;
Sending module 860 is configured as sending the switching request that generation module 850 generates to Media file server, with Convenient for Media file server according to currently playing data frame, data to be played are determined from the data of target media file.
Optionally, Fig. 8-2 is please referred to, shows a kind of frame of playing module 820 shown in Fig. 8-1 illustrated embodiment Figure, referring to Fig. 8-2, which may include:
Judging submodule 821, is configured as judging whether the buffering progress of data to be played is greater than currently playing media The playback progress since when receiving advertisement message of file;
Submodule 822 is played, is configured as determining that the buffering progress of data to be played is greater than currently when judging submodule 821 When the playback progress since when receiving advertisement message of the media file of broadcasting, target medium is carried out according to data to be played The broadcasting of file.
Optionally, judging submodule 821 are configured as:
Determine the first playing time corresponding with currently playing data frame in currently playing media file;
The currently playing moment is determined according to the playback progress of currently playing media file;
In the buffered data of data to be played, first object data frame identical with currently playing data frame is determined, to The buffered data of played data includes at least one data frame;
Determine first object data frame corresponding first object playing time in target media file;
Determine that the last one data frame to be played in the buffered data of data to be played is right in target media file The second target play moment answered;
The play time calculated between currently playing moment and the first playing time is poor;
The object time calculated between the second target play moment and first object playing time is poor;
It is poor to judge whether object time difference is greater than play time;
When object time difference is greater than play time difference, determine that the buffering progress of data to be played is greater than currently playing matchmaker The playback progress since when receiving advertisement message of body file.
Optionally, submodule 822 is played, is configured as:
The data frame of currently playing moment broadcasting is determined in the data of currently playing media file;
Determine that target identical with the data frame that the currently playing moment plays waits broadcasting in the buffered data of data to be played Put data frame;
Play in order in target data frame to be played and the buffered data of data to be played in target data frame to be played The data to be played played after corresponding playing time.
Optionally, switching request further include: corresponding with currently playing data frame first in currently playing media file Playing time.
In conclusion the playback of media files device that the embodiment of the present disclosure provides, media file client is by receiving matchmaker The data to be played in target media file that body file server is sent, the data to be played in target media file are media File server detects in Media file server there are when target media file, according to working as currently playing media file What preceding played data frame determined, target media file is the highest version file of currently playing media file, according to number to be played According to the broadcasting for carrying out target media file.Due to that can realize that media file switches without user's operation, solve phase The problem of media file handoff procedure complexity in the technology of pass, has reached the beneficial effect of simplified media file handoff procedure.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 9 is a kind of block diagram for playback of media files device 900 shown according to an exemplary embodiment.For example, Device 900 may be provided as a server.Exemplary, which can be Media file server, referring to Fig. 9, device 900 include processing component 922, further comprises one or more processors, and the memory as representated by memory 932 Resource, for storing the instruction that can be executed by processing component 922, such as application program.The application program stored in memory 932 May include it is one or more each correspond to one group of instruction module.In addition, processing component 922 is configured as holding Row instruction, to execute above-mentioned media file playing method, this method comprises:
During media file client terminal playing media file, detects and whether there is target in Media file server Media file, target media file are the highest version file of the currently playing media file of media file client;
When in Media file server there are when target media file, according to the currently playing of currently playing media file Data frame determines the data to be played in target media file;
The data to be played in target media file are sent to media file client, in order to media file client root The broadcasting of target media file is carried out according to data to be played.
Optionally, according to the currently playing data frame of currently playing media file, determine in target media file to Played data, comprising:
Advertisement message is sent to media file client, advertisement message is for informing that media file client media file takes Being engaged in device, there are target media files;
The switching request that media file client is sent according to advertisement message is received, switching request includes: media file visitor The currently playing data frame that family end is extracted from the data of currently playing media file when receiving advertisement message;
In the data of target media file, first object data frame identical with currently playing data frame is determined;
Determine first object data frame corresponding first object playing time in target media file;
From the data of target media file, the second target data played after first object playing time is determined;
Using first object data frame and the second target data as data to be played.
Optionally, in the data of target media file, first object data identical with currently playing data frame are determined Frame, comprising:
Determine currently playing data frame corresponding first playing time in currently playing media file;
By currently playing data frame successively and in the preset time period in target media file including the first playing time Data are compared;
Identical with currently playing data frame the is extracted in the data in the preset time period for including the first playing time One target data frame.
Optionally, switching request further include: corresponding with currently playing data frame first in currently playing media file Playing time,
In the data of target media file, first object data frame identical with currently playing data frame is determined, comprising:
According to switching request, by currently playing data frame successively with include the pre- of the first playing time in target media file If the data in the period are compared;
Identical with currently playing data frame the is extracted in the data in the preset time period for including the first playing time One target data frame.
Optionally, in the data of target media file, first object data identical with currently playing data frame are determined Frame, comprising:
Currently playing data frame is successively compared with the data in target media file including each playing time;
Extract first object data frame identical with currently playing data frame in the data of target media file.
Optionally, by currently playing data frame successively in target media file include the first playing time preset time Data in section are compared, comprising:
Data in preset time period in target media file including the first playing time are divided at least two numbers According to section;
At least one feature data frame is extracted in each data segment, each feature data frame is for characterizing each characteristic According to the attribute of the corresponding broadcasting content of data segment where frame;
Currently playing data frame is successively compared at least one feature data frame.
Optionally, according to the currently playing data frame of currently playing media file, determine in target media file to Played data, comprising:
Count the number of target media file;
When the number of target media file is greater than or equal to 2, according to the currently playing number of currently playing media file According to frame, data to be played are determined from the highest target media file of version.
Optionally, during media file client terminal playing media file, detect Media file server in whether There are target media files, comprising:
During media file client terminal playing media file, it is periodically detected in Media file server and whether deposits In target media file;
Alternatively,
In the detection request for receiving the transmission of media file client, detects and whether there is mesh in Media file server Mark media file.
Device 900 can also include the power management that a power supply module 926 is configured as executive device 900, and one has Line or radio network interface 950 are configured as device 900 being connected to network and input and output (I/O) interface 958.Dress Setting 900 can operate based on the operating system for being stored in memory 932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
In conclusion the playback of media files device that the embodiment of the present disclosure provides, Media file server passes through detection matchmaker It whether there is target media file in body file server, target media file is the currently playing media of media file client The highest version file of file, when in Media file server there are when target media file, according to currently playing media file Currently playing data frame, determine the data to be played in target media file, to media file client send target medium Data to be played in file, in order to which media file client is according to the broadcasting of data to be played progress target media file. Due to that can realize that media file switches without user's operation, solve media file handoff procedure in the related technology Complicated problem, has reached the beneficial effect of simplified media file handoff procedure.
Figure 10 is a kind of block diagram of the playback of media files device 1000 shown according to another exemplary embodiment.For example, Device 1000 can be smart phone, smart television, desktop computer, digital broadcast terminal, game console, tablet device Deng.
Referring to Fig.1 0, device 1000 may include following one or more components: processing component 1002, memory 1004, Power supply module 1006, multimedia component 1008, audio component 1010, input/output (I/O) interface 1012, sensor module 1014 and communication component 1016.
The integrated operation of the usual control device 1000 of processing component 1002 plays, data communication, camera such as with display Operation and record operate associated operation.Processing component 1002 may include that one or more processors 1020 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 1002 may include one or more modules, Convenient for the interaction between processing component 1002 and other assemblies.For example, processing component 1002 may include multi-media module, with side Just the interaction between multimedia component 1008 and processing component 1002.
Memory 1004 is configured as storing various types of data to support the operation in device 1000.These data Example includes the instruction of any application or method for operating on device 1000, contact data, telephone book data, Message, picture, video etc..Memory 1004 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Power supply module 1006 provides electric power for the various assemblies of device 1000.Power supply module 1006 may include power management System, one or more power supplys and other with for device 1000 generate, manage, and distribute the associated component of electric power.
Multimedia component 1008 includes the screen of one output interface of offer between device 1000 and user.Some In embodiment, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen It may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensors To sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense the boundary of a touch or slide action, But also detection duration and pressure relevant to touch or slide.In some embodiments, multimedia component 1008 Including a front camera and/or rear camera.When device 1000 is in operation mode, such as screening-mode or video mode When, front camera and/or rear camera can receive external multi-medium data.Each front camera and postposition camera shooting Head can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1010 is configured as output and/or input audio signal.For example, audio component 1010 includes a wheat Gram wind (MIC), when device 1000 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt It is configured to receive external audio signal.The received audio signal can be further stored in memory 1004 or via communication Component 1016 is sent.In some embodiments, audio component 1010 further includes a loudspeaker, is used for output audio signal.
I/O interface 1012 provides interface, above-mentioned peripheral interface module between processing component 1002 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 1014 includes one or more sensors, and the state for providing various aspects for device 1000 is commented Estimate.For example, sensor module 1014 can detecte the state that opens/closes of device 1000, the relative positioning of component, such as group Part is the display and keypad of device 1000, and sensor module 1014 can be with 1,000 1 groups of detection device 1000 or device The position change of part, the existence or non-existence that user contacts with device 1000,1000 orientation of device or acceleration/deceleration and device 1000 temperature change.Sensor module 1014 may include proximity sensor, be configured to connect in not any physics It is detected the presence of nearby objects when touching.Sensor module 1014 can also include optical sensor, as CMOS or ccd image are sensed Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1016 is configured to facilitate the communication of wired or wireless way between device 1000 and other equipment.Dress The wireless network based on communication standard, such as WiFi can be accessed by setting 1000,2G or 3G or their combination.It is exemplary at one In embodiment, communication component 1016 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, communication component 1016 further includes near-field communication (NFC) module, to promote short range communication. For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) skill can be based in NFC module Art, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1000 can be by one or more application specific integrated circuit (ASIC), number Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 1004 of instruction, above-metioned instruction can be executed by the processor 1020 of device 1000 to complete the above method.Example Such as, non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and Optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in storage medium is held by the processor of device 1000 When row, so that device 1000 is able to carry out a kind of media file playing method, this method comprises:
During media file client terminal playing media file, the target medium that Media file server is sent is received Data to be played in file, the data to be played in target media file are that Media file server detects that media file takes It is engaged in device being determined according to the currently playing data frame of currently playing media file, target matchmaker there are when target media file Body file is the highest version file of currently playing media file;
The broadcasting of target media file is carried out according to data to be played.
Optionally, before receiving the data to be played in the target media file that Media file server is sent, the party Method further include:
The advertisement message that Media file server is sent is received, advertisement message is for informing media file client media text There are target media files in part server;
Currently playing data frame, currently playing number are extracted from the data of currently playing media file according to advertisement message It is the data frame played when receiving advertisement message according to frame;
Switching request is generated according to currently playing data frame, switching request includes: currently playing data frame;
Switching request is sent to Media file server, in order to which Media file server is according to currently playing data frame, Data to be played are determined from the data of target media file.
Optionally, the broadcasting of target media file is carried out according to data to be played, comprising:
Judge the buffering progress of data to be played whether be greater than currently playing media file from receiving advertisement message When the playback progress that starts;
When the buffering progress of data to be played be greater than currently playing media file since when receiving advertisement message Playback progress when, according to data to be played carry out target media file broadcasting.
Optionally, judge the buffering progress of data to be played whether be greater than currently playing media file from receive accuse The playback progress started when knowing message, comprising:
Determine the first playing time corresponding with currently playing data frame in currently playing media file;
The currently playing moment is determined according to the playback progress of currently playing media file;
In the buffered data of data to be played, first object data frame identical with currently playing data frame is determined, to The buffered data of played data includes at least one data frame;
Determine first object data frame corresponding first object playing time in target media file;
Determine that the last one data frame to be played in the buffered data of data to be played is right in target media file The second target play moment answered;
The play time calculated between currently playing moment and the first playing time is poor;
The object time calculated between the second target play moment and first object playing time is poor;
It is poor to judge whether object time difference is greater than play time;
When object time difference is greater than play time difference, determine that the buffering progress of data to be played is greater than currently playing matchmaker The playback progress since when receiving advertisement message of body file.
Optionally, the broadcasting of target media file is carried out according to data to be played, comprising:
The data frame of currently playing moment broadcasting is determined in the data of currently playing media file;
Determine that target identical with the data frame that the currently playing moment plays waits broadcasting in the buffered data of data to be played Put data frame;
Play in order in target data frame to be played and the buffered data of data to be played in target data frame to be played The data to be played played after corresponding playing time.
Optionally, switching request further include: corresponding with currently playing data frame first in currently playing media file Playing time.
In conclusion the playback of media files device that the embodiment of the present disclosure provides, media file client is by receiving matchmaker The data to be played in target media file that body file server is sent, the data to be played in target media file are media File server detects in Media file server there are when target media file, according to working as currently playing media file What preceding played data frame determined, target media file is the highest version file of currently playing media file, according to number to be played According to the broadcasting for carrying out target media file.Due to that can realize that media file switches without user's operation, solve phase The problem of media file handoff procedure complexity in the technology of pass, has reached the beneficial effect of simplified media file handoff procedure.
Figure 11 is a kind of schematic diagram of media file-playing system 1100 shown according to an exemplary embodiment.Referring to figure 11, which may include: server 1110 and terminal 1120, and server 1110 can be media text Part server is equipped with media file client in terminal 1120.
In one possible implementation, server 1110 includes the dress of playback of media files shown in Fig. 5 or Fig. 6-1 It sets, media file client includes playback of media files device shown in Fig. 7 or Fig. 8-1.
In alternatively possible implementation, server 1110 includes playback of media files device shown in Fig. 9, media File client includes playback of media files device shown in Fig. 10.
In conclusion the media file-playing system that the embodiment of the present disclosure provides, Media file server passes through detection matchmaker It whether there is target media file in body file server, target media file is the currently playing media of media file client The highest version file of file, when in Media file server there are when target media file, according to currently playing media file Currently playing data frame, determine the data to be played in target media file, to media file client send target medium Data to be played in file, media file client carry out the broadcasting of target media file according to data to be played.Due to nothing It needs the user's operation can to realize that media file switches, therefore, it is complicated to solve media file handoff procedure in the related technology Problem has reached the beneficial effect of simplified media file handoff procedure.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (32)

1. a kind of media file playing method, which is characterized in that the described method includes:
During media file client terminal playing media file, detects and whether there is target medium in Media file server File, the target media file are the highest version file of the currently playing media file of the media file client;
When in the Media file server there are when the target media file, according to the currently playing media file Currently playing data frame determines the data to be played in the target media file, comprising: in the number of the target media file In, determining first object data frame identical with the currently playing data frame;Determine the first object data frame in institute State corresponding first object playing time in target media file;From the data of the target media file, determine described The second target data played after first object playing time;By the first object data frame and second target data As the data to be played;
The data to be played in the target media file are sent to the media file client, in order to the media file Client carries out the broadcasting of the target media file according to the data to be played;
Wherein, described in the data of the target media file, determining the first mesh identical with the currently playing data frame Mark data frame include: by the currently playing data frame successively in the target media file include the first playing time it is pre- If the data in the period are compared, first playing time is the currently playing data frame described currently playing Corresponding playing time in media file;Alternatively, the currently playing data frame is successively wrapped with the target media file The data for including each playing time are compared.
2. the method according to claim 1, wherein described according to the current of the currently playing media file Played data frame determines the data to be played in the target media file, further includes:
Advertisement message is sent to the media file client, the advertisement message is for informing the media file client institute State in Media file server that there are the target media files;
The switching request that the media file client is sent according to the advertisement message is received, the switching request includes: institute State what media file client was extracted from the data of the currently playing media file when receiving the advertisement message Currently playing data frame.
3. the method according to claim 1, wherein described in the data of the target media file, determination First object data frame identical with the currently playing data frame, further includes:
Determine the currently playing data frame corresponding first playing time in the currently playing media file;
It is extracted in the data in the preset time period for including first playing time identical as the currently playing data frame First object data frame.
4. according to the method described in claim 2, it is characterized in that, the switching request further include: the currently playing matchmaker First playing time corresponding with the currently playing data frame in body file,
It is described in the data of the target media file, determining first object data identical with the currently playing data frame Frame, further includes:
According to the switching request, by the currently playing data frame successively with include described first in the target media file Data in the preset time period of playing time are compared;
It is extracted in the data in the preset time period for including first playing time identical as the currently playing data frame First object data frame.
5. the method according to claim 1, wherein described in the data of the target media file, determination First object data frame identical with the currently playing data frame, further includes:
Extract first object data frame identical with the currently playing data frame in the data of the target media file.
6. the method according to claim 3 or 4, which is characterized in that it is described by the currently playing data frame successively with institute The data stated in the preset time period in target media file including the first playing time are compared, comprising:
Data in preset time period in the target media file including first playing time are divided at least two A data segment;
At least one feature data frame is extracted in each data segment, each feature data frame is for characterizing each spy The attribute of the corresponding broadcasting content of data segment where levying data frame;
The currently playing data frame is successively compared at least one described feature data frame.
7. the method according to claim 1, wherein described according to the current of the currently playing media file Played data frame determines the data to be played in the target media file, comprising:
Count the number of the target media file;
When the number of the target media file is greater than or equal to 2, according to currently broadcasting for the currently playing media file Data frame is put, the data to be played are determined from the highest target media file of version.
8. the method according to claim 1, wherein the mistake in media file client terminal playing media file Cheng Zhong is detected and be whether there is target media file in Media file server, comprising:
During the media file client terminal playing media file, being periodically detected in the Media file server is It is no that there are the target media files;
Alternatively,
When receiving the detection request that the media file client is sent, detects in the Media file server and whether deposit In the target media file.
9. a kind of media file playing method, which is characterized in that the described method includes:
During media file client terminal playing media file, the target media file that Media file server is sent is received In data to be played, the data to be played in the target media file are that the Media file server detects the matchmaker It is true according to the currently playing data frame of currently playing media file there are when the target media file in body file server Fixed, the target media file is the highest version file of the currently playing media file;
The broadcasting of the target media file is carried out according to the data to be played;
Wherein, the data to be played in the target media file are that the Media file server detects the media file There are when the target media file in server, determined according to the currently playing data frame of currently playing media file, It include: the determining first object data frame identical with the currently playing data frame in the data of the target media file; Determine the first object data frame corresponding first object playing time in the target media file;From the target matchmaker In the data of body file, the second target data played after the first object playing time is determined;By first mesh Data frame and second target data are marked as the data to be played;
Wherein, described in the data of the target media file, determining the first mesh identical with the currently playing data frame Marking data frame includes: that the Media file server successively wraps the currently playing data frame with the target media file The data included in the preset time period of the first playing time are compared, and first playing time is the currently playing data Frame corresponding playing time in the currently playing media file;Alternatively, the Media file server will be described current Played data frame is successively compared with the data in the target media file including each playing time.
10. according to the method described in claim 9, it is characterized in that, the target sent in the reception Media file server Before data to be played in media file, the method also includes:
The advertisement message that the Media file server is sent is received, the advertisement message is for informing the media file client Hold in the Media file server that there are the target media files;
Currently playing data frame is extracted from the data of the currently playing media file according to the advertisement message, it is described to work as Preceding played data frame is the data frame played when receiving the advertisement message;
Switching request is generated according to the currently playing data frame, the switching request includes: the currently playing data frame;
The switching request is sent to the Media file server, in order to which the Media file server is according to described current Played data frame determines the data to be played from the data of the target media file.
11. according to the method described in claim 10, it is characterized in that,
The broadcasting that the target media file is carried out according to the data to be played, comprising:
Judge whether the buffering progress of the data to be played is greater than the described from receiving of the currently playing media file The playback progress started when advertisement message;
When the data to be played buffering progress be greater than the currently playing media file from receive it is described informing disappear When the playback progress started when breath, the broadcasting of the target media file is carried out according to the data to be played.
12. according to the method for claim 11, which is characterized in that
The buffering progress for judging the data to be played whether be greater than the currently playing media file from receiving The playback progress started when the advertisement message, comprising:
Determine the first playing time corresponding with the currently playing data frame in the currently playing media file;
The currently playing moment is determined according to the playback progress of the currently playing media file;
In the buffered data of the data to be played, determining first object data identical with the currently playing data frame Frame, the buffered data of the data to be played include at least one data frame;
Determine the first object data frame corresponding first object playing time in the target media file;
Determine the last one data frame to be played in the buffered data of the data to be played in the target media file In corresponding second target play moment;
The play time calculated between the currently playing moment and first playing time is poor;
The object time calculated between second target play moment and the first object playing time is poor;
It is poor to judge whether the object time difference is greater than the play time;
When the object time difference is greater than the play time difference, it is described to determine that the buffering progress of the data to be played is greater than The playback progress since when receiving the advertisement message of currently playing media file.
13. according to the method for claim 12, which is characterized in that described to carry out the target according to the data to be played The broadcasting of media file, comprising:
The data frame of the currently playing moment broadcasting is determined in the data of the currently playing media file;
Target identical with the data frame that the currently playing moment plays is determined in the buffered data of the data to be played Data frame to be played;
It plays in order and waits broadcasting in the target in target data frame to be played and the buffered data of the data to be played Put the data to be played played after the corresponding playing time of data frame.
14. according to the method described in claim 10, it is characterized in that, the switching request further include: described currently playing The first playing time corresponding with the currently playing data frame in media file.
15. a kind of playback of media files device, which is characterized in that described device includes:
Detection module is configured as during media file client terminal playing media file, detects Media file server In whether there is target media file, the target media file is the currently playing media file of the media file client Highest version file;
Determining module is configured as when, there are when the target media file, being worked as according to described in the Media file server The currently playing data frame of the media file of preceding broadcasting determines the data to be played in the target media file;
Sending module is configured as sending the data to be played in the target media file to the media file client, In order to which the media file client carries out according to the data to be played the broadcasting of the target media file;
The determining module, comprising: first determines submodule, is configured as in the data of the target media file, determines First object data frame identical with the currently playing data frame;Second determines submodule, is configured to determine that described first Target data frame corresponding first object playing time in the target media file;Third determines submodule, is configured as From the data of the target media file, the second target data played after the first object playing time is determined; As submodule, it is configured as using the first object data frame and second target data as the data to be played;
Wherein, described in the data of the target media file, determining the first mesh identical with the currently playing data frame Mark data frame include: by the currently playing data frame successively in the target media file include the first playing time it is pre- If the data in the period are compared, first playing time is the currently playing data frame described currently playing Corresponding playing time in media file;Alternatively, the currently playing data frame is successively wrapped with the target media file The data for including each playing time are compared.
16. device according to claim 15, which is characterized in that the determining module, further includes:
Sending submodule is configured as sending advertisement message to the media file client, and the advertisement message is for informing There are the target media files in Media file server described in the media file client;
Receiving submodule is configured as receiving the switching request that the media file client is sent according to the advertisement message, The switching request include: the media file client when receiving the advertisement message from the currently playing media The currently playing data frame extracted in the data of file.
17. device according to claim 15, which is characterized in that described first determines submodule, comprising:
Moment determines submodule, is configured to determine that the currently playing data frame is right in the currently playing media file First playing time answered;
Comparative sub-module, be configured as by the currently playing data frame successively with include described the in the target media file Data in the preset time period of one playing time are compared;
Extracting sub-module, be configured as include first playing time preset time period in data in extract with it is described The identical first object data frame of currently playing data frame.
18. device according to claim 16, which is characterized in that the switching request further include: described currently playing First playing time corresponding with the currently playing data frame in media file,
Described first determines submodule, comprising:
Comparative sub-module, is configured as according to the switching request, by the currently playing data frame successively with the target matchmaker The data in preset time period in body file including first playing time are compared;
Extracting sub-module, be configured as include first playing time preset time period in data in extract with it is described The identical first object data frame of currently playing data frame.
19. device according to claim 15, which is characterized in that
Described first determines submodule, comprising:
Comparative sub-module is configured as successively broadcasting the currently playing data frame including each with the target media file The data for putting the moment are compared;
Extracting sub-module is configured as in the data for extracting the target media file identical with the currently playing data frame First object data frame.
20. device described in 7 or 18 according to claim 1, which is characterized in that the Comparative sub-module is configured as:
Data in preset time period in the target media file including first playing time are divided at least two A data segment;
At least one feature data frame is extracted in each data segment, each feature data frame is for characterizing each spy The attribute of the corresponding broadcasting content of data segment where levying data frame;
The currently playing data frame is successively compared at least one described feature data frame.
21. device according to claim 15, which is characterized in that the determining module is configured as:
Count the number of the target media file;
When the number of the target media file is greater than or equal to 2, according to currently broadcasting for the currently playing media file Data frame is put, the data to be played are determined from the highest target media file of version.
22. device according to claim 15, which is characterized in that the detection module is configured as:
During the media file client terminal playing media file, being periodically detected in the Media file server is It is no that there are the target media files;
Alternatively,
When receiving the detection request that the media file client is sent, detects in the Media file server and whether deposit In the target media file.
23. a kind of playback of media files device, which is characterized in that described device includes:
First receiving module is configured as during media file client terminal playing media file, receives media file clothes The data to be played being engaged in the target media file that device is sent, the data to be played in the target media file are the media File server detects in the Media file server there are when the target media file, according to currently playing media What the currently playing data frame of file determined, the target media file is the highest version text of the currently playing media file Part;
Playing module is configured as carrying out the broadcasting of the target media file according to the data to be played;
Wherein, the data to be played in the target media file are that the Media file server detects the media file There are when the target media file in server, determined according to the currently playing data frame of currently playing media file, It include: the determining first object data frame identical with the currently playing data frame in the data of the target media file; Determine the first object data frame corresponding first object playing time in the target media file;From the target matchmaker In the data of body file, the second target data played after the first object playing time is determined;By first mesh Data frame and second target data are marked as the data to be played;
Wherein, described in the data of the target media file, determining the first mesh identical with the currently playing data frame Marking data frame includes: that the Media file server successively wraps the currently playing data frame with the target media file The data included in the preset time period of the first playing time are compared, and first playing time is the currently playing data Frame corresponding playing time in the currently playing media file;Alternatively, the Media file server will be described current Played data frame is successively compared with the data in the target media file including each playing time.
24. device according to claim 23, which is characterized in that described device further include:
Second receiving module is configured as receiving the advertisement message that the Media file server is sent, and the advertisement message is used There are the target media files in the Media file server described in the informing media file client;
Extraction module is configured as being extracted from the data of the currently playing media file according to the advertisement message current Played data frame, the currently playing data frame are the data frames played when receiving the advertisement message;
Generation module is configured as generating switching request according to the currently playing data frame, and the switching request includes: described Currently playing data frame;
Sending module is configured as sending the switching request to the Media file server, in order to the media file Server determines the data to be played according to the currently playing data frame from the data of the target media file.
25. device according to claim 24, which is characterized in that
The playing module, comprising:
Judging submodule is configured as judging whether the buffering progress of the data to be played is greater than the currently playing media The playback progress since when receiving the advertisement message of file;
Submodule is played, is configured as being greater than the currently playing media file when the buffering progress of the data to be played When playback progress since when receiving the advertisement message, the target media file is carried out according to the data to be played Broadcasting.
26. device according to claim 25, which is characterized in that
The judging submodule, is configured as:
Determine the first playing time corresponding with the currently playing data frame in the currently playing media file;
The currently playing moment is determined according to the playback progress of the currently playing media file;
In the buffered data of the data to be played, determining first object data identical with the currently playing data frame Frame, the buffered data of the data to be played include at least one data frame;
Determine the first object data frame corresponding first object playing time in the target media file;
Determine the last one data frame to be played in the buffered data of the data to be played in the target media file In corresponding second target play moment;
The play time calculated between the currently playing moment and first playing time is poor;
The object time calculated between second target play moment and the first object playing time is poor;
It is poor to judge whether the object time difference is greater than the play time;
When the object time difference is greater than the play time difference, it is described to determine that the buffering progress of the data to be played is greater than The playback progress since when receiving the advertisement message of currently playing media file.
27. device according to claim 26, which is characterized in that the broadcasting submodule is configured as:
The data frame of the currently playing moment broadcasting is determined in the data of the currently playing media file;
Target identical with the data frame that the currently playing moment plays is determined in the buffered data of the data to be played Data frame to be played;
It plays in order and waits broadcasting in the target in target data frame to be played and the buffered data of the data to be played Put the data to be played played after the corresponding playing time of data frame.
28. device according to claim 24, which is characterized in that the switching request further include: described currently playing The first playing time corresponding with the currently playing data frame in media file.
29. a kind of playback of media files device characterized by comprising
Processor;
For storing the memory of the executable instruction of the processor;
Wherein, the processor is configured to:
During media file client terminal playing media file, detects and whether there is target medium in Media file server File, the target media file are the highest version file of the currently playing media file of the media file client;
When in the Media file server there are when the target media file, according to the currently playing media file Currently playing data frame determines the data to be played in the target media file, comprising: in the number of the target media file In, determining first object data frame identical with the currently playing data frame;Determine the first object data frame in institute State corresponding first object playing time in target media file;From the data of the target media file, determine described The second target data played after first object playing time;By the first object data frame and second target data As the data to be played;
The data to be played in the target media file are sent to the media file client, in order to the media file Client carries out the broadcasting of the target media file according to the data to be played;
Wherein, described in the data of the target media file, determining the first mesh identical with the currently playing data frame Mark data frame include: by the currently playing data frame successively in the target media file include the first playing time it is pre- If the data in the period are compared, first playing time is the currently playing data frame described currently playing Corresponding playing time in media file;Alternatively, the currently playing data frame is successively wrapped with the target media file The data for including each playing time are compared.
30. a kind of playback of media files device characterized by comprising
Processor;
For storing the memory of the executable instruction of the processor;
Wherein, the processor is configured to:
During media file client terminal playing media file, the target media file that Media file server is sent is received In data to be played, the data to be played in the target media file are that the Media file server detects the matchmaker It is true according to the currently playing data frame of currently playing media file there are when the target media file in body file server Fixed, the target media file is the highest version file of the currently playing media file;
The broadcasting of the target media file is carried out according to the data to be played;
Wherein, the data to be played in the target media file are that the Media file server detects the media file There are when the target media file in server, determined according to the currently playing data frame of currently playing media file, It include: the determining first object data frame identical with the currently playing data frame in the data of the target media file; Determine the first object data frame corresponding first object playing time in the target media file;From the target matchmaker In the data of body file, the second target data played after the first object playing time is determined;By first mesh Data frame and second target data are marked as the data to be played;
Wherein, described in the data of the target media file, determining the first mesh identical with the currently playing data frame Marking data frame includes: that the Media file server successively wraps the currently playing data frame with the target media file The data included in the preset time period of the first playing time are compared, and first playing time is the currently playing data Frame corresponding playing time in the currently playing media file;Alternatively, the Media file server will be described current Played data frame is successively compared with the data in the target media file including each playing time.
31. a kind of media file-playing system, which is characterized in that the system comprises: Media file server and terminal, it is described Media file client is installed in terminal,
The Media file server includes any playback of media files device of claim 15 to 22;
The media file client includes any playback of media files device of claim 23 to 28.
32. a kind of media file-playing system, which is characterized in that the system comprises: Media file server and terminal, it is described Media file client is installed in terminal,
The Media file server includes playback of media files device described in claim 29;
The media file client includes playback of media files device described in claim 30.
CN201510828146.XA 2015-11-25 2015-11-25 Media file playing method, apparatus and system Active CN105430449B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510828146.XA CN105430449B (en) 2015-11-25 2015-11-25 Media file playing method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510828146.XA CN105430449B (en) 2015-11-25 2015-11-25 Media file playing method, apparatus and system

Publications (2)

Publication Number Publication Date
CN105430449A CN105430449A (en) 2016-03-23
CN105430449B true CN105430449B (en) 2018-12-18

Family

ID=55508333

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510828146.XA Active CN105430449B (en) 2015-11-25 2015-11-25 Media file playing method, apparatus and system

Country Status (1)

Country Link
CN (1) CN105430449B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495789B (en) * 2017-09-13 2022-02-25 华为技术有限公司 Media file playing method, equipment and communication system
CN108307248B (en) 2018-02-01 2019-10-29 腾讯科技(深圳)有限公司 Video broadcasting method, calculates equipment and storage medium at device
CN109600626A (en) * 2018-12-24 2019-04-09 北京奇艺世纪科技有限公司 A kind of method for processing video frequency and relevant device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101606388A (en) * 2006-12-06 2009-12-16 联合视频制品公司 The system and method that source of media is selected and changed
CN102149005A (en) * 2011-04-29 2011-08-10 四川长虹电器股份有限公司 Self-adaptive method for controlling network video quality
CN103051937A (en) * 2011-10-12 2013-04-17 腾讯科技(深圳)有限公司 Video frequency broadcast and control method as well as device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8411700B2 (en) * 2010-03-25 2013-04-02 Avaya Inc. DLP-based wireless docking for WiFi-based endpoints with desktop

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101606388A (en) * 2006-12-06 2009-12-16 联合视频制品公司 The system and method that source of media is selected and changed
CN102149005A (en) * 2011-04-29 2011-08-10 四川长虹电器股份有限公司 Self-adaptive method for controlling network video quality
CN103051937A (en) * 2011-10-12 2013-04-17 腾讯科技(深圳)有限公司 Video frequency broadcast and control method as well as device

Also Published As

Publication number Publication date
CN105430449A (en) 2016-03-23

Similar Documents

Publication Publication Date Title
US10687161B2 (en) Smart hub
CN106105246B (en) Display methods, apparatus and system is broadcast live
JP6385459B2 (en) Control method and apparatus for audio reproduction
JP6503557B2 (en) INFORMATION PROCESSING APPARATUS, INFORMATION PROCESSING METHOD, AND PROGRAM
WO2017181551A1 (en) Video processing method and device
CN105263196A (en) Connection state prompting method and device
WO2014082353A1 (en) Method and device for identifying frequency channel
CN106385621A (en) Intelligent device control method and device
WO2017075956A1 (en) Content projection method and mobile terminal
US11310614B2 (en) Smart hub
KR20150144547A (en) Video display device and operating method thereof
CN106453032B (en) Information-pushing method and device, system
WO2016150273A1 (en) Video playing method, mobile terminal and system
WO2014190655A1 (en) Application synchronization method, application server and terminal
CN109039872A (en) Exchange method, device, electronic equipment and the storage medium of Instant audio messages
CN105933465B (en) Access the method and device of wireless network
CN105430449B (en) Media file playing method, apparatus and system
CN110830832A (en) Audio playing parameter configuration method of mobile terminal and related equipment
CN105430469B (en) Playback method, device, terminal and the server of audio, video data
US10210545B2 (en) Method and system for grouping devices in a same space for cross-device marketing
CN104702988A (en) AV (Audio/Video) playing method and device
CN106598540A (en) Audio playing method and device
US10762913B2 (en) Image-based techniques for audio content
JP6212719B2 (en) Video receiving apparatus, information display method, and video receiving system
CN105307007A (en) Program sharing method, apparatus and system

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