CN105430449A - Media file play method, device and system - Google Patents

Media file play method, device and system Download PDF

Info

Publication number
CN105430449A
CN105430449A CN201510828146.XA CN201510828146A CN105430449A CN 105430449 A CN105430449 A CN 105430449A CN 201510828146 A CN201510828146 A CN 201510828146A CN 105430449 A CN105430449 A CN 105430449A
Authority
CN
China
Prior art keywords
media file
data
played
frame
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510828146.XA
Other languages
Chinese (zh)
Other versions
CN105430449B (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.)
Beijing Xiaomi Technology Co Ltd
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 invention provides a media file play method, device and system, and belongs to the field of media file playing. The method comprises the following steps: in a process of playing a media file on a media file client, detecting whether a target media file exists in a media file server, wherein the target media file is a high version file of the media file played on the media file client at present; when the target media file exists in the media file server, determining data to be played in the target media file according to a current play data frame of the currently played media file; and sending the data to be played in the target media file to the media file client, for enabling the media file client to play the target media file according to the data to be played. The media file play method, device and system provided by the invention are used for solving the problem of complex switching process of the media file in the prior art and realizing the beneficial effects of simplifying the switching process of the media file. The media file play method, device and system provided by the invention are used for playing media files.

Description

Media file playing method, Apparatus and system
Technical field
The disclosure relates to playback of media files field, particularly a kind of media file playing method, Apparatus and system.
Background technology
Along with the fast development of electronic technology, the application based on the electronic product of electronic technology is also more and more extensive.Wherein, the such as terminal such as smart mobile phone, computer is exactly a kind of typical electronic product.
Terminal can be installed the media file client for playing media file, wherein, media file can be video file or audio file.Take media file as video file, media file client is videoconference client is example, in correlation technique, videoconference client is in the process of playing video file, can detect and whether there is target video file, this target video file is the highest version file of the video file of current broadcasting, the actual video content that the highest version file of the video file of current broadcasting refers to the video file of broadcasting current with this is identical, but result of broadcast is better than the file of the video file of this current broadcasting, the definition of such as this highest version file is higher than the definition of the video file of current broadcasting, when there is target video file, videoconference client can on the broadcast interface of the video file of current broadcasting display alarm information, when videoconference client receive user carry out operating triggered switching command according to this prompting message time, the video file of current broadcasting is switched to target video file and plays by videoconference client.
Summary of the invention
In order to solve Problems existing in correlation technique, present disclose provides a kind of media file playing method, Apparatus and system.Described technical scheme is as follows:
According to first aspect of the present disclosure, provide a kind of media file playing method, described method comprises:
In the process of media file client terminal playing media file, detect in Media file server whether there is target media file, described target media file is the highest version file of the media file of the current broadcasting of described media file client;
When there is described target media file in described Media file server, according to the current played data frame of the media file of described current broadcasting, determine the data to be played in described target media file;
The data to be played in described target media file are sent, so that described media file client carries out the broadcasting of described target media file according to described data to be played to described media file client.
Optionally, the current played data frame of the described media file according to described current broadcasting, determine the data to be played in described target media file, comprising:
Send advertisement message to described media file client, described advertisement message is used for informing in Media file server described in described media file client to there is described target media file;
Receive the handover request that described media file client sends according to described advertisement message, described handover request comprises: described media file client when receiving described advertisement message from the current played data frame of the extracting data of the media file of described current broadcasting;
In the data of described target media file, determine the first object Frame identical with described current played data frame;
Determine that the first object that described first object Frame is corresponding in described target media file plays the moment;
From the data of described target media file, determine the second target data play after described first object plays the moment;
Using described first object Frame and described second target data as described data to be played.
Optionally, described in the data of described target media file, determine the first object Frame identical with described current played data frame, comprising:
Determine the first broadcasting moment that described current played data frame is corresponding in the media file of described current broadcasting;
Described current played data frame is comprised successively the described first data play in the preset time period in moment to compare with described target media file;
The first object Frame that extracting data in the preset time period comprising the described first broadcasting moment is identical with described current played data frame.
Optionally, described handover request also comprises: in the media file of described current broadcasting, corresponding with described current played data frame first plays the moment,
Described in the data of described target media file, determine the first object Frame identical with described current played data frame, comprising:
According to described handover request, described current played data frame is comprised successively the described first data play in the preset time period in moment with described target media file and compare;
The first object Frame that extracting data in the preset time period comprising the described first broadcasting moment is identical with described current played data frame.
Optionally, described in the data of described target media file, determine the first object Frame identical with described current played data frame, comprising:
Described current played data frame is comprised successively each data playing the moment to compare with described target media file;
Extract first object Frame identical with described current played data frame in the data of described target media file.
Optionally, described described first data play in the preset time period in moment that comprised with described target media file successively by described current played data frame compare, and comprising:
Described target media file being comprised the described first Data Placement play in the preset time period in moment is at least two data segments;
In each described data segment, extract at least one feature data frame, each feature data frame is for characterizing the attribute of play content corresponding to described each feature data frame place data segment;
Described current played data frame is compared with at least one feature data frame described successively.
Optionally, the current played data frame of the described media file according to described current broadcasting, determine the data to be played in described target media file, comprising:
Add up the number of described target media file;
When the number of described target media file is more than or equal to 2, according to the current played data frame of the media file of described current broadcasting, from the target media file that version is the highest, determine described data to be played.
Optionally, described in the process of media file client terminal playing media file, detect in Media file server whether there is target media file, comprising:
In the process of described media file client terminal playing media file, periodically detect in described Media file server whether there is described target media file;
Or,
When receiving the detection request that described media file client sends, detect in described Media file server whether there is described target media file.
According to second aspect of the present disclosure, provide a kind of media file playing method, described method comprises:
In the process of media file client terminal playing media file, data to be played in the target media file that receiving media file server sends, data to be played in described target media file are that described Media file server detects when there is described target media file in described Media file server, determine according to the current played data frame of the media file of current broadcasting, described target media file is the highest version file of the media file of described current broadcasting;
The broadcasting of described target media file is carried out according to described data to be played.
Optionally, before the data to be played in the target media file that described receiving media file server sends, described method also comprises:
Receive the advertisement message that described Media file server sends, described advertisement message is used for informing in Media file server described in described media file client to there is described target media file;
According to described advertisement message from the current played data frame of the extracting data of the media file of described current broadcasting, described current played data frame is the Frame play when receiving described advertisement message;
Generate handover request according to described current played data frame, described handover request comprises: described current played data frame;
Send described handover request to described Media file server, so that described Media file server is according to described current played data frame, from the data of described target media file, determine described data to be played.
Optionally, the described broadcasting carrying out described target media file according to described data to be played, comprising:
Judge whether the buffering progress of described data to be played is greater than the playing progress rate from when receiving described advertisement message of the media file of described current broadcasting;
When the buffering progress of described data to be played is greater than the playing progress rate from when receiving described advertisement message of the media file of described current broadcasting, carry out the broadcasting of described target media file according to described data to be played.
Optionally, describedly judge the playing progress rate from when receiving described advertisement message whether the buffering progress of described data to be played is greater than the media file of described current broadcasting, comprising:
To determine in the media file of described current broadcasting that corresponding with described current played data frame first plays the moment;
The current broadcasting moment is determined according to the playing progress rate of the media file of described current broadcasting;
In the buffered data of described data to be played, determine the first object Frame identical with described current played data frame, the buffered data of described data to be played comprises at least one Frame;
Determine that the first object that described first object Frame is corresponding in described target media file plays the moment;
Determine the second target play moment of last Frame to be played correspondence in described target media file in the buffered data of described data to be played;
Calculate the described current broadcasting moment and the described first reproduction time play between the moment poor;
Calculate the object time that described second target play moment and described first object play between the moment poor;
Judge whether difference of described object time is greater than described reproduction time poor;
When described object time difference is greater than described reproduction time difference, determine that the buffering progress of described data to be played is greater than the playing progress rate from when receiving described advertisement message of the media file of described current broadcasting.
Optionally, the described broadcasting carrying out described target media file according to described data to be played, comprising:
The Frame that the described current broadcasting moment plays is determined in the data of the media file of described current broadcasting;
Determine currently to play the identical target Frame to be played of Frame that the moment plays with described in the buffered data of described data to be played;
The data to be played play after playing the broadcasting moment corresponding at described target Frame to be played in the buffered data of described target Frame to be played and described data to be played successively.
Optionally, described handover request also comprises: in the media file of described current broadcasting, corresponding with described current played data frame first plays the moment.
According to the third aspect of the present disclosure, provide a kind of playback of media files device, described device comprises:
Detection module, be configured in the process of media file client terminal playing media file, detect in Media file server and whether there is target media file, described target media file is the highest version file of the media file of the current broadcasting of described media file client;
Determination module, is configured to when there is described target media file in described Media file server, according to the current played data frame of the media file of described current broadcasting, determines the data to be played in described target media file;
Sending module, is configured to the data to be played sent to described media file client in described target media file, so that described media file client carries out the broadcasting of described target media file according to described data to be played.
Optionally, described determination module, comprising:
Send submodule, be configured to send advertisement message to described media file client, described advertisement message is used for informing in Media file server described in described media file client to there is described target media file;
Receive submodule, be configured to receive the handover request that described media file client sends according to described advertisement message, described handover request comprises: described media file client when receiving described advertisement message from the current played data frame of the extracting data of the media file of described current broadcasting;
First determines submodule, is configured in the data of described target media file, determines the first object Frame identical with described current played data frame;
Second determines submodule, is configured to determine that the first object that described first object Frame is corresponding in described target media file plays the moment;
3rd determines submodule, is configured to from the data of described target media file, determines the second target data play after described first object plays the moment;
As submodule, be configured to described first object Frame and described second target data as described data to be played.
Optionally, described first determines submodule, comprising:
Moment determines submodule, is configured to the first broadcasting moment determining that described current played data frame is corresponding in the media file of described current broadcasting;
Comparison sub-module, is configured to described current played data frame to be comprised successively the described first data play in the preset time period in moment with described target media file and compares;
Extract submodule, be configured to play the extracting data first object Frame identical with described current played data frame in the preset time period in moment comprising described first.
Optionally, described handover request also comprises: in the media file of described current broadcasting, corresponding with described current played data frame first plays the moment,
Described first determines submodule, comprising:
Comparison sub-module, is configured to according to described handover request, described current played data frame is comprised successively the described first data play in the preset time period in moment with described target media file and compares;
Extract submodule, be configured to play the extracting data first object Frame identical with described current played data frame in the preset time period in moment comprising described first.
Optionally, described first determines submodule, comprising:
Comparison sub-module, is configured to described current played data frame to be comprised successively each data playing the moment with described target media file and compares;
Extract submodule, be configured to extract first object Frame identical with described current played data frame in the data of described target media file.
Optionally, described comparison sub-module, is configured to:
Described target media file being comprised the described first Data Placement play in the preset time period in moment is at least two data segments;
In each described data segment, extract at least one feature data frame, each feature data frame is for characterizing the attribute of play content corresponding to described each feature data frame place data segment;
Described current played data frame is compared with at least one feature data frame described successively.
Optionally, described determination module, is configured to:
Add up the number of described target media file;
When the number of described target media file is more than or equal to 2, according to the current played data frame of the media file of described current broadcasting, from the target media file that version is the highest, determine described data to be played.
Optionally, described detection module, is configured to:
In the process of described media file client terminal playing media file, periodically detect in described Media file server whether there is described target media file;
Or,
When receiving the detection request that described media file client sends, detect in described Media file server whether there is described target media file.
According to fourth aspect of the present disclosure, provide a kind of playback of media files device, described device comprises:
First receiver module, be configured in the process of media file client terminal playing media file, data to be played in the target media file that receiving media file server sends, data to be played in described target media file are that described Media file server detects when there is described target media file in described Media file server, determine according to the current played data frame of the media file of current broadcasting, described target media file is the highest version file of the media file of described current broadcasting;
Playing module, is configured to the broadcasting carrying out described target media file according to described data to be played.
Optionally, described device also comprises:
Second receiver module, be configured to the advertisement message receiving the transmission of described Media file server, described advertisement message is used for informing in Media file server described in described media file client to there is described target media file;
Extraction module, be configured to according to described advertisement message from the current played data frame of the extracting data of the media file of described current broadcasting, described current played data frame is the Frame play when receiving described advertisement message;
Generation module, be configured to generate handover request according to described current played data frame, described handover request comprises: described current played data frame;
Sending module, is configured to send described handover request to described Media file server, so that described Media file server is according to described current played data frame, from the data of described target media file, determines described data to be played.
Optionally, described playing module, comprising:
Judge submodule, be configured to judge whether the buffering progress of described data to be played is greater than the playing progress rate from when receiving described advertisement message of the media file of described current broadcasting;
Play submodule, be configured to, when the buffering progress of described data to be played is greater than the playing progress rate from when receiving described advertisement message of the media file of described current broadcasting, carry out the broadcasting of described target media file according to described data to be played.
Optionally, described judgement submodule, is configured to:
To determine in the media file of described current broadcasting that corresponding with described current played data frame first plays the moment;
The current broadcasting moment is determined according to the playing progress rate of the media file of described current broadcasting;
In the buffered data of described data to be played, determine the first object Frame identical with described current played data frame, the buffered data of described data to be played comprises at least one Frame;
Determine that the first object that described first object Frame is corresponding in described target media file plays the moment;
Determine the second target play moment of last Frame to be played correspondence in described target media file in the buffered data of described data to be played;
Calculate the described current broadcasting moment and the described first reproduction time play between the moment poor;
Calculate the object time that described second target play moment and described first object play between the moment poor;
Judge whether difference of described object time is greater than described reproduction time poor;
When described object time difference is greater than described reproduction time difference, determine that the buffering progress of described data to be played is greater than the playing progress rate from when receiving described advertisement message of the media file of described current broadcasting.
Optionally, described broadcasting submodule, is configured to:
The Frame that the described current broadcasting moment plays is determined in the data of the media file of described current broadcasting;
Determine currently to play the identical target Frame to be played of Frame that the moment plays with described in the buffered data of described data to be played;
The data to be played play after playing the broadcasting moment corresponding at described target Frame to be played in the buffered data of described target Frame to be played and described data to be played successively.
Optionally, described handover request also comprises: in the media file of described current broadcasting, corresponding with described current played data frame first plays the moment.
According to the 5th aspect of the present disclosure, a kind of playback of media files device is provided, comprises:
Processor;
For storing the memory of the executable instruction of described processor;
Wherein, described processor is configured to:
In the process of media file client terminal playing media file, detect in Media file server whether there is target media file, described target media file is the highest version file of the media file of the current broadcasting of described media file client;
When there is described target media file in described Media file server, according to the current played data frame of the media file of described current broadcasting, determine the data to be played in described target media file;
The data to be played in described target media file are sent, so that described media file client carries out the broadcasting of described target media file according to described data to be played to described media file client.
According to the 6th aspect of the present disclosure, a kind of playback of media files device is provided, comprises:
Processor;
For storing the memory of the executable instruction of described processor;
Wherein, described processor is configured to:
In the process of media file client terminal playing media file, data to be played in the target media file that receiving media file server sends, data to be played in described target media file are that described Media file server detects when there is described target media file in described Media file server, determine according to the current played data frame of the media file of current broadcasting, described target media file is the highest version file of the media file of described current broadcasting;
The broadcasting of described target media file is carried out according to described data to be played.
According to the 7th aspect of the present disclosure, provide a kind of media file-playing system, described system comprises: Media file server and terminal, described terminal is provided with media file client,
Described Media file server comprises the playback of media files device described in the third aspect;
Described media file client comprises the playback of media files device described in fourth aspect.
According to eighth aspect of the present disclosure, provide a kind of media file-playing system, described system comprises: Media file server and terminal, described terminal is provided with media file client,
Described Media file server comprises the playback of media files device described in the 5th aspect;
Described media file client comprises the playback of media files device described in the 6th aspect.
The technical scheme provided of the present disclosure can comprise following beneficial effect:
The media file playing method provided of the present disclosure, Apparatus and system, Media file server is by detecting in Media file server whether there is target media file, target media file is the highest version file of the media file of the current broadcasting of media file client, when there is target media file in Media file server, according to the current played data frame of the media file of current broadcasting, determine the data to be played in target media file, the data to be played in target media file are sent to media file client, so that media file client carries out the broadcasting of target media file according to data to be played.Switch owing to just can realize media file without the need to user operation, therefore, solve the problem of media file handoff procedure complexity in correlation technique, reach the beneficial effect simplifying media file handoff procedure.
Should be understood that, it is only exemplary that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
In order to be illustrated more clearly in embodiment of the present disclosure, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only embodiments more of the present disclosure, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the structural representation of a kind of implementation environment involved by media file playing method that each embodiment of the disclosure provides;
Fig. 2 is the method flow diagram of a kind of media file playing method according to an exemplary embodiment;
Fig. 3 is the method flow diagram of a kind of media file playing method according to another exemplary embodiment;
Fig. 4-1 is the method flow diagram of a kind of media file playing method Gen Ju an exemplary embodiment again;
Fig. 4-2 is method flow diagrams that a kind of Media file server that Fig. 4-1 illustrated embodiment provides determines data to be played in the data of target media file;
Fig. 4-3 is method flow diagrams of the data to be played in a kind of Media file server determination target media file of providing of Fig. 4-1 illustrated embodiment;
Fig. 4-4 is method flow diagrams that a kind of Media file server that Fig. 4-1 illustrated embodiment provides determines first object Frame in the data of target media file;
Fig. 4-5 is method flow diagrams that current played data frame and target media file are comprised the data in the preset time period in the first broadcasting moment and compare by a kind of Media file server that Fig. 4-1 illustrated embodiment provides;
Fig. 4-6 is method flow diagrams that another kind of Media file server that Fig. 4-1 illustrated embodiment provides determines first object Frame in the data of target media file;
Fig. 4-7 is method flow diagrams that another Media file server that Fig. 4-1 illustrated embodiment provides determines first object Frame in the data of target media file;
Fig. 4-8 is a kind of media file client that Fig. 4-1 illustrated embodiment provides carries out the broadcasting of target media file method flow diagrams according to data to be played;
Fig. 4-9 is that a kind of media file client that Fig. 4-1 illustrated embodiment provides judges whether the buffering progress of data to be played is greater than the method flow diagram of the playing progress rate of the media file of current broadcasting;
Fig. 4-10 is a kind of media file client that Fig. 4-1 illustrated embodiment provides carries out the broadcasting of target media file method flow diagrams according to data to be played;
Fig. 5 is the block diagram of a kind of playback of media files device according to an exemplary embodiment;
Fig. 6-1 is the block diagram of a kind of playback of media files device according to another exemplary embodiment;
Fig. 6-2 is the block diagrams of a kind of determination module that Fig. 6-1 illustrated embodiment provides;
Fig. 6-3 is a kind of first block diagrams determining submodule that Fig. 6-1 illustrated embodiment provides;
Fig. 6-4 is block diagrams that another kind first that Fig. 6-1 illustrated embodiment provides determines submodule;
Fig. 6-5 is another first block diagram determining submodule that Fig. 6-1 illustrated embodiment provides;
Fig. 7 is the block diagram of a kind of playback of media files device Gen Ju an exemplary embodiment again;
Fig. 8-1 is the block diagram of a kind of playback of media files device according to another exemplary embodiment;
Fig. 8-2 is the block diagrams of a kind of playing module that Fig. 8-1 illustrated embodiment provides;
Fig. 9 is the block diagram of a kind of playback of media files device according to an exemplary embodiment;
Figure 10 is the block diagram of a kind of playback of media files device according to another exemplary embodiment;
Figure 11 is the block diagram of a kind of media file-playing system according to an exemplary embodiment.
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows and meets embodiment of the present disclosure, and is used from specification one and explains principle of the present disclosure.
Embodiment
In order to make object of the present disclosure, technical scheme and advantage clearly, be described in further detail the disclosure below in conjunction with accompanying drawing, obviously, described embodiment is only a part of embodiment of the disclosure, instead of whole embodiments.Based on the embodiment in the disclosure, those of ordinary skill in the art are not making other embodiments all obtained under creative work prerequisite, all belong to the scope of disclosure protection.
Fig. 1 is the structural representation of a kind of implementation environment involved by media file playing method that each embodiment of the disclosure provides.See Fig. 1, this implementation environment comprises: terminal 120 and server 140.
Terminal 120 can be connected by cable network or wireless network with server 140, and this wireless network can include but not limited to: Wireless Fidelity is (English: WirelessFidelity; Be called for short: WIFI), bluetooth, (English: Zigbee), data, disclosure embodiment does not limit this infrared, purple honeybee.
Wherein, terminal 120 can be smart mobile phone, panel computer, intelligent television, desktop computer, dynamic image expert compression standard audio frequency aspect 4 (English: MovingPictureExpertsGroupAudioLayerIV; Be called for short: MP4) player, dynamic image expert compression standard audio frequency aspect 3 (English: MovingPictureExpertsGroupAudioLayerIII; Be called for short: MP3) player etc., can installation medium file client in terminal 120, this media file client can be videoconference client (such as, excellent cruel client), also can be audio client (such as, KuGoo music client end), the disclosure is implemented not limit this.
Server 140 can be Media file server, example, and this server 140 can be a station server, or the server cluster be made up of some station servers, or a cloud computing service center.This server 140 can be the Media file server supporting with the media file client of installing in terminal 120, and disclosure embodiment limits this.
Media file client in terminal 120 can obtain the data of media file from Media file server by being connected with the network between Media file server and playing, in the process of media file client terminal playing media file, Media file server can detect in Media file server whether there is target media file, and target media file is the highest version file of the media file of the current broadcasting of media file client; When there is target media file in Media file server, Media file server according to the current played data frame of the media file of current broadcasting, can determine the data to be played in target media file; Then send the data to be played in target media file to media file client, media file client can data to be played in the target media file that sends of receiving media file server, carry out the broadcasting of target media file according to data to be played.
Optionally, when there is target media file in Media file server, Media file server can send advertisement message to media file client, and advertisement message is used for informing in media file client media file server to there is target media file; Media file client can according to advertisement message from the current played data frame of the extracting data of the media file of current broadcasting, current played data frame is the Frame play when receiving advertisement message, generate the handover request comprising current played data frame according to current played data frame, then send handover request to Media file server.Media file server can in the data of target media file, determine the first object Frame identical with current played data frame, determine that the first object that first object Frame is corresponding in target media file plays the moment, from the data of target media file, determine to play at first object the second target data play after the moment, using first object Frame and the second target data as data to be played.
Optionally, Media file server can determine the first broadcasting moment that current played data frame is corresponding in the media file of current broadcasting; The current played data frame successively data comprised with target media file in the preset time period in the first broadcasting moment is compared; The first object Frame that extracting data in the preset time period comprising for the first broadcasting moment is identical with current played data frame.Or, optionally, handover request can also comprise: in the media file of the current broadcasting of media file client, corresponding with current played data frame first plays the moment, the current played data frame successively data comprised with target media file in the preset time period in the first broadcasting moment according to handover request, can compare by Media file server; The first object Frame that extracting data in the preset time period comprising for the first broadcasting moment is identical with current played data frame.Or optionally, current played data frame can be comprised each data playing the moment and compare by Media file server successively with target media file; Extract first object Frame identical with current played data frame in the data of target media file.
Optionally, the current played data frame successively data comprised with target media file in the preset time period in the first broadcasting moment compares and can comprise by Media file server: by target media file, the Data Placement comprised in the preset time period in the first broadcasting moment is at least two data segments to Media file server; In each data segment, extract at least one feature data frame, each feature data frame is for characterizing the attribute of play content corresponding to each feature data frame place data segment; Current played data frame is compared with at least one feature data frame successively.
Optionally, when there is target media file in Media file server, Media file server can add up the number of target media file; When the number of target media file is more than or equal to 2, Media file server, according to the current played data frame of the media file of current broadcasting, determines data to be played from the target media file that version is the highest.
Optionally, Media file server in the process of media file client terminal playing media file, periodically can detect in Media file server whether there is target media file; Or Media file server when receiving the detection request that media file client sends, can detect in Media file server whether there is target media file.Disclosure embodiment does not limit this.
Optionally, the broadcasting that media file client carries out target media file according to data to be played can comprise: media file client judges whether the buffering progress of data to be played is greater than the playing progress rate from when receiving advertisement message of the media file of current broadcasting; When the buffering progress of data to be played is greater than the playing progress rate from when receiving advertisement message of the media file of current broadcasting, carry out the broadcasting of target media file according to data to be played.
Example, media file client judges that the playing progress rate from when receiving advertisement message whether the buffering progress of data to be played is greater than the media file of current broadcasting can comprise: media file client to determine in the media file of current broadcasting that corresponding with current played data frame first plays the moment; The current broadcasting moment is determined according to the playing progress rate of the media file of current broadcasting; In the buffered data of data to be played, determine the first object Frame identical with current played data frame, the buffered data of data to be played comprises at least one Frame; Determine that the first object that first object Frame is corresponding in target media file plays the moment; Determine the second target play moment of last Frame to be played correspondence in target media file in the buffered data of data to be played; Calculate the current broadcasting moment and the first reproduction time play between the moment poor; Calculate the object time that the second target play moment and first object play between the moment poor; Judge whether object time difference is greater than reproduction time difference; When object time difference is greater than reproduction time difference, media file client determines that the buffering progress of data to be played is greater than the playing progress rate from when receiving advertisement message of the media file of current broadcasting.
Example, the broadcasting that media file client carries out target media file according to data to be played can comprise: media file client determines the Frame that the current broadcasting moment plays in the data of the media file of current broadcasting; Determine to play the identical target Frame to be played of Frame that the moment plays with current in the buffered data of data to be played; The data to be played play after playing the broadcasting moment corresponding at target Frame to be played in the buffered data of target Frame to be played and data to be played successively.
Fig. 2 is the method flow diagram of a kind of media file playing method according to an exemplary embodiment, the present embodiment is applied to this media file playing method in the server 140 in implementation environment shown in Fig. 1 and is illustrated, and this server 140 can be Media file server.See Fig. 2, this media file playing method can comprise following several step:
In step 201, in the process of media file client terminal playing media file, detect in Media file server whether there is target media file, target media file is the highest version file of the media file of the current broadcasting of media file client.
In step 202., when there is target media file in Media file server, according to the current played data frame of the media file of current broadcasting, determine the data to be played in target media file.
In step 203, the data to be played in target media file are sent, so that media file client carries out the broadcasting of target media file according to data to be played to media file client.
In sum, the media file playing method that disclosure embodiment provides, Media file server is by detecting in Media file server whether there is target media file, target media file is the highest version file of the media file of the current broadcasting of media file client, when there is target media file in Media file server, according to the current played data frame of the media file of current broadcasting, determine the data to be played in target media file, the data to be played in target media file are sent to media file client, so that media file client carries out the broadcasting of target media file according to data to be played.Switch owing to just can realize media file without the need to user operation, therefore, solve the problem of media file handoff procedure complexity in correlation technique, reach the beneficial effect simplifying media file handoff procedure.
Optionally, step 202 can comprise:
Send advertisement message to media file client, advertisement message is used for informing in media file client media file server to there is target media file;
The handover request that receiving media file client sends according to advertisement message, handover request comprises: media file client when receiving advertisement message from the current played data frame of the extracting data of the media file of current broadcasting;
In the data of target media file, determine the first object Frame identical with current played data frame;
Determine that the first object that first object Frame is corresponding in target media file plays the moment;
From the data of target media file, determine the second target data play after first object plays the moment;
Using first object Frame and the second target data as data to be played.
Optionally, in the data of target media file, determine the first object Frame identical with current played data frame, comprising:
Determine the first broadcasting moment that current played data frame is corresponding in the media file of current broadcasting;
The current played data frame successively data comprised with target media file in the preset time period in the first broadcasting moment is compared;
The first object Frame that extracting data in the preset time period comprising for the first broadcasting moment is identical with current played data frame.
Optionally, handover request also comprises: in the media file of current broadcasting, corresponding with current played data frame first plays the moment,
In the data of target media file, determine the first object Frame identical with current played data frame, comprising:
According to handover request, the current played data frame successively data comprised with target media file in the preset time period in the first broadcasting moment is compared;
The first object Frame that extracting data in the preset time period comprising for the first broadcasting moment is identical with current played data frame.
Optionally, in the data of target media file, determine the first object Frame identical with current played data frame, comprising:
Current played data frame is comprised successively each data playing the moment to compare with target media file;
Extract first object Frame identical with current played data frame in the data of target media file.
Optionally, the current played data frame successively data comprised with target media file in the preset time period in the first broadcasting moment is compared, comprising:
Data Placement target media file comprised in the preset time period in the first broadcasting moment is at least two data segments;
In each data segment, extract at least one feature data frame, each feature data frame is for characterizing the attribute of play content corresponding to each feature data frame place data segment;
Current played data frame is compared with at least one feature data frame successively.
Optionally, step 202 can comprise:
The number of statistics target media file;
When the number of target media file is more than or equal to 2, according to the current played data frame of the media file of current broadcasting, from the target media file that version is the highest, determine data to be played.
Optionally, step 201 can comprise:
In the process of media file client terminal playing media file, periodically detect in Media file server whether there is target media file;
Or,
When receiving the detection request that media file client sends, detect in Media file server whether there is target media file.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation embodiment of the present disclosure, this is no longer going to repeat them.
In sum, the media file playing method that disclosure embodiment provides, Media file server is by detecting in Media file server whether there is target media file, target media file is the highest version file of the media file of the current broadcasting of media file client, when there is target media file in Media file server, according to the current played data frame of the media file of current broadcasting, determine the data to be played in target media file, the data to be played in target media file are sent to media file client, so that media file client carries out the broadcasting of target media file according to data to be played.Switch owing to just can realize media file without the need to user operation, therefore, solve the problem of media file handoff procedure complexity in correlation technique, reach the beneficial effect simplifying media file handoff procedure.
Fig. 3 is the method flow diagram of a kind of media file playing method according to another exemplary embodiment, the present embodiment is applied to this media file playing method in the terminal 120 in implementation environment shown in Fig. 1 and is illustrated, can installation medium file client in this terminal 120, this media file playing method can be performed by media file client.See Fig. 3, this media file playing method can comprise following several step:
In step 301, in the process of media file client terminal playing media file, data to be played in the target media file that receiving media file server sends, data to be played in target media file are that Media file server detects in Media file server when there is target media file, determine according to the current played data frame of the media file of current broadcasting, target media file is the highest version file of the media file of current broadcasting.
In step 302, the broadcasting of target media file is carried out according to data to be played.
In sum, the media file playing method that disclosure embodiment provides, data to be played in the target media file that media file client is sent by receiving media file server, data to be played in target media file are that Media file server detects in Media file server when there is target media file, determine according to the current played data frame of the media file of current broadcasting, target media file is the highest version file of the media file of current broadcasting, carries out the broadcasting of target media file according to data to be played.Switch owing to just can realize media file without the need to user operation, therefore, solve the problem of media file handoff procedure complexity in correlation technique, reach the beneficial effect simplifying media file handoff procedure.
Optionally, before step 301, the method can also comprise:
The advertisement message that receiving media file server sends, advertisement message is used for informing in media file client media file server to there is target media file;
According to advertisement message from the current played data frame of the extracting data of the media file of current broadcasting, current played data frame is the Frame play when receiving advertisement message;
Generate handover request according to current played data frame, handover request comprises: current played data frame;
Send handover request to Media file server, so that Media file server is according to current played data frame, from the data of target media file, determine data to be played.
Optionally, step 302 can comprise:
Judge whether the buffering progress of data to be played is greater than the playing progress rate from when receiving advertisement message of the media file of current broadcasting;
When the buffering progress of data to be played is greater than the playing progress rate from when receiving advertisement message of the media file of current broadcasting, carry out the broadcasting of target media file according to data to be played.
Optionally, judge whether the buffering progress of data to be played is greater than the playing progress rate from when receiving advertisement message of the media file of current broadcasting, comprising:
To determine in the media file of current broadcasting that corresponding with current played data frame first plays the moment;
The current broadcasting moment is determined according to the playing progress rate of the media file of current broadcasting;
In the buffered data of data to be played, determine the first object Frame identical with current played data frame, the buffered data of data to be played comprises at least one Frame;
Determine that the first object that first object Frame is corresponding in target media file plays the moment;
Determine the second target play moment of last Frame to be played correspondence in target media file in the buffered data of data to be played;
Calculate the current broadcasting moment and the first reproduction time play between the moment poor;
Calculate the object time that the second target play moment and first object play between the moment poor;
Judge whether object time difference is greater than reproduction time difference;
When object time difference is greater than reproduction time difference, determine that the buffering progress of data to be played is greater than the playing progress rate from when receiving advertisement message of the media file of current broadcasting.
Optionally, carry out the broadcasting of target media file according to data to be played, comprising:
The Frame that the current broadcasting moment plays is determined in the data of the media file of current broadcasting;
Determine to play the identical target Frame to be played of Frame that the moment plays with current in the buffered data of data to be played;
The data to be played play after playing the broadcasting moment corresponding at target Frame to be played in the buffered data of target Frame to be played and data to be played successively.
Optionally, handover request also comprises: in the media file of current broadcasting, corresponding with current played data frame first plays the moment.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation embodiment of the present disclosure, this is no longer going to repeat them.
In sum, the media file playing method that disclosure embodiment provides, data to be played in the target media file that media file client is sent by receiving media file server, data to be played in target media file are that Media file server detects in Media file server when there is target media file, determine according to the current played data frame of the media file of current broadcasting, target media file is the highest version file of the media file of current broadcasting, carries out the broadcasting of target media file according to data to be played.Switch owing to just can realize media file without the need to user operation, therefore, solve the problem of media file handoff procedure complexity in correlation technique, reach the beneficial effect simplifying media file handoff procedure.
Fig. 4-1 is the method flow diagram of a kind of media file playing method Gen Ju an exemplary embodiment again, and the present embodiment is applied in implementation environment shown in Fig. 1 with this media file playing method and is illustrated.See Fig. 4-1, this media file playing method can comprise following several step:
In step 401, in the process of media file client terminal playing media file, Media file server detects in Media file server whether there is target media file, and target media file is the highest version file of the media file of the current broadcasting of media file client.
Wherein, media file client can be videoconference client, also can be audio client, videoconference client as excellent cruel client, like strange skill client etc., audio client is as KuGoo music client end, Baidu's music client end etc., media file can be video file, and can be also audio file, disclosure embodiment limit this.
Media file client is when playing media file, needs obtain the data corresponding to this media file from server, wherein, this server can be the Media file server supporting with this media file client, also can be third-party server, such as, when media file client is excellent cruel client, this server can be excellent cruel server, also can be to like strange skill server (third-party server), and disclosure embodiment does not limit this.
When media file client obtains the data of media file from Media file server, Media file server can send the data of media file to media file client, now, Media file server can think that media file client is at broadcasting media file; Or, media file client is when playing media file, can send to Media file server and play indication information, Media file server can play the media file indicated by this broadcasting indication information according to this broadcasting indication information determination media file client.
Media file server determination media file client is when playing media file, and can detect in Media file server whether there is target media file, this target media file is the highest version file of the media file of the current broadcasting of media file client.Example, suppose that the media file of the current broadcasting of this media file client is the video file of file " XXX.wmv " by name, then this target media file is also the video file of " XXX.wmv ", and the FileVersion of this target media file is higher than the FileVersion of the media file of current broadcasting, such as, the definition of this target media file is greater than the definition of the media file of this current broadcasting, and the tonequality of this target media file is better than the tonequality etc. of the media file of this current broadcasting.
Optionally, Media file server can according to the mark of media file of the current broadcasting of data determination media file client of the media file sent to media file client and the FileVersion of the media file of this current broadcasting, or the FileVersion of the media file of the mark of the media file of current broadcasting and this current broadcasting can be carried to play in indication information and send to Media file server by media file client.Media file server store media files can identify the corresponding relation with FileVersion, according to the identified query media file identification of the media file of current broadcasting and the corresponding relation of FileVersion, obtain the media file of all versions corresponding to the mark of the media file of broadcasting current with this, then detect in the media file of all versions corresponding with the mark of the media file of this current broadcasting whether there is target media file.Example take media file as video file for example is described, then the corresponding relation of the media file identification that stores of Media file server and FileVersion can be as shown in table 1 below:
Table 1
That supposes the media file of the current broadcasting of media file client is designated ID-A, FileVersion is A1, then Media file server is according to this mark ID-A, corresponding relation shown in question blank 1, the media file of all versions corresponding with mark ID-A on Media file server can be obtained, known see table 1, the media file that on this Media file server, existence 3 is corresponding with mark ID-A, these 3 are respectively with media file corresponding to mark ID-A the media file that FileVersion is A1, FileVersion is the media file of A2 and FileVersion is the media file of A3, wherein, FileVersion is the media file of A1, and to be SD file (be also, the definition of the media file that FileVersion is A1 belongs to the definition scope corresponding to SD), FileVersion is the media file of A2, and to be high definition (be also, the definition of the media file that FileVersion is A2 belongs to the definition scope corresponding to high definition), FileVersion is the media file of A3, and to be ultra high-definition file (be also, the definition of the media file that FileVersion is A3 belongs to the definition scope corresponding to ultra high-definition), therefore, can determine that FileVersion A2 is higher than FileVersion A1, FileVersion A3 is higher than FileVersion A2, Media file server can determine target media file in the media file that these 3 corresponding with mark ID-A, example, due to FileVersion A2, FileVersion A3 is all higher than FileVersion A1, therefore, media file and the FileVersion of Media file server determination target media file to be FileVersion be A2 are the media file of A3.
It should be noted that, description about the description of FileVersion corresponding to the media file identification ID-B in above-mentioned table 1 and media file identification ID-B, FileVersion that media file identification ID-C and media file identification ID-C is corresponding can with reference to the description of the above-mentioned FileVersion corresponding to media file identification ID-A and media file identification ID-A, and disclosure embodiment does not repeat them here.
Also it should be noted that, in the disclosed embodiments, the data of the media file of current broadcasting can be that media file client obtains from the Media file server supporting with media file client, also can be that media file client obtains from third-party server.Obtain from the Media file server supporting with media file client if the data of the media file of current broadcasting are media file clients, then this Media file server can in the process of media file client terminal playing media file, periodically detect in Media file server whether there is target media file, if the digital media file client of the media file of current broadcasting obtains from third-party server, then this media file client can send to the Media file server supporting with this media file client to detect and ask, the mark of the media file of the current broadcasting of media file client can be carried in this detection request, can when receiving this detection request with the Media file server that this media file client is supporting, according to the mark of the media file carried in this detection request, detect in Media file server and whether there is target media file, disclosure embodiment does not limit this.
In step 402, when there is target media file in Media file server, Media file server, according to the current played data frame of the media file of current broadcasting, determines the data to be played in target media file.
If in step 401, Media file server detects in Media file server to there is target media file, then Media file server is according to the current played data frame of the media file of the current broadcasting of media file client, determines the data to be played in target media file.
Example, please refer to Fig. 4-2, shown in it is the method flow diagram that a kind of Media file server that Fig. 4-1 illustrated embodiment provides determines data to be played in the data of target media file, and see Fig. 4-2, the method flow process can comprise following several step:
In sub-step 402A, the number of Media file server statistics target media file.
Media file server can the number of target media file that arrives of statistic mixed-state, example, Media file server statistic mixed-state to the number being designated the target media file of ID-A.From above-mentioned steps 201, media file and the FileVersion of Media file server determination target media file to be FileVersion be A2 are the media file of A3.Therefore, the number of target media file that Media file server counts on is 2.
In sub-step 402B, when the number of target media file is more than or equal to 2, Media file server, according to the current played data frame of the media file of current broadcasting, determines data to be played from the target media file that version is the highest.
When in sub-step 402A, the number of Media file server determination target media file is greater than or equal to 2, Media file server is according to the current played data frame of the media file of current broadcasting, data to be played are determined from the target media file that version is the highest, example, because FileVersion A3 is higher than FileVersion A2, therefore, Media file server, according to the current played data frame of the media file of current broadcasting, is determine data to be played the target media file of A3 from FileVersion.
Optionally, in this step 402B, Media file server can first sort to the FileVersion of media file, then determine according to ranking results the target media file that FileVersion is the highest, again according to the current played data frame of the media file of current broadcasting, from the target media file that version is the highest, determine data to be played.
Example, please refer to Fig. 4-3, shown in it is the method flow diagram of data to be played in a kind of Media file server determination target media file of providing of Fig. 4-1 illustrated embodiment, and see Fig. 4-3, the method flow process can comprise following several step:
In sub-step 4021, Media file server sends advertisement message to media file client, and advertisement message is used for informing in media file client media file server to there is target media file.
When Media file server detect in Media file server there is target media file time, Media file server can send advertisement message to media file client, this notification is used for informing in media file client media file server to there is target media file, example, can carry the information such as the FileVersion of file destination in this advertisement message, disclosure embodiment does not limit this.In practical application, this advertisement message can be the character string etc. that Media file server and media file client can identify, disclosure embodiment does not limit this.
In sub-step 4022, the advertisement message that media file client receiving media file server sends.
When Media file server sends advertisement message to media file client, media file client can receive this advertisement message.Wherein, this advertisement message is used for informing in media file client media file server to there is target media file.
In sub-step 4023, media file client is according to advertisement message from the current played data frame of the extracting data of the media file of current broadcasting, and current played data frame is the Frame play when receiving advertisement message.
When media file client receives the advertisement message of Media file server transmission, can according to this advertisement message from the current played data frame of the extracting data of the media file of the current broadcasting of media file client, this current played data frame can be the Frame that media file client is being play when receiving advertisement message.Example, when supposing to receive advertisement message, the Frame that media file client is being play is the 1120354th Frame in the media file of current broadcasting, and the 1120354th Frame can be Frame W, then the current data frame that media file client is extracted is Frame W.In practical application, when the media file of the current broadcasting of media file client is video file, this current played data frame can be a two field picture, example, and this current played data frame is the 1120354th two field picture.
In sub-step 4024, media file client generates handover request according to current played data frame, and handover request comprises: current played data frame.
After extracting current played data frame, media file client can generate according to current played data frame the handover request comprising current played data frame.Example, media file client generates the handover request comprising Frame W.Optionally, corresponding with current played data frame first can also to be comprised in the media file of the current broadcasting of media file client in this handover request and plays the moment, first to play moment can be 1:28:30 (1 hour 28 points and 30 seconds) for this, and disclosure embodiment does not limit this.
In sub-step 4025, media file client sends handover request to Media file server.
After media file client generates and comprises the handover request of current played data frame, this handover request comprising current played data frame can be sent to Media file server, example, media file client sends the handover request comprising Frame W to Media file server.Wherein, the handover request that media file client comprises current played data frame to Media file server transmission so that Media file server is according to current played data frame, can determine data to be played from the data of target media file.
In sub-step 4026, the handover request that Media file server receiving media file client sends.
When media file client sends handover request to Media file server, Media file server can receiving media file client send handover request, wherein, this handover request can comprise: media file client when receiving advertisement message from the current played data frame of the extracting data of the media file of current broadcasting.Example, the handover request comprising Frame W that Media file server receiving media file client sends.
In sub-step 4027, Media file server, in the data of target media file, determines the first object Frame identical with current played data frame.
Media file server can be resolved this handover request and obtain current played data frame, then in the data of target media file, determine the first object Frame identical with current played data frame after being received the handover request of media file client transmission.
Example, please refer to Fig. 4-4, shown in it is the method flow diagram that a kind of Media file server that Fig. 4-1 illustrated embodiment provides determines first object Frame in the data of target media file, and see Fig. 4-4, the method flow process can comprise following several step:
In sub-step 40271a, Media file server determines the first broadcasting moment that current played data frame is corresponding in the media file of current broadcasting.
The information of the media file of current broadcasting can be stored in Media file server, the information of the media file of this current broadcasting can comprise: Frame with play the corresponding relation in moment, the broadcasting moment that the Frame in the media file of this Frame and the Frame that have recorded in the corresponding relation in broadcasting moment in the media file of the current broadcasting of media file client and this current broadcasting is corresponding.Media file server and can be play the corresponding relation in moment and obtains current played data frame in the media file of current broadcasting and corresponding first play the moment according to current played data frame data query frame.Example, Media file server is according to Frame W (current played data frame) data query frame and the corresponding relation playing the moment, obtain the first broadcasting moment that Frame W is corresponding in the media file of current broadcasting, this first broadcasting moment can be 1:28:30.
In sub-step 40272a, the current played data frame successively data comprised with target media file in the preset time period in the first broadcasting moment compares by Media file server.
The current played data frame successively data comprised with target media file in the preset time period in the first broadcasting moment can compare after determining the first broadcasting moment that current played data frame is corresponding in the media file of current broadcasting by Media file server.Wherein, preset time period can be arranged according to actual needs, disclosure embodiment does not limit this, example, preset time period can be 5 minutes, the preset time period then comprising for the first broadcasting moment can be 1:26:30 ~ 1:31:30, then Frame W compares with the data in time period 1:26:30 ~ 1:31:30 in target media file by Media file server successively.
Example, please refer to Fig. 4-5, shown in it is current played data frame is comprised the data in the preset time period in the first broadcasting moment and compares by a kind of Media file server that Fig. 4-1 illustrated embodiment provides successively method flow diagram with target media file, see Fig. 4-5, the method flow process can comprise following several step:
In sub-step 40272a1, the Data Placement that target media file comprises in the preset time period in the first broadcasting moment by Media file server is at least two data segments.
Media file server Data Placement target media file can comprised in the preset time period in the first broadcasting moment be at least two data segments, wherein, Media file server can divide at equal intervals to the data comprised in the preset time period in the first broadcasting moment, the degree of correlation that also can comprise according to target media file between the Frame in the data in the preset time period in the first broadcasting moment divides the data comprised in the preset time period in the first broadcasting moment, and disclosure embodiment does not limit this.Example, the data comprised in the preset time period in the first broadcasting moment can comprise multiple Frame, Media file server can calculate the similarity between multiple Frame, using the similarity between multiple Frame as the degree of correlation between the plurality of Frame, then according to the degree of correlation, the data comprised in the preset time period in the first broadcasting moment are divided.
Example, the preset time period comprising for the first broadcasting moment can be 1:26:30 ~ 1:31:30, and these data comprising in the preset time period in the first broadcasting moment can be K 1k 2k 3k 4w 2wW 7p 4p 2p 0v 0v 9, these data comprised in the preset time period in the first broadcasting moment comprise Frame K 1, Frame K 2, Frame K 3, Frame K 4, Frame W 2, Frame W, Frame W 7, Frame P 4, Frame P 2, Frame P 0, Frame V 0with Frame V 9.
Suppose that the playing duration of each Frame is equal, if divide at equal intervals, and be divided into 4 data segments, then these 4 data segments are respectively data segment K 1k 2k 3, data segment K 4w 2w, data segment W 7p 4p 2with data segment P 0v 0v 9, each data segment comprises 3 Frames.
If the degree of correlation comprised according to target media file between the Frame in the data in the preset time period in the first broadcasting moment divides, then Media file server can calculated data frame K 1, Frame K 2, Frame K 3, Frame K 4, Frame W 2, Frame W, Frame W 7, Frame P 4, Frame P 2, Frame P 0, Frame V 0with Frame V 9between the degree of correlation, the degree of correlation is greater than predetermined threshold value and adjacent data frame dividing is one group, example, Frame K 1with Frame K 2the degree of correlation be greater than predetermined threshold value, Frame K 2with Frame K 3the degree of correlation be greater than predetermined threshold value, Frame K 3with Frame K 4the degree of correlation be greater than predetermined threshold value, Frame K 4with Frame W 2the degree of correlation be less than predetermined threshold value, then Media file server is by Frame K 1, Frame K 2, Frame K 3with Frame K 4be divided into one group, in like manner known, Frame W 2, Frame W and Frame W 7be one group, Frame P 4, Frame P 2with Frame P 0be one group, Frame V 0with Frame V 9be one group, then the data segment divided can comprise 4 data segments, and these 4 data segments are respectively data segment K 1k 2k 3k 4, data segment W 2wW 7, data segment P 4p 2p 0with data segment V 0v 9.
In sub-step 40272a2, Media file server extracts at least one feature data frame in each data segment, and each feature data frame is for characterizing the attribute of play content corresponding to each feature data frame place data segment.
Data Placement target media file comprised in the preset time period in the first broadcasting moment is after at least two data segments, Media file server can extract at least one feature data frame in each data segment, wherein, each feature data frame is for characterizing the attribute of play content corresponding to each feature data frame place data segment, example, when media file is video file, this feature data frame that is to say characteristic image, this characteristic image can be the representative image in this characteristic image place data segment, and disclosure embodiment does not limit this.Wherein, Media file server can calculate the characteristic value of each Frame in each data segment, then according to the characteristic value determination feature data frame of each Frame, and extracts this feature data frame.Wherein, the detailed implementation of Media file server determination feature data frame can with reference to correlation technique, and disclosure embodiment does not repeat them here.
Example, with at least two data segments for data segment K 1k 2k 3k 4, data segment W 2wW 7, data segment P 4p 2p 0with data segment V 0v 9, and hypothesis Media file server extracts a feature data frame from each data segment, then the feature data frame that Media file server extracts can be: feature data frame K 2, feature data frame W, feature data frame P 0with feature data frame V 9.
In sub-step 40272a3, current played data frame compares with at least one feature data frame by Media file server successively.
After Media file server extracts feature data frame, current played data frame can be compared with at least one feature data frame successively, example, Media file server by current played data frame W successively with feature data frame K 2, feature data frame W, feature data frame P 0with feature data frame V 9compare.
In sub-step 40273a, the first object Frame that the extracting data of Media file server in the preset time period comprising for the first broadcasting moment is identical with current played data frame.
After the current played data frame successively data comprised with target media file in the preset time period in the first broadcasting moment is compared, Media file server can determine first object Frame identical with current played data frame in the data in this preset time period comprising for the first broadcasting moment, and Media file server can extract this first object Frame.Example, from above-mentioned steps 40272a, comprising first object Frame identical with current played data frame in the data in the preset time period in the first broadcasting moment is feature data frame W, then Media file server extracts this feature data frame W.
Optionally, in the disclosed embodiments, handover request can also comprise: in the media file of the current broadcasting of media file client, corresponding with current played data frame first plays the moment.When handover request also to comprise in the media file of the current broadcasting of media file client corresponding with current played data frame first play the moment time, Media file server can according to the method determination first object Frame shown in Fig. 4-6.
Example, please refer to Fig. 4-6, shown in it is the method flow diagram that another kind of Media file server that Fig. 4-1 illustrated embodiment provides determines first object Frame in the data of target media file, and see Fig. 4-6, the method flow process can comprise following several step:
In sub-step 40271b, the current played data frame successively data comprised with target media file in the preset time period in the first broadcasting moment, according to handover request, compares by Media file server.
Wherein, Media file server can resolve handover request, obtain current played data frame in the media file of the current broadcasting of media file client and this current played data frame corresponding first play the moment.Then the current played data frame successively data comprised with target media file in the preset time period in the first broadcasting moment is compared.Wherein, current played data frame is comprised process that the data in the preset time period in the first broadcasting moment compare by Media file server successively with target media file can sub-step 40272a in reference diagram 4-4 illustrated embodiment and corresponding Fig. 4-5 illustrated embodiment, and disclosure embodiment does not repeat them here.
In sub-step 40272b, the first object Frame that the extracting data of Media file server in the preset time period comprising for the first broadcasting moment is identical with current played data frame.
The implementation procedure of this sub-step 40272b can sub-step 40273a in reference diagram 4-4 illustrated embodiment, and disclosure embodiment does not repeat them here.
Example, please refer to Fig. 4-7, shown in it is the method flow diagram that another Media file server that Fig. 4-1 illustrated embodiment provides determines first object Frame in the data of target media file, and see Fig. 4-7, the method flow process can comprise following several step:
In sub-step 40271c, current played data frame is comprised each data playing the moment and compares by Media file server successively with target media file.
Wherein, target media file comprises all data that each data playing the moment that is to say target media file, also be, current played data frame compares with all data of target media file by Media file server successively, example, hypothetical target media file comprises each data playing the moment and is ... DD 2d 0d 6... K 1k 2k 3k 4w 2wW 7p 4p 2p 0v 0v 9m 1m 2m 3... MCK 3..., then Media file server by current played data frame W successively with data ... DD 2d 0d 6... K 1k 2k 3k 4w 2wW 7p 4p 2p 0v 0v 9m 1m 2m 3... MCK 3... in each Frame compare.
In sub-step 40272c, Media file server extracts first object Frame identical with current played data frame in the data of target media file.
Current played data frame is comprised successively after each data playing the moment compare with target media file, Media file server can determine that this comprises each and plays first object Frame identical with current played data frame in the data in moment, and Media file server can extract this first object Frame.Known see step 40271c, comprising the first object Frame identical with current played data frame in the data in each broadcasting moment is Frame W, then Media file server extracts this Frame W.
In sub-step 4028, the first object that Media file server determination first object Frame is corresponding in target media file plays the moment.
The information of target media file can be stored in Media file server, the information of this target media file can comprise: Frame with play the corresponding relation in moment, this Frame with have recorded the Frame in target media file and broadcasting moment corresponding to the Frame in this target media file in the corresponding relation in broadcasting moment.Media file server can obtain first object Frame first object corresponding in target media file according to first object Frame data query frame with the corresponding relation playing the moment and play the moment.Example, Media file server is according to first object Frame W data query frame and the corresponding relation playing the moment, obtain first object Frame W first object corresponding in target media file and play the moment, it can be 1:30:30 (1 hour 30 points and 30 seconds) that this first object plays the moment.
In sub-step 4029, Media file server, from the data of target media file, determines the second target data play after first object plays the moment.
Example, Media file server is from the data of target media file, and the data play after determining 1:30:30, the data play after this 1:30:30 can be the second target data.Wherein, Media file server can play the moment according to first object after the information of target media file that stores of each moment inquiry Media file server in Frame and the corresponding relation playing the moment, obtain the Frame that first object plays each moment broadcasting after the moment, obtain the second target data according to the Frame that multiple moment plays.Example, the data play after supposing 1:30:30 are W 7p 4p 2p 0v 0v 9m 1m 2m 3... MCK 3..., then the Media file server Frame can inquired about in the information of this target media file can obtain the second target data with the corresponding relation playing the moment is W 7p 4p 2p 0v 0v 9m 1m 2m 3... MCK 3..., disclosure embodiment does not limit this.
In sub-step 4030, Media file server using first object Frame and the second target data as data to be played.
After determining first object Frame and the second target data, Media file server can using first object Frame and the second target data as data to be played, and example, Media file server is by first object Frame W and the second target data W 7p 4p 2p 0v 0v 9m 1m 2m 3... MCK 3... as data to be played, then these data to be played can be WW 7p 4p 2p 0v 0v 9m 1m 2m 3... MCK 3....
In step 403, Media file server sends the data to be played in target media file to media file client.
After data to be played in Media file server determination target media file, the data to be played in this target media file can be sent, so that media file client carries out the broadcasting of target media file according to the data to be played in this target media file to media file client.It should be noted that, in the disclosed embodiments, Media file server can determine the data to be played in target media file, while send data to be played to media file client, disclosure embodiment does not limit this.Example, Media file server determines WW 7p 4wW is sent afterwards to media file client 7p 4, and determine P 2p 0v 0wait for played data.
In step 404, media file client receiving media file server send target media file in data to be played.
Media file server sends the data to be played in target media file during to media file client, media file client can data to be played in the target media file that sends of receiving media file server.
In step 405, media file client carries out the broadcasting of target media file according to data to be played.
After media file client receives the data to be played in target media file, the broadcasting of target media file can be carried out according to the data to be played in target media file.
Example, please refer to Fig. 4-8, shown in it is a kind of media file client that Fig. 4-1 illustrated embodiment provides carries out the broadcasting of target media file method flow diagram according to data to be played, and see Fig. 4-8, the method flow process can comprise following several step:
In sub-step 4051, media file client judges whether the buffering progress of data to be played is greater than the playing progress rate from when receiving advertisement message of the media file of current broadcasting.
It should be noted that, in the disclosed embodiments, media file client is extracted current played data frame, generates handover request, is determined in the data of target media file in the process of data to be played to Media file server transmission handover request and Media file server, media file client is also at the media file playing current broadcasting, also be, before media file client terminal playing target media file, media file client is playing the media file of current broadcasting always.Therefore, reach seamless connection to make the media file of target media file and current broadcasting to switch, reach the effect making user's unaware handoff procedure, media file client can judge whether the buffering progress of data to be played is greater than the playing progress rate from when receiving advertisement message of the media file of current broadcasting, when the buffering progress of data to be played is greater than the playing progress rate from when receiving advertisement message of the media file of current broadcasting, media file client carries out the broadcasting of target media file according to data to be played.
Example, please refer to Fig. 4-9, shown in it is that a kind of media file client that Fig. 4-1 illustrated embodiment provides judges whether the buffering progress of data to be played is greater than the method flow diagram of the playing progress rate from when receiving advertisement message of the media file of current broadcasting, see Fig. 4-9, the method flow process can comprise following several step:
In sub-step 40511, media file client to determine in the media file of current broadcasting that corresponding with current played data frame first plays the moment.
The information of the played data in the media file of current broadcasting can be stored in media file client, the information of the played data in the media file of this current broadcasting can comprise: played data frame with play the corresponding relation in moment, this have recorded the broadcasting moment of the frame of played data in the played data in the media file of the current broadcasting of media file client and this played data frame in played data frame and the corresponding relation playing the moment.The corresponding relation that media file client can be inquired about played data frame according to current played data frame and be play the moment obtains current played data frame in the media file of current broadcasting and corresponding first plays the moment.Example, media file client inquires about played data frame and the corresponding relation playing the moment according to current played data frame W, obtain the first broadcasting moment that current played data frame W is corresponding in the media file of current broadcasting, this first broadcasting moment can be 1:28:30.
In sub-step 40512, media file client determines the current broadcasting moment according to the playing progress rate of the media file of current broadcasting.
Wherein, playing progress rate is plays the moment, and therefore, media file client can using the playing progress rate of the media file of current broadcasting as the current broadcasting moment.Example, the playing progress rate of the media file of current broadcasting can be 1:29:00 (1 hour 29 points and 0 second), and therefore, the current broadcasting moment can be 1:29:00.
In sub-step 40513, media file client, in the buffered data of data to be played, determines the first object Frame identical with current played data frame, and the buffered data of data to be played comprises at least one Frame.
Wherein, data to be played can be determined while send data to be played to media file client due to Media file server, after media file client receives data to be played, can these data to be played be stored in the spatial cache of terminal, the data to be played stored in this spatial cache are the buffered data of data to be played, and the buffered data of these data to be played can comprise at least one Frame.Media file client in the buffered data of data to be played, can determine the first object Frame identical with current played data frame.
Example, data to be played can be WW 7p 4p 2p 0v 0v 9m 1m 2m 3... MCK 3..., the buffered data of these data to be played can be WW 7p 4p 2p 0v 0v 9m 1m 2, the buffered data of these data to be played comprises Frame W, Frame W 7, Frame P 4, Frame P 2, Frame P 0, Frame V 0, Frame V 9, Frame M 1with Frame M 2totally 9 Frames.From above-mentioned sub-step 4023, current played data frame is W, therefore, current played data frame W can compare with the Frame in the buffered data of data to be played by media file client successively, determines the first object Frame W identical with current played data frame.
In sub-step 40514, the first object that media file client determination first object Frame is corresponding in target media file plays the moment.
The information of data to be played can be comprised in the data to be played that Media file server sends to media file client, media file client can store the information of the buffered data of the data to be played of target media file, the information of the buffered data of the data to be played of this target media file can comprise: buffered data frames with play the corresponding relation in moment, this buffered data frames and play the moment corresponding relation in have recorded broadcasting moment of buffered data frames in the buffered data of the data to be played of target media file and buffered data frames.Media file client can obtain first object Frame first object corresponding in target media file according to first object Frame inquiry buffered data frames with the corresponding relation playing the moment and play the moment.Example, media file client inquires about buffered data frames and the corresponding relation playing the moment according to first object Frame W, obtain first object Frame W first object corresponding in target media file and play the moment, it can be 1:30:30 that this first object plays the moment.
In sub-step 40515, media file client determines the second target play moment that last Frame to be played in the buffered data of data to be played is corresponding in target media file.
Media file client according to last Frame to be played inquiry buffered data frames in the buffered data of data to be played and the corresponding relation playing the moment, can obtain the second target play moment of last Frame to be played correspondence in target media file in the buffered data of these data to be played.Example, the buffered data of data to be played can be WW 7p 4p 2p 0v 0v 9m 1m 2, then last Frame to be played in the buffered data of data to be played is Frame M 2, the Frame M that media file client can be to be played according to last in the buffered data of data to be played 2inquiry buffered data frames and the corresponding relation playing the moment, obtain last the Frame M to be played in the buffered data of these data to be played 2the second target play moment corresponding in target media file, this second target play moment can be 1:31:10.
In sub-step 40516, media file client calculate the current broadcasting moment and the first reproduction time play between the moment poor.
Media file client determines that the current broadcasting moment and first play after the moment, the current broadcasting moment can be calculated and the first reproduction time play between the moment poor.Example, the current broadcasting moment is 1:29:00, and the first broadcasting moment was 1:28:30, and therefore, this current broadcasting moment 1:29:00 and this first reproduction time difference play between moment 1:28:30 are 30 seconds.
In sub-step 40517, it is poor that media file client calculates the object time that the second target play moment and first object play between the moment.
After media file client determines that the second target play moment and first object play the moment, the object time that the second target play moment and first object play between the moment can be calculated poor.Example, the second target play moment can be 1:31:10, and it can be 1:30:30 that first object plays the moment, and therefore, the object time difference that this second target play moment 1:31:10 and this first object are play between moment 1:30:30 is 40 seconds.
In sub-step 40518, media file client judges whether object time difference is greater than reproduction time difference.
Object time difference can compare with reproduction time difference by media file client, judges whether object time difference is greater than reproduction time difference.In the disclosed embodiments, object time difference is 40 seconds, and reproduction time difference is 30 seconds, and because 40 seconds are greater than 30 seconds, therefore, media file client comparison object time difference and reproduction time difference can determine that object time difference is greater than reproduction time difference.
In sub-step 40519, when object time difference is greater than reproduction time difference, media file client determines that the buffering progress of data to be played is greater than the playing progress rate from when receiving advertisement message of the media file of current broadcasting.
If in sub-step 40518, media file client determines that object time difference is greater than reproduction time difference, then illustrate that the buffering progress of data to be played is greater than the playing progress rate from when receiving advertisement message of the media file of current broadcasting, therefore, media file client determines that the buffering progress of data to be played is greater than the playing progress rate from when receiving advertisement message of the media file of current broadcasting.
In sub-step 4052, when the buffering progress of data to be played is greater than the playing progress rate from when receiving advertisement message of the media file of current broadcasting, media file client carries out the broadcasting of target media file according to data to be played.
If in sub-step 4051, media file client determines that the buffering progress of data to be played is greater than the playing progress rate from when receiving advertisement message of the media file of current broadcasting, then media file client carries out the broadcasting of target media file according to data to be played.
Example, please refer to Fig. 4-10, shown in it is a kind of media file client that Fig. 4-1 illustrated embodiment provides carries out the broadcasting of target media file method flow diagram according to data to be played, and see Fig. 4-10, the method flow process can comprise following several step:
In sub-step 40521, media file client determines the Frame that the current broadcasting moment plays in the data of the media file of current broadcasting.
The information of the played data in the media file of current broadcasting can be stored in media file client, the information of the played data in the media file of this current broadcasting can comprise: played data frame and the corresponding relation playing the moment, this played data frame can comprise current played data frame and played data frame, this played data frame and play the moment corresponding relation in have recorded in the media file of the current broadcasting of media file client played data in played data frame and broadcasting moment of played data frame.Media file client can obtain currently playing the Frame that the moment plays according to current broadcasting moment inquiry played data frame and the corresponding relation playing the moment.Example, the current broadcasting moment is 1:29:00, media file client inquires about played data frame and the corresponding relation playing the moment according to current broadcasting moment 1:29:00, obtain the Frame that current broadcasting moment 1:29:00 plays, the Frame that this current broadcasting moment 1:29:00 plays can be Frame V 9.
In sub-step 40522, media file client is determined to play the identical target Frame to be played of Frame that the moment plays with current in the buffered data of data to be played.
Media file client can be compared by the Frame in the buffered data of the Frame play in the current broadcasting moment and data to be played, determines to play the identical target Frame to be played of Frame that the moment plays with current in the buffered data of data to be played.
Example, the buffered data of data to be played can be WW 7p 4p 2p 0v 0v 9m 1m 2, the Frame V that the current broadcasting moment plays by media file client 9compare with each Frame in the buffered data of data to be played, determine and play the identical target Frame V to be played of Frame that the moment plays with current in the buffered data of data to be played 9.
In sub-step 40523, the data to be played that media file client is play after playing the broadcasting moment corresponding at target Frame to be played in the buffered data of target Frame to be played and data to be played successively.
After media file client determination target Frame to be played, the data to be played play after can playing the broadcasting moment corresponding at target Frame to be played in the buffered data of this target Frame to be played and data to be played successively, wherein, the buffered data of data to be played is WW 7p 4p 2p 0v 0v 9m 1m 2, target Frame to be played is V 9, at this target Frame V to be played 9the data to be played of putting after the corresponding broadcasting moment comprise: Frame M 1with Frame M 2, therefore, media file client plays target Frame V to be played successively 9, Frame M 1with Frame M 2and the follow-up data be buffered to.
It should be noted that; the sequencing of the media file playing method step that disclosure embodiment provides can suitably adjust; step also according to circumstances can carry out corresponding increase and decrease; anyly be familiar with those skilled in the art in the technical scope that the disclosure discloses; the method changed can be expected easily; all should be encompassed within protection range of the present disclosure, therefore repeat no more.
In sum, the media file playing method that disclosure embodiment provides, Media file server is by detecting in Media file server whether there is target media file, target media file is the highest version file of the media file of the current broadcasting of media file client, when there is target media file in Media file server, according to the current played data frame of the media file of current broadcasting, determine the data to be played in target media file, the data to be played in target media file are sent to media file client, media file client carries out the broadcasting of target media file according to data to be played.Switch owing to just can realize media file without the need to user operation, therefore, solve the problem of media file handoff procedure complexity in correlation technique, reach the beneficial effect simplifying media file handoff procedure.
Following is disclosure device embodiment, may be used for performing disclosure embodiment of the method.For the details do not disclosed in disclosure device embodiment, please refer to disclosure embodiment of the method.
Fig. 5 is the block diagram of a kind of playback of media files device 500 according to an exemplary embodiment, this playback of media files device 500 can realize becoming the some or all of of the server 140 in implementation environment shown in Fig. 1 by software, hardware or both combinations, and this server 140 can be Media file server.See Fig. 5, this playback of media files device 500 can comprise:
Detection module 510, is configured in the process of media file client terminal playing media file, and detect in Media file server whether there is target media file, target media file is the highest version file of the media file of the current broadcasting of media file client.
Determination module 520, be configured to when detection module 510 detect in Media file server there is target media file time, according to the current played data frame of the media file of current broadcasting, determine the data to be played in target media file.
Sending module 530, is configured to the data to be played in the target media file determined to media file client transmission determination module 520, so that media file client carries out the broadcasting of target media file according to data to be played.
In sum, the playback of media files device that disclosure embodiment provides, Media file server is by detecting in Media file server whether there is target media file, target media file is the highest version file of the media file of the current broadcasting of media file client, when there is target media file in Media file server, according to the current played data frame of the media file of current broadcasting, determine the data to be played in target media file, the data to be played in target media file are sent to media file client, so that media file client carries out the broadcasting of target media file according to data to be played.Switch owing to just can realize media file without the need to user operation, therefore, solve the problem of media file handoff procedure complexity in correlation technique, reach the beneficial effect simplifying media file handoff procedure.
Fig. 6-1 is the block diagram of a kind of playback of media files device 600 according to another exemplary embodiment, this playback of media files device 600 can realize becoming the some or all of of the server 140 in implementation environment shown in Fig. 1 by software, hardware or both combinations, and this server 140 can be Media file server.See Fig. 6-1, this playback of media files device 600 can include but not limited to:
Detection module 610, is configured in the process of media file client terminal playing media file, and detect in Media file server whether there is target media file, target media file is the highest version file of the media file of the current broadcasting of media file client;
Determination module 620, be configured to when detection module 610 detect in Media file server there is target media file time, according to the current played data frame of the media file of current broadcasting, determine the data to be played in target media file;
Sending module 630, is configured to the data to be played in the target media file determined to media file client transmission determination module 620, so that media file client carries out the broadcasting of target media file according to data to be played.
Optionally, please refer to Fig. 6-2, what illustrate is the block diagram of a kind of determination module 620 that Fig. 6-1 illustrated embodiment provides, and see Fig. 6-2, this determination module 620 can comprise:
Send submodule 621, be configured to send advertisement message to media file client, advertisement message is used for informing in media file client media file server to there is target media file;
Receive submodule 622, be configured to receiving media file client according to send submodule 621 send advertisement message send handover request, handover request comprises: media file client when receiving advertisement message from the current played data frame of the extracting data of the media file of current broadcasting;
First determines submodule 623, is configured in the data of target media file, determines the first object Frame identical with the current played data frame in the handover request that reception submodule 622 receives;
Second determines submodule 624, is configured to determine that first determines that the first object of first object Frame correspondence in target media file that submodule 623 is determined plays the moment;
3rd determines submodule 625, is configured to from the data of target media file, determines the second target data play after second determines the first object broadcasting moment that submodule 624 is determined;
As submodule 626, be configured to determine first that the second target data that the first object Frame that submodule 623 is determined and the 3rd determines that submodule 625 determines is as data to be played.
Optionally, please refer to Fig. 6-3, what illustrate is a kind of first block diagram determining submodule 623 that Fig. 6-1 illustrated embodiment provides, and see Fig. 6-3, this first determines that submodule 623 can comprise:
Moment determines submodule 6231, is configured to the first broadcasting moment of the current played data frame correspondence in the media file of current broadcasting in the handover request determining that reception submodule 622 receives;
Comparison sub-module 6232, being configured to the current played data frame received in the handover request that receives of submodule 622 to comprise with target media file successively the moment determines that the first data play in the preset time period in moment that submodule 6231 is determined compare;
Extract submodule 6233, the first object Frame that the extracting data being configured to play in the preset time period in moment comprise that the moment determines that submodule 6231 determines first is identical with the current played data frame in the handover request that reception submodule 622 receives.
Optionally, handover request also comprises: in the media file of current broadcasting, corresponding with current played data frame first plays the moment, please refer to Fig. 6-4, what illustrate is the block diagram that another kind first that Fig. 6-1 illustrated embodiment provides determines submodule 623, see Fig. 6-4, this first determines that submodule 623 can comprise:
Comparison sub-module 6232, is configured to the handover request received according to reception submodule 622, is compared by the current played data frame successively data comprised with target media file in the preset time period in the first broadcasting moment;
Extract submodule 6233, be configured to the first object Frame that extracting data in the preset time period comprising for the first broadcasting moment is identical with the current played data frame in the handover request that reception submodule 622 receives.
Optionally, please refer to Fig. 6-5, what illustrate is another first block diagram determining submodule 623 that Fig. 6-1 illustrated embodiment provides, and see Fig. 6-5, this first determines that submodule 623 can comprise:
Comparison sub-module 6234, the current played data frame be configured in the handover request received by reception submodule 622 comprises each data playing the moment successively and compares with target media file;
Extract submodule 6235, be configured to extract first object Frame identical with the current played data frame in the handover request that reception submodule 622 receives in the data of target media file.
Optionally, comparison sub-module 6232, is configured to:
Data Placement target media file comprised in the preset time period in the first broadcasting moment is at least two data segments;
In each data segment, extract at least one feature data frame, each feature data frame is for characterizing the attribute of play content corresponding to each feature data frame place data segment;
Current played data frame is compared with at least one feature data frame successively.
Optionally, determination module 620, is configured to:
The number of statistics target media file;
When the number of target media file is more than or equal to 2, according to the current played data frame of the media file of current broadcasting, from the target media file that version is the highest, determine data to be played.
Optionally, detection module 610, is configured to:
In the process of media file client terminal playing media file, periodically detect in Media file server whether there is target media file;
Or,
When receiving the detection request that media file client sends, detect in Media file server whether there is target media file.
In sum, the playback of media files device that disclosure embodiment provides, Media file server is by detecting in Media file server whether there is target media file, target media file is the highest version file of the media file of the current broadcasting of media file client, when there is target media file in Media file server, according to the current played data frame of the media file of current broadcasting, determine the data to be played in target media file, the data to be played in target media file are sent to media file client, so that media file client carries out the broadcasting of target media file according to data to be played.Switch owing to just can realize media file without the need to user operation, therefore, solve the problem of media file handoff procedure complexity in correlation technique, reach the beneficial effect simplifying media file handoff procedure.
Fig. 7 is the block diagram of a kind of playback of media files device 700 Gen Ju an exemplary embodiment again, it is some or all of that this playback of media files device 700 can realize becoming in the terminal 120 in implementation environment shown in Fig. 1 by software, hardware or both combinations, and this terminal 120 can installation medium file client.See Fig. 7, this playback of media files device 700 can comprise:
First receiver module 710, be configured in the process of media file client terminal playing media file, data to be played in the target media file that receiving media file server sends, data to be played in target media file are that Media file server detects in Media file server when there is target media file, determine according to the current played data frame of the media file of current broadcasting, target media file is the highest version file of the media file of current broadcasting.
Playing module 720, the data to be played being configured to receive according to the first receiver module 710 carry out the broadcasting of target media file.
In sum, the playback of media files device that disclosure embodiment provides, data to be played in the target media file that media file client is sent by receiving media file server, data to be played in target media file are that Media file server detects in Media file server when there is target media file, determine according to the current played data frame of the media file of current broadcasting, target media file is the highest version file of the media file of current broadcasting, carries out the broadcasting of target media file according to data to be played.Switch owing to just can realize media file without the need to user operation, therefore, solve the problem of media file handoff procedure complexity in correlation technique, reach the beneficial effect simplifying media file handoff procedure.
Fig. 8-1 is the block diagram of a kind of playback of media files device 800 according to another exemplary embodiment, it is some or all of that this playback of media files device 800 can realize becoming in the terminal 120 in implementation environment shown in Fig. 1 by software, hardware or both combinations, and this terminal 120 can installation medium file client.See Fig. 8-1, this playback of media files device 800 can comprise:
First receiver module 810, be configured in the process of media file client terminal playing media file, data to be played in the target media file that receiving media file server sends, data to be played in target media file are that Media file server detects in Media file server when there is target media file, determine according to the current played data frame of the media file of current broadcasting, target media file is the highest version file of the media file of current broadcasting;
Playing module 820, the data to be played being configured to receive according to the first receiver module 810 carry out the broadcasting of target media file.
Optionally, please continue to refer to Fig. 8-1, this playback of media files device 800 can also comprise:
Second receiver module 830, be configured to the advertisement message that receiving media file server sends, advertisement message is used for informing in media file client media file server to there is target media file;
Extraction module 840, the advertisement message being configured to receive according to the second receiver module 830 is from the current played data frame of the extracting data of the media file of current broadcasting, and current played data frame is the Frame play when receiving advertisement message;
Generation module 850, the current played data frame being configured to extract according to extraction module 840 generates handover request, and handover request comprises: current played data frame;
Sending module 860, is configured to the handover request sending generation module 850 generation to Media file server, so that Media file server is according to current played data frame, from the data of target media file, determines data to be played.
Optionally, please refer to Fig. 8-2, shown in it is the block diagram of a kind of playing module 820 shown in Fig. 8-1 illustrated embodiment, and see Fig. 8-2, this playing module 820 can comprise:
Judge submodule 821, be configured to judge whether the buffering progress of data to be played is greater than the playing progress rate from when receiving advertisement message of the media file of current broadcasting;
Playing submodule 822, being configured to, when judging that submodule 821 determines that the buffering progress of data to be played is greater than the playing progress rate from when receiving advertisement message of the media file of current broadcasting, carry out the broadcasting of target media file according to data to be played.
Optionally, judge submodule 821, be configured to:
To determine in the media file of current broadcasting that corresponding with current played data frame first plays the moment;
The current broadcasting moment is determined according to the playing progress rate of the media file of current broadcasting;
In the buffered data of data to be played, determine the first object Frame identical with current played data frame, the buffered data of data to be played comprises at least one Frame;
Determine that the first object that first object Frame is corresponding in target media file plays the moment;
Determine the second target play moment of last Frame to be played correspondence in target media file in the buffered data of data to be played;
Calculate the current broadcasting moment and the first reproduction time play between the moment poor;
Calculate the object time that the second target play moment and first object play between the moment poor;
Judge whether object time difference is greater than reproduction time difference;
When object time difference is greater than reproduction time difference, determine that the buffering progress of data to be played is greater than the playing progress rate from when receiving advertisement message of the media file of current broadcasting.
Optionally, play submodule 822, be configured to:
The Frame that the current broadcasting moment plays is determined in the data of the media file of current broadcasting;
Determine to play the identical target Frame to be played of Frame that the moment plays with current in the buffered data of data to be played;
The data to be played play after playing the broadcasting moment corresponding at target Frame to be played in the buffered data of target Frame to be played and data to be played successively.
Optionally, handover request also comprises: in the media file of current broadcasting, corresponding with current played data frame first plays the moment.
In sum, the playback of media files device that disclosure embodiment provides, data to be played in the target media file that media file client is sent by receiving media file server, data to be played in target media file are that Media file server detects in Media file server when there is target media file, determine according to the current played data frame of the media file of current broadcasting, target media file is the highest version file of the media file of current broadcasting, carries out the broadcasting of target media file according to data to be played.Switch owing to just can realize media file without the need to user operation, therefore, solve the problem of media file handoff procedure complexity in correlation technique, reach the beneficial effect simplifying media file handoff procedure.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Fig. 9 is a kind of block diagram for playback of media files device 900 according to an exemplary embodiment.Such as, device 900 may be provided in a server.Example, this server can be Media file server, with reference to Fig. 9, device 900 comprises processing components 922, and it comprises one or more processor further, and the memory resource representated by memory 932, such as, for storing the instruction that can be performed by processing unit 922, application program.The application program stored in memory 932 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 922 is configured to perform instruction, and to perform above-mentioned media file playing method, the method comprises:
In the process of media file client terminal playing media file, detect in Media file server whether there is target media file, target media file is the highest version file of the media file of the current broadcasting of media file client;
When there is target media file in Media file server, according to the current played data frame of the media file of current broadcasting, determine the data to be played in target media file;
The data to be played in target media file are sent, so that media file client carries out the broadcasting of target media file according to data to be played to media file client.
Optionally, according to the current played data frame of the media file of current broadcasting, determine the data to be played in target media file, comprising:
Send advertisement message to media file client, advertisement message is used for informing in media file client media file server to there is target media file;
The handover request that receiving media file client sends according to advertisement message, handover request comprises: media file client when receiving advertisement message from the current played data frame of the extracting data of the media file of current broadcasting;
In the data of target media file, determine the first object Frame identical with current played data frame;
Determine that the first object that first object Frame is corresponding in target media file plays the moment;
From the data of target media file, determine the second target data play after first object plays the moment;
Using first object Frame and the second target data as data to be played.
Optionally, in the data of target media file, determine the first object Frame identical with current played data frame, comprising:
Determine the first broadcasting moment that current played data frame is corresponding in the media file of current broadcasting;
The current played data frame successively data comprised with target media file in the preset time period in the first broadcasting moment is compared;
The first object Frame that extracting data in the preset time period comprising for the first broadcasting moment is identical with current played data frame.
Optionally, handover request also comprises: in the media file of current broadcasting, corresponding with current played data frame first plays the moment,
In the data of target media file, determine the first object Frame identical with current played data frame, comprising:
According to handover request, the current played data frame successively data comprised with target media file in the preset time period in the first broadcasting moment is compared;
The first object Frame that extracting data in the preset time period comprising for the first broadcasting moment is identical with current played data frame.
Optionally, in the data of target media file, determine the first object Frame identical with current played data frame, comprising:
Current played data frame is comprised successively each data playing the moment to compare with target media file;
Extract first object Frame identical with current played data frame in the data of target media file.
Optionally, the current played data frame successively data comprised with target media file in the preset time period in the first broadcasting moment is compared, comprising:
Data Placement target media file comprised in the preset time period in the first broadcasting moment is at least two data segments;
In each data segment, extract at least one feature data frame, each feature data frame is for characterizing the attribute of play content corresponding to each feature data frame place data segment;
Current played data frame is compared with at least one feature data frame successively.
Optionally, according to the current played data frame of the media file of current broadcasting, determine the data to be played in target media file, comprising:
The number of statistics target media file;
When the number of target media file is more than or equal to 2, according to the current played data frame of the media file of current broadcasting, from the target media file that version is the highest, determine data to be played.
Optionally, in the process of media file client terminal playing media file, detect in Media file server whether there is target media file, comprising:
In the process of media file client terminal playing media file, periodically detect in Media file server whether there is target media file;
Or,
When receiving the detection request that media file client sends, detect in Media file server whether there is target media file.
Device 900 can also comprise the power management that a power supply module 926 is configured to final controlling element 900, and a wired or wireless network interface 950 is configured to device 900 to be connected to network, and input and output (I/O) interface 958.Device 900 can operate the operating system based on being stored in memory 932, such as WindowsServerTM, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM or similar.
In sum, the playback of media files device that disclosure embodiment provides, Media file server is by detecting in Media file server whether there is target media file, target media file is the highest version file of the media file of the current broadcasting of media file client, when there is target media file in Media file server, according to the current played data frame of the media file of current broadcasting, determine the data to be played in target media file, the data to be played in target media file are sent to media file client, so that media file client carries out the broadcasting of target media file according to data to be played.Switch owing to just can realize media file without the need to user operation, therefore, solve the problem of media file handoff procedure complexity in correlation technique, reach the beneficial effect simplifying media file handoff procedure.
Figure 10 is the block diagram of a kind of playback of media files device 1000 according to another exemplary embodiment.Such as, device 1000 can be smart mobile phone, intelligent television, desktop computer, digital broadcast terminal, game console, flat-panel devices etc.
With reference to Figure 10, device 1000 can comprise following one or more assembly: processing components 1002, memory 1004, power supply module 1006, multimedia groupware 1008, audio-frequency assembly 1010, I/O (I/O) interface 1012, sensor cluster 1014, and communications component 1016.
The integrated operation of the usual control device 1000 of processing components 1002, such as with display, play, data communication, camera operation and record operate the operation be associated.Processing components 1002 can comprise one or more processor 1020 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 1002 can comprise one or more module, and what be convenient between processing components 1002 and other assemblies is mutual.Such as, processing components 1002 can comprise multi-media module, mutual with what facilitate between multimedia groupware 1008 and processing components 1002.
Memory 1004 is configured to store various types of data to be supported in the operation of device 1000.The example of these data comprises for any application program of operation on device 1000 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 1004 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that power supply module 1006 is device 1000 provide electric power.Power supply module 1006 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 1000 and be associated.
Multimedia groupware 1008 is included in the screen providing an output interface between device 1000 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant with touch or slide and pressure.In certain embodiments, multimedia groupware 1008 comprises a front-facing camera and/or post-positioned pick-up head.When device 1000 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 1010 is configured to export and/or input audio signal.Such as, audio-frequency assembly 1010 comprises a microphone (MIC), and when device 1000 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 1004 further or be sent via communications component 1016.In certain embodiments, audio-frequency assembly 1010 also comprises a loud speaker, for output audio signal.
I/O interface 1012 is for providing interface between processing components 1002 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 1014 comprises one or more transducer, for providing the state estimation of various aspects for device 1000.Such as, sensor cluster 1014 can detect the opening/closing state of device 1000, the relative positioning of assembly, such as assembly is display and the keypad of device 1000, the position of all right checkout gear 1000 of sensor cluster 1014 or device 1000 assemblies changes, the presence or absence that user contacts with device 1000, the variations in temperature of device 1000 orientation or acceleration/deceleration and device 1000.Sensor cluster 1014 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 1014 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 1014 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 1016 is configured to the communication being convenient to wired or wireless mode between device 1000 and other equipment.Device 1000 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 1016 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, communications component 1016 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1000 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the memory 1004 of instruction, above-mentioned instruction can perform said method by the processor 1020 of device 1000.Such as, non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in storage medium is performed by the processor of device 1000, make device 1000 can perform a kind of media file playing method, the method comprises:
In the process of media file client terminal playing media file, data to be played in the target media file that receiving media file server sends, data to be played in target media file are that Media file server detects in Media file server when there is target media file, determine according to the current played data frame of the media file of current broadcasting, target media file is the highest version file of the media file of current broadcasting;
The broadcasting of target media file is carried out according to data to be played.
Optionally, before the data to be played in the target media file that receiving media file server sends, the method also comprises:
The advertisement message that receiving media file server sends, advertisement message is used for informing in media file client media file server to there is target media file;
According to advertisement message from the current played data frame of the extracting data of the media file of current broadcasting, current played data frame is the Frame play when receiving advertisement message;
Generate handover request according to current played data frame, handover request comprises: current played data frame;
Send handover request to Media file server, so that Media file server is according to current played data frame, from the data of target media file, determine data to be played.
Optionally, carry out the broadcasting of target media file according to data to be played, comprising:
Judge whether the buffering progress of data to be played is greater than the playing progress rate from when receiving advertisement message of the media file of current broadcasting;
When the buffering progress of data to be played is greater than the playing progress rate from when receiving advertisement message of the media file of current broadcasting, carry out the broadcasting of target media file according to data to be played.
Optionally, judge whether the buffering progress of data to be played is greater than the playing progress rate from when receiving advertisement message of the media file of current broadcasting, comprising:
To determine in the media file of current broadcasting that corresponding with current played data frame first plays the moment;
The current broadcasting moment is determined according to the playing progress rate of the media file of current broadcasting;
In the buffered data of data to be played, determine the first object Frame identical with current played data frame, the buffered data of data to be played comprises at least one Frame;
Determine that the first object that first object Frame is corresponding in target media file plays the moment;
Determine the second target play moment of last Frame to be played correspondence in target media file in the buffered data of data to be played;
Calculate the current broadcasting moment and the first reproduction time play between the moment poor;
Calculate the object time that the second target play moment and first object play between the moment poor;
Judge whether object time difference is greater than reproduction time difference;
When object time difference is greater than reproduction time difference, determine that the buffering progress of data to be played is greater than the playing progress rate from when receiving advertisement message of the media file of current broadcasting.
Optionally, carry out the broadcasting of target media file according to data to be played, comprising:
The Frame that the current broadcasting moment plays is determined in the data of the media file of current broadcasting;
Determine to play the identical target Frame to be played of Frame that the moment plays with current in the buffered data of data to be played;
The data to be played play after playing the broadcasting moment corresponding at target Frame to be played in the buffered data of target Frame to be played and data to be played successively.
Optionally, handover request also comprises: in the media file of current broadcasting, corresponding with current played data frame first plays the moment.
In sum, the playback of media files device that disclosure embodiment provides, data to be played in the target media file that media file client is sent by receiving media file server, data to be played in target media file are that Media file server detects in Media file server when there is target media file, determine according to the current played data frame of the media file of current broadcasting, target media file is the highest version file of the media file of current broadcasting, carries out the broadcasting of target media file according to data to be played.Switch owing to just can realize media file without the need to user operation, therefore, solve the problem of media file handoff procedure complexity in correlation technique, reach the beneficial effect simplifying media file handoff procedure.
Figure 11 is the schematic diagram of a kind of media file-playing system 1100 according to an exemplary embodiment.See Figure 11, this media file-playing system 1100 can comprise: server 1110 and terminal 1120, and server 1110 can be Media file server, terminal 1120 is provided with media file client.
In a kind of possible implementation, server 1110 comprises the playback of media files device shown in Fig. 5 or Fig. 6-1, and media file client comprises the playback of media files device shown in Fig. 7 or Fig. 8-1.
In the implementation that another kind is possible, server 1110 comprises the playback of media files device shown in Fig. 9, and media file client comprises the playback of media files device shown in Figure 10.
In sum, the media file-playing system that disclosure embodiment provides, Media file server is by detecting in Media file server whether there is target media file, target media file is the highest version file of the media file of the current broadcasting of media file client, when there is target media file in Media file server, according to the current played data frame of the media file of current broadcasting, determine the data to be played in target media file, the data to be played in target media file are sent to media file client, media file client carries out the broadcasting of target media file according to data to be played.Switch owing to just can realize media file without the need to user operation, therefore, solve the problem of media file handoff procedure complexity in correlation technique, reach the beneficial effect simplifying media file handoff procedure.
Those skilled in the art, at consideration specification and after putting into practice invention disclosed herein, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (32)

1. a media file playing method, is characterized in that, described method comprises:
In the process of media file client terminal playing media file, detect in Media file server whether there is target media file, described target media file is the highest version file of the media file of the current broadcasting of described media file client;
When there is described target media file in described Media file server, according to the current played data frame of the media file of described current broadcasting, determine the data to be played in described target media file;
The data to be played in described target media file are sent, so that described media file client carries out the broadcasting of described target media file according to described data to be played to described media file client.
2. method according to claim 1, is characterized in that, the current played data frame of the described media file according to described current broadcasting, determines the data to be played in described target media file, comprising:
Send advertisement message to described media file client, described advertisement message is used for informing in Media file server described in described media file client to there is described target media file;
Receive the handover request that described media file client sends according to described advertisement message, described handover request comprises: described media file client when receiving described advertisement message from the current played data frame of the extracting data of the media file of described current broadcasting;
In the data of described target media file, determine the first object Frame identical with described current played data frame;
Determine that the first object that described first object Frame is corresponding in described target media file plays the moment;
From the data of described target media file, determine the second target data play after described first object plays the moment;
Using described first object Frame and described second target data as described data to be played.
3. method according to claim 2, is characterized in that, described in the data of described target media file, determines the first object Frame identical with described current played data frame, comprising:
Determine the first broadcasting moment that described current played data frame is corresponding in the media file of described current broadcasting;
Described current played data frame is comprised successively the described first data play in the preset time period in moment to compare with described target media file;
The first object Frame that extracting data in the preset time period comprising the described first broadcasting moment is identical with described current played data frame.
4. method according to claim 2, is characterized in that, described handover request also comprises: in the media file of described current broadcasting, corresponding with described current played data frame first plays the moment,
Described in the data of described target media file, determine the first object Frame identical with described current played data frame, comprising:
According to described handover request, described current played data frame is comprised successively the described first data play in the preset time period in moment with described target media file and compare;
The first object Frame that extracting data in the preset time period comprising the described first broadcasting moment is identical with described current played data frame.
5. method according to claim 2, is characterized in that, described in the data of described target media file, determines the first object Frame identical with described current played data frame, comprising:
Described current played data frame is comprised successively each data playing the moment to compare with described target media file;
Extract first object Frame identical with described current played data frame in the data of described target media file.
6. the method according to claim 3 or 4, is characterized in that, described described first data play in the preset time period in moment that comprised with described target media file successively by described current played data frame compare, and comprising:
Described target media file being comprised the described first Data Placement play in the preset time period in moment is at least two data segments;
In each described data segment, extract at least one feature data frame, each feature data frame is for characterizing the attribute of play content corresponding to described each feature data frame place data segment;
Described current played data frame is compared with at least one feature data frame described successively.
7., according to the arbitrary described method of claim 1 to 6, it is characterized in that the current played data frame of the described media file according to described current broadcasting is determined the data to be played in described target media file, being comprised:
Add up the number of described target media file;
When the number of described target media file is more than or equal to 2, according to the current played data frame of the media file of described current broadcasting, from the target media file that version is the highest, determine described data to be played.
8., according to the arbitrary described method of claim 1 to 6, it is characterized in that, described in the process of media file client terminal playing media file, detect in Media file server whether there is target media file, comprising:
In the process of described media file client terminal playing media file, periodically detect in described Media file server whether there is described target media file;
Or,
When receiving the detection request that described media file client sends, detect in described Media file server whether there is described target media file.
9. a media file playing method, is characterized in that, described method comprises:
In the process of media file client terminal playing media file, data to be played in the target media file that receiving media file server sends, data to be played in described target media file are that described Media file server detects when there is described target media file in described Media file server, determine according to the current played data frame of the media file of current broadcasting, described target media file is the highest version file of the media file of described current broadcasting;
The broadcasting of described target media file is carried out according to described data to be played.
10. method according to claim 9, is characterized in that, before the data to be played in the target media file that described receiving media file server sends, described method also comprises:
Receive the advertisement message that described Media file server sends, described advertisement message is used for informing in Media file server described in described media file client to there is described target media file;
According to described advertisement message from the current played data frame of the extracting data of the media file of described current broadcasting, described current played data frame is the Frame play when receiving described advertisement message;
Generate handover request according to described current played data frame, described handover request comprises: described current played data frame;
Send described handover request to described Media file server, so that described Media file server is according to described current played data frame, from the data of described target media file, determine described data to be played.
11. methods according to claim 9 or 10, is characterized in that,
The described broadcasting carrying out described target media file according to described data to be played, comprising:
Judge whether the buffering progress of described data to be played is greater than the playing progress rate from when receiving described advertisement message of the media file of described current broadcasting;
When the buffering progress of described data to be played is greater than the playing progress rate from when receiving described advertisement message of the media file of described current broadcasting, carry out the broadcasting of described target media file according to described data to be played.
12. methods according to claim 11, is characterized in that,
Describedly judge the playing progress rate from when receiving described advertisement message whether the buffering progress of described data to be played is greater than the media file of described current broadcasting, comprising:
To determine in the media file of described current broadcasting that corresponding with described current played data frame first plays the moment;
The current broadcasting moment is determined according to the playing progress rate of the media file of described current broadcasting;
In the buffered data of described data to be played, determine the first object Frame identical with described current played data frame, the buffered data of described data to be played comprises at least one Frame;
Determine that the first object that described first object Frame is corresponding in described target media file plays the moment;
Determine the second target play moment of last Frame to be played correspondence in described target media file in the buffered data of described data to be played;
Calculate the described current broadcasting moment and the described first reproduction time play between the moment poor;
Calculate the object time that described second target play moment and described first object play between the moment poor;
Judge whether difference of described object time is greater than described reproduction time poor;
When described object time difference is greater than described reproduction time difference, determine that the buffering progress of described data to be played is greater than the playing progress rate from when receiving described advertisement message of the media file of described current broadcasting.
13. methods according to claim 12, is characterized in that, the described broadcasting carrying out described target media file according to described data to be played, comprising:
The Frame that the described current broadcasting moment plays is determined in the data of the media file of described current broadcasting;
Determine currently to play the identical target Frame to be played of Frame that the moment plays with described in the buffered data of described data to be played;
The data to be played play after playing the broadcasting moment corresponding at described target Frame to be played in the buffered data of described target Frame to be played and described data to be played successively.
14. methods according to claim 10, is characterized in that, described handover request also comprises: in the media file of described current broadcasting, corresponding with described current played data frame first plays the moment.
15. 1 kinds of playback of media files devices, is characterized in that, described device comprises:
Detection module, be configured in the process of media file client terminal playing media file, detect in Media file server and whether there is target media file, described target media file is the highest version file of the media file of the current broadcasting of described media file client;
Determination module, is configured to when there is described target media file in described Media file server, according to the current played data frame of the media file of described current broadcasting, determines the data to be played in described target media file;
Sending module, is configured to the data to be played sent to described media file client in described target media file, so that described media file client carries out the broadcasting of described target media file according to described data to be played.
16. devices according to claim 15, is characterized in that, described determination module, comprising:
Send submodule, be configured to send advertisement message to described media file client, described advertisement message is used for informing in Media file server described in described media file client to there is described target media file;
Receive submodule, be configured to receive the handover request that described media file client sends according to described advertisement message, described handover request comprises: described media file client when receiving described advertisement message from the current played data frame of the extracting data of the media file of described current broadcasting;
First determines submodule, is configured in the data of described target media file, determines the first object Frame identical with described current played data frame;
Second determines submodule, is configured to determine that the first object that described first object Frame is corresponding in described target media file plays the moment;
3rd determines submodule, is configured to from the data of described target media file, determines the second target data play after described first object plays the moment;
As submodule, be configured to described first object Frame and described second target data as described data to be played.
17. devices according to claim 16, is characterized in that, described first determines submodule, comprising:
Moment determines submodule, is configured to the first broadcasting moment determining that described current played data frame is corresponding in the media file of described current broadcasting;
Comparison sub-module, is configured to described current played data frame to be comprised successively the described first data play in the preset time period in moment with described target media file and compares;
Extract submodule, be configured to play the extracting data first object Frame identical with described current played data frame in the preset time period in moment comprising described first.
18. devices according to claim 16, is characterized in that, described handover request also comprises: in the media file of described current broadcasting, corresponding with described current played data frame first plays the moment,
Described first determines submodule, comprising:
Comparison sub-module, is configured to according to described handover request, described current played data frame is comprised successively the described first data play in the preset time period in moment with described target media file and compares;
Extract submodule, be configured to play the extracting data first object Frame identical with described current played data frame in the preset time period in moment comprising described first.
19. devices according to claim 16, is characterized in that,
Described first determines submodule, comprising:
Comparison sub-module, is configured to described current played data frame to be comprised successively each data playing the moment with described target media file and compares;
Extract submodule, be configured to extract first object Frame identical with described current played data frame in the data of described target media file.
20. devices according to claim 17 or 18, it is characterized in that, described comparison sub-module, is configured to:
Described target media file being comprised the described first Data Placement play in the preset time period in moment is at least two data segments;
In each described data segment, extract at least one feature data frame, each feature data frame is for characterizing the attribute of play content corresponding to described each feature data frame place data segment;
Described current played data frame is compared with at least one feature data frame described successively.
21. according to claim 15 to 20 arbitrary described devices, and it is characterized in that, described determination module, is configured to:
Add up the number of described target media file;
When the number of described target media file is more than or equal to 2, according to the current played data frame of the media file of described current broadcasting, from the target media file that version is the highest, determine described data to be played.
22. according to claim 15 to 20 arbitrary described devices, and it is characterized in that, described detection module, is configured to:
In the process of described media file client terminal playing media file, periodically detect in described Media file server whether there is described target media file;
Or,
When receiving the detection request that described media file client sends, detect in described Media file server whether there is described target media file.
23. 1 kinds of playback of media files devices, is characterized in that, described device comprises:
First receiver module, be configured in the process of media file client terminal playing media file, data to be played in the target media file that receiving media file server sends, data to be played in described target media file are that described Media file server detects when there is described target media file in described Media file server, determine according to the current played data frame of the media file of current broadcasting, described target media file is the highest version file of the media file of described current broadcasting;
Playing module, is configured to the broadcasting carrying out described target media file according to described data to be played.
24. devices according to claim 23, is characterized in that, described device also comprises:
Second receiver module, be configured to the advertisement message receiving the transmission of described Media file server, described advertisement message is used for informing in Media file server described in described media file client to there is described target media file;
Extraction module, be configured to according to described advertisement message from the current played data frame of the extracting data of the media file of described current broadcasting, described current played data frame is the Frame play when receiving described advertisement message;
Generation module, be configured to generate handover request according to described current played data frame, described handover request comprises: described current played data frame;
Sending module, is configured to send described handover request to described Media file server, so that described Media file server is according to described current played data frame, from the data of described target media file, determines described data to be played.
25. devices according to claim 23 or 24, is characterized in that,
Described playing module, comprising:
Judge submodule, be configured to judge whether the buffering progress of described data to be played is greater than the playing progress rate from when receiving described advertisement message of the media file of described current broadcasting;
Play submodule, be configured to, when the buffering progress of described data to be played is greater than the playing progress rate from when receiving described advertisement message of the media file of described current broadcasting, carry out the broadcasting of described target media file according to described data to be played.
26. devices according to claim 25, is characterized in that,
Described judgement submodule, is configured to:
To determine in the media file of described current broadcasting that corresponding with described current played data frame first plays the moment;
The current broadcasting moment is determined according to the playing progress rate of the media file of described current broadcasting;
In the buffered data of described data to be played, determine the first object Frame identical with described current played data frame, the buffered data of described data to be played comprises at least one Frame;
Determine that the first object that described first object Frame is corresponding in described target media file plays the moment;
Determine the second target play moment of last Frame to be played correspondence in described target media file in the buffered data of described data to be played;
Calculate the described current broadcasting moment and the described first reproduction time play between the moment poor;
Calculate the object time that described second target play moment and described first object play between the moment poor;
Judge whether difference of described object time is greater than described reproduction time poor;
When described object time difference is greater than described reproduction time difference, determine that the buffering progress of described data to be played is greater than the playing progress rate from when receiving described advertisement message of the media file of described current broadcasting.
27. devices according to claim 26, is characterized in that, described broadcasting submodule, is configured to:
The Frame that the described current broadcasting moment plays is determined in the data of the media file of described current broadcasting;
Determine currently to play the identical target Frame to be played of Frame that the moment plays with described in the buffered data of described data to be played;
The data to be played play after playing the broadcasting moment corresponding at described target Frame to be played in the buffered data of described target Frame to be played and described data to be played successively.
28. devices according to claim 24, is characterized in that, described handover request also comprises: in the media file of described current broadcasting, corresponding with described current played data frame first plays the moment.
29. 1 kinds of playback of media files devices, is characterized in that, comprising:
Processor;
For storing the memory of the executable instruction of described processor;
Wherein, described processor is configured to:
In the process of media file client terminal playing media file, detect in Media file server whether there is target media file, described target media file is the highest version file of the media file of the current broadcasting of described media file client;
When there is described target media file in described Media file server, according to the current played data frame of the media file of described current broadcasting, determine the data to be played in described target media file;
The data to be played in described target media file are sent, so that described media file client carries out the broadcasting of described target media file according to described data to be played to described media file client.
30. 1 kinds of playback of media files devices, is characterized in that, comprising:
Processor;
For storing the memory of the executable instruction of described processor;
Wherein, described processor is configured to:
In the process of media file client terminal playing media file, data to be played in the target media file that receiving media file server sends, data to be played in described target media file are that described Media file server detects when there is described target media file in described Media file server, determine according to the current played data frame of the media file of current broadcasting, described target media file is the highest version file of the media file of described current broadcasting;
The broadcasting of described target media file is carried out according to described data to be played.
31. 1 kinds of media file-playing systems, is characterized in that, described system comprises: Media file server and terminal, described terminal are provided with media file client,
Described Media file server comprises the arbitrary described playback of media files device of claim 15 to 22;
Described media file client comprises the arbitrary described playback of media files device of claim 23 to 28.
32. 1 kinds of media file-playing systems, is characterized in that, described system comprises: Media file server and terminal, described terminal are provided with media file client,
Described Media file server comprises playback of media files device according to claim 29;
Described media file client comprises playback of media files device according to 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 true CN105430449A (en) 2016-03-23
CN105430449B 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)

Cited By (3)

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

Citations (4)

* 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
US20110235530A1 (en) * 2010-03-25 2011-09-29 Avaya Inc. Dlp-based wireless docking for wifi-based endpoints with desktop
CN103051937A (en) * 2011-10-12 2013-04-17 腾讯科技(深圳)有限公司 Video frequency broadcast and control method as well as device

Patent Citations (4)

* 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
US20110235530A1 (en) * 2010-03-25 2011-09-29 Avaya Inc. Dlp-based wireless docking for wifi-based endpoints with desktop
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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495789A (en) * 2017-09-13 2019-03-19 华为技术有限公司 Media file playing method, equipment and communication system
CN108307248A (en) * 2018-02-01 2018-07-20 腾讯科技(深圳)有限公司 Video broadcasting method, device, computing device and storage medium
US11356739B2 (en) 2018-02-01 2022-06-07 Tencent Technology (Shenzhen) Company Ltd Video playback method, terminal apparatus, and storage medium
CN109600626A (en) * 2018-12-24 2019-04-09 北京奇艺世纪科技有限公司 A kind of method for processing video frequency and relevant device

Also Published As

Publication number Publication date
CN105430449B (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN105244048A (en) Audio play control method and apparatus
CN105430487A (en) Multimedia data playing method, device and system
CN104955126A (en) Operator network access method and device
CN105263196A (en) Connection state prompting method and device
CN104010222A (en) Method, device and system for displaying comment information
CN105828201A (en) Video processing method and device
KR102147329B1 (en) Video display device and operating method thereof
CN104933170A (en) Information exhibition method and device
CN105159523A (en) Target function enabling method, apparatus and system
CN104902527A (en) Communication network switching method and communication network switching device
CN104202614B (en) A kind of method of Network Environment adjustment video image quality and device
CN105491048A (en) Account management method and apparatus
CN105338399A (en) Image acquisition method and device
CN104980820A (en) Multimedia file playing method and multimedia file playing device
CN104834435A (en) Method and device for playing audio comments
CN105162728A (en) Network access method, network access device and network access system
CN105430715A (en) Method and apparatus for controlling WIFI scanning
CN104112459A (en) Method and apparatus for playing audio data
CN105354017A (en) Information processing method and apparatus
CN105430449A (en) Media file play method, device and system
CN105451056A (en) Audio and video synchronization method and device
CN104881981A (en) Methods and devices for transmitting and receiving key instructions
CN105511307A (en) Control method and apparatus of electronic device
CN104935613A (en) Scene synchronization method, terminal, server and system
CN105430469A (en) Method and device for playing audio/video data, terminal and server

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