[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN105791922B - A kind of media play controlling method and its device - Google Patents

A kind of media play controlling method and its device Download PDF

Info

Publication number
CN105791922B
CN105791922B CN201610229654.0A CN201610229654A CN105791922B CN 105791922 B CN105791922 B CN 105791922B CN 201610229654 A CN201610229654 A CN 201610229654A CN 105791922 B CN105791922 B CN 105791922B
Authority
CN
China
Prior art keywords
media
instruction
play
controlling
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610229654.0A
Other languages
Chinese (zh)
Other versions
CN105791922A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201610229654.0A priority Critical patent/CN105791922B/en
Priority claimed from CN201310157128.4A external-priority patent/CN103220301B/en
Publication of CN105791922A publication Critical patent/CN105791922A/en
Application granted granted Critical
Publication of CN105791922B publication Critical patent/CN105791922B/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/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4305Synchronising client clock from received content stream, e.g. locking decoder clock with encoder clock, extraction of the PCR packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4122Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/43615Interfacing a Home Network, e.g. for connecting the client to a plurality of peripherals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/658Transmission by the client directed to the server
    • H04N21/6587Control parameters, e.g. trick play commands, viewpoint selection

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of media play controlling method and its devices.This method comprises: media controller obtains media file to be played, and the media player for playing the media file to be played, the quantity of the media player are at least 2;The media controller creation plays mark, and establish the corresponding relationship played between mark and the media file to be played and media player for playing the media file to be played, and controlling media play instruction is sent to the media player for playing the media file to be played respectively, it is used to indicate media file to be played described in media renderer plays, the broadcasting mark is carried in the controlling media play instruction.Controlling media play is carried out to multiple media players using the achievable media controller of the present invention.

Description

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.

Claims (9)

1. a kind of media play controlling method, which is characterized in that the described method includes:
Media controller sends the instruction of the first controlling media play, the first media play control at least two media player Carry the first broadcasting mark in system instruction, broadcastings mark include media file information to be played and for described in playing to The media player of media file is played, the media file information to be played includes file identification, file name, file storage It is some or all of in path, if corresponding media file data has been locally stored in media player, from local acquisition Corresponding media file data plays out, and otherwise obtains corresponding media file data from media server and plays out;
The media controller receives the second controlling media play instruction of any one media player transmission, second media Playing includes the media file information played on the media player in control instruction;
The media controller according to the media file information got, broadcast by other media that inquiry plays the media file information Device is put, other media players is controlled and executes the second controlling media play instruction;
After the media controller receives the controlling media play instruction of media player transmission, the broadcasting wherein carried is obtained Mark and time parameter;
The media controller is recorded according to the time parameter and present system time that get and the media controller Synchronous error is calculated in first time parameter, carries out playback of media files behaviour according to the controlling media play instruction received Make, and playback of media files is operated according to the synchronous error being calculated in carrying out playback of media files operating process and is carried out Synchronization process;
The media controller inquires corresponding media player according to the broadcasting mark got, if inquiring at least two matchmaker Body player is then generated according to the controlling media play instruction received and is instructed for the controlling media play of broadcast transmission, and Broadcast transmission controlling media play generated instructs, and carries in controlling media play instruction generated from the matchmaker received Body plays the broadcasting mark that gets and time parameter in control instruction, be used to indicate broadcasting have it is corresponding with the broadcasting mark Media file media player according to generate and broadcast transmission controlling media play instruction carry out respective media broadcasting Operation, and media file is being carried out to synchronize processing according to the time parameter in media play operating process, when described Between the value of parameter be first time parameter that present system time subtracts media controller record;
Wherein, the first time parameter of media controller record is that the media controller obtains media file to be played and use The system time recorded after the media player for playing the media file to be played.
2. the method as described in claim 1, which is characterized in that
The instruction of second controlling media play further includes time parameter, and the time parameter in media play operating process for carrying out Synchronization process.
3. the method as described in claim 1, which is characterized in that
The instruction of first controlling media play further includes the dilatory mark of playback progress, and the playback progress draws mark and is used to indicate matchmaker The playback progress of corresponding media file is adjusted to the correspondence initial position of the media file by body player.
4. the method as described in claim 1, which is characterized in that media controller sends first at least two media player Controlling media play instruction, specifically includes:
Media controller sends the instruction of the first controlling media play at least two media player using broadcast mode.
5. method according to claim 2, which is characterized in that control other media players execute second media Control instruction is played, is specifically included:
According to the time parameter, controls other media players and execute the second controlling media play instruction, reach Simultaneously operating.
6. a kind of media controller characterized by comprising
Instruction sending unit sends the instruction of the first controlling media play, institute at least two media player for media controller It states and carries the first broadcasting mark in the instruction of the first controlling media play, the broadcasting mark includes media file information to be played With the media player for playing the media file to be played, the media file information to be played include file identification, It is some or all of in file name, file store path, if corresponding media file has been locally stored in media player Data are then played out from the corresponding media file data of local acquisition, otherwise obtain corresponding media text from media server Number of packages evidence plays out;
Instruction receiving unit receives the second controlling media play of any one media player transmission for the media controller It instructs, includes the media file information played on the media player in the second controlling media play instruction;
Broadcast unit, for the media controller according to the media file information got, inquiry plays media file letter Other media players of breath control other media players and execute the second controlling media play instruction;
It further include instruction receiving unit, synchronous processing unit and broadcast unit;
Described instruction receiving unit, for obtaining wherein after receiving the controlling media play instruction of media player transmission The broadcasting mark and time parameter of carrying inquire corresponding media player according to the broadcasting mark got, if inquire to Few 2 media players then indicate that described instruction transmission unit is generated according to the controlling media play instruction received for wide Broadcast the controlling media play instruction sent, and broadcast transmission controlling media play instruction generated, media play generated The broadcasting mark for carrying time parameter in control instruction and getting from the controlling media play instruction received, is used for Indicating to play has the media player of media file corresponding with the broadcasting mark according to the media for generating simultaneously broadcast transmission It plays control instruction and carries out respective media play operation, and carried out in media play operating process according to media file Time parameter synchronizes processing, and the value of the time parameter is that present system time subtracts the synchronous processing unit record First time parameter;
The synchronous processing unit, for obtaining media file to be played in acquiring unit and for playing the matchmaker to be played After the media player of body file, present system time is recorded as first time parameter;And in described instruction receiving unit After the controlling media play instruction for receiving media player transmission, the time parameter wherein carried is obtained, according to what is got Synchronous error is calculated in the first time parameter of time parameter and present system time and media controller record;
The broadcast unit, the controlling media play instruction for being received according to described instruction receiving unit carry out media file Play operation, and the synchronous error being calculated in carrying out playback of media files operating process according to the synchronous processing unit Processing is synchronized to playback of media files operation;
Described instruction transmission unit is also used to be generated and sent according to the instruction of described instruction receiving unit for broadcast transmission Controlling media play instruction.
7. media controller as claimed in claim 6, which is characterized in that
Described instruction receiving unit, be also used to the media controller receive any one media player transmission the second media broadcast Control instruction is put, the second controlling media play instruction further includes time parameter, and the time parameter is grasped for media play Processing is synchronized during making.
8. media controller as claimed in claim 6, which is characterized in that
The instruction of first controlling media play further includes the dilatory mark of playback progress, and the playback progress draws mark and is used to indicate matchmaker The playback progress of corresponding media file is adjusted to the correspondence initial position of the media file by body player.
9. media controller as claimed in claim 7, which is characterized in that further include:
Broadcast unit, for controlling other media players and executing second media play according to the time parameter Control instruction reaches simultaneously operating.
CN201610229654.0A 2013-04-28 2013-04-28 A kind of media play controlling method and its device Active CN105791922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610229654.0A CN105791922B (en) 2013-04-28 2013-04-28 A kind of media play controlling method and its device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610229654.0A CN105791922B (en) 2013-04-28 2013-04-28 A kind of media play controlling method and its device
CN201310157128.4A CN103220301B (en) 2013-04-28 2013-04-28 A kind of media play controlling method and device thereof

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201310157128.4A Division CN103220301B (en) 2013-04-28 2013-04-28 A kind of media play controlling method and device thereof

Publications (2)

Publication Number Publication Date
CN105791922A CN105791922A (en) 2016-07-20
CN105791922B true CN105791922B (en) 2019-12-03

Family

ID=56397310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610229654.0A Active CN105791922B (en) 2013-04-28 2013-04-28 A kind of media play controlling method and its device

Country Status (1)

Country Link
CN (1) CN105791922B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107277593B (en) * 2017-05-05 2020-02-14 中广热点云科技有限公司 Method and device for playing videos on same screen
CN108366283B (en) * 2018-02-12 2021-01-05 苏州佳世达电通有限公司 Media synchronous playing method among multiple devices
CN110798715A (en) * 2019-11-18 2020-02-14 华强方特(深圳)软件有限公司 Video playing method and system based on image string

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716242A (en) * 2004-06-28 2006-01-04 千乡万才科技(中国)有限公司 Broadcasting method and system for computer multimedia files
CN101964842A (en) * 2010-09-13 2011-02-02 复旦大学 Mobile phone terminal-based self-organized video synchronous sharing player
CN102724196A (en) * 2012-06-21 2012-10-10 中兴通讯股份有限公司 Method and device for playing media resource data

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202568B (en) * 2006-12-14 2012-01-25 北京三星通信技术研究有限公司 Terminal and method for supporting combination playing
CN101159850B (en) * 2007-11-21 2010-10-27 华为软件技术有限公司 Method for realizing multi-terminal cooperative control of playing video data and playback control agent
KR101080114B1 (en) * 2009-12-31 2011-11-04 엠텍비젼 주식회사 Apparatus and method for controlling dual display device using RGB interface
CN102970589B (en) * 2012-11-26 2016-03-30 中国联合网络通信集团有限公司 The control method of multi-terminal-basedsynergetic synergetic media stream play and device
CN103065662A (en) * 2013-01-22 2013-04-24 中兴通讯股份有限公司 Method and system for continuous broadcasting of media resources in device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716242A (en) * 2004-06-28 2006-01-04 千乡万才科技(中国)有限公司 Broadcasting method and system for computer multimedia files
CN101964842A (en) * 2010-09-13 2011-02-02 复旦大学 Mobile phone terminal-based self-organized video synchronous sharing player
CN102724196A (en) * 2012-06-21 2012-10-10 中兴通讯股份有限公司 Method and device for playing media resource data

Also Published As

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

Similar Documents

Publication Publication Date Title
CN103220301B (en) A kind of media play controlling method and device thereof
US11606596B2 (en) Methods, systems, and media for synchronizing audio and video content on multiple media devices
KR101571338B1 (en) Method and apparatus for allowing plural media players to perform synchronized play of streaming content
EP2891315B1 (en) Audio forwarding device and corresponding method.
CN103839558B (en) Synchronous broadcast method and server, player
CN102170584B (en) Method, device and system for playing media between synchronic HS (HTTP (HyperText Transfer Protocol) Streaming) terminal equipment
WO2016145235A1 (en) Location based services audio system
US20180352286A1 (en) Media content synchronization
WO2013074212A2 (en) Coordinating media presentations among peer devices
EP2824871A1 (en) Network device for a home entertainment network
EP3750321B1 (en) Methods, systems, and media for synchronized media content playback on multiple devices
CN103118018B (en) A kind of media resource synchronous broadcast method based on DLNA and device
CN104751864A (en) A control method for multiplayer equipment, related equipment and system
CN105791922B (en) A kind of media play controlling method and its device
JP6116240B2 (en) Transmission device, transmission method, and program
CN114026640B (en) Method, system and medium for providing dynamic media sessions
CN102656893B (en) Time-shifting of live media stream
KR102166780B1 (en) Method of synchronisation during the processing, by a multimedia player, of an item of multimedia content transmitted by an mbms service
EE et al. Published

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
CP03 Change of name, title or address

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

Country or region after: China

Address before: 266100 No. 151, Zhuzhou Road, Laoshan District, Shandong, Qingdao

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Shandong City, Qingdao Province, Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Country or region after: China

Address before: Shandong City, Qingdao Province, Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address