Summary of the invention
For the defect existed in prior art, the object of the present invention is to provide and a kind ofly realize the method that in local network, between many devices, media are shared and controlled, object is exactly interactive media seamless between each media playing apparatus (comprising the device with media play function) in order to make user can have at it, realize that media are shared, the transfer of media push, media play, media play Long-distance Control etc., facilitate user to view and admire media.
For reaching above object, the technical scheme that the present invention takes is:
Realize the method that in local network, between many devices, media are shared and controlled, it is characterized in that, comprise the following steps:
Step 1, deploying client also sets controlled media apparatus and master control media apparatus: on each device, install client, and specifies this device to be controlled media apparatus or for master control media apparatus by this client, then device is connected into local network,
Step 2, the controlled media apparatus in master control media apparatus active inquiry local network, or controlled media apparatus active broadcast announcement master control media apparatus in the home network, make the two be found by the other side mutually, and complete matching operation,
Step 3, master control media apparatus controls gesture by protocol instructions or touch-screen, carries out that media are shared, media push, media play shift or media play remote control operation with controlled media apparatus;
The VLAN that described local network is local area network (LAN) or adopts VPN technologies to set up.
On the basis of technique scheme, the controlled media apparatus of master control media apparatus active inquiry, makes the two be found by the other side mutually, and completes matching operation, specifically comprise the following steps:
The active inquiry request that sends of the timing in local network of the client in master control media apparatus is to search the controlled media apparatus be in same local network, when controlled media apparatus receives this active inquiry request, by the client in controlled media apparatus, this request is resolved, and controlled media apparatus self information is returned to master control media apparatus by response message, described controlled media apparatus self information at least comprises: controlled media apparatus address information, controlled media apparatus device name, media play procedure path in controlled media apparatus, media store path in controlled media apparatus,
After master control media apparatus receives this response message, by the client in master control media apparatus, this response message is resolved, and controlled media apparatus self information is stored in this locality, then master control media apparatus sends proactive notification message to controlled media apparatus, in proactive notification message, the self information of master control media apparatus is returned to controlled media apparatus, described master control media apparatus self information at least comprises: master control media apparatus address information, master control media apparatus device name, media play procedure path in master control media apparatus, media store path in master control media apparatus,
Controlled media apparatus receives this proactive notification message, is resolved this response message by the client in controlled media apparatus, and master control media apparatus self information is stored in this locality.
On the basis of technique scheme, controlled media apparatus active broadcast notice master control media apparatus, makes the two be found by the other side mutually, and completes matching operation, specifically comprise the following steps:
Client in controlled media apparatus in local network timing send broadcast, and in this broadcast, carry controlled media apparatus self information, described controlled media apparatus self information at least comprises: media store path in media play procedure path, controlled media apparatus in controlled media apparatus address information, controlled media apparatus device name, controlled media apparatus
When master control media apparatus receives this broadcast, by the client in master control media apparatus, this broadcast is resolved, and controlled media apparatus self information is stored in this locality, then master control media apparatus sends the response message of this broadcast to controlled media apparatus, in the response message the self information of master control media apparatus is returned to controlled media apparatus, described master control media apparatus self information at least comprises: master control media apparatus address information, master control media apparatus device name, media play procedure path in master control media apparatus, media store path in master control media apparatus,
Controlled media apparatus receives this response message, is resolved this response message by the client in controlled media apparatus, and master control media apparatus self information is stored in this locality.
On the basis of technique scheme, the media described in step 3 are shared, media push or media play transfer concrete steps be:
Step 1, determines the source of media: master control media apparatus controls gesture using the media of its this locality or the current media the play source as media by protocol instructions or touch-screen,
Or: master control media apparatus controls gesture by protocol instructions or touch-screen, and active inquiry is stored in the media information on controlled media apparatus, and using the source of the media on controlled media apparatus as media,
Or: master control media apparatus obtains the reference address of the media on remote server or cloud server, then gesture is controlled using the source of this reference address as media by protocol instructions or touch-screen, described remote server or cloud server do not belong to this local network, but the equipment in local network has access to this server by the access mode net of spanning network and has access to the media stored in this server further
Or: master control media apparatus controls gesture by protocol instructions or touch-screen, and the current media play on the controlled media apparatus of active inquiry, using the source of the media play current on this controlled media apparatus as media;
Step 2, determines the transmission destination of media: the source of media is transferred to some controlled media apparatus of specifying from master control media apparatus, by the transmission destination of some controlled media apparatus of specifying as media,
Or: the source of media is transferred to from master control media apparatus the controlled media apparatus that two or more specifies, and the controlled media apparatus of specifying by two or more, as the transmission destination of media, comprises the transmission destination of whole controlled media apparatus as media,
Or: the source of media is transferred to another controlled media apparatus of specifying from controlled media apparatus, by the transmission destination of another controlled media apparatus of specifying as media,
Or: the source of media is transferred to from controlled media apparatus the controlled media apparatus that two or more specifies, the controlled media apparatus of specifying by two or more as the transmission destination of media,
Or: the source of media is transferred to master control media apparatus from controlled media apparatus; By the transmission destination of master control media apparatus as media,
Step 3, determines the transmission means in the source of media: all downloaded by the media corresponding to the source of media or be sent to the transmission destination of media, makes the media corresponding to the source of media become the local media of the transmission destination of media,
Or: by the media broadcast corresponding to the source of media in local network, the transmission destination of media receives this broadcast, and the source of media is considered as data source of stream media;
Step 4, the current broadcast information transmission process of media: when the current broadcast information of media exists, with the transmission in the source of media, simultaneously the current broadcast information of transmission medium is to transmission destination in the lump, or the current broadcast information of ignorance media will not be transmitted;
When the current broadcast information of media does not exist, without the need to the current broadcast information of transmission medium;
Step 5, the broadcasting of media: the device corresponding to the transmission destination of media, according to media play procedure path in device screen size, device, the media received in media store path in playing device, or the media that play stream media data source comprises, or the media that the reference address of media on remote server or cloud server comprises
When the transmission destination of media also receives the current broadcast information of media, or continue to play these media according to the current broadcast information of these media, or ignore the current broadcast information of these media, from the beginning play these media.
On the basis of technique scheme, the concrete steps of the media play Long-distance Control described in step 3 are:
Master control media apparatus controls gesture by protocol instructions or touch-screen, is transferred to by media play operational order on a certain controlled media apparatus of specifying,
After client in this controlled media apparatus of specifying parses media play operational order, be transmitted to the media play procedure in this controlled media apparatus of specifying, make media play procedure by the media play operational order action parsed,
Described media play operational order at least comprises: volume adjusting, and channel information input, channel switch, play, and suspends, and stops, F.F., rewind, browsing media file, media file search, upwards, downwards, confirms, cancels.
Of the present inventionly realize the method that in local network, between many devices, media are shared and controlled, utilize interconnecting of local network implement device, and furthermore achieved that three screens are interactive, media data can be carried out mutual between TV, computer, hand-held intelligent equipment, realize that media are shared, the transfer of media push, media play, media play Long-distance Control etc., conforming broadcasting is provided to experience, facilitate user to view and admire media, the Media of user a new generation is provided and shares experience (especially video view and admire new experience).
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail.
As shown in Figure 1, The present invention gives and realize the method that in local network, between many devices, media are shared and controlled, wherein:
The VLAN that described local network refers to local area network (LAN) or adopts VPN technologies to set up, comprising: family lan, ' Office LAN, remote lan etc.;
Described device refers to media playing apparatus, and carry out media and to share and multiple devices of controlling all are in same local network, comprise: audio-video-frequency broadcast output equipment terminal is (TV), computer, hand-held intelligent equipment such as, described audio-video-frequency broadcast output equipment terminal, computer, hand-held intelligent equipment are the device being exclusively used in media play that can be connected into local network, or for can be connected into local network and there is the device of media play function; Each device (media playing apparatus) is divided into controlled media apparatus and the large class of master control media apparatus two in use, shares so that carry out media and controls; Media apparatus is the abbreviation of media playing apparatus;
Described audio-video-frequency broadcast output equipment terminal includes but not limited to: Digital Television, TV set-top box (espespecially digital TV set-top box), high definition player,
Described computer includes but not limited to: desktop computer, notebook computer, net book, all-in-one,
Described hand-held intelligent equipment includes but not limited to: intelligent mobile communication equipment terminal (mobile phone of such as iphone, Android system, the mobile phone etc. of WM system), panel computer (such as ipad, the panel computer etc. of Android system), other has the palmtop device of embedded system (this embedded system possesses media play function);
Described media at least comprise audio frequency, video, picture, more particularly: the form of picture can be JPG, PNG, GIF, TIFF etc., the form of audio frequency can be LPCM, AAC, AC-3, ATRAC3Plus, MP3, WMA9 etc., and the form of video can be MPEG-1, MPEG-2, MPEG-4, AVC, WMV9, Http Living Stream (the motion video Streaming Media based on http) etc.
The object of the invention is to realize three screens interactive, described three screens refer to audio-video-frequency broadcast output equipment terminal screen (such as video screen), computer screen, hand-held intelligent device screen.Described interaction includes but not limited to that media are shared, the transfer of media push, media play, media play Long-distance Control etc.
Of the present inventionly realize the method that in local network, between many devices, media are shared and controlled, as shown in Figure 2, comprise the following steps:
Step 1, deploying client also sets controlled media apparatus and master control media apparatus: on each device, install client, and specifies this device to be controlled media apparatus or for master control media apparatus by this client, then device is connected into local network,
Described device is the media playing apparatus having media play function and can be connected in same local network;
Such as: each device is connected in same local network by wired (netting twine, ADSL) or wireless (WIFI, 2.4G) mode; Or directly connected one to one by infrared ray between two devices, be considered as this two table apparatus and form a local network; Or connect (being usually no more than 7, the restriction of Bluetooth technology itself) by bluetooth between some devices, be considered as forming a local network between these devices;
Step 2, the controlled media apparatus in master control media apparatus active inquiry local network, or controlled media apparatus active broadcast announcement master control media apparatus in the home network, make the two be found by the other side mutually, and complete matching operation,
Wherein:
A, the controlled media apparatus of master control media apparatus active inquiry, make the two be found by the other side mutually, and complete matching operation, specifically comprise the following steps:
Step 21, the active inquiry request that sends of the timing in local network of the client in master control media apparatus is to search the controlled media apparatus be in same local network, when controlled media apparatus receives this active inquiry request, by the client in controlled media apparatus, this request is resolved, and controlled media apparatus self information is returned to master control media apparatus by response message, described controlled media apparatus self information at least comprises: controlled media apparatus address information, controlled media apparatus device name, media play procedure path in controlled media apparatus, media store path in controlled media apparatus,
Step 22, after master control media apparatus receives this response message, by the client in master control media apparatus, this response message is resolved, and controlled media apparatus self information is stored in this locality, then master control media apparatus sends proactive notification message to controlled media apparatus, in proactive notification message, the self information of master control media apparatus is returned to controlled media apparatus, described master control media apparatus self information at least comprises: master control media apparatus address information, master control media apparatus device name, media play procedure path in master control media apparatus, media store path in master control media apparatus,
Step 23, controlled media apparatus receives this proactive notification message, is resolved this response message by the client in controlled media apparatus, and master control media apparatus self information is stored in this locality;
B, controlled media apparatus active broadcast notice master control media apparatus, makes the two be found by the other side mutually, and completes matching operation, specifically comprise the following steps:
Step 24, client in controlled media apparatus in local network timing send broadcast, and in this broadcast, carry controlled media apparatus self information, described controlled media apparatus self information at least comprises: media store path in media play procedure path, controlled media apparatus in controlled media apparatus address information, controlled media apparatus device name, controlled media apparatus
Step 25, when master control media apparatus receives this broadcast, by the client in master control media apparatus, this broadcast is resolved, and controlled media apparatus self information is stored in this locality, then master control media apparatus sends the response message of this broadcast to controlled media apparatus, in the response message the self information of master control media apparatus is returned to controlled media apparatus, described master control media apparatus self information at least comprises: master control media apparatus address information, master control media apparatus device name, media play procedure path in master control media apparatus, media store path in master control media apparatus,
Step 26, controlled media apparatus receives this response message, is resolved this response message by the client in controlled media apparatus, and master control media apparatus self information is stored in this locality;
Further, the active inquiry request that above-mentioned master control media apparatus sends and the broadcast that controlled media apparatus sends also can send by user is hand-operated forced on corresponding device, so as the discovery between real-time manual execution master control media apparatus, controlled media apparatus, pairing process;
Step 3, master control media apparatus controls gesture by protocol instructions or touch-screen, carries out that media are shared, media push, media play shift or media play remote control operation with controlled media apparatus.
The embody rule environment of step 3 is done following division by the present invention, processes accordingly according to different applied environments:
First divide by media delivery direction, have three classes:
1, master control media apparatus local media is transferred to controlled media apparatus,
2, controlled media apparatus local media is transferred to master control media apparatus or is transferred to other controlled media apparatus,
3, the media delivery on remote server or cloud server is to master control media apparatus or be transferred to controlled media apparatus,
Divide by media delivery destination address again, have three classes:
A, given transmission are to master control media apparatus or be transferred to controlled media apparatus,
B, master control media apparatus local media are broadcast to local network,
C, controlled media apparatus local media are broadcast to local network,
Divide by media play mode again, have two classes:
X, be transferred to the local or controlled media apparatus this locality of master control media apparatus after play again,
Y, directly to play on master control media apparatus or controlled media apparatus as data source, then by current broadcast information transfer whether, two classes can be divided into:
The current broadcast information of M, media transferring
The current broadcast information of N, not media transferring.
On the basis of technique scheme, the media described in step 3 are shared, media push or media play transfer concrete steps be:
Step 31, determines the source of media: master control media apparatus controls gesture using the media of its this locality or the current media the play source as media by protocol instructions or touch-screen,
Or: master control media apparatus controls gesture by protocol instructions or touch-screen, and active inquiry is stored in the media information on controlled media apparatus, and using the source of the media on controlled media apparatus as media,
Or: master control media apparatus obtains the reference address of the media on remote server or cloud server, then gesture is controlled using the source of this reference address as media by protocol instructions or touch-screen, described remote server or cloud server do not belong to this local network, but the equipment in local network has access to this server by the access mode net of spanning network and has access to the media stored in this server further
Or: master control media apparatus controls gesture by protocol instructions or touch-screen, and the current media play on the controlled media apparatus of active inquiry, using the source of the media play current on this controlled media apparatus as media;
Step 32, determines the transmission destination of media: the source of media is transferred to some controlled media apparatus of specifying from master control media apparatus, by the transmission destination of some controlled media apparatus of specifying as media,
Or: the source of media is transferred to from master control media apparatus the controlled media apparatus that two or more specifies, and the controlled media apparatus of specifying by two or more, as the transmission destination of media, comprises the transmission destination of whole controlled media apparatus as media,
Or: the source of media is transferred to another controlled media apparatus of specifying from controlled media apparatus, by the transmission destination of another controlled media apparatus of specifying as media,
Or: the source of media is transferred to from controlled media apparatus the controlled media apparatus that two or more specifies, the controlled media apparatus of specifying by two or more as the transmission destination of media,
Or: the source of media is transferred to master control media apparatus from controlled media apparatus; By the transmission destination of master control media apparatus as media,
Step 33, determines the transmission means in the source of media: all downloaded by the media corresponding to the source of media or be sent to the transmission destination of media, makes the media corresponding to the source of media become the local media of the transmission destination of media,
Or: by the media broadcast corresponding to the source of media in local network, the transmission destination of media receives this broadcast, and the source of media is considered as data source of stream media;
Step 34, the current broadcast information transmission process of media: when the current broadcast information of media exists, with the transmission in the source of media, simultaneously the current broadcast information of transmission medium is to transmission destination in the lump, or the current broadcast information of ignorance media will not be transmitted;
When the current broadcast information of media does not exist, without the need to the current broadcast information of transmission medium;
Step 35, the broadcasting of media: the device corresponding to the transmission destination of media, according to media play procedure path in device screen size, device, the media received in media store path in playing device, or the media that play stream media data source comprises, or the media that the reference address of media on remote server or cloud server comprises
When the transmission destination of media also receives the current broadcast information of media, or continue to play these media according to the current broadcast information of these media, or ignore the current broadcast information of these media, from the beginning play these media.
On the basis of technique scheme, the concrete steps of the media play Long-distance Control described in step 3 are:
Step 311, master control media apparatus controls gesture by protocol instructions or touch-screen, is transferred to by media play operational order on a certain controlled media apparatus of specifying,
Step 312, after the client in this controlled media apparatus of specifying parses media play operational order, is transmitted to the media play procedure in this controlled media apparatus of specifying, and makes media play procedure by the media play operational order action parsed,
Described media play operational order at least comprises: volume adjusting, and channel information input, channel switch, play, and suspends, and stops, F.F., rewind, browsing media file, media file search, upwards, downwards, confirms, cancels.
By media play Long-distance Control, can realize with the intelligent touch screen equipment such as mobile communication equipment terminals or panel computer, replace the non intelligent remote controller of audio-video-frequency broadcast output equipment terminal or audio-video-frequency broadcast output equipment terminal set top box, obtain and better manipulate experience, can be when needed, directly carry out that corresponding media are shared, media push, media play transfer operation, it is more convenient to use, and can provide the Media of user a new generation and share experience.
By the way, achieve media sharing between master control media apparatus and controlled media apparatus, the operation interface that media can transfer to controlled media apparatus by master control media apparatus continues the operations such as broadcasting, time-out, vice versa, or share on other apparatus for media playing be in same local network as data source.Realize media (espespecially video) to play continuing on differing devices, shift etc.
Such as: master control media apparatus and adopted touch-control touch-screen to control gesture to carry out alternately by between control media apparatus, control conversion column, channel, selection play content, broadcasting, F.F., rewind, download or offline cache etc., point to two drop-down, the content that controlled media apparatus is play can be pulled on master control media apparatus.Meanwhile, when master control media apparatus plays media content, control gesture with touch-screen, two finger pushes away or clicks the corresponding button and the media content of broadcasting can be forwarded on corresponding device and play.
Be below some embody rule examples:
Media share application example 1
Master control media apparatus controls gesture by protocol instructions or touch-screen, the current broadcast information of the media of this locality and these media is broadcast on controlled media apparatus all in local network, after the client of controlled media apparatus receives broadcast, first the current broadcast information of these media and these media is transferred to controlled media apparatus this locality, whether the user reresenting this controlled media apparatus plays these media, when user agrees to play, then on controlled media apparatus according to controlled media apparatus screen size, the current broadcast information of these media, media store path in controlled media apparatus, in controlled media apparatus, the broadcasting associative operation of media has been continued in media play procedure path, from the beginning these media are play, or continue to play these media according to the current broadcast information of these media.
Media share application example 2
Master control media apparatus controls gesture by protocol instructions or touch-screen, active inquiry is stored in the media information on controlled media apparatus, and control controlled media apparatus the current broadcast information of the media of its this locality and these media is broadcast in local network, after the client of other controlled media apparatus or the client of master control media apparatus receive broadcast, first the current broadcast information of these media and these media is transferred to controlled media apparatus or master control media apparatus this locality, whether the user reresenting this controlled media apparatus or master control media apparatus plays these media, when user agrees to play, then on controlled media apparatus according to controlled media apparatus screen size, the current broadcast information of these media, media store path in controlled media apparatus, in controlled media apparatus, the broadcasting associative operation of media has been continued in media play procedure path, from the beginning these media are play, or continue to play these media according to the current broadcast information of these media, or according to master control media apparatus screen size on master control media apparatus, the current broadcast information of these media, media store path in master control media apparatus, in master control media apparatus, the broadcasting associative operation of media has been continued in media play procedure path, from the beginning these media are play, or continue to play these media according to the current broadcast information of these media.
Media share application example 3
Master control media apparatus controls gesture by protocol instructions or touch-screen, the media of this locality are broadcast in local network as data source, after the client of each controlled media apparatus receives this new data source, the user of this controlled media apparatus is pointed out whether to play media in this data source, when user agrees to play, then the direct broadcasting associative operation performing media on controlled media apparatus according to media play procedure path in controlled media apparatus screen size, controlled media apparatus.
Media share application example 4
Master control media apparatus controls gesture by protocol instructions or touch-screen, active inquiry is stored in the media information on controlled media apparatus, and control the media that this specifies by controlled media apparatus and be broadcast in local network as data source, after the client of other controlled media apparatus or the client of master control media apparatus receive this new data source, the user of this controlled media apparatus or master control media apparatus is pointed out whether to play media in this data source, when user agrees to play, then direct on controlled media apparatus according to controlled media apparatus screen size, in controlled media apparatus, media play procedure path performs the broadcasting associative operation of media, or directly on master control media apparatus according to master control media apparatus screen size, in master control media apparatus, media play procedure path performs the broadcasting associative operation of media.
Media push application example 1
Master control media apparatus controls gesture by protocol instructions or touch-screen, by the media delivery of this locality on a certain controlled media apparatus of specifying, then, on this controlled media apparatus of specifying, the broadcasting associative operation of media has been continued according to media play procedure path in media store path, controlled media apparatus in controlled media apparatus screen size, controlled media apparatus.
Media push application example 2
Master control media apparatus controls gesture by protocol instructions or touch-screen, active inquiry is stored in the media information on controlled media apparatus, and control media that this specifies by controlled media apparatus as data source on a certain controlled media apparatus of specifying, the then direct broadcasting associative operation performing media on this controlled media apparatus of specifying according to media play procedure path in controlled media apparatus screen size, controlled media apparatus.
Media play transfer application example 1
Master control media apparatus controls gesture by protocol instructions or touch-screen, the current broadcast information of the media of this locality and these media is transferred on a certain controlled media apparatus of specifying, then on the controlled media apparatus of specifying, continued the broadcasting associative operation of media according to media play procedure path in media store path, controlled media apparatus in the current broadcast information of controlled media apparatus screen size, these media, controlled media apparatus, continued to play these media.
Media play transfer application example 2
Master control media apparatus controls gesture by protocol instructions or touch-screen, active inquiry is stored in the media information on controlled media apparatus, the media of specifying are transferred on master control media apparatus from controlled media apparatus, if these media of specifying are played on controlled media apparatus, the current broadcast information of the media of then simultaneously also this being specified is transferred on master control media apparatus, when the media of specifying are transferred to completely after on master control media apparatus from controlled media apparatus, master control media apparatus calls local media play procedure, from the beginning these media are play, or continue to play these media according to the current broadcast information of these media of specifying.
Media play remote control application example 1
Master control media apparatus obtains the reference address of the media on remote server or cloud server, then controlling gesture by protocol instructions or touch-screen transfers on controlled media apparatus some or all in local area network (LAN) by this reference address, described remote server or cloud server do not belong to this local network, but the equipment in local network also has access to the media stored in this server by wide-area network access further to this server.
The content be not described in detail in this specification belongs to the known prior art of professional and technical personnel in the field.