CN103686253B - Device and method for controlling multiple terminals to cooperatively play media resources - Google Patents

Device and method for controlling multiple terminals to cooperatively play media resources Download PDF

Info

Publication number
CN103686253B
CN103686253B CN201310714919.2A CN201310714919A CN103686253B CN 103686253 B CN103686253 B CN 103686253B CN 201310714919 A CN201310714919 A CN 201310714919A CN 103686253 B CN103686253 B CN 103686253B
Authority
CN
China
Prior art keywords
terminal
terminal group
media resource
collaboration
play command
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
CN201310714919.2A
Other languages
Chinese (zh)
Other versions
CN103686253A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310714919.2A priority Critical patent/CN103686253B/en
Publication of CN103686253A publication Critical patent/CN103686253A/en
Application granted granted Critical
Publication of CN103686253B publication Critical patent/CN103686253B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

An embodiment of the invention provides a device and a method for controlling multiple terminals to cooperatively play media resources. The device comprises a position receiving module, a position computation module and a task triggering module, the position receiving module is used for receiving and storing position information transmitted by a terminal device, and the position information at least contains terminal identifications. The position computation module is used for performing area computation for the position information stored by the position receiving module to obtain a first terminal group belonging to the same area, the first terminal group at least comprises two terminals, and the task triggering module is used for selecting first media resources from a media resource library according to predefined rules and triggering the first terminal group to cooperatively play the first media resources. Resource waste of the terminals can be reduced, and user experience can be enhanced.

Description

The device and method of media resource is played in the collaboration of control multiple terminals
Technical field
The present embodiments relate to communication technical field, more particularly to a kind of control multiple terminals collaboration broadcasting media resource Device and method.
Background technology
With the development of medium technique, the broadcasting form of media content is also more and more diversified.At present, media playing apparatus All it is that media content is played to the people around the media playing apparatus using the multimedia function of itself.With media play dress As a example by putting broadcasting advertisement, concrete processing procedure is as follows:APP first in media playing apparatus is applied to application programming interface (Application Programming Interface, referred to as:API)Ad-request is initiated, media is carried in ad-request and is broadcast The IP address or GPS information of device are put, then api interface obtains the position of media playing apparatus according to the ad-request, and from Advertisement corresponding with the position is extracted in advertisement base and returns to media playing apparatus, last media playing apparatus are wide to what is received Announcement is played out.
Above-mentioned prior art is the position according to media playing apparatus selecting advertisement, when having many in same regional extent When advertisement is played in individual media playing apparatus request, multiple media playing apparatus in the same area can be caused to repeat playing same Advertisement, so as to cause the waste of media playing apparatus resource, plays form also uninteresting.
The content of the invention
The embodiment of the present invention provides the device and method that media resource is played in a kind of control multiple terminals collaboration, it is possible to decrease terminal The wasting of resources, strengthen Consumer's Experience.
In a first aspect, the embodiment of the present invention provides the device that media resource is played in a kind of control multiple terminals collaboration, including:
Position receiver module, the positional information sent for receiving terminal apparatus simultaneously stores the positional information, institute's rheme Confidence breath includes at least terminal iidentification;
Position computation module, for carrying out region calculating to the positional information that the position receiver module is stored, obtains To the first terminal group for belonging to the same area, 2 terminals are at least included in the first terminal group;
Task trigger module, for the first media resource to be selected from media source library according to predefined rule, triggering First media resource is played in the first terminal group collaboration.
In the first possible embodiment of first aspect, the position computation module is to the position receiver module The positional information of storage carries out region calculating, obtains belonging to the first terminal group of the same area, including:
Calculate the first distance between first terminal and second terminal:
If first distance judges that the first terminal belongs to same with second terminal less than the first threshold of setting Region, by the first terminal and second terminal second terminal group is constituted;
After terminal position in the second terminal group updates, the position of the terminal in the second terminal group is calculated Side-play amount is put, if the position offset of all terminals in the second terminal group is identical, judges second terminal group to belong to The first terminal group of the same area.
With reference to the first possible embodiment of first aspect or first aspect, second in first aspect is possible In embodiment, the task trigger module triggers the first terminal group collaboration and plays first media resource, including:
According to terminal number N in the duration shared by first media resource and the first terminal group, by described One media resource cutting is N parts;
Play command is sent respectively to the N number of terminal in the first terminal group, comprising described the in the play command The download address of one media resource, the time for playing beginning and playing duration, so that the N number of terminal in the first terminal group connects Receive and played out according to the play command after the play command.
With reference to the first possible embodiment of first aspect or first aspect, the third in first aspect is possible In embodiment, the task trigger module triggers the first terminal group collaboration and plays first media resource, including:
Select the first media resource described at least two terminal plays in the first terminal group;
Play command is sent to the terminal for selecting, the ground of the download comprising first media resource in the play command Location, so as to the terminal of the selection be received played out according to the play command after the play command.
Device with reference to any one of the third possible embodiment of first aspect to first aspect, first In 4th kind of possible embodiment of aspect, also include:
Task confirms module, for receiving the first terminal group in the confirmation that sends of terminal can perform on time it is described First confirmation message of play command;
The task confirms that module does not receive first confirmation that any terminal in the first terminal group sends After message, the task trigger module is additionally operable to first terminal group collaboration described in retriggered and plays first media resource.
With reference to the 4th kind of possible embodiment of first aspect, in the 5th kind of possible embodiment of first aspect In, the task confirms that the terminal that module is additionally operable to receive in the first terminal group has been performed after the play command for receiving The the second confirmation message sent.
Method with reference to any one of the 5th kind of possible embodiment of first aspect to first aspect, In 6th kind of possible embodiment of one side, the predefined rule includes:
Random selection, or, select in order, or, selected according to the positional information of the first terminal group.
Second aspect, the embodiment of the present invention provides a kind of terminal unit, including:
Processing module, the device timing for playing media resource to the collaboration of control multiple terminals sends positional information, described Positional information includes at least terminal iidentification, so that the device that media resource is played in control multiple terminals collaboration receives and store institute Positional information is stated, and all positional informationes to storing carry out region calculating, after obtaining belonging to the first terminal group of the same area The first media resource is selected from media source library according to predefined rule, the first terminal group collaboration is triggered and is played described First media resource, at least includes 2 terminals in the first terminal group;
Receiver module, for receiving the control multiple terminals collaboration play command that the device of media resource sends is played;
The processing module is additionally operable to be played out according to the play command.
In the first possible embodiment of second aspect, first media resource is included in the play command Download address, play the time and playing duration for starting, the processing module plays out according to the play command, wraps Include:
The first media money is downloaded according to the download address of first media resource included in the play command Source;
The time and playing duration that broadcasting according to including in the play command starts plays first media resource.
With reference to second aspect, in second possible embodiment of second aspect, institute is included in the play command The download address of the first media resource is stated, the processing module is played out according to the play command, including:
Described first is downloaded and played according to the download address of first media resource included in the play command Media resource.
Terminal unit with reference to described in second possible any one of embodiment of second aspect to second aspect, In the third possible embodiment of two aspects, also include:
Sending module, for confirm can on time perform the play command that the receiver module is received after, to The device that media resource is played in the control multiple terminals collaboration sends first and confirms message.
With reference to the third possible embodiment of second aspect, in the third possible embodiment of second aspect In, the sending module is additionally operable to:
After the play command that the receiver module is received has been performed, to the control multiple terminals collaboration matchmaker is played The device of body resource sends second and confirms message.
The third aspect, the embodiment of the present invention provides a kind of method that media resource is played in control multiple terminals collaboration, including:
The positional information of receiving terminal apparatus transmission simultaneously stores the positional information, and the positional information includes at least terminal Mark;
The positional information to storing carries out region calculating, obtains belonging to the first terminal group of the same area, and described the At least include 2 terminals in one set of terminal;
The first media resource is selected from media source library according to predefined rule, the first terminal group collaboration is triggered Play first media resource.
In the first possible embodiment of the third aspect, the institute's rheme to position receiver module storage Confidence breath carries out region calculating, obtains belonging to the first terminal group of the same area, including:
Calculate the first distance between first terminal and second terminal:
If first distance judges that the first terminal belongs to same with second terminal less than the first threshold of setting Region, by the first terminal and second terminal second terminal group is constituted;
After terminal position in the second terminal group updates, the position of the terminal in the second terminal group is calculated Side-play amount is put, if the position offset of all terminals in the second terminal group is identical, judges second terminal group to belong to The first terminal group of the same area.
With reference to the first possible embodiment of the third aspect or the third aspect, second in the third aspect is possible It is described to trigger the first terminal group collaboration broadcasting first media resource in embodiment, including:
According to terminal number N in the duration shared by first media resource and the first terminal group, by described One media resource cutting is N parts;
Play command is sent respectively to the N number of terminal in the first terminal group, comprising described the in the play command The download address of one media resource, the time for playing beginning and playing duration, so that the N number of terminal in the first terminal group connects Receive and played out according to the play command after the play command.
With reference to the first possible embodiment of the third aspect or the third aspect, the third in the third aspect is possible It is described to trigger the first terminal group collaboration broadcasting first media resource in embodiment, including:
Select the first media resource described at least two terminal plays in the first terminal group;
Play command is sent to the terminal for selecting, the ground of the download comprising first media resource in the play command Location, so as to the terminal of the selection be received played out according to the play command after the play command.
With reference to arbitrary described method in the third possible embodiment of the third aspect to the third aspect, in third party In the 4th kind of possible embodiment in face, also include:
Receiving the confirmation that terminal in the first terminal group sends can on time perform the first true of the play command Recognize message;
After not receiving the first confirmation message that any terminal in the first terminal group sends, retriggered institute State the collaboration of first terminal group and play first media resource.
With reference to the 4th kind of possible embodiment of the third aspect, in the 5th kind of possible embodiment of the third aspect In, also include:
Receive the terminal in the first terminal group and perform the second confirmation message sent after the play command for receiving.
With reference to arbitrary described method in the 5th kind of possible embodiment of the third aspect to the third aspect, in third party In the 6th kind of possible embodiment in face, the predefined rule includes:
Random selection, or, select in order, or, selected according to the positional information of the first terminal group.
Fourth aspect, the embodiment of the present invention provides a kind of method that media resource is played in control multiple terminals collaboration, including:
The device timing for playing media resource to the collaboration of control multiple terminals sends positional information, and the positional information is at least wrapped Containing terminal iidentification, so that the device that media resource is played in control multiple terminals collaboration receives and stores the positional information, and All positional informationes to storing carry out region calculating, obtain belonging to after the first terminal group of the same area according to predefined rule The first media resource is then selected from media source library, the first terminal group collaboration is triggered and is played first media resource, At least include 2 terminals in the first terminal group;
Receive the control multiple terminals collaboration and play the play command that the device of media resource sends;
Played out according to the play command.
In the first possible embodiment of fourth aspect, first media resource is included in the play command Download address, play start time and playing duration, it is described to be played out according to the play command, including:
The first media money is downloaded according to the download address of first media resource included in the play command Source;
The time and playing duration that broadcasting according to including in the play command starts plays first media resource.
With reference to fourth aspect, in second possible embodiment of fourth aspect, institute is included in the play command The download address of the first media resource is stated, it is described to be played out according to the play command, including:
Described first is downloaded and played according to the download address of first media resource included in the play command Media resource.
Method with reference to any one of second possible embodiment of fourth aspect to fourth aspect, the 4th In the third possible embodiment of aspect, also include:
After confirming on time perform the play command that the receiver module is received, to the control multiple terminals Collaboration is played the device of media resource and sends the first confirmation message.
With reference to the third possible embodiment of fourth aspect, in the 4th kind of possible embodiment of fourth aspect In, also include:
After the play command that the receiver module is received has been performed, to the control multiple terminals collaboration matchmaker is played The device of body resource sends second and confirms message.
The device and method of media resource is played in control multiple terminals collaboration provided in an embodiment of the present invention, by terminal unit The device timing reporting position information of media resource is played to the collaboration of control multiple terminals, position receiver module receiving terminal apparatus are sent out The positional information that send and storage location information, then the positional information of multiple terminals of the position computation module to storing carry out region Calculate, obtain belonging to the first terminal group of the same area, last task trigger module is according to predefined rule from media resource The first media resource, the group collaboration of triggering first terminal is selected to play the first media resource, the end due to belonging to the same area in storehouse End equipment can cooperate with broadcasting media resource, therefore can reduce the wasting of resources of terminal, can also strengthen Consumer's Experience.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are these Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the structural representation of device embodiment one that media resource is played in present invention control multiple terminals collaboration;
Fig. 2 is the structural representation of terminal unit embodiment one of the present invention;
Fig. 3 is the flow chart of the embodiment of the method one that media resource is played in present invention control multiple terminals collaboration;
Fig. 4 is the flow chart of the embodiment of the method two that media resource is played in present invention control multiple terminals collaboration;
Fig. 5 is the interaction diagrams of the embodiment of the method three that media resource is played in present invention control multiple terminals collaboration.
Specific embodiment
To make purpose, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is The a part of embodiment of the present invention, rather than the embodiment of whole.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 is the structural representation of device embodiment one that media resource is played in present invention control multiple terminals collaboration, such as Fig. 1 institutes Show, the device of the present embodiment can include:Position receiver module 11, position computation module 12 and task trigger module 13, wherein, Position receiver module 11 is used for positional information and the storage location information that receiving terminal apparatus send, and positional information is including at least eventually End mark.Processing module timing is provided with terminal unit and reports the current location information of itself, positional information for example can be with It is GPS latitude and longitude information or WIFI medium educations(Medium Access Control, referred to as:MAC)Address or base station are believed Breath.Such as one complete positional information includes:Terminal iidentification, longitude, latitude and timestamp.
Position computation module 12 is used to carry out region calculating to the positional information of the storage of position receiver module 11, is belonged to The first terminal group of the same area, at least includes 2 terminals in first terminal group.The storage of position receiver module 11 is multiple ends The positional information that end reports, position computation module 12 carries out region calculating, is belonged to the positional information of multiple terminal to report The first terminal group of the same area, as a kind of enforceable mode, is specifically as follows:Calculate first terminal and second terminal it Between the first distance.If the first distance is less than the first threshold of setting, judge that first terminal belongs to same area with second terminal Domain, by first terminal and second terminal second terminal group is constituted.After terminal position in second terminal group updates, calculate The position offset of the terminal in second terminal group, if the position offset of all terminals in second terminal group is identical, sentences It is the first terminal group for belonging to the same area to determine second terminal group.Calculating is completed, and obtains belonging to the first terminal group of the same area Afterwards, so that it may which once collaboration is played for triggering.For example:So that A and B is two terminals as an example, the distance between A and B are calculated by formula D, formula is as follows:
D=R*Arccos (C) * ∏/180,
C=sin(MLatA)*sin(MLatB)*cos(MLonA-MLonB)+cos(MLatA)*cos(MLatB)。
Wherein, R is earth radius, and LonA and LatA is respectively the longitude and latitude of terminal A, and LatB and LonB is respectively eventually The longitude and latitude of end B, MLatA, MLatB, MLonA and MLonB are the value after longitude and latitude process, specifically, if On the basis of 0 degree of warp, then can just calculate the surface distance of point-to-point transmission according to the longitude and latitude of earth surface any two points (Here the error that earth surface landform is brought to calculating is ignored, only theoretic estimated value).If the longitude and latitude of terminal A is (LonA, LatA), the longitude and latitude of terminal B is (LonB, LatB), according to the benchmark of 0 degree of warp, east longitude degree of learning from else's experience on the occasion of (Longitude), west longitude degree of learning from else's experience negative value (- Longitude), north latitude takes 90- latitude values (90-Latitude), and south latitude takes 90+ Latitude value (90+Latitude), then two after above-mentioned process point be counted as (MLonA, MLatA) and (MLonB, MLatB).If through calculating, e.g., less than 10 meters of the distance between A and B D, then by A and B one set of terminal of composition, second After putting renewal, the side-play amount of A and B is calculated, if A is identical with the side-play amount of B, confirm that A and B belongs to same set of terminal, triggering one Secondary collaboration is played.
Task trigger module 13 is used to that the first media resource to be selected from media source library according to predefined rule, triggers The first media resource is played in the collaboration of first terminal group.Wherein, media source library can be provided in controlling multiple terminals collaboration broadcasting On the device of media resource, the device of the control multiple terminals collaboration broadcasting media resource of this enforcement can be provided in possessing interconnection The server on equipment or software module that net is accessed.Predefined rule can be randomly choosed or select in order, or Person, selects according to the positional information of first terminal group.For example:Near current location, there is McDonald's jingle.In voice bank The song in face can attach longitude and latitude attribute, be formed by configuration during logging data.The geometry that can be constituted with computing terminal group Center position information, such as calculate the longitude and latitude of the triangle center point of A, B, C, using central point latitude and longitude information in media Song is retrieved in resources bank.Or the region that the geometry that can be constituted with computing terminal group is covered, judge media source library Whether the longitude and latitude of middle song is in geometry region.The mode retrieved from media source library using positional information is a lot, Known information retrieval method is may be referred to, be will not enumerate herein.
The first media resource is played in the triggering first terminal group collaboration of task trigger module 13, used as a kind of enforceable side Formula, can be specifically:According to terminal number N in the duration shared by the first media resource and first terminal group, by the first media Resource cutting is N parts.Play command is sent respectively to the N number of terminal in first terminal group, and the first media are included in play command The download address of resource, the time for playing beginning and playing duration, so that the N number of terminal in first terminal group receives broadcasting life Played out according to play command after order.
As another kind of enforceable mode, can be specifically:Select at least two terminal plays in first terminal group First media resource.Play command is sent to the terminal for selecting, the download address comprising the first media resource in play command, with The terminal for making selection received and played out according to play command after play command.
When receiving the terminal check of play command and can perform play command on time, to the collaboration of control multiple terminals matchmaker is played The device of body resource sends first and confirms message, and the device of now this enforcement also includes:Task confirms module, for receiving first The confirmation that terminal in set of terminal sends can on time perform the first confirmation message of play command.Task confirms that module is not received After the first confirmation message sent to any terminal in first terminal group, task trigger module 13 is additionally operable to retriggered first The first media resource is played in set of terminal collaboration.Retriggered also has the enforceable mode of above two, and implementation procedure is identical.
Further, task confirms that the terminal that module is additionally operable to receive in first terminal group has performed the broadcasting life for receiving The the second confirmation message sent after order.Terminal in first terminal group has been performed after play command, be to the collaboration of control multiple terminals The device for playing media resource sends the second confirmation message.The collaboration of control multiple terminals is played the device of media resource and finally to be recorded The situation that this collaboration is played.
The device of media resource is played in the control multiple terminals collaboration that the present embodiment is provided, how whole to controlling by terminal unit The device timing reporting position information of media resource, the position letter that position receiver module receiving terminal apparatus send are played in end collaboration Cease and storage location information, then the positional information of multiple terminals of the position computation module to storing carries out region calculating, obtains Belong to the first terminal group of the same area, last task trigger module selects according to predefined rule from media source library The first media resource is played in one media resource, triggering first terminal group collaboration, because the terminal unit for belonging to the same area can be assisted Same broadcasting media resource, therefore the wasting of resources of terminal can be reduced, can also strengthen Consumer's Experience.
Fig. 2 is the structural representation of terminal unit embodiment one of the present invention, as shown in Fig. 2 the terminal unit of the present embodiment Can include:Processing module 21 and receiver module 22, wherein, processing module 21 is used to play media money to the collaboration of control multiple terminals The device timing in source sends positional information, so that the collaboration of control multiple terminals is played the device of media resource and received and storage location letter Breath, and all positional informationes to storing carry out region calculating, obtains belonging to after the first terminal group of the same area according to predetermined The rule of justice selects the first media resource, the group collaboration of triggering first terminal to play the first media resource from media source library, the At least include 2 terminals in one set of terminal.The timing of processing module 21 in terminal unit reports the current location information of itself, position Confidence breath for example can be GPS latitude and longitude information or WIFI MAC Address or base station information.Such as one complete positional information Including:Terminal iidentification, longitude, latitude and timestamp.
Receiver module 22 is used to receive the play command that the device of control multiple terminals collaboration broadcasting media resource sends.Process Module 21 is additionally operable to be played out according to play command.
Used as a kind of enforceable mode, the download address comprising the first media resource, broadcasting in play command starts Time and playing duration, processing module 21 is played out according to play command, including:
First media resource is downloaded according to the download address of the first media resource included in play command.
The time and playing duration that broadcasting according to including in play command starts plays the first media resource.
As another kind of enforceable mode, the download address comprising the first media resource, processing module in play command Played out according to play command, including:
The first media resource is downloaded and played according to the download address of the first media resource included in play command.
Further, the terminal unit of the present embodiment also includes:Sending module, for confirming on time perform reception After the play command that module is received, the device for playing media resource to the collaboration of control multiple terminals sends first and confirms message.
Further, sending module is additionally operable to:It is how whole to controlling after the play command that receiver module is received has been performed End collaboration is played the device of media resource and sends the second confirmation message.
The terminal unit that the present embodiment is provided, by processing module the device of media resource is played to the collaboration of control multiple terminals Timing reporting position information so that the position letter that the device receiving terminal apparatus of media resource send is played in the collaboration of control multiple terminals Breath and storage location information, then carry out region calculating to the positional information of multiple terminals of storage, obtain belonging to the same area First terminal group, finally select the first media resource from media source library according to predefined rule, trigger first terminal The first media resource is played in group collaboration.Processing module plays media resource according to the play command that receiver module is received.Due to Belonging to the terminal unit of the same area can cooperate with broadcasting media resource, therefore can reduce the wasting of resources of terminal, can also strengthen use Experience at family.
The system that media resource is played in control multiple terminals collaboration provided in an embodiment of the present invention, including the control shown in Fig. 1 The terminal unit shown in the device and Fig. 2 of media resource is played in multiple terminals collaboration.
Fig. 3 is that the present invention controls the flow chart that the embodiment of the method one of media resource is played in multiple terminals collaboration, the present embodiment Illustrated as a example by executive agent using the device for controlling multiple terminals collaboration broadcasting media resource, as shown in figure 3, the present embodiment Method can include:
S101, the positional information of receiving terminal apparatus transmission and storage location information, positional information includes at least terminal mark Know.
Specifically, terminal unit timing reports the current location information of itself, and positional information for example can be GPS longitudes and latitudes Degree information or WIFI MAC Address or base station information.Such as one complete positional information includes:Terminal iidentification, longitude, latitude And timestamp.
S102, the positional information to storing carry out region calculating, obtain belonging to the first terminal group of the same area, and first eventually At least include 2 terminals in the group of end.
Wherein, as a kind of enforceable mode, S102 is specifically as follows:
Calculate the first distance between first terminal and second terminal.If the first distance is less than the first threshold of setting, Judge that first terminal belongs to the same area with second terminal, first terminal and second terminal are constituted into second terminal group.Second After terminal position in set of terminal updates, the position offset of the terminal in second terminal group is calculated, if second terminal group In all terminals position offset it is identical, then judge second terminal group as the first terminal group of the same area is belonged to.Calculate Complete, after obtaining belonging to the first terminal group of the same area, so that it may which once collaboration is played for triggering.For example:With A and B as two ends As a example by end, the distance between A and B D is calculated by formula, formula is as follows:
D=R*Arccos (C) * ∏/180,
C=sin(MLatA)*sin(MLatB)*cos(MLonA-MLonB)+cos(MLatA)*cos(MLatB)。
Wherein, R is earth radius, and LonA and LatA is respectively the longitude and latitude of terminal A, and LatB and LonB is respectively eventually The longitude and latitude of end B, MLatA, MLatB, MLonA and MLonB are the value after longitude and latitude process, specifically, if On the basis of 0 degree of warp, then can just calculate the surface distance of point-to-point transmission according to the longitude and latitude of earth surface any two points (Here the error that earth surface landform is brought to calculating is ignored, only theoretic estimated value).If the longitude and latitude of terminal A is (LonA, LatA), the longitude and latitude of terminal B is (LonB, LatB), according to the benchmark of 0 degree of warp, east longitude degree of learning from else's experience on the occasion of (Longitude), west longitude degree of learning from else's experience negative value (- Longitude), north latitude takes 90- latitude values (90-Latitude), and south latitude takes 90+ Latitude value (90+Latitude), then two after above-mentioned process point be counted as (MLonA, MLatA) and (MLonB, MLatB).If through calculating, e.g., less than 10 meters of the distance between A and B D, then by A and B one set of terminal of composition, second After putting renewal, the side-play amount of A and B is calculated, if A is identical with the side-play amount of B, confirm that A and B belongs to same set of terminal, triggering one Secondary collaboration is played.
S103, the first media resource is selected from media source library according to predefined rule, triggering first terminal group association With the first media resource of broadcasting.
Wherein, media source library can be provided on the device of control multiple terminals collaboration broadcasting media resource.It is predefined Rule can be random selection or select in order, or, according to the positional information of first terminal group select.For example:When Near front position, there is McDonald's jingle.Song inside voice bank can attach longitude and latitude attribute, by during logging data Configuration is formed.The geometry center position information that can be constituted with computing terminal group, such as calculate the triangle center of A, B, C The longitude and latitude of point, using central point latitude and longitude information song is retrieved in media source library.Or can be constituted with computing terminal group The region that covered of geometry, judge the longitude and latitude of song in media source library whether in geometry region.Utilize The mode that positional information is retrieved from media source library is a lot, may be referred to known information retrieval method, herein no longer one by one Enumerate.
Used as a kind of enforceable mode, the first media resource is played in the group collaboration of triggering first terminal, specifically can be included:
According to terminal number N in the duration shared by the first media resource and first terminal group, the first media resource is cut It is divided into N parts.Play command is sent respectively to the N number of terminal in first terminal group, and the first media resource is included in play command Download address, the time for playing beginning and playing duration, so that the N number of terminal in first terminal group receives root after play command Play out according to play command.
Used as another kind of enforceable mode, the first media resource is played in the group collaboration of triggering first terminal, specifically can be wrapped Include:
Select at least two the first media resources of terminal plays in first terminal group.Send to the terminal for selecting and play life Order, the download address comprising the first media resource in play command, so that the terminal for selecting receives basis after play command and broadcasts Put order to play out.
When the terminal unit for receiving play command confirms that play command can be performed on time, broadcast to the collaboration of control multiple terminals The device for putting media resource sends the first confirmation message, and now the method for the present embodiment also includes:In receiving first terminal group The confirmation that terminal sends can on time perform the first confirmation message of play command.Task confirms that module does not receive first terminal After the first confirmation message that any terminal in group sends, the collaboration of retriggered first terminal group is also wanted to play the first media money Source.Retriggered also has the enforceable mode of above two, and implementation procedure is identical.
Further, the terminal in first terminal group has been performed after play command, to play matchmaker to the collaboration of control multiple terminals The device of body resource sends second and confirms message.The method of the present embodiment also includes:The terminal received in first terminal group is performed The the second confirmation message sent after the complete play command for receiving.The collaboration of control multiple terminals is played the device of media resource and is finally wanted Record the situation that this collaboration is played.
The method that media resource is played in the control multiple terminals collaboration that the present embodiment is provided, it is how whole to controlling by terminal unit The device timing reporting position information of media resource is played in end collaboration, and the collaboration of control multiple terminals plays the device of media resource first The positional information and storage location information of receiving terminal apparatus transmission, then carries out area to the positional information of multiple terminals of storage Domain calculates, and obtains belonging to the first terminal group of the same area, finally the is selected from media source library according to predefined rule The first media resource is played in one media resource, triggering first terminal group collaboration, because the terminal unit for belonging to the same area can be assisted Same broadcasting media resource, therefore the wasting of resources of terminal can be reduced, can also strengthen Consumer's Experience.
Fig. 4 is that the present invention controls the flow chart that the embodiment of the method two of media resource is played in multiple terminals collaboration, the present embodiment Illustrate as a example by using terminal unit as executive agent, as shown in figure 4, the method for the present embodiment can include:
S201, the device timing transmission positional information that media resource is played to the collaboration of control multiple terminals, positional information is at least Comprising terminal iidentification, so that the device that media resource is played in the collaboration of control multiple terminals is received and storage location information, and to storage All positional informationes carry out region calculating, obtain belonging to after the first terminal group of the same area according to predefined rule from matchmaker The first media resource, the group collaboration of triggering first terminal is selected to play the first media resource in body resources bank, in first terminal group extremely Include 2 terminals less.Terminal unit timing reports the current location information of itself, and positional information for example can be GPS longitudes and latitudes Information or WIFI MAC Address or base station information.Such as one complete positional information includes:Terminal iidentification, longitude, latitude and Timestamp.
S202, the play command for receiving the device transmission for controlling multiple terminals collaboration broadcasting media resource.
S203, played out according to play command.
Used as a kind of enforceable mode, the download address comprising the first media resource, broadcasting in play command starts Time and playing duration, S203 is played out according to play command, is specifically included:
First media resource is downloaded according to the download address of the first media resource included in play command.Order according to playing The time and playing duration that the broadcasting included in order starts plays the first media resource.
As another kind of enforceable mode, the download address comprising the first media resource in play command, S203 according to Play command is played out, and is specifically included:
The first media resource is downloaded and played according to the download address of the first media resource included in play command.
Further, the terminal unit of the present embodiment is also wrapped after confirming on time perform the play command for receiving Include:The device for playing media resource to the collaboration of control multiple terminals sends first and confirms message.
Further, the terminal unit of the present embodiment also includes after the play command that receiver module is received has been performed: The device for playing media resource to the collaboration of control multiple terminals sends second and confirms message.
The method that media resource is played in the control multiple terminals collaboration that the present embodiment is provided, it is how whole to controlling by terminal unit The device timing reporting position information of media resource is played in end collaboration so that the device of media resource is played in the collaboration of control multiple terminals The positional information and storage location information of receiving terminal apparatus transmission, then carries out area to the positional information of multiple terminals of storage Domain calculates, and obtains belonging to the first terminal group of the same area, finally the is selected from media source library according to predefined rule The first media resource is played in one media resource, triggering first terminal group collaboration.Last terminal unit is received according to receiver module Play command play the first media resource.Because the terminal unit for belonging to the same area can cooperate with broadcasting media resource, therefore The wasting of resources of terminal can be reduced, can also strengthen Consumer's Experience.
Describe the control multiple terminals collaboration shown in Fig. 3 and Fig. 4 in detail using a specific embodiment below and play media The method of resource.
Fig. 5 is that the present invention controls the interaction diagrams that the embodiment of the method three of media resource is played in multiple terminals collaboration, such as Fig. 5 It is shown, in the present embodiment with terminal as A, B, C and E4, the device for control multiple terminals collaboration broadcasting media resource is for server Example, the method for the present embodiment includes:
S301, terminal A, B, C and E send positional information to server timing respectively, and positional information for example includes:Terminal mark Knowledge, longitude, latitude and timestamp.As shown in following table one:
Table one
Terminal iidentification Longitude Latitude Timestamp
A 39.860012 116.425620 20130831170000
B 39.860023 116.425625 20130831170000
C 39.860033 116.425639 20130831170000
E 38.101 110.101 20130831170000
S302, server receive and store the positional information that each terminal sends, and the positional information to storing carries out region Calculate, obtain belonging to the set of terminal of the same area.
First, by taking A and B as an example, the distance between A and B D is calculated by formula, formula is as follows:
D=R*Arccos (C) * ∏/180,
C=sin(MLatA)*sin(MLatB)*cos(MLonA-MLonB)+cos(MLatA)*cos(MLatB)。
Wherein, R is earth radius, and LonA and LatA is respectively the longitude and latitude of terminal A, and LatB and LonB is respectively eventually The longitude and latitude of end B, MLatA, MLatB, MLonA and MLonB are the value after longitude and latitude process, specifically, if On the basis of 0 degree of warp, then can just calculate the surface distance of point-to-point transmission according to the longitude and latitude of earth surface any two points (Here the error that earth surface landform is brought to calculating is ignored, only theoretic estimated value).If the longitude and latitude of terminal A is (LonA, LatA), the longitude and latitude of terminal B is (LonB, LatB), according to the benchmark of 0 degree of warp, east longitude degree of learning from else's experience on the occasion of (Longitude), west longitude degree of learning from else's experience negative value (- Longitude), north latitude takes 90- latitude values (90-Latitude), and south latitude takes 90+ Latitude value (90+Latitude), then two after above-mentioned process point be counted as (MLonA, MLatA) and (MLonB, MLatB)。
R with D units are identical, if using 6371.004 kms as radius, then it is unit that D is exactly km, is passed through Formula is calculated, and finds the first threshold of the distance between A and B less than setting, such as 10 meters, it is possible to determine that A and B is to be in close on Position.Equally, the distance of A and C, the distance of B and C is again smaller than threshold value, it is possible to determine that A, B and C are in adjacent locations.Continue to calculate After the distance of E and A, B and C, find E with(A or B or C)Distance more than the threshold value of setting, judge that E and A, B, C are not closing on position Put.Therefore, A, B and C constitute a set of terminal.
After second location updating, as shown in following table two:
Table two
Termination ID Longitude Latitude Timestamp
A 39.860012 116.425625 20130831170010
B 39.860023 116.425630 20130831170010
C 39.860033 116.425644 20130831170010
E 38.111 110.122 20130831170010
In order to reduce amount of calculation, the side-play amount of A, B and C can be calculated, calculate A, B and C side-play amount by way of come Whether the position relationship for judging each terminal changes.Side-play amount calculating is carried out to 2 latitude and longitude coordinates of A terminals, longitude is found Skew 0, latitudinal offset 0.000005.Same calculating finds that the longitude and latitude side-play amount of B, C is identical with A, it is possible to determine that A, B and C after It is continuous to be in adjacent locations.It is thus identified that A, B and C belong to same set of terminal, can trigger once collaboration and play.
S303, server select the first media resource according to predefined rule from media source library.
Specifically, predefined rule can be randomly choosed or select in order, or, according to first terminal group Positional information is selected.
So that the first media resource is a song as an example, server reads song duration(Such as it is 30 seconds), during according to song Terminal number 3 in long and set of terminal, is 3 parts by the first media resource cutting.
The first media resource is played in S304, the above-mentioned set of terminal collaboration of triggering, sends play command to terminal A, B and C respectively, Comprising song download address, play start time, broadcasting fragment in play command, song download address is identical, terminal N The average playing durations of reproduction time+N* of reproduction time=first, the fragment that terminal N is played=(N+1)* playing duration.For example, terminal The message sample that A, B and C are received is respectively:
Wherein,<TerminalID>It is terminal iidentification,<TaskID>It is playing task mark,<starttime>It is to play Time started,<voiceURL>It is the download address for playing content.
S305, each terminal receive play command, are played out according to play command.
Download address of each terminal in play command<voiceURL>Song is downloaded, successfully backward server is downloaded Transmission can on time perform the confirmation message of the play command for receiving.Message sample is:
<TerminalID>A</TerminalID>
<TaskID>201308310012</TaskID>
<Accept>1</Accept>
Wherein,<TerminalID>It is terminal iidentification,<TaskID>It is task identification,<Accept>Indicate whether to receive to appoint Business, such as when value is 1, expression receives an assignment;When value is 0, expression does not receive task.
The play start time that the terminal of play command is issued according to server can be performed<starttime>, arrange fixed When task, arrived reproduction time, start playing task, commence play out.
S306, finish, each terminal to server sends and confirms message.
S307, this collaboration playing flow are completed.Server record this collaboration broadcasting situation.
The method that media resource is played in control multiple terminals collaboration provided in an embodiment of the present invention can also use near-field communication On, specifically voluntarily consulted to several terminals by the terminal of the same area, position information together is then reported to server, Server is not needed to carry out position calculation.Method for example includes:
First, by near-field communication, to external broadcasting, one includes the broadcast that collaboration is asked to terminal A.Near-field communication side Formula can be using NFC, zegbee, bluetooth and WIFI etc..Radio Broadcasting Agreementss can be self-defined by terminal, and collaboration request includes task Mark or terminal iidentification or ID.
2nd, other-end such as terminal B, C is received after broadcast, after terminal B, C confirms to participate in, equally using broadcast mode Send and participate in message.Participating in message includes:Task identification or client identification or ID.
3rd, terminal A receives in the given time the participation message of terminal B, C, and to server collaboration playing task is sent Request, carries task identification or terminal iidentification or ID in request.The scheduled time by terminal profile, for example:10 seconds.
4th, terminal B, C is equally received after participation response, and to server requesting cooperative playing task is sent, and carries task Mark or terminal bidding documents or ID.
5th, server receives in the given time 3 collaboration playing requests, according to task identification, matches as an association Same playing task, it is determined that there is 3 terminals to participate in, server selects a song, starts collaboration and plays.Collaboration playing process with it is front State scheme identical, here is omitted.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to Cross the related hardware of programmed instruction to complete.Aforesaid program can be stored in a computer read/write memory medium.The journey Sequence upon execution, performs the step of including above-mentioned each method embodiment;And aforesaid storage medium includes:ROM, RAM, magnetic disc or Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above only to illustrate technical scheme, rather than a limitation;To the greatest extent Pipe has been described in detail with reference to foregoing embodiments to the present invention, it will be understood by those within the art that:Its according to So the technical scheme described in foregoing embodiments can be modified, either which part or all technical characteristic are entered Row equivalent;And these modifications or replacement, do not make the essence disengaging various embodiments of the present invention technology of appropriate technical solution The scope of scheme.

Claims (10)

1. the device of media resource is played in a kind of control multiple terminals collaboration, it is characterised in that included:
Position receiver module, the positional information sent for receiving terminal apparatus simultaneously stores the positional information, the position letter Breath includes at least terminal iidentification;
Position computation module, for carrying out region calculating to the positional information that the position receiver module is stored, is belonged to At least include 2 terminals in the first terminal group of the same area, the first terminal group;
Task trigger module, for the first media resource to be selected from media source library according to predefined rule, triggering is described First media resource is played in the collaboration of first terminal group;
The task trigger module triggers the first terminal group collaboration and plays first media resource, including:
According to terminal number N in the duration shared by first media resource and the first terminal group, by first matchmaker The cutting of body resource is N parts;
Play command is sent respectively to the N number of terminal in the first terminal group, and first matchmaker is included in the play command The download address of body resource, the time for playing beginning and playing duration, so that the N number of terminal in the first terminal group is received Played out according to the play command after the play command.
2. device according to claim 1, it is characterised in that the position computation module is deposited to the position receiver module The positional information of storage carries out region calculating, obtains belonging to the first terminal group of the same area, including:
Calculate the first distance between first terminal and second terminal:
If first distance judges that the first terminal belongs to same area with second terminal less than the first threshold of setting Domain, by the first terminal and second terminal second terminal group is constituted;
After terminal position in the second terminal group updates, the position of the terminal in the calculating second terminal group is inclined Shifting amount, if the position offset of all terminals in the second terminal group is identical, judges second terminal group to belong to same The first terminal group in region.
3. device according to claim 1 and 2, it is characterised in that also include:
Task confirm module, for receiving the first terminal group in terminal send confirmation can on time perform the broadcasting First confirmation message of order;
The task confirms that module does not receive the first confirmation message that any terminal in the first terminal group sends Afterwards, the task trigger module is additionally operable to first terminal group collaboration described in retriggered and plays first media resource.
4. device according to claim 3, it is characterised in that the task confirms that module is additionally operable to receive described first eventually Terminal in the group of end has performed the second confirmation message sent after the play command for receiving.
5. device according to claim 1, it is characterised in that the predefined rule includes:
Random selection, or, select in order, or, selected according to the positional information of the first terminal group.
6. a kind of method that media resource is played in control multiple terminals collaboration, it is characterised in that include:
The positional information of receiving terminal apparatus transmission simultaneously stores the positional information, and the positional information includes at least terminal mark Know;
The positional information to storing carries out region calculating, obtains belonging to the first terminal group of the same area, and described first eventually At least include 2 terminals in the group of end;
The first media resource is selected from media source library according to predefined rule, the first terminal group collaboration is triggered and is played First media resource;
It is described to trigger the first terminal group collaboration broadcasting first media resource, including:
According to terminal number N in the duration shared by first media resource and the first terminal group, by first matchmaker The cutting of body resource is N parts;
Play command is sent respectively to the N number of terminal in the first terminal group, and first matchmaker is included in the play command The download address of body resource, the time for playing beginning and playing duration, so that the N number of terminal in the first terminal group is received Played out according to the play command after the play command.
7. method according to claim 6, it is characterised in that the positional information of described pair of storage carries out region meter Calculate, obtain belonging to the first terminal group of the same area, including:
Calculate the first distance between first terminal and second terminal:
If first distance judges that the first terminal belongs to same area with second terminal less than the first threshold of setting Domain, by the first terminal and second terminal second terminal group is constituted;
After terminal position in the second terminal group updates, the position of the terminal in the calculating second terminal group is inclined Shifting amount, if the position offset of all terminals in the second terminal group is identical, judges second terminal group to belong to same The first terminal group in region.
8. the method according to claim 6 or 7, it is characterised in that also include:
Receive confirmations that terminal in the first terminal group sends and can on time perform the first of the play command and confirm to disappear Breath;
Do not receive that any terminal in the first terminal group sends described first confirmed after message, the described in retriggered First media resource is played in the collaboration of one set of terminal.
9. method according to claim 8, it is characterised in that also include:
Receive the terminal in the first terminal group and perform the second confirmation message sent after the play command for receiving.
10. method according to claim 6, it is characterised in that the predefined rule includes:
Random selection, or, select in order, or, selected according to the positional information of the first terminal group.
CN201310714919.2A 2013-12-20 2013-12-20 Device and method for controlling multiple terminals to cooperatively play media resources Active CN103686253B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310714919.2A CN103686253B (en) 2013-12-20 2013-12-20 Device and method for controlling multiple terminals to cooperatively play media resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310714919.2A CN103686253B (en) 2013-12-20 2013-12-20 Device and method for controlling multiple terminals to cooperatively play media resources

Publications (2)

Publication Number Publication Date
CN103686253A CN103686253A (en) 2014-03-26
CN103686253B true CN103686253B (en) 2017-05-10

Family

ID=50322330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310714919.2A Active CN103686253B (en) 2013-12-20 2013-12-20 Device and method for controlling multiple terminals to cooperatively play media resources

Country Status (1)

Country Link
CN (1) CN103686253B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107257502A (en) * 2017-07-27 2017-10-17 四川长虹电器股份有限公司 A kind of terminal dynamic picture video mix resources circulation player method
CN108429562B (en) * 2018-03-16 2020-03-06 英华达(上海)科技有限公司 Multimedia equipment playing control method and multimedia system
CN113727272B (en) * 2021-07-26 2024-04-19 和美(深圳)信息技术股份有限公司 Distributed intelligent interaction method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662724A (en) * 2004-06-16 2010-03-03 Lg电子株式会社 Broadcast/multicast service method based on user location information
CN102195733A (en) * 2011-04-26 2011-09-21 北京维普恩科技有限公司 Intelligent information playing system
CN102204219A (en) * 2011-04-19 2011-09-28 华为技术有限公司 Method, apparatus and system for switching and playing a video
CN102970318A (en) * 2011-07-26 2013-03-13 索尼公司 Information processing device, information processing method and program
CN103065658A (en) * 2012-12-18 2013-04-24 华为技术有限公司 Control method and device of multi-terminal synchronized playing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7263086B2 (en) * 2002-11-12 2007-08-28 Nokia Corporation Method and system for providing location-based services in multiple coverage area environments

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662724A (en) * 2004-06-16 2010-03-03 Lg电子株式会社 Broadcast/multicast service method based on user location information
CN102204219A (en) * 2011-04-19 2011-09-28 华为技术有限公司 Method, apparatus and system for switching and playing a video
CN102195733A (en) * 2011-04-26 2011-09-21 北京维普恩科技有限公司 Intelligent information playing system
CN102970318A (en) * 2011-07-26 2013-03-13 索尼公司 Information processing device, information processing method and program
CN103065658A (en) * 2012-12-18 2013-04-24 华为技术有限公司 Control method and device of multi-terminal synchronized playing

Also Published As

Publication number Publication date
CN103686253A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
US20150289091A1 (en) Method and device for pushing information
US8571572B2 (en) System and method for providing friend&#39;s location information
CN103065658B (en) Control method and device of multi-terminal synchronized playing
US9271115B2 (en) Method and system for providing a social music service using an LBS, and recording medium for recording a program for executing the method
CN105873049B (en) A kind of method, equipment, system and storage medium for being used to share WAP
CN103686253B (en) Device and method for controlling multiple terminals to cooperatively play media resources
CN109084795B (en) Method and device for searching service facilities based on map service
CN107560617A (en) A kind of air navigation aid based on advertisement machine, storage medium and advertisement machine
CN109688438A (en) A kind of advertisement broadcast method and equipment
CN105873177A (en) Method and equipment for obtaining access information of shared wireless access point
CN103281679A (en) Service information acquisition method and mobile terminal
CN107158700A (en) Organizing method and system of the online game based on positioning
CN106210163A (en) IP address-based localization method and device
CN107015988A (en) A kind of information matching method based on map and user-association for applying to special train
EP2669809A1 (en) Information processing system, method for controlling information processing system, program and information storage medium
CN107782329A (en) A kind of the determination method, apparatus and system of the voice that navigates
CN104936156A (en) Short message sending method and device
CN107018491A (en) The treating method and apparatus of position data
CN105657461A (en) Video playing prompting method and device and mobile terminal
CN104537522B (en) A kind of information processing method and electronic equipment
CN105992142B (en) A kind of business band of position indicating means, equipment and system
CN116380113A (en) Navigation broadcasting method and device and electronic equipment
CN102883266A (en) Area-based information release system
CN102946446B (en) A kind of data download method and positioning navigation terminal
CN104580411A (en) Multimedia file sharing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200211

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 210012 Ande Gate No. 94, Yuhuatai District, Jiangsu, Nanjing

Patentee before: Huawei Technologies Co.,Ltd.