A kind of media play controlling method and its device
The application is entitled " a kind of media play controlling method and its device " proposed on April 28th, 2013
The divisional application of Chinese invention patent application 20131057128.4.
Technical field
The present invention relates to the media processing techniques more particularly to a kind of media play controlling method and its dress in the communications field
It sets.
Background technique
DLNA(Digital Living Network Alliance, Digital Life Network Alliance) technology refers to family
Various equipment (such as computer, smart television, mobile phone) in network interconnect, and can share multimedia from each other
Content.DLNA have media server, media player, media controller concept, be briefly exactly media controller control
Content in media renderer plays media server.One simplified example is exactly to be browsed in computer by mobile phone wireless
Then multimedia content puts these contents by mobile phone wireless combat television machine sowing.
The function realization of current DLNA technology be it is one-to-one, i.e. a media controller control a media player into
Row media play.
Summary of the invention
The embodiment of the invention provides a kind of media play controlling method and its devices, to realize media controller to more
A media player carries out controlling media play.
Media play controlling method provided in an embodiment of the present invention, comprising:
Media controller obtains media file to be played, and the media play for playing the media file to be played
Device, the quantity of the media player are at least 2;
The media controller creation plays mark, and establishes the broadcasting mark and the media file to be played and use
Corresponding relationship between the media player for playing the media file to be played;
The media controller sends media to the media player for playing the media file to be played respectively and broadcasts
Control instruction is put, media file to be played described in media renderer plays is used to indicate, is taken in the controlling media play instruction
It is identified with the broadcasting.
Media controller provided in an embodiment of the present invention, comprising:
Acquiring unit, for obtaining media file to be played, and the media for playing the media file to be played
Player, the quantity of the media player are at least 2;
Mark creating unit is played, plays mark for creating, and establishes the broadcasting mark and the media to be played
Corresponding relationship between file and media player for playing the media file to be played;
Instruction sending unit, for sending media to the media player for playing the media file to be played respectively
Control instruction is played, is used to indicate media file to be played described in media renderer plays, in the controlling media play instruction
Carry the broadcasting mark.
In the above embodiment of the present invention, media controller is after obtaining media file to be played, respectively to multiple media
Player sends controlling media play instruction, to indicate the same media file of these media renderer plays, realizes media control
Device processed carries out controlling media play to multiple media players.
The media play controlling method that another embodiment of the present invention provides, comprising:
Media player receives the controlling media play instruction that media controller is sent, and the controlling media play instruction is used
Media file is specified in instruction media renderer plays, carries broadcasting mark in the controlling media play instruction;
The media player establishes the corresponding relationship played between mark and the specified media file, according to described
Controlling media play instruction plays corresponding media file, and returning response;
The media player receives the media controller and sends out after receiving the response that the media player returns
The time synchronization instruction sent obtains the time parameter wherein carried and plays mark, according to the time parameter got and works as
Synchronous error, root is calculated in the first time parameter and the second time parameter of preceding system time and media player record
Processing is synchronized according to the play operation of the synchronous error pair being calculated media file corresponding with the broadcasting mark;Its
In, the first time parameter of media player record is system time when receiving time synchronization instruction, the second time parameter
It is the time parameter got from the time synchronization instruction received, the time parameter carried in time synchronization instruction is media
The system time that system time and the transmission controlling media play when controller sends time synchronization instruction instruct
Difference.
Media player provided in an embodiment of the present invention, comprising:
Instruction receiving unit, for receiving the controlling media play instruction of media controller transmission, the media play control
System instruction is used to indicate media renderer plays and specifies media file, carries broadcasting mark in the controlling media play instruction
Know;And it receives the time synchronization that the media controller is sent after receiving the response that the media player returns and refers to
It enables;
Corresponding relationship processing unit, for establishing the corresponding relationship played between mark and the specified media file;
Broadcast unit, for playing corresponding media file, and returning response according to controlling media play instruction;With
And place is synchronized according to the play operation of the synchronous error pair being calculated media file corresponding with the broadcasting mark
Reason;
Synchronous processing unit for the acquisition time parameter from the time synchronization instruction received and plays mark, according to
The first time parameter and the second time of the time parameter and present system time that get and media player record
Synchronous error is calculated in parameter;Wherein, the first time parameter of media player record is when receiving time synchronization instruction
System time, the second time parameter is the time parameter that gets from the time synchronization instruction received, and time synchronization refers to
The time parameter carried in order is the system time and the transmission media when media controller sends time synchronization instruction
Play the difference of the system time of control instruction.
In the above embodiment of the present invention, media player is according to the controlling media play received from media controller
Instruction carries out media play, and from media controller receiving time synchronic command, is instructed according to time synchronization and carry out media play
Synchronization process, the media sync for realizing media player and media controller play.
Detailed description of the invention
Fig. 1 is one of controlling media play flow diagram provided in an embodiment of the present invention;
Fig. 2 is the two of controlling media play flow diagram provided in an embodiment of the present invention;
Fig. 3 is the three of controlling media play flow diagram provided in an embodiment of the present invention;
Fig. 4 A and Fig. 4 B are respectively the structural schematic diagram of media controller provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of media player provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the invention provides a kind of controlling media play schemes, to realize that media controller broadcasts multiple media
It puts device and carries out controlling media play, and may further ensure that synchronizing media play.
The embodiment of the present invention can be applied to DLNA system framework, be applicable to multiple media players be played simultaneously it is same
Scene of media file, such as market displaying, Waiting Lounge, company's meeting room etc..
In DLNA system framework, media controller, media player and media server are generally included.Media controller
It can be connect, can be obtained in media server by wired or wireless communication mode between media player and media server
Media file tabular and media file data, and controlling media play can be carried out to media player;Media player and media
It can be connected by wired or wireless way between server, media file data can be obtained from media server and played out;Matchmaker
Body server can provide media file data and play out for media controller or/and media player.Media player can be with
Have multiple.In a kind of typical DLNA framework, wireless communication terminal (such as mobile phone) has the equipment of media control function can be with
As media controller, there is television set etc. the equipment of media play function can be used as media player, and computer etc. has
The equipment of media storage function can be used as media server.
Below by taking above-mentioned DLNA system framework as an example, the embodiment of the present invention is described in detail.
Referring to Fig. 1, media file is chosen for media controller provided in an embodiment of the present invention and controls multiple media plays
Device plays the process of the media file, the process can include:
Step 102: media controller obtains media file to be played, and the media play for playing the media file
Device.
When it is implemented, user can obtain the media file tabular on media server (also referred to as by media controller
Media file catalogue), media file to be played is therefrom selected, user can also obtain media player by media controller
List therefrom selects the media player for playing the media file, allows user to select multiple (i.e. two in the present embodiment
Or more than two) media player.Preferably, it can default and be broadcast all media players in DLNA system framework as default
Device is put, the operation that user selects media player can be saved in this way.
Step 104: media controller creation plays mark (hereinafter referred to as broadcasting ID), and establish broadcasting ID with it is to be played
Media file and the corresponding relationship between the media player for playing the media file to be played.
When it is implemented, media controller can establish media control list, for recording played ID and media file and matchmaker
Corresponding relationship between body player, wherein all media players for playing same media file correspond to same broadcasting ID, no
Same media file corresponds to different broadcasting ID.A kind of special situation is: if the media renderer plays of different groups are same
Media file needs the grouping based on media player to carry out controlling media play, although the then media player of different groups
The media file of broadcasting is identical, it is also desirable to create different broadcasting ID for different media player groups.
It may include media file identification or media file name that media, which control media file information recorded in list,
Or storage location etc., the media player information recorded may include media player mark or address etc..Certainly, the correspondence
The data store organisation of relationship is not limited to tabular form.
Step 106: media controller sends media play control to the media player for playing media file to be played
System instruction (i.e. play instruction, such as play), is used to indicate the media renderer plays media file to be played, the play instruction
In carry the broadcasting ID created in step 104.
When it is implemented, the information of media file to be played is also carried in the play instruction that media controller is sent, e.g.,
File identification, file name or file store path etc., so that media player can obtain corresponding media file number according to this
According to playing out.Mode of unicast can be used respectively to each media player for playing media file to be played in media controller
Send play instruction.In the case where media controller has media play function, media controller itself also plays should be wait broadcast
It puts media file and controls use for media, can provide media control function key in broadcast interface, for example play, stop broadcasting
It puts, the control functions etc. such as sound is adjusted, playback.
Step 108: media player plays corresponding media file according to the play instruction received.
When it is implemented, what acquisition wherein carried broadcasts after media player receives the play instruction that media controller is sent
The information for putting ID and media file to be played saves broadcasting ID and corresponding media file information, and according to be played
The corresponding media file data of acquisition of information of media file play out, can provide media control function in broadcast interface
Key, for example play, stop the control functions such as broadcasting, sound adjusting, playback etc..Wherein, if media player is locally stored
There is corresponding media file data, is then played out from the corresponding media file data of local acquisition, otherwise from media server
Corresponding media file data is obtained to play out.
The multiple media players of media controller control may be implemented by process shown in FIG. 1, same media are played simultaneously
File.
Hereafter, media controller can synchronize control to all media players for playing same media file, than
Such as, these media players are controlled to stop playing, replay or fast-forward play etc..Specifically, when media controller needs pair
Some currently playing media file plays out control or media controller and carries out to media file being played on thereon
When playing control, media controller sends controlling media play instruction using broadcast mode, takes in controlling media play instruction
With the corresponding broadcasting ID of the media file;The media player for receiving controlling media play instruction, if itself is
The corresponding media file of broadcasting ID is played, then the media file is carried out according to the controlling media play instruction received corresponding
Media play operation.
Fig. 2 shows a kind of media controllers to synchronize control to all media players for playing same media file
Flow diagram.As shown, the process can include:
Step 201: media controller is generated according to target media file and is instructed for the controlling media play of broadcast, and institute is wide
It is carried in the controlling media play instruction broadcast and plays ID and command content.The target media file refers to that needing to carry out media broadcasts
Put the media file of control.
When it is implemented, user can be broadcast by operating media controller if media controller has media play function
It puts the media control function key in interface and submits media control request, for example stop broadcasting or the instruction of fast forwarding and fast rewinding, media control
Device processed carries out corresponding media control operation according to the media file that the request plays it, and is obtained according to media control operation
Corresponding broadcasting ID is taken, the media play for broadcast accordingly is generated according to broadcasting ID and the media manipulation type carried out
Control instruction.If media controller does not have media play function, media file being played on and broadcasting can be chosen
The media player and media of this document control action type, are obtained and are corresponded to according to the media file of selection and media player
Broadcasting ID, corresponding controlling media play is generated according to broadcasting ID and media manipulation type and is instructed.
Step 202: media controller sends controlling media play generated with broadcast mode and instructs.
Step 203: the media player of controlling media play instruction is received, according in controlling media play instruction
The broadcasting ID of carrying, if it is determined that itself be playing the corresponding media file of broadcasting ID, then according to the controlling media play
Instruction carries out respective media play operation to the media file.
In above-mentioned steps 201, the embodiment of the present invention realizes media controller pair by the broadcast message in Extended Protocol
All media players for playing same media file synchronize control.It shown below a kind of broadcast message of extension:
NOTIFY /eventCtrl HTTP/1.1
Content-Length: 0
HOST: 172.26.118.112:10
SID: 100
Ext: Stop,10000,100
Wherein, eventCtrl indicates that the message is controlling media play order;HOST is the address of media controller;SID
It is to play ID;Ext is specific controlling media play command content, can be divided into three parts, wherein first part is specific life
It enables, to stop play command (Stop) in upper example, second part is subcommand time, and Part III is order related data.
In above-mentioned steps 203, since controlling media play instruction is broadcast message, all equipment can all be received
This message.After media player receives this message, judge oneself whether be controlled by accordingly according to HOST therein and SID
Media controller and it whether is currently playing corresponding media file, if it is according to this message to respective media files
Control is played out, this message is otherwise abandoned.
It should be noted that the above broadcast message format and content are only a kind of example, it is not construed as limiting the invention.
Media player can be referred to during playback of media files by initiating controlling media play to media controller
It enables, media controller is made to carry out controlling media play to other media players for playing same media file.
Fig. 3 shows a kind of media player initiation controlling media play, so that controller is to the same media file of broadcasting
Other media players synchronize the flow diagram of control.As shown, the process can include:
Step 301: media player sends controlling media play instruction to media controller, carries broadcasting in the instruction
ID。
When it is implemented, when media player operates the media file played thereon, it can be raw for the operation
It is instructed at controlling media play, and is sent to media controller.Include operated media text in controlling media play instruction
The corresponding broadcasting ID of part.
Step 302: after media controller receives controlling media play instruction, being inquired according to the broadcasting ID wherein carried
Corresponding media player, if corresponding media player be it is multiple (i.e. in the corresponding media player of broadcasting ID, in addition to
Further include other media players other than the media player for sending controlling media play instruction), then according to the matchmaker received
Body plays the controlling media play that control instruction is generated for broadcasting and instructs, and plays ID and command content wherein carrying, this is broadcast
In putting ID and instructing in this way out of, broadcasting ID and instruction that parsed in the controlling media play instruction that media player receives
Hold.The format that controlling media play for broadcast instructs can be as previously mentioned, this will not be detailed here.
When it is implemented, if media controller itself also play broadcasting ID for media file, according to connecing
The controlling media play instruction received carries out controlling media play operation to the media file.
Step 303: media controller broadcasts controlling media play instruction generated.
Step 304: the media player of controlling media play instruction is received, according in controlling media play instruction
The broadcasting ID of carrying, if it is determined that itself be playing the corresponding media file of broadcasting ID, then according to the controlling media play
Instruction carries out respective media play operation to the media file.
By Fig. 2 and process shown in Fig. 3, the equipment that may be implemented to play same media file is (as included that media control
Device and multiple media players) simultaneously operating to media file.
After selecting media file in view of media controller, to multiple media player hairs for needing to play the media file
To be sent respectively to these media players when sending play instruction, this be possible to because different playback equipments system time not
The reasons such as synchronous or network delay lead to synchronous error, that is, the media text that these media players and media controller are played
Part is likely to be out of synchronization.
In order to reduce synchronous error, the embodiment of the present invention advanced optimizes process shown in Fig. 2.
In a kind of prioritization scheme for reducing synchronous error, in media controller to for playing media file to be played
After all media players send play instruction, the dilatory media play control of playback progress is sent to these media players immediately
System instruction is used to indicate wherein carrying broadcasting ID corresponding to the media file as control object by corresponding media text
The playback progress of part is adjusted to the initial position of this document;After media player receives the media control instruction, referred to according to this
The broadcasting ID carried in order controls the playback progress of corresponding media file in the initial position of media file, to realize
The synchronization of playback of media files.
In another prioritization scheme for reducing synchronous error, using media play initial time, each equipment is counted respectively
The method of error amount is calculated, to avoid the system time for modifying each equipment.
The specific implementation of the prioritization scheme is detailed below.
Media controller executes operation according to the step 202 in Fig. 2 ~ 206.Wherein, in step 202, media controller
Selected media player and prepare to selected player send play instruction when record current system time Ts(should
Ts is also system time when media controller starts to play selected media file), initialize the timing initial value of oneself
Tv is 0 and records Tv;In step 206, media controller indicates not releasing network connection in the play instruction of transmission.Media
Player is responded after receiving play instruction.
After step 206, after media controller receives the response of media player, sent immediately to the media player
Time synchronization instructs, and the time value filled in the synchronic command is that the value of timing the initial value Tv, the Tv of media player are
Present system time T subtracts the Ts recorded in step 202, also carries in time synchronization instruction and plays ID, to refer to which
Media file synchronizes processing.The DLNA control signaling format of standard can be used in the format of time synchronization instruction.Media control
The response that device processed returns to each media player for receiving, sending time synchronic command in the manner described above.Because
It sends network channel after play instruction receives response to have been established, transmission synchronic command to the time that other side receives instruction can be very at this time
Short, time-consuming can be ignored, this time synchronization, which instructs, itself would not lead to synchronous error.
Hereafter, after media player receives synchronic command, the current time and the synchronic command of own system are recorded
The temporal information of middle carrying, for convenience of description, present system time is denoted as Ts by media player herein, will be in the synchronic command
The temporal information of carrying is denoted as Tv, and records and save the Ts and Tv.Media player is according to the Ts and Tv of record, by corresponding matchmaker
The starting play position of body file is adjusted on time point T, wherein T=Ts-Tv.Each media player receives synchronic command
Afterwards, the initial position of playback of media files is adjusted in the manner described above.
It can be seen that respectively to record in media controller and media player by the above process and have Ts and Tv.Wherein, matchmaker
The Ts recorded in body controller is that the media controller has selected media player and prepared to send to selected player to broadcast
Put present system time (and system of media controller when starting to play selected media file recorded when instruction
Time), the Tv of record is 0;The Ts of media player record is the system when media player receives time synchronization instruction
Time, the Tv of record are the Tv parsed from time synchronization instruction.The Ts and Tv that each media player is recorded are according to net
The reasons such as network delay may be different, but for media player, utilizes the calculated media file of formula T=Ts-Tv institute
It is the same for playing Start Time value, therefore can reduce playback of media files synchronous error, realizes media text to a certain extent
Part, which plays, to be synchronized.
Hereafter, the same process shown in Fig. 3, after media controller indicates media renderer plays media file, media control
Device processed can initiate controlling media play instruction.In order to reduce the synchronous error of playback of media files, the embodiment of the present invention is to Fig. 3 institute
The process shown is optimized.
In step 302, when media controller sends controlling media play signaling with broadcast mode, own system is first obtained
The current time value T1(time value namely the media controller execute system time when media manipulation), when calculating corrected
Between value Tc, and by Tc be carried on controlling media play instruction in broadcast transmission.Wherein, Tc=T1-Ts+Tv, in the formula
Ts and Tv be this equipment record Ts and Tv.For media controller, the Ts of record is media controller selection
Media player and present system time when being ready for sending play instruction out, which is also that the controlling media play device starts
Play system time when media file, Tv=0.
In step 303, it after the controlling media play that media player receives media controller broadcast transmission instructs, obtains
The Tc wherein carried is calculated relative to itself controlling media play time for each instruction T2, T2=Tc+Ts-Tv, wherein
The Ts(that Ts is recorded for the media player i.e. receiving time synchronic command when system time), Tv is the media player institute
The Tv(of record is the Tv parsed from time synchronization instruction), by controlling media play time for each instruction T2 and current system
Time, T was compared, and calculated the error time T-T2 of controlling media play time for each instruction, thus can be in media
It plays and the error correction comes in control operating process.
Similarly, when media player initiate controlling media play instruction when, reduce media sync error process with it is upper
It is similar to state process.Specifically, being obtained wherein after the controlling media play that media controller receives media player transmission instructs
The time parameter Tc of carrying, according to the time parameter Tc and present system time that get and media controller record when
Between the Tv that is recorded due to media controller of parameter Ts(be 0, ignore herein) synchronous error is calculated, according to reception
The controlling media play instruction arrived carries out playback of media files operation, and according to meter in carrying out playback of media files operating process
Obtained synchronous error synchronizes processing to playback of media files operation.The matchmaker that media controller uses broadcast mode to send
Body plays in control instruction and also carries time parameter Tc, is used to indicate media player according in controlling media play instruction
The time parameter Tc of carrying is carrying out media file to synchronize processing in media play operating process.In the process, the time
The value of parameter Tc is the time parameter Ts that present system time subtracts media controller record.
Based on the same technical idea, the embodiment of the invention also provides a kind of media controllers and a kind of media play
Device.
A and Fig. 4 B referring to fig. 4 is the structural schematic diagram of media controller provided in an embodiment of the present invention.As shown, should
Media controller can include: acquiring unit 41 plays mark creating unit 42, instruction sending unit 43, further can also wrap
Include the combination of a kind of following unit or any unit: synchronous processing unit 44, instruction receiving unit 45, broadcast unit 46.Fig. 4 A
Describe not comprising synchronous processing unit media controller structure, Fig. 4 B describe include synchronous processing unit media
The structure of controller.Wherein:
Acquiring unit 41, for obtaining media file to be played, and the matchmaker for playing the media file to be played
Body player, the quantity of the media player are at least 2;
Mark creating unit 42 is played, plays mark for creating, and establishes the broadcasting mark and the matchmaker to be played
Corresponding relationship between body file and media player for playing the media file to be played;
Instruction sending unit 43, for sending matchmaker to the media player for playing the media file to be played respectively
Body plays control instruction, is used to indicate media file to be played described in media renderer plays, the controlling media play instruction
In carry broadcasting mark.
Further, broadcast unit 46 can play the media after acquiring unit 41 gets media file to be played
File.
Preferably, instruction sending unit 43 is respectively to the media player hair for playing the media file to be played
After sending controlling media play to instruct, media are sent to the media player for playing the media file to be played and are broadcast
Control instruction is put, the broadcasting mark is carried in currently transmitted controlling media play instruction, is used to indicate media player
According to the broadcasting mark carried in currently transmitted controlling media play instruction, the playback progress of corresponding media file is adjusted
To the initial position of the media file.
Preferably, synchronous processing unit 44 acquiring unit 41 obtain media file to be played and for play it is described to
After the media player for playing media file, present system time is recorded as first time parameter.Correspondingly, instruction sends list
Member 43 is connecing after sending controlling media play instruction to the media player for playing the media file to be played respectively
After the response for receiving media player return, to the media player sending time synchronic command of returning response, the time is same
Time parameter is carried in step instruction and plays mark, is used to indicate media player and is carried according in time synchronization instruction
Time parameter pair synchronize processing with the play operation of the corresponding media file of the broadcasting mark, the time parameter
Value is the first time parameter that present system time subtracts the media controller record.
Preferably, instruction sending unit 43 is respectively to the media player hair for playing the media file to be played
After sending controlling media play to instruct, controlling media play instruction, the matchmaker sent using broadcast mode are sent using broadcast mode
Body, which plays, carries the broadcasting mark in control instruction, being used to indicate broadcasting has media file corresponding with the broadcasting mark
Media player according to it is described using broadcast mode send broadcasting control instruction carry out respective media play operation.Further
, synchronous processing unit 44 in acquiring unit 41 obtains media file to be played and for playing the media file to be played
Media player after, present system time is recorded as first time parameter.Correspondingly, instruction sending unit 43 is using broadcast
Time parameter is also carried in the controlling media play instruction that mode is sent, is used to indicate media player according to described using wide
The time parameter carried in the controlling media play instruction that broadcast mode is sent is carrying out media play operating process to media file
In synchronize processing, when the value of the time parameter is that present system time subtracts the first of the synchronous processing unit record
Between parameter.
Preferably, instruction receiving unit 45 obtains after receiving the controlling media play instruction of media player transmission
The broadcasting mark wherein carried inquires corresponding media player according to the broadcasting mark got, if inquiring at least two matchmaker
Body player, then indicator transmission unit 43 generates the matchmaker for being used for broadcast transmission according to the controlling media play instruction received
Body plays control instruction, and broadcast transmission controlling media play generated instructs, in controlling media play instruction generated
The broadcasting mark got from the controlling media play instruction received is carried, being used to indicate broadcasting has and broadcasting mark
The media player for knowing corresponding media file carries out corresponding matchmaker according to the controlling media play instruction for generating simultaneously broadcast transmission
Body play operation.Correspondingly, instruction sending unit 43 generates and sends according to the instruction of instruction receiving unit 45 for broadcasting hair
The controlling media play instruction sent.
Preferably, synchronous processing unit 44 receives the media play control of media player transmission in instruction receiving unit 45
After system instruction, the time parameter wherein carried is obtained, according to the time parameter and present system time and the matchmaker got
Synchronous error is calculated in the first time parameter of body controller record.Correspondingly, broadcast unit 46 is according to instruction receiving unit
The 45 controlling media play instructions received carry out playback of media files operation, and in carrying out playback of media files operating process
The synchronous error being calculated according to synchronous processing unit 44 synchronizes processing to playback of media files operation;Instruction sends single
Time parameter is also carried in the controlling media play instruction that member 43 is sent using broadcast mode, is used to indicate media player root
Media are being carried out to media file according to the time parameter carried in the controlling media play instruction sent using broadcast mode
Processing is synchronized during play operation, the value of the time parameter is that present system time subtracts the media controller note
The first time parameter of record;Wherein, the first time parameter of media controller record is that media controller acquisition is to be played
The system time recorded after media file and media player for playing the media file to be played.
It is the structural schematic diagram of media player provided in an embodiment of the present invention referring to Fig. 5.The media player can wrap
It includes: instruction receiving unit 51, corresponding relationship processing unit 52, broadcast unit 53, synchronous processing unit 54, in which:
Instruction receiving unit 51, for receiving the controlling media play instruction of media controller transmission, the media play
Control instruction is used to indicate media renderer plays and specifies media file, carries broadcasting mark in the controlling media play instruction
Know;And it receives the time synchronization that the media controller is sent after receiving the response that the media player returns and refers to
It enables;
Corresponding relationship processing unit 52, for establishing the corresponding pass played between mark and the specified media file
System;
Broadcast unit 53, for playing corresponding media file, and returning response according to controlling media play instruction;
And place is synchronized according to the play operation of the synchronous error pair being calculated media file corresponding with the broadcasting mark
Reason;
Synchronous processing unit 54 for the acquisition time parameter from the time synchronization instruction received and plays mark, root
The first time parameter recorded according to the time parameter and present system time that get and the media player and when second
Between parameter synchronous error is calculated;Wherein, the first time parameter of media player record is to receive time synchronization instruction
When system time, the second time parameter is the time parameter that gets from the time synchronization instruction received, time synchronization
The time parameter carried in instruction is that media controller sends the system time when time synchronization instructs and sends the matchmaker
Body plays the difference of the system time of control instruction.
Further, instruction receiving unit 51 also receives the controlling media play instruction of media controller broadcast transmission, institute
State controlling media play instruction in carry broadcasting mark and time parameter, the time parameter be the media controller wide
Broadcast the difference of the first time parameter of the system time and the media controller record when controlling media play being sent to instruct, institute
The first time parameter for stating media controller record is that the media controller obtains media file to be played and for playing
The system time recorded after the media player of the media file to be played.Correspondingly, synchronous processing unit 54 also according to
The first time parameter and the second time of the time parameter and present system time that get and media player record
Synchronous error is calculated in parameter, plays out control operation to respective media files according to the broadcasting mark got;Wherein,
Media player record first time parameter be receive time synchronization instruction when system time, the second time parameter be from
The time parameter that gets in the time synchronization instruction received, the time parameter carried in time synchronization instruction is media control
The difference for the system time that system time and the transmission controlling media play when device sends time synchronization instruction instruct.
Correspondingly, the synchronous mistake that broadcast unit 53 is calculated in playing out control operating process according to the synchronous processing unit
Difference synchronizes processing.
Further, above-mentioned media player may also include instruction sending unit 55.Instruction sending unit 55 is used for matchmaker
Body controller sends controlling media play instruction, carried in currently transmitted controlling media play instruction the broadcastings mark with
Time parameter is used to indicate media controller according to the time parameter carried in currently transmitted controlling media play instruction right
Media file carries out synchronizing processing in media play operating process, and the value of the time parameter subtracts for present system time
The first time parameter that synchronous processing unit 54 records, the second time parameter recorded along with synchronous processing unit 54.
The embodiment of the invention also provides a kind of DLNA systems, including above-mentioned media controller and above-mentioned media play
Device can also include for providing the media server of media file data, wherein media player is at least 2.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.