CN117156207A - Play control method, device, computer equipment and storage medium - Google Patents
Play control method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN117156207A CN117156207A CN202210572430.5A CN202210572430A CN117156207A CN 117156207 A CN117156207 A CN 117156207A CN 202210572430 A CN202210572430 A CN 202210572430A CN 117156207 A CN117156207 A CN 117156207A
- Authority
- CN
- China
- Prior art keywords
- terminal
- distance
- playing
- coordinate
- coordinate system
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 230000000694 effects Effects 0.000 claims abstract description 42
- 230000004044 response Effects 0.000 claims abstract description 10
- 230000005540 biological transmission Effects 0.000 claims description 29
- 230000008054 signal transmission Effects 0.000 description 13
- 238000012545 processing Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 8
- 230000006870 function Effects 0.000 description 6
- 238000001514 detection method Methods 0.000 description 5
- 238000005259 measurement Methods 0.000 description 5
- 238000004590 computer program Methods 0.000 description 4
- 241001442234 Cosa Species 0.000 description 3
- 101100221616 Halobacterium salinarum (strain ATCC 29341 / DSM 671 / R1) cosB gene Proteins 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 230000000977 initiatory effect Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000001815 facial effect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012905 input function Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44213—Monitoring of end-user related data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/422—Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
- H04N21/42204—User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/023—Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W64/00—Locating users or terminals or network equipment for network management purposes, e.g. mobility management
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Social Psychology (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Selective Calling Equipment (AREA)
Abstract
The embodiment of the application discloses a play control method, a play control device, computer equipment and a storage medium; the embodiment of the application is applied to the playing terminal, and the method comprises the following steps: measuring the first distance, the second distance, and the third distance by wireless signals in response to the positioning request; establishing a coordinate system according to the position of the playing terminal, and determining a first coordinate position and a second coordinate position according to the first distance, the second distance and the third distance; measuring a fourth distance and a fifth distance by wireless signals; determining a coordinate position of the portable terminal in a coordinate system according to the first distance, the fourth distance and the fifth distance; and controlling the playing effect of the playing terminal according to the coordinate position of the portable terminal in the coordinate system. In the embodiment of the application, a coordinate system is created through the distances among the playing terminal, the first terminal and the second terminal, and the playing effect of the playing terminal is controlled according to the coordinate position by determining the coordinate position of the portable terminal in the coordinate system.
Description
Technical Field
The present application relates to the field of computers, and in particular, to a play control method, apparatus, computer device, and storage medium.
Background
In recent years, with the development of playback technology, users can experience diversified playback contents and playback effects, such as different hues of video pictures, subtitle fonts in various formats, various types of video tracks, and the like, through playback terminals.
However, in the prior art, the user is often required to manually set the playing effect, for example, the volume of the output sound is adjusted by touching the volume button, and the adjustment method is complex.
Disclosure of Invention
The embodiment of the application provides a play control method, a play control device, computer equipment and a storage medium, which can control the play effect of a play terminal according to the position relation of a portable terminal and the play device, and has the advantages of simple adjustment method and improvement of user experience.
The embodiment of the application provides a play control method, which is applied to a play terminal and comprises the following steps: responding to a positioning request, measuring a first distance, a second distance and a third distance through wireless signals, wherein the first distance is the distance between the playing terminal and the first terminal, the second distance is the distance between the playing terminal and the second terminal, and the third distance is the distance between the first terminal and the second terminal; establishing a coordinate system according to the position of the playing terminal, and determining a first coordinate position and a second coordinate position according to the first distance, the second distance and the third distance, wherein the first coordinate position and the second coordinate position are the coordinate positions of the first terminal and the second terminal in the coordinate system respectively; measuring a fourth distance and a fifth distance through wireless signals, wherein the fourth distance is the distance between the playing terminal and the portable terminal, and the fifth distance is the distance between the first terminal and the portable terminal; determining a coordinate position of the portable terminal in the coordinate system according to the first distance, the fourth distance and the fifth distance; and controlling the playing effect of the playing terminal according to the coordinate position of the portable terminal in the coordinate system.
The embodiment of the application also provides a playing control device which is applied to the playing terminal, and the device comprises: the measuring unit is used for responding to a positioning request, measuring a first distance, a second distance and a third distance through wireless signals, wherein the first distance is the distance between the playing terminal and the first terminal, the second distance is the distance between the playing terminal and the second terminal, and the third distance is the distance between the first terminal and the second terminal; the positioning unit is used for establishing a coordinate system according to the position of the playing terminal, and determining a first coordinate position and a second coordinate position according to the first distance, the second distance and the third distance, wherein the first coordinate position and the second coordinate position are the coordinate positions of the first terminal and the second terminal in the coordinate system respectively; the measuring unit is further used for measuring a fourth distance and a fifth distance through wireless signals, wherein the fourth distance is the distance between the playing terminal and the portable terminal, and the fifth distance is the distance between the first terminal and the portable terminal; a positioning unit, configured to determine a coordinate position of the portable terminal in the coordinate system according to the first distance, the fourth distance, and the fifth distance; and the control unit is used for controlling the playing effect of the playing terminal according to the coordinate position of the portable terminal in the coordinate system.
The embodiment of the application also provides computer equipment, which comprises a memory, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to execute steps in any one of the play control methods provided in the embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium, which stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor to execute the steps in any play control method provided by the embodiment of the application.
The embodiment of the application can respond to a positioning request, and measure a first distance, a second distance and a third distance through wireless signals, wherein the first distance is the distance between the playing terminal and the first terminal, the second distance is the distance between the playing terminal and the second terminal, and the third distance is the distance between the first terminal and the second terminal; establishing a coordinate system according to the position of the playing terminal, and determining a first coordinate position and a second coordinate position according to the first distance, the second distance and the third distance, wherein the first coordinate position and the second coordinate position are the coordinate positions of the first terminal and the second terminal in the coordinate system respectively; measuring a fourth distance and a fifth distance through wireless signals, wherein the fourth distance is the distance between the playing terminal and the portable terminal, and the fifth distance is the distance between the first terminal and the portable terminal; determining a coordinate position of the portable terminal in the coordinate system according to the first distance, the fourth distance and the fifth distance; and controlling the playing effect of the playing terminal according to the coordinate position of the portable terminal in the coordinate system.
In the present application, a coordinate system may be created by distances among the playback terminal, the first terminal, and the second terminal, and a playback effect of the playback terminal may be controlled according to the coordinate position by determining the coordinate position of the portable terminal in the coordinate system. Because the user can carry the portable terminal, the playing effect can be automatically adjusted along with the moving position of the user, so that the user can carry the portable terminal to control the playing terminal in real time, the adjusting method is simple, and the user experience can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1a is a schematic view of a scenario of a play control method according to an embodiment of the present application;
fig. 1b is a schematic flow chart of a play control method according to an embodiment of the present application;
fig. 1c is a schematic diagram of wireless signal transmission between a playing terminal and a first terminal according to an embodiment of the present application;
Fig. 1d is a schematic diagram of wireless signal transmission between a first terminal and a second terminal according to an embodiment of the present application;
fig. 1e is a schematic diagram of determining a first positional relationship among a playing terminal, a first terminal and a second terminal according to an embodiment of the present application;
fig. 1f is a schematic diagram of establishing a coordinate system with a position of a playing terminal as an origin according to an embodiment of the present application;
fig. 1g is a schematic diagram of wireless signal transmission between a portable terminal, a playing terminal and a first terminal according to an embodiment of the present application;
fig. 1h is a schematic diagram of determining a coordinate position of a portable terminal in a coordinate system according to a first distance, a fourth distance, and a fifth distance according to an embodiment of the present application;
fig. 1i is a schematic diagram of determining a second positional relationship between a portable terminal and a playing terminal according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a play control device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
The embodiment of the application provides a play control method, a play control device, computer equipment and a storage medium.
The play control device may be integrated in an electronic device, which may be a terminal, a server, or other devices. The terminal can be a mobile phone, a tablet computer, an intelligent Bluetooth device, a notebook computer, a personal computer (Personal Computer, PC) or the like; the server may be a single server or a server cluster composed of a plurality of servers.
In some embodiments, the play control device may also be integrated in a plurality of electronic devices, for example, the play control device may be integrated in a plurality of servers, where the play control method of the present application is implemented by the plurality of servers.
In some embodiments, the server may also be implemented in the form of a terminal.
For example, referring to fig. 1a, the play control method is integrated in a play terminal, which may be a television, a first terminal may be a speaker 1, a second terminal may be a speaker 2, and a portable terminal may be a remote controller. The playing terminal can respond to the positioning request and measure a first distance, a second distance and a third distance through wireless signals, wherein the first distance is the distance between the playing terminal and the first terminal, the second distance is the distance between the playing terminal and the second terminal, and the third distance is the distance between the first terminal and the second terminal; establishing a coordinate system according to the position of the playing terminal, and determining a first coordinate position and a second coordinate position according to the first distance, the second distance and the third distance, wherein the first coordinate position and the second coordinate position are the coordinate positions of the first terminal and the second terminal in the coordinate system respectively; measuring a fourth distance and a fifth distance through wireless signals, wherein the fourth distance is the distance between the playing terminal and the portable terminal, and the fifth distance is the distance between the first terminal and the portable terminal; determining a coordinate position of the portable terminal in a coordinate system according to the first distance, the fourth distance and the fifth distance; and controlling the playing effect of the playing terminal according to the coordinate position of the portable terminal in the coordinate system.
The following will describe in detail. The numbers of the following examples are not intended to limit the preferred order of the examples.
In this embodiment, a play control method is provided and applied to a play terminal, as shown in fig. 1b, the specific flow of the play control method may be as follows:
110. the first distance, the second distance, and the third distance are measured by wireless signals in response to the positioning request.
The first distance is the distance between the playing terminal and the first terminal, the second distance is the distance between the playing terminal and the second terminal, and the third distance is the distance between the first terminal and the second terminal.
The playing terminal may be a terminal for playing multimedia content, and the playing terminal may be associated with at least one portable terminal, for example, if the playing terminal is a television, the portable terminal may be a remote controller for controlling the playing effect of the television. The first terminal and the second terminal may be preset terminals for assisting in determining positions of the playing terminal and the portable terminal, for example, the first terminal and the second terminal may be speakers.
The positioning request may be generated by the playing terminal according to a preset generation rule, for example, the positioning request is automatically generated according to a preset time interval; or may be generated by the portable terminal and transmitted to the playback terminal, for example, a positioning request may be generated on the portable terminal in response to a touch operation of the portable terminal by the user, and the request may be transmitted to the playback terminal by the portable terminal. For another example, the positioning request may carry an instruction for controlling the playing terminal to send a wireless signal to the first terminal and controlling the first terminal to send a wireless signal to the second terminal.
The wireless signal may include at least one of bluetooth, infrared, wiFi, zigBee, and the like. The transceiving time may be a transmission time of the same terminal transmitting the wireless signal to another terminal, and a time of the other terminal receiving the wireless signal. In order to facilitate the playing terminal to acquire all the receiving and transmitting time, after the control terminal receives or generates the positioning request, the control terminal may send a wireless signal to the first terminal or the second terminal in response to the positioning request, receive the wireless signal returned by the first terminal or the second terminal, and use the sending time of the sending wireless signal and the return time of the receiving and returning wireless signal as round trip time, where the round trip time represents the bidirectional transmission process of the signal on the same transmission path, so that the receiving and transmitting time of the wireless signal between the playing terminal and the first terminal or the second terminal can be represented by one half of the round trip time. Therefore, the playing terminal can directly determine the receiving and transmitting time according to the signal receiving and transmitting operation performed on the local terminal, and the processing efficiency is high.
The wireless signal can be transmitted among the playing terminal, the first terminal and the second terminal, the receiving and transmitting time of the wireless signal between any two terminals is recorded, and the difference value between the receiving and transmitting time of the wireless signal between any two terminals is calculated, so that the distance between any two terminals is obtained. For example, the time for the playing terminal to send the wireless signal to the first terminal is t1, the time for the playing terminal to receive the wireless signal returned by the first terminal is t2, and the sending time t1 can be obtained from the information carried by the returned wireless signal, so that the first distance between the playing terminal and the first terminal is = (t 2-t 1) ×v, and v is the propagation speed of the wireless signal. For example, as shown in FIG. 1a, a user may press a key on a remote control to trigger positioning, and since the remote control is typically on the user's hand when the user is using the remote control, positioning the remote control may be considered positioning the user.
In some embodiments, in order to enable the playing terminal to determine the first distance and the second distance, the playing terminal may send wireless signals to the first terminal and the second terminal respectively, so as to calculate the distance between the terminals according to the receiving and transmitting time of the wireless signals, so that the wireless signal transmission flow is simple, and the processing efficiency is high. Specifically, measuring the first distance, the second distance, and the third distance through the wireless signal in response to the positioning request may include:
responding to the positioning request, acquiring a first receiving and transmitting time of wireless signals transmitted between the playing terminal and the first terminal, and determining a first distance according to the first receiving and transmitting time;
acquiring a second receiving and transmitting time of the wireless signal transmitted between the playing terminal and the second terminal, and determining a second distance according to the second receiving and transmitting time;
and acquiring a third receiving and transmitting time of the wireless signal transmitted between the first terminal and the second terminal, and determining a third distance according to the third receiving and transmitting time.
For example, as shown in fig. 1c, after receiving a positioning request, a playing terminal (tv) may send a wireless signal to a first terminal in response to the positioning request, where the wireless signal carries a sending time t1, the first terminal (sound box L) immediately returns a return signal to the playing terminal after receiving the wireless signal, after receiving the return signal, the playing terminal may determine a receiving time t2 of the return signal, and may obtain the sending time t1 from information carried by the return signal, and calculate a first distance by (t 2-t 1)/2×v, where (t 2-t 1)/2 represents a first receiving and sending time. Similarly, the playing terminal may send a wireless signal to the second terminal in the same manner in response to the positioning request, obtain the sending time t3 and the receiving time t4, calculate the second distance by (t 4-t 3)/2×v, where (t 4-t 3)/2 represents the second sending and receiving time, and v is the propagation speed of the wireless signal. By carrying the sending time in the wireless signal, when the playing terminal receives the return signal, the sending time can be directly extracted from the signal, the processing efficiency is high, and the error is not easy to occur.
For example, after receiving the positioning request, the playing terminal may send an instruction to the first terminal, after receiving the instruction, the first terminal sends a wireless signal carrying a sending time t5 to the second terminal, after receiving the wireless signal, the second terminal immediately returns a return signal to the first terminal, after receiving the return signal, the first terminal may determine a receiving time t6 of the return signal, and may obtain the sending time t5 from information carried by the return signal, and the first terminal may send the sending time t5 and the receiving time t6 to the playing terminal, and the playing terminal calculates a third distance according to (t 6-t 5)/2×v, (t 6-t 5)/2 represents a third sending and receiving time, and v is a propagation speed of the wireless signal.
In some embodiments, the playing terminal is used as a starting point and an ending point of wireless signal transmission between the first terminal and the second terminal, so that the playing terminal can obtain the third transceiving time only by initiating a wireless signal transmission process once, the wireless signal transmission process can be simplified, and the processing efficiency is improved. Specifically, acquiring the transceiving time of the wireless signal transmitted between the first terminal and the second terminal, and determining the third distance may include:
Transmitting a first transmission signal to the first terminal so that the first terminal forwards the first transmission signal to the second terminal, and determining a first transmission time, wherein the first transmission time is the time when the playing terminal transmits the first transmission signal to the first terminal;
receiving a first return signal returned by the second terminal, and determining a first receiving time, wherein the first receiving time is the time for the playing terminal to receive the first return signal;
determining a third transceiving time according to the first transmitting time, the first receiving time, the first transceiving time and the second transceiving time;
and determining a third distance according to the third transceiving time.
For example, as shown in fig. 1d, after receiving a positioning request, a playing terminal (tv) may send a wireless signal carrying a sending time t7 to a first terminal (sound box L) in response to the positioning request, after receiving the wireless signal, the first terminal immediately forwards the wireless signal to a second terminal (sound box R), after receiving the wireless signal, the second terminal immediately returns a return signal to the playing terminal, after receiving the return signal, the playing terminal may determine a receiving time t8 of the return signal, may obtain the sending time t7 from information carried by the return signal, and subtract the time of the wireless signal transmission between the playing terminal and the first terminal and the second terminal by (t 8-t 7) - (t 2-t 1)/2- (t 4-t 3)/2, respectively, to obtain a third receiving and sending time of the signal transmission between the first terminal and the second terminal, so that a third distance, (t 8-t 7) - (t 2-t 1)/2- (t 4-t 3)/x v may be calculated, and the transmission speed of the wireless signal is the third receiving and sending speed of the wireless signal is obtained. When the wireless signals carry the initiation time, only the playing terminal initiates the transmission of the wireless signals, so that the initiated wireless signals uniformly carry the time information defined by the playing terminal, the consistency of the time information carried by a plurality of wireless signals is improved, and the accuracy of the time information is improved.
In some embodiments, in order to enable the playing terminal to quickly determine the transceiver terminal corresponding to the wireless signal, so as to improve the efficiency of calculating the distance between the received terminals, the wireless signal may further carry an identifier of the terminal to which the wireless signal is sent or a transmission path of the wireless signal, for example, if the wireless signal is sent to the first terminal by the playing terminal, the wireless signal may carry the identifier of the playing terminal, or may carry the transmission path of the wireless signal: play terminal-first terminal-play terminal.
120. And establishing a coordinate system according to the position of the playing terminal, and determining a first coordinate position and a second coordinate position according to the first distance, the second distance and the third distance.
The first coordinate position and the second coordinate position are coordinate positions of the first terminal and the second terminal in a coordinate system respectively.
Since the playback terminal, the first terminal, and the second terminal can be regarded as three points in space, the three points can be arranged in a straight line or a triangle. Since if the three points are arranged in a straight line, the relative positions of the three points can be determined according to the distances between the three points; if the three points are arranged in a triangle, the distance between the three points can be used as three side lengths of the triangle, and the inner angle of the triangle can be determined by the three side lengths and the cosine theorem so as to determine the relative position between the three points. Therefore, after the coordinate system is established according to the position of the playing terminal and the distances between the playing terminal, the first terminal and the second terminal are obtained, the relative positions of the playing terminal, the first terminal and the second terminal can be determined according to the first distance, the second distance and the third distance, so that the positions of the first terminal and the second terminal in the coordinate system can be determined according to the relative position relation. For example, a receiver for measuring the direction of a received signal may be provided at the first terminal or the second terminal, the receiver may have at least two antennas, the receiver may perform triangulation according to the arrival angles of signals received by the at least two antennas, and determine the direction according to the received wireless signal source, so that the position of the first terminal or the second terminal relative to the playing terminal may be obtained in combination with the direction of the signal measured by the first terminal or the second terminal and the first distance or the second distance. It should be noted that, in practical applications, the playing terminal is usually set at a fixed position and cannot move, so that the position of the playing terminal can be directly obtained according to the set position of the playing terminal, or the position of the playing terminal can be obtained through a positioning device set inside the playing terminal.
In some embodiments, the playback terminal and the first terminal and the second terminal may be disposed in relatively fixed positions, such as with the first terminal disposed in a 45 ° orientation on the left side of the playback terminal and the second terminal disposed in a 45 ° orientation on the right side of the playback terminal. Therefore, the positions of the first terminal and the second terminal relative to the playing terminal can be acquired according to the setting information, so that the positions of triangles arranged by the playing terminal, the first terminal and the second terminal in the coordinate system can be determined, and the coordinate positions of the playing terminal, the first terminal and the second terminal in the coordinate system can be obtained. For example, if the playing terminal is a television, the first terminal is a sound box R, and the second terminal is a sound box L, in order to avoid that the playing sound of the sound box is blocked by the television, the sound boxes are all positioned in front of the television or in a position parallel to the television, and the minimum value of an included angle formed by the television, the sound box R and the sound box L and taking the television as a vertex is 0.
In some embodiments, the positional relationship between the playing terminal and the first terminal and the second terminal may be determined first, so as to determine the coordinate positions of the first terminal and the second terminal in the coordinate system more quickly. Specifically, establishing a coordinate system according to the position of the playing terminal, and determining the first coordinate position and the second coordinate position according to the first distance, the second distance and the third distance may include:
determining a first position relationship among the playing terminal, the first terminal and the second terminal according to the first distance, the second distance and the third distance;
establishing a coordinate system according to the position of the playing terminal;
and determining a first coordinate position and a second coordinate position in the coordinate system according to the first position relation.
The first position relationship may include at least one of a relative position between the playing terminal and the first terminal, a relative position between the playing terminal and the second terminal, and a relative position between the first terminal and the second terminal, where the relative position may include a distance, an azimuth, an angle, and other parameters that can be used to describe the position relationship.
For example, after the first distance a, the second distance b, and the third distance c are obtained, as shown in fig. 1e, a triangle ABC may be provided in which ab=c, bc=a, ca=b, and the internal angles corresponding to a, b, and c are A, B, C, respectively, and then cosa= [ b 2 +c 2 -a 2 ]/(2bc),cosB=[a 2 +c 2 -b 2 ]/(2 ac) and cosc= [ a ] 2 +b 2 -c 2 ]The cosA, cosB, and cosC can be obtained, and the interior angle A, B, C can be obtained from the cosA, cosB, and cosC, so that the shape of the triangle formed by the playback terminal, the first terminal, and the second terminal can be determined. The triangle shape may be used as a first positional relationship, which may include a first distance a, a second distance b, a third distance c, and an interior angle A, B, C. After the coordinate system with the playing terminal as the origin is established and the first position relationship is obtained, the coordinate positions of the first terminal and the second terminal in the coordinate system can be determined according to the first distance a, the second distance b, the third distance c and the inner angle A, B, C. For example, the triangle may be parallel to a horizontal plane, a receiver for measuring the direction of the received signal may be provided at the first terminal, after the first distance a, the second distance b, the third distance c and the inner angle A, B, C are obtained, the direction of the signal determined by the first terminal receiver may be used as the direction that may be pointed by the playing terminal in the triangle and the side where the first terminal is located, whereby the position of the triangle in space may be determined according to the direction of the signal, after the coordinate system is established, the position of the triangle in space may be converted into the position in the coordinate system by coordinate conversion, whereby only one of the first terminal or the second terminal needs to be provided with the receiver for determining the direction of the wireless signal I.e. the positions of the first terminal and the second terminal in the coordinate system can be determined.
In some embodiments, determining the first coordinate position and the second coordinate position in the coordinate system according to the first positional relationship may include:
acquiring a signal source direction determined by a first terminal and a signal source direction determined by a second terminal;
determining a first initial coordinate position and a second initial coordinate position in a coordinate system according to the signal source direction determined by the first terminal and the signal source direction determined by the second terminal;
and according to the first position relation, adjusting the first initial coordinate position and the second initial coordinate position to respectively obtain the first coordinate position and the second coordinate position.
The signal source direction may refer to a direction of a signal source of a wireless signal received by a terminal relative to the terminal, and the signal source direction may be understood as a direction in which the signal source points to the terminal. The first initial coordinate may refer to determining an initial coordinate position of the first terminal in a coordinate system, and the second initial coordinate may refer to determining an initial coordinate position of the second terminal in the coordinate system.
For example, the first terminal and the second terminal may determine the directions of signal sources received by the first terminal and the second terminal respectively through the set receiver, determine the position of the first terminal relative to the playing terminal according to the directions of the signal sources determined by the first terminal and the first distance, determine the position of the second terminal relative to the playing terminal according to the directions of the signal sources determined by the second terminal and the second distance, and determine the initial coordinate position of the first terminal and the initial coordinate position of the second terminal in the coordinate system according to the determined positions of the first terminal relative to the playing terminal and the second terminal relative to the playing terminal. Because the signal source direction determined by the terminal setting receiver is easily influenced by environment, device performance and the like, errors can be generated, and the initial coordinate position can be calibrated by utilizing the first position relationship at the moment, so that the accuracy of the determined coordinate position is improved. For example, adjusting the first initial coordinate position and the second initial coordinate position according to the first position relationship to obtain the first coordinate position and the second coordinate position, respectively, may include: obtaining a first included angle taking the coordinate position of the playing terminal as a vertex according to the first initial coordinate position, the second initial coordinate position and the coordinate position of the playing terminal in the coordinate system; acquiring a second included angle taking the coordinate position of the playing terminal as a vertex in the first position relation; and adjusting the angle of the first included angle to the angle of the second included angle. For example, if the first included angle or the second included angle is not 180 °, that is, the playing terminal, the first terminal and the second terminal are arranged in a triangle, the angle of the first included angle formed by the first initial coordinate position, the second initial coordinate position and the coordinate position of the playing terminal in the coordinate system may be adjusted to the second included angle in the triangle, where the coordinate position of the playing terminal is the vertex. If the first included angle and the second included angle are 180 degrees, the playing terminal, the first terminal and the second terminal are arranged in a straight line, and adjustment is not needed.
In some embodiments, after determining the first positional relationship, the user may determine the signal source direction determined by the first terminal and the signal source direction determined by the second terminal by touching the portable terminal. For example, prompt information for determining the signal source direction may be provided on a display interface of the television, and the user may click a key on the remote controller according to the prompt information, determine the signal source direction determined by the first terminal and the signal source direction determined by the second terminal, and feed back the determined signal source directions to the television, so that the television determines the first initial coordinate position and the second initial coordinate position in the coordinate system according to the signal source direction.
In some embodiments, in order to improve the processing efficiency, the arrangement form of the playing terminal, the first terminal and the second terminal may be determined first, and then the first positional relationship may be determined according to the arrangement form. Specifically, before determining the first positional relationship among the playing terminal, the first terminal and the second terminal according to the first distance, the second distance and the third distance, the method may further include: and determining the arrangement form among the playing terminal, the first terminal and the second terminal according to the first distance, the second distance and the third distance. The arrangement form may include a straight line or a triangle, for example, if the sum of any two of the first distance, the second distance, and the third distance is equal to another, such as the first distance a=the second distance b+the third distance c, the arrangement form is confirmed to be a straight line, and if not, the arrangement form is confirmed to be a triangle. In this way, when the arrangement form is a triangle, the coordinate positions of the first terminal and the second terminal in the coordinate system can be determined according to the three side lengths and the cosine theorem. When the arrangement form is a straight line, the first distance, the second distance and the third distance can be respectively used as the relative positions between the playing terminal and the first terminal, between the playing terminal and the second terminal, and between the first terminal and the second terminal, and the first position relationship can at least comprise the first distance and the second distance.
In some embodiments, when determining the position of the other terminal, the coordinate position of the other terminal in the coordinate system may be determined faster according to the relative positions of the playing terminal and the other terminal, for example, the first terminal and the second terminal, and the coordinate position of the other terminal may be determined faster, so as to improve the processing efficiency. Specifically, establishing a coordinate system according to the position of the playing terminal may include: and establishing a coordinate system taking the position of the playing terminal as an origin. As shown in fig. 1f, with the midpoint of the television set as the origin (0, 0), a coordinate system is established, the first coordinate axis (x-axis) of the coordinate system is parallel to the bottom side of the television set, and the coordinate positions (x 1, y 1) of the sound box L (first terminal) and the coordinate positions (x 2, y 2) of the sound box R (second terminal) are determined.
In some embodiments, in order to determine the coordinate positions of the first terminal and the second terminal in the coordinate system more quickly, processing efficiency is improved. Specifically, establishing a coordinate system according to the position of the playing terminal may include: determining a target plane according to the first position relation; and establishing a coordinate system according to the position of the playing terminal on the target plane. The process of establishing the coordinate system according to the position of the playing terminal can be to establish the coordinate system with the position of the playing terminal as the origin. The target plane may be a plane where the graphics obtained by connecting the playing terminal, the first terminal and the third terminal are located. Since the playing terminal, the first terminal and the third terminal are not in a straight line in general, and three points not in a straight line can be used to determine a plane, after acquiring a triangle formed by the playing terminal, the first terminal and the third terminal, the plane where the triangle is located can be determined as a target plane. If the playing terminal, the first terminal and the third terminal are on the same straight line, a plane parallel to the horizontal plane where the straight line is located may be taken as the target plane.
130. The fourth distance and the fifth distance are measured by wireless signals.
The fourth distance is a distance between the playback terminal and the portable terminal, and the fifth distance is a distance between the first terminal and the portable terminal.
The distance between the two terminals can be obtained by transmitting the wireless signal among the playing terminal, the first terminal and the portable terminal, recording the receiving and transmitting time of the wireless signal between the two terminals, and calculating the difference value between the receiving and transmitting time of the wireless signal between the two terminals.
In some embodiments, the distance between the terminals is calculated according to the receiving and transmitting time of the wireless signals, so that the wireless signal transmission flow is simple, and the processing efficiency is high. Specifically, measuring the fourth distance and the fifth distance by wireless signals may include:
acquiring a fourth receiving and transmitting time of wireless signals transmitted between the playing terminal and the portable terminal, and determining a fourth distance according to the fourth receiving and transmitting time;
and acquiring a fifth receiving and transmitting time of the wireless signal transmitted between the portable terminal and the first terminal, and determining a fifth distance according to the fifth receiving and transmitting time.
In some embodiments, the playing terminal is used as a starting point and an ending point of wireless signal transmission between the first terminal and the portable terminal, so that the playing terminal can obtain the fifth receiving and transmitting time only by initiating a wireless signal transmission process once, the wireless signal transmission process can be simplified, and the processing efficiency is improved. Specifically, acquiring a fifth transceiving time for transmitting the wireless signal between the portable terminal and the first terminal, and determining a fifth distance according to the fifth transceiving time may include:
Transmitting a fifth transmission signal to the portable terminal so that the portable terminal forwards the fifth transmission signal to the first terminal and determines a fifth transmission time, the fifth transmission time being a time when the playing terminal transmits the fifth transmission signal to the portable terminal;
receiving a fifth return signal returned by the first terminal, and determining a fifth receiving time, wherein the fifth receiving time is the time for the playing terminal to receive the fifth return signal;
determining a fifth receiving and transmitting time according to the first receiving and transmitting time, the fourth receiving and transmitting time, the fifth transmitting time and the fifth receiving time;
and determining a fifth distance according to the fifth transceiving time.
For example, as shown in fig. 1g, the playing terminal (tv) may first send a wireless signal carrying a sending time t9 to the portable terminal (remote controller), after receiving the wireless signal, the first terminal (sound box L) immediately returns a return signal to the playing terminal, and after receiving the return signal, the playing terminal may determine a receiving time t10 of the return signal, and may obtain the sending time t9 from information carried by the return signal, where the fourth distance may be ((t 10-t 9)/2) x v, and (t 10-t 9)/2 is a fourth receiving and sending time. Then, the playing terminal may send the wireless signal with the sending time t11 to the portable terminal, after receiving the wireless signal, the first terminal forwards the signal to the first terminal, after receiving the wireless signal, the first terminal immediately returns a return signal to the playing terminal, after receiving the return signal, the playing terminal may determine the receiving time t12 of the return signal, and may obtain the sending time t11 from the information carried by the return signal, where the fifth distance may be ((t 12-t 10) - (t 2-t 1)/2- (t 10-t 9)/2) ×v, (t 12-t 10) - (t 2-t 1)/2- (t 10-t 9)/2) be the fifth sending and receiving time, and v is the propagation speed of the wireless signal.
140. And determining the coordinate position of the portable terminal in the coordinate system according to the first distance, the fourth distance and the fifth distance.
After obtaining the first distance, the fourth distance and the fifth distance between each of the playing terminal, the portable terminal and the first terminal, as shown in fig. 1h, the playing terminal, the portable terminal and the first terminal may be regarded as three points in space, which may be arranged in a straight line or a triangle, if the three points are arranged in a straight line, the relative positions between the three points may be determined according to the distance between the three points, and if the three points are arranged in a triangle, the positional relationship between the three points may be determined according to the three side lengths and the cosine theorem. And according to the position relation between the portable terminal and the first terminal and the playing terminal, the coordinate position of the portable terminal in the coordinate system is calculated, for example, after the relative positions between the portable terminal and the first terminal and the playing terminal are determined, if the three points are arranged in a triangle, the coordinate position of two points (the first terminal and the playing terminal) in the coordinate system in the triangle is known, so that the coordinate position of the third point (the portable terminal) in the coordinate system can be determined.
In some embodiments, if the three points are arranged in a triangle, two distribution modes of the triangle may be determined in a coordinate system, as shown in fig. 1h, and the triangle may be a triangle that is co-located with the side where the first distance is located but is located above the triangle, and after determining the positional relationship among the playing terminal, the portable terminal and the first terminal, the user may determine the correct distribution mode by touching the portable terminal. Moreover, since the user is usually located in front of the playing terminal (e.g. facing the playing interface of the playing terminal), even if the portable terminal is also located in front of the playing terminal, the distribution mode of the portable terminal located in front of the playing terminal can be determined to be the correct distribution mode, so as to determine the coordinate position of the portable terminal in the coordinate system according to the correct distribution mode, and the relative orientation of the portable terminal and the playing terminal can also be preset, for example, the portable terminal is located in front of the playing terminal.
In some embodiments, the correct distribution pattern is determined from the data according to preset, experience, or manual selection of a user, and the process is complex and error-prone. Accordingly, measuring a sixth distance, which is a distance between the second terminal and the portable terminal, through the wireless signal may be included in step 140; and determining the coordinate position of the portable terminal in the coordinate system according to the first distance, the fourth distance and the sixth distance. The first terminal in the methods of step 130 and step 140 may be replaced with the second terminal by referring to the methods of step 130 and step 140, the positional relationship among the playing terminal, the portable terminal and the second terminal may be determined by using the distances between the playing terminal, the portable terminal and the second terminal, and the coordinate positions of the portable terminal in the coordinate system may be determined according to the positional relationship between the portable terminal and the first terminal and the playing terminal and the positional relationship among the playing terminal, the portable terminal and the second terminal. For example, the portable terminal, the first terminal and the playing terminal form a triangle a, the playing terminal, the portable terminal and the second terminal form a triangle B, and the triangle a and the triangle B have two distribution modes in the coordinate system, respectively, and at this time, the triangle a and the triangle B having overlapping vertices (the overlapping vertices are the vertices where the portable terminal is located) are determined as the correct distribution modes, so that the overlapping vertices of the triangle a and the triangle B can be determined as the coordinate positions of the portable terminal in the coordinate system.
In some embodiments, if the triangle a and the triangle B do not intersect at the vertex where the portable terminal is located due to measurement error, the triangle a and the triangle B with large overlapping areas in the distribution manner may be obtained as the correct distribution manner, and the coordinate position of the portable terminal in the coordinate system may be determined according to the position of the vertex where the portable terminal is located in the triangle a or the triangle B.
In some embodiments, the coordinate position determined by triangle a may be calibrated using the coordinate position determined by triangle B to improve reliability of the coordinate position of the portable terminal in the coordinate system, for example, the coordinate position of the midpoint of the coordinate position of the portable terminal determined by triangle a and the coordinate position of the portable terminal determined by triangle B may be taken as the coordinate position of the portable terminal in the coordinate system.
In some embodiments, a receiver for measuring a direction of a received signal may be provided on the playing terminal, so as to determine a direction of a received wireless signal source when receiving a wireless signal sent from the portable terminal, and determine a coordinate position of the portable terminal in a coordinate system in combination with the direction of the wireless signal source, the first distance, the fourth distance, and the fifth distance. For example, after determining two distribution modes of the triangle, the distribution mode corresponding to the triangle pointed by the wireless signal source direction may be determined as the correct distribution mode, and the coordinate position of the vertex where the portable terminal is located in the triangle may be determined as the coordinate position of the portable terminal in the coordinate system.
150. And controlling the playing effect of the playing terminal according to the coordinate position of the portable terminal in the coordinate system.
Since the user can carry the portable terminal to control the playback terminal, the coordinate position of the portable terminal in the coordinate system can be regarded as the coordinate position of the user. And because the coordinate system takes the playing terminal as the origin, the position relation between the portable terminal and the playing device can be directly determined according to the coordinates of the portable terminal in the coordinate system, so that the playing effect of the playing terminal can be controlled according to the position relation, and the playing effect can be automatically adjusted along with the moving position of the user. For example, if the coordinate position of the portable terminal is farther from the playing terminal, the sound volume played by the playing terminal is controlled to be larger, or the contrast or brightness displayed by the playing terminal is controlled to be higher, so that the user can better experience the content played by the playing terminal at a distance farther from the playing terminal, thereby improving the user experience.
In some embodiments, to enhance the user experience, controlling the playing effect of the playing terminal according to the coordinate position of the portable terminal in the coordinate system may include:
determining a second position relationship between the portable terminal and the playing terminal according to the coordinate position of the portable terminal in the coordinate system;
And controlling the sound effect of the playing terminal according to the second position relation.
The second positional relationship may include a relative position between the portable terminal and the playing terminal, where the relative position may be represented by a coordinate position of the portable terminal, a position of a first coordinate axis or a second coordinate axis of a corresponding coordinate system of the portable terminal, and so on.
The relative position between the portable terminal and the playing terminal is represented by the second coordinate position relationship, so that the sound effect of the playing terminal is controlled according to the relative position, and the control method can include, but is not limited to, adjusting volume, adjusting stereo image or adjusting sound channel, and the like. For example, the sound effect immediately in front of the television is the best in the normal case, where the position of the stereo image is at the origin (0, 0), as shown in fig. 1i, assuming that the coordinate position of the portable terminal (remote controller) is (x 3, y 3), the second positional relationship may be x3, and the position of the stereo image may be shifted left by x3, that is, the position of the stereo image is shifted to (x 3, 0). This position is used to calculate sound effects such as surround sound to enhance the user experience.
In some embodiments, to enhance the user experience, controlling the playing effect of the playing terminal according to the coordinate position of the portable terminal in the coordinate system may include:
Acquiring display boundary points of a playing terminal in a coordinate system;
determining a third position relation between the portable terminal and the display boundary point according to the coordinate position of the portable terminal in the coordinate system and the display boundary point;
and controlling the display effect of the playing terminal according to the third position relation.
The display boundary point may be an edge of a display screen of the playing terminal or a point where an edge of the playing terminal is projected in a coordinate system, for example, may be a frame of a television. In practical application, the midpoint position of the playing terminal is at the origin of the coordinate system, and since the playing terminal occupies a certain volume in space, after the playing terminal or the display screen thereof is projected on the coordinate system, the coordinate position of the edge of the playing terminal or the display screen thereof in the coordinate system is not at the origin of the coordinate, and at this time, the coordinate position of the edge of the playing terminal or the display screen thereof in the coordinate system can be determined as the display boundary point. For example, as shown in fig. 1h, the coordinate positions of the edges of the television in the coordinate system are (-x 4, 0) to (x 4, 0). In a specific application, two points may be selected as boundary points by projecting the playing terminal or its display screen onto points in the coordinate system, for example, two points with the farthest distances among the points that can be projected may be selected as boundary points, or when the coordinate system is established, any one side of the playing terminal may be selected as the first coordinate axis, and two points with the largest and smallest points among the points that can be projected onto the first coordinate axis may be selected as display boundary points.
The third positional relationship may include a relative position between the portable terminal and the display boundary point, the relative position may be represented by a distance between the portable terminal and the display boundary point, a difference between a distance between the portable terminal and the display boundary point and a first coordinate axis or a second coordinate axis of the coordinate system, and the like.
The relative position between the portable terminal and the display boundary point is characterized by the third coordinate position relationship to control the sound effect of the playing terminal according to the relative position, and the control method can include, but is not limited to, adjusting brightness, adjusting contrast, and the like. For example, as shown in fig. 1h, it may be assumed that the width of the tv is 2×x4, the display boundary points are (-x 4, 0) and (x 4, 0), and the distances L1, L2 from the remote controller to both side edges of the tv may be expressed as the distances from the remote controller to the two display boundary points. The coordinate position of the remote controller is (x 3, y 3), if the coordinate positions from-x 4 to x4 are set as the front range of the television, if the third position relation is x3> x4 or x3< -x4, the portable terminal is located outside the front range of the television, and the user can be considered to deviate from the front range of the television. If x3< -x4, i.e. the user is located at the left side of the television, the user views the television picture from the left side at this time due to light reflection and the like, the picture at the right side is darker and the light reflection is verified, so that the backlight brightness and contrast of the picture at the right side of the television can be adjusted to be high.
In some embodiments, the brightness adjustment value or the contrast adjustment value of the side frame to be adjusted can be determined through the portable terminal and the display boundary point, so as to quickly determine the adjustment amount and improve the user experience. Specifically, according to the third positional relationship, controlling the display effect of the playing terminal may include: determining a target picture from the display pictures of the playing terminal according to the third position relation; determining a brightness adjustment value or a contrast adjustment value according to the third position relation; and adjusting the brightness or contrast of the target picture according to the brightness adjustment value or the contrast adjustment value. For example, a display screen of the playback terminal may be divided into two sides, whether the portable terminal is within a front range of the playback terminal may be determined according to a relative position of the portable terminal and the display boundary point, if yes, the next step is not performed, if no, it is determined which side of the playback terminal the portable terminal is located according to a relative position of the portable terminal and the display boundary point, and a screen corresponding to the other side is determined as a target screen, and then a brightness adjustment value or a contrast adjustment value is calculated according to z=a×b×c, where Z represents a brightness adjustment value or a contrast adjustment value, a represents a brightness or a contrast of a current or preset pixel point, B may be a value from 1 to M/N, where M is a larger one of L1 and L2, and N is a smaller one of L1 and L2. In practical use, B may be equal to M/N, as shown in fig. 1i, when L2 > L1 when the portable terminal is positioned on the left side of the figure, b=l2/L1. C represents preset screen adjustment parameters, which can be threshold values customized according to screens and screen parameters.
The play control scheme provided by the embodiment of the application can be applied to various play control scenes. For example, taking a television as an example, in response to a positioning request, measuring a first distance, a second distance and a third distance through a wireless signal, wherein the first distance is a distance between a playing terminal and the first terminal, the second distance is a distance between the playing terminal and the second terminal, and the third distance is a distance between the first terminal and the second terminal; establishing a coordinate system according to the position of the playing terminal, and determining a first coordinate position and a second coordinate position according to the first distance, the second distance and the third distance, wherein the first coordinate position and the second coordinate position are the coordinate positions of the first terminal and the second terminal in the coordinate system respectively; measuring a fourth distance and a fifth distance through wireless signals, wherein the fourth distance is the distance between the playing terminal and the portable terminal, and the fifth distance is the distance between the first terminal and the portable terminal; and determining the coordinate position of the portable terminal in the coordinate system according to the first distance, the fourth distance and the fifth distance. And controlling the playing effect of the playing terminal according to the coordinate position of the portable terminal in the coordinate system.
By adopting the scheme provided by the embodiment of the application, the coordinate system is established through the distances among the playing terminal, the first terminal and the second terminal, and the position relation between the portable terminal and the playing device can be directly determined according to the coordinate position by determining the coordinate position of the portable terminal in the coordinate system, so that the playing effect of the playing terminal can be controlled according to the position relation. Because the user can carry the portable terminal, the playing effect can be automatically adjusted along with the moving position of the user, so that the user can carry the portable terminal to control the playing terminal in real time, the adjusting method is simple, and the user experience can be improved.
In order to better implement the above method, the embodiment of the present application further provides a play control device, where the play control device may be specifically integrated in an electronic device, and the electronic device may be a device such as a terminal, a server, or the like. The terminal can be a mobile phone, a tablet personal computer, an intelligent Bluetooth device, a notebook computer, a personal computer and other devices; the server may be a single server or a server cluster composed of a plurality of servers.
For example, in this embodiment, a method according to an embodiment of the present application will be described in detail by taking a specific integration of a playback control device in a playback terminal as an example.
For example, as shown in fig. 2, the play control device may include a measurement unit 210, a positioning unit 220, and a control unit 230, as follows:
measurement unit 210
The method can be used for responding to the positioning request, measuring a first distance, a second distance and a third distance through wireless signals, wherein the first distance is the distance between the playing terminal and the first terminal, the second distance is the distance between the playing terminal and the second terminal, and the third distance is the distance between the first terminal and the second terminal.
In some embodiments, the measurement unit 210 may specifically be used for the following steps:
responding to the positioning request, acquiring a first receiving and transmitting time of wireless signals transmitted between the playing terminal and the first terminal, and determining a first distance according to the first receiving and transmitting time;
acquiring a second receiving and transmitting time of the wireless signal transmitted between the playing terminal and the second terminal, and determining a second distance according to the second receiving and transmitting time;
and acquiring a third receiving and transmitting time of the wireless signal transmitted between the first terminal and the second terminal, and determining a third distance according to the third receiving and transmitting time.
In some embodiments, acquiring a transceiving time of a wireless signal transmitted between the first terminal and the second terminal, determining the third distance includes:
Transmitting a first transmission signal to the first terminal so that the first terminal forwards the first transmission signal to the second terminal, and determining a first transmission time, wherein the first transmission time is the time when the playing terminal transmits the first transmission signal to the first terminal;
receiving a first return signal returned by the second terminal, and determining a first receiving time, wherein the first receiving time is the time for the playing terminal to receive the first return signal;
determining a third transceiving time according to the first transmitting time, the first receiving time, the first transceiving time and the second transceiving time;
and determining a third distance according to the third transceiving time.
The measuring unit 210 may also be configured to measure a fourth distance, which is a distance between the playback terminal and the portable terminal, and a fifth distance, which is a distance between the first terminal and the portable terminal, through wireless signals.
In some embodiments, the measurement unit 210 may specifically be used for the following steps:
acquiring a fourth receiving and transmitting time of wireless signals transmitted between the playing terminal and the portable terminal, and determining a fourth distance according to the fourth receiving and transmitting time;
and acquiring a fifth receiving and transmitting time of the wireless signal transmitted between the portable terminal and the first terminal, and determining a fifth distance according to the fifth receiving and transmitting time.
(two) positioning Unit 220
The method can be used for establishing a coordinate system according to the position of the playing terminal, and determining a first coordinate position and a second coordinate position according to the first distance, the second distance and the third distance, wherein the first coordinate position and the second coordinate position are the coordinate positions of the first terminal and the second terminal in the coordinate system respectively.
In some embodiments, the positioning unit 220 may specifically be used for the following steps:
determining a first position relationship among the playing terminal, the first terminal and the second terminal according to the first distance, the second distance and the third distance;
establishing a coordinate system according to the position of the playing terminal;
and determining a first coordinate position and a second coordinate position in the coordinate system according to the first position relation.
The positioning unit 220 may also be used to determine a coordinate position of the portable terminal in a coordinate system according to the first distance, the fourth distance, and the fifth distance.
(III) control unit 230
Can be used for controlling the playing effect of the playing terminal according to the coordinate position of the portable terminal in the coordinate system.
In some embodiments, the control unit 230 may specifically be configured to:
determining a second position relationship between the portable terminal and the playing terminal according to the coordinate position of the portable terminal in the coordinate system;
And controlling the sound effect of the playing terminal according to the second position relation.
In some embodiments, the control unit 230 may specifically be configured to:
acquiring display boundary points of a playing terminal in a coordinate system;
determining a third position relation between the portable terminal and the display boundary point according to the coordinate position of the portable terminal in the coordinate system and the display boundary point;
and controlling the display effect of the playing terminal according to the third position relation.
In the implementation, each unit may be implemented as an independent entity, or may be implemented as the same entity or several entities in any combination, and the implementation of each unit may be referred to the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the application can create the coordinate system through the distances among the playing terminal, the first terminal and the second terminal, and can control the playing effect of the playing terminal according to the coordinate position by determining the coordinate position of the portable terminal in the coordinate system. Because the user can carry the portable terminal, the playing effect can be automatically adjusted along with the moving position of the user, so that the user can carry the portable terminal to control the playing terminal in real time, the adjusting method is simple, and the user experience can be improved.
Correspondingly, the embodiment of the application also provides computer equipment, which can be a terminal or a server, wherein the terminal can be terminal equipment such as a smart phone, a tablet personal computer, a notebook computer, a touch screen, a game console, a personal computer, a personal digital assistant (Personal Digital Assistant, PDA) and the like.
As shown in fig. 3, fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present application, where the computer device 400 includes a processor 310 with one or more processing cores, a memory 320 with one or more computer readable storage media, and a computer program stored in the memory 320 and executable on the processor. The processor 310 is electrically connected to the memory 320. It will be appreciated by those skilled in the art that the computer device structure shown in the figures is not limiting of the computer device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
Processor 310 is a control center of computer device 400 and connects the various portions of the entire computer device 400 using various interfaces and lines to perform various functions of computer device 400 and process data by running or loading software programs and/or modules stored in memory 320 and invoking data stored in memory 320, thereby performing overall monitoring of computer device 400.
In an embodiment of the present application, the processor 310 in the computer device 400 loads the instructions corresponding to the processes of one or more application programs into the memory 320 according to the following steps, and the processor 310 executes the application programs stored in the memory 320, so as to implement various functions:
responding to a positioning request, measuring a first distance, a second distance and a third distance through wireless signals, wherein the first distance is the distance between a playing terminal and the first terminal, the second distance is the distance between the playing terminal and the second terminal, and the third distance is the distance between the first terminal and the second terminal; establishing a coordinate system according to the position of the playing terminal, and determining a first coordinate position and a second coordinate position according to the first distance, the second distance and the third distance, wherein the first coordinate position and the second coordinate position are the coordinate positions of the first terminal and the second terminal in the coordinate system respectively; measuring a fourth distance and a fifth distance through wireless signals, wherein the fourth distance is the distance between the playing terminal and the portable terminal, and the fifth distance is the distance between the first terminal and the portable terminal; determining a coordinate position of the portable terminal in a coordinate system according to the first distance, the fourth distance and the fifth distance; and controlling the playing effect of the playing terminal according to the coordinate position of the portable terminal in the coordinate system.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Optionally, as shown in fig. 3, the computer device 400 further includes: touch display 330, radio frequency circuit 340, audio circuit 350, input unit 360, and power supply 370. The processor 310 is electrically connected to the touch display 330, the radio frequency circuit 340, the audio circuit 350, the input unit 360, and the power supply 370, respectively. Those skilled in the art will appreciate that the computer device structure shown in FIG. 3 is not limiting of the computer device and may include more or fewer components than shown, or may be combined with certain components, or a different arrangement of components.
The touch display 330 may be used to display a graphical user interface and receive operation instructions generated by a user acting on the graphical user interface. The touch display screen 330 may include a display panel and a touch panel. Wherein the display panel may be used to display information entered by a user or provided to a user as well as various graphical user interfaces of a computer device, which may be composed of graphics, text, icons, video, and any combination thereof. Alternatively, the display panel may be configured in the form of a liquid crystal display (LCD, liquid Crystal Display), an Organic Light-Emitting Diode (OLED), or the like. The touch panel may be used to collect touch operations on or near the user (such as operations on or near the touch panel by the user using any suitable object or accessory such as a finger, stylus, etc.), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Alternatively, the touch panel may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 310, and can receive commands from the processor 310 and execute them. The touch panel may overlay the display panel, and upon detection of a touch operation thereon or thereabout, the touch panel is transferred to the processor 310 to determine a type of touch event, and the processor 310 then provides a corresponding visual output on the display panel based on the type of touch event. In the embodiment of the present application, the touch panel and the display panel may be integrated into the touch display screen 330 to realize the input and output functions. In some embodiments, however, the touch panel and the display panel may be implemented as two separate components to implement the input and output functions. I.e. the touch sensitive display 330 may also implement an input function as part of the input unit 360.
The radio frequency circuit 340 may be configured to transceive radio frequency signals to establish wireless communication with a network device or other computer device via wireless communication.
Audio circuitry 350 may be used to provide an audio interface between a user and a computer device through speakers, microphones, and so forth. The audio circuit 350 may transmit the received electrical signal after audio data conversion to a speaker, where the electrical signal is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 350 and converted into audio data, which are processed by the audio data output processor 310 for transmission to, for example, another computer device via the radio frequency circuit 340, or which are output to the memory 320 for further processing. Audio circuitry 350 may also include an ear bud jack to provide communication of the peripheral ear bud with the computer device.
The input unit 360 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
The power supply 370 is used to power the various components of the computer device 400. Alternatively, the power supply 370 may be logically connected to the processor 310 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system. The power supply 370 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown in fig. 3, the computer device 400 may further include a camera, a sensor, a wireless fidelity module, a bluetooth module, etc., which are not described herein.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
As can be seen from the above, the computer device provided in this embodiment may create a coordinate system by using distances among the playing terminal, the first terminal and the second terminal, and determine a coordinate position of the portable terminal in the coordinate system, so as to control a playing effect of the playing terminal according to the coordinate position. Because the user can carry the portable terminal, the playing effect can be automatically adjusted along with the moving position of the user, so that the user can carry the portable terminal to control the playing terminal in real time, the adjusting method is simple, and the user experience can be improved.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application provides a computer readable storage medium storing a plurality of computer programs capable of being loaded by a processor to execute steps in any one of the play control methods provided by the embodiment of the present application. For example, the computer program may perform the steps of:
responding to a positioning request, measuring a first distance, a second distance and a third distance through wireless signals, wherein the first distance is the distance between a playing terminal and the first terminal, the second distance is the distance between the playing terminal and the second terminal, and the third distance is the distance between the first terminal and the second terminal; establishing a coordinate system according to the position of the playing terminal, and determining a first coordinate position and a second coordinate position according to the first distance, the second distance and the third distance, wherein the first coordinate position and the second coordinate position are the coordinate positions of the first terminal and the second terminal in the coordinate system respectively; measuring a fourth distance and a fifth distance through wireless signals, wherein the fourth distance is the distance between the playing terminal and the portable terminal, and the fifth distance is the distance between the first terminal and the portable terminal; determining a coordinate position of the portable terminal in a coordinate system according to the first distance, the fourth distance and the fifth distance; and controlling the playing effect of the playing terminal according to the coordinate position of the portable terminal in the coordinate system.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The steps of any one of the play control methods provided by the embodiments of the present application may be executed by the computer program stored in the storage medium, so that the beneficial effects that any one of the play control methods provided by the embodiments of the present application may be achieved, which are detailed in the previous embodiments and are not described herein.
The foregoing describes in detail a play control method, apparatus, computer device and storage medium provided by the embodiments of the present application, and specific examples are applied to illustrate the principles and embodiments of the present application, where the foregoing examples are only used to help understand the method and core idea of the present application; meanwhile, as those skilled in the art will vary in the specific embodiments and application scope according to the ideas of the present application, the present description should not be construed as limiting the present application in summary.
Claims (10)
1. A play control method, applied to a play terminal, comprising:
responding to a positioning request, measuring a first distance, a second distance and a third distance through wireless signals, wherein the first distance is the distance between the playing terminal and the first terminal, the second distance is the distance between the playing terminal and the second terminal, and the third distance is the distance between the first terminal and the second terminal;
establishing a coordinate system according to the position of the playing terminal, and determining a first coordinate position and a second coordinate position according to the first distance, the second distance and the third distance, wherein the first coordinate position and the second coordinate position are the coordinate positions of the first terminal and the second terminal in the coordinate system respectively;
measuring a fourth distance and a fifth distance through wireless signals, wherein the fourth distance is the distance between the playing terminal and the portable terminal, and the fifth distance is the distance between the first terminal and the portable terminal;
determining a coordinate position of the portable terminal in the coordinate system according to the first distance, the fourth distance and the fifth distance;
And controlling the playing effect of the playing terminal according to the coordinate position of the portable terminal in the coordinate system.
2. The play control method of claim 1, wherein the measuring the first distance, the second distance, and the third distance by wireless signals in response to the positioning request comprises:
responding to a positioning request, acquiring a first receiving and transmitting time of wireless signals transmitted between the playing terminal and a first terminal, and determining a first distance according to the first receiving and transmitting time;
acquiring a second receiving and transmitting time of wireless signals transmitted between the playing terminal and a second terminal, and determining a second distance according to the second receiving and transmitting time;
and acquiring a third receiving and transmitting time of the wireless signal transmitted between the first terminal and the second terminal, and determining a third distance according to the third receiving and transmitting time.
3. The play control method as claimed in claim 2, wherein the acquiring a transceiving time for transmission of the wireless signal between the first terminal and the second terminal, determining a third distance, comprises:
transmitting a first transmission signal to the first terminal so that the first terminal forwards the first transmission signal to the second terminal, and determining a first transmission time, wherein the first transmission time is the time when the playing terminal transmits the first transmission signal to the first terminal;
Receiving a first return signal returned by the second terminal, and determining a first receiving time, wherein the first receiving time is the time when the playing terminal receives the first return signal;
determining a third transceiving time according to the first transmitting time, the first receiving time, the first transceiving time and the second transceiving time;
and determining a third distance according to the third transceiving time.
4. The play control method as set forth in claim 1, wherein the establishing a coordinate system according to the position of the play terminal, and determining the first coordinate position and the second coordinate position according to the first distance, the second distance, and the third distance, includes:
determining a first position relationship among the playing terminal, the first terminal and the second terminal according to the first distance, the second distance and the third distance;
establishing a coordinate system according to the position of the playing terminal;
and determining a first coordinate position and a second coordinate position in the coordinate system according to the first position relation.
5. The play control method as set forth in claim 1, wherein the measuring the fourth distance and the fifth distance by the wireless signal includes:
Acquiring a fourth receiving and transmitting time of wireless signals transmitted between the playing terminal and the portable terminal, and determining a fourth distance according to the fourth receiving and transmitting time;
and acquiring a fifth receiving and transmitting time of wireless signals transmitted between the portable terminal and the first terminal, and determining a fifth distance according to the fifth receiving and transmitting time.
6. The playback control method of claim 1, wherein the controlling the playback effect of the playback terminal based on the coordinate position of the portable terminal in the coordinate system comprises:
determining a second positional relationship between the portable terminal and the playing terminal according to the coordinate position of the portable terminal in the coordinate system;
and controlling the sound effect of the playing terminal according to the second position relation.
7. The playback control method of claim 1, wherein the controlling the playback effect of the playback terminal based on the coordinate position of the portable terminal in the coordinate system comprises:
acquiring a display boundary point of the playing terminal in the coordinate system;
determining a third position relation between the portable terminal and the display boundary point according to the coordinate position of the portable terminal in the coordinate system and the display boundary point;
And controlling the display effect of the playing terminal according to the third position relation.
8. A play control device, characterized by being applied to a play terminal, comprising:
the measuring unit is used for responding to a positioning request, measuring a first distance, a second distance and a third distance through wireless signals, wherein the first distance is the distance between the playing terminal and the first terminal, the second distance is the distance between the playing terminal and the second terminal, and the third distance is the distance between the first terminal and the second terminal;
the positioning unit is used for establishing a coordinate system according to the position of the playing terminal, and determining a first coordinate position and a second coordinate position according to the first distance, the second distance and the third distance, wherein the first coordinate position and the second coordinate position are the coordinate positions of the first terminal and the second terminal in the coordinate system respectively;
the measuring unit is further used for measuring a fourth distance and a fifth distance through wireless signals, wherein the fourth distance is the distance between the playing terminal and the portable terminal, and the fifth distance is the distance between the first terminal and the portable terminal;
A positioning unit, configured to determine a coordinate position of the portable terminal in the coordinate system according to the first distance, the fourth distance, and the fifth distance;
and the control unit is used for controlling the playing effect of the playing terminal according to the coordinate position of the portable terminal in the coordinate system.
9. A computer device comprising a processor and a memory, the memory storing a plurality of instructions; the processor loads instructions from the memory to perform the steps in the play control method as claimed in any one of claims 1 to 7.
10. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the playback control method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210572430.5A CN117156207A (en) | 2022-05-24 | 2022-05-24 | Play control method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210572430.5A CN117156207A (en) | 2022-05-24 | 2022-05-24 | Play control method, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117156207A true CN117156207A (en) | 2023-12-01 |
Family
ID=88910606
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210572430.5A Pending CN117156207A (en) | 2022-05-24 | 2022-05-24 | Play control method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117156207A (en) |
-
2022
- 2022-05-24 CN CN202210572430.5A patent/CN117156207A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10817255B2 (en) | Scene sound effect control method, and electronic device | |
CN109302385A (en) | Multimedia resource sharing method, device and storage medium | |
CN106487984B (en) | A kind of method and apparatus adjusting volume | |
CN111327953A (en) | Live broadcast voting method and device and storage medium | |
CN114339294B (en) | Method, device and equipment for confirming network jitter and storage medium | |
CN110740340A (en) | Video live broadcast method and device and storage medium | |
CN111628925A (en) | Song interaction method and device, terminal and storage medium | |
US20220141390A1 (en) | Photographing method, device, and system, and computer-readable storage medium | |
CN110601921B (en) | Method and device for detecting data packet transmission parameters and data packet transmission system | |
CN109618055B (en) | Position sharing method and mobile terminal | |
CN110971840B (en) | Video mapping method and device, computer equipment and storage medium | |
CN109450508B (en) | Antenna determination method and device and mobile terminal | |
CN114466304B (en) | Control method of intelligent household equipment, mobile terminal and intelligent household platform | |
CN111294626A (en) | Lyric display method and device | |
CN117156207A (en) | Play control method, device, computer equipment and storage medium | |
CN115690373A (en) | Road network generation method and device, computer readable storage medium and computer equipment | |
CN112365088B (en) | Method, device and equipment for determining travel key points and readable storage medium | |
CN114789734A (en) | Perception information compensation method, device, vehicle, storage medium, and program | |
CN114093020A (en) | Motion capture method, motion capture device, electronic device and storage medium | |
CN108107422B (en) | A kind of method for determining speed and mobile terminal of Moving Objects | |
CN111523876A (en) | Payment mode display method, device and system and storage medium | |
CN117911482B (en) | Image processing method and device | |
CN111526221B (en) | Domain name quality determining method, device and storage medium | |
WO2023221062A1 (en) | Voice wake-up method and apparatus of electronic device, storage medium and chip | |
WO2024198804A1 (en) | Method for determining location, electronic device, and chip system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |