WO2023071655A1 - Screen projection processing method and apparatus, and device and storage medium - Google Patents

Screen projection processing method and apparatus, and device and storage medium Download PDF

Info

Publication number
WO2023071655A1
WO2023071655A1 PCT/CN2022/121178 CN2022121178W WO2023071655A1 WO 2023071655 A1 WO2023071655 A1 WO 2023071655A1 CN 2022121178 W CN2022121178 W CN 2022121178W WO 2023071655 A1 WO2023071655 A1 WO 2023071655A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
screen projection
screen
server
mobile
Prior art date
Application number
PCT/CN2022/121178
Other languages
French (fr)
Chinese (zh)
Inventor
李郗
Original Assignee
青岛海尔科技有限公司
海尔智家股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 青岛海尔科技有限公司, 海尔智家股份有限公司 filed Critical 青岛海尔科技有限公司
Publication of WO2023071655A1 publication Critical patent/WO2023071655A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display

Definitions

  • the present application belongs to the field of computers, and in particular relates to a screen projection processing method, device, equipment and storage medium.
  • the corresponding screen projection software is usually downloaded on the terminal device such as a mobile phone and the smart device with a screen.
  • the screen projection software When casting a screen, open the screen projection software on terminal devices such as mobile phones and smart devices with screens, and then operate according to the guidance information of the screen projection software, so as to realize screen projection.
  • this method often requires the user to perform repeated operations on terminal devices such as mobile phones and smart devices with screens. Therefore, due to the relatively complicated operation process of the user, there is a problem that the efficiency of the user's screen projection is low.
  • the present application provides a screen projection processing method, which is applied to the first terminal device , the method includes: if the first terminal device is a mobile device, acquiring mobile operation data in response to a user's mobile operation on the first terminal device, wherein the mobile operation data includes acceleration data and moving direction data of the first terminal device; The mobile operation data is sent to the server for providing the user with the screen projection service through the screen projection application; the first indication information sent by the server is received, wherein the first indication information is generated by the server according to the judgment result, and the judgment result is used to determine the movement Whether the operation is a screen projection operation, the first indication information is used to indicate that when the mobile operation is a screen projection operation, the display content of the first terminal device is projected to the second terminal device; when the mobile operation is not a screen projection operation, no Projecting the display content to the second terminal device; when the operation is a screen projection operation, the first indication information is used to indicate that when the mobile operation is a screen projection operation, the display content of the first terminal device is projected to the second terminal
  • the embodiment of the present application also provides a screen projection processing method, which is applied to a server, and the method includes: if the first terminal device is a mobile device, receiving mobile operation data sent by the first terminal device when performing a mobile operation, wherein, The mobile operation data includes acceleration data and moving direction data of the first terminal device; judging whether the mobile operation of the first terminal device is a screen projection operation according to the mobile operation data, and generating a judgment result; generating first instruction information according to the judgment result, wherein, the first The instruction information is used to indicate that when the mobile operation is a screen projection operation, the display content of the first terminal device is projected to the second terminal device, and when the mobile operation is not a screen projection operation, the display content is not projected to the second terminal device. On the terminal device; sending the first indication information to the first terminal device.
  • An embodiment of the present application also provides a screen projection processing device, including: an acquisition module configured to acquire mobile operation data in response to a user's mobile operation on the first terminal device if the first terminal device is a mobile device, wherein, The mobile operation data includes acceleration data and moving direction data of the first terminal device; the first sending module is configured to send the mobile operation data to a server for providing screen projection services for users through the screen projection application; the first receiving module is configured to To receive the first indication information sent by the server, wherein the first indication information is generated by the server according to the judgment result, the judgment result is used to determine whether the mobile operation is a screen projection operation, and the first indication information is used to indicate that the mobile operation is a screen projection operation During operation, the display content of the first terminal device is projected to the second terminal device, and when the mobile operation is not a screen projection operation, the display content is not projected to the second terminal device; The first instruction information is used to indicate that when the display content of the first terminal device is projected to the second terminal device, based on the first instruction information and the
  • the embodiment of the present application also provides a screen projection processing device, including: a second receiving module, configured to receive the mobile operation data sent when the first terminal device performs a mobile operation if the first terminal device is a mobile device, wherein, The mobile operation data includes acceleration data and moving direction data of the first terminal device; the first generation module is configured to judge whether the mobile operation of the first terminal device is a screen projection operation according to the mobile operation data, and generate a judgment result; the second generation module, It is set to generate the first instruction information according to the judgment result, wherein the first instruction information is used to indicate that when the mobile operation is a screen projection operation, the display content of the first terminal device is projected to the second terminal device, and when the mobile operation is not During the screen projection operation, the display content is not projected to the second terminal device; the second sending module is configured to send the first indication information to the first terminal device.
  • a second receiving module configured to receive the mobile operation data sent when the first terminal device performs a mobile operation if the first terminal device is a mobile device, wherein,
  • the embodiment of the present application also provides a terminal device, including: a processor, and a memory connected to the processor in communication; screen processing method.
  • the embodiment of the present application also provides a server, including: a processor, and a memory communicatively connected to the processor; the processor executes computer-executed instructions stored in the memory, so as to implement the screen projection processing method applied to the server in the foregoing method.
  • the embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it is used to implement the screen projection processing method applied to the first terminal device in the foregoing method, or, Screen projection processing method applied to the server.
  • the embodiment of the present application also provides a computer program product, including a computer program.
  • the computer program When the computer program is executed by a processor, the computer program is used to implement the screen projection processing method applied to the first terminal device in the foregoing method, or the projection process applied to the server. screen processing method.
  • the screen projection processing method of the present application is applied to the first terminal device.
  • the first terminal device is a mobile device
  • the first terminal device can be moved towards the direction of the second terminal device, so that after receiving the first instruction information sent by the server, and the first instruction information indicates that the first terminal device
  • the display content on the screen of the first terminal device can be projected to the second terminal device through the first instruction information and the screen projection application.
  • the screen projection processing method of the present application can also be applied to the server.
  • the first terminal device is a mobile device
  • the server may generate a judgment result according to the mobile operation data, determine whether the user's mobile operation on the first terminal device is a screen projection operation, and then generate first indication information according to the judgment result, and send the first indication information to the first terminal device, thus
  • the first terminal device receives the first instruction information sent by the server, and the first instruction information indicates to project the display content of the first terminal device to the second terminal device, it can use the first instruction information and the screen projection
  • the application realizes projecting the display content on the screen of the first terminal device to the second terminal device.
  • FIG. 1 is a schematic diagram of an application scenario of a projection processing method provided in an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a screen projection processing system provided by an embodiment of the present application.
  • FIG. 3 is a flow chart of Embodiment 1 of the projection processing method provided by the embodiment of the present application.
  • FIG. 4 is a flow chart of Embodiment 2 of the projection processing method provided by the embodiment of the present application.
  • FIG. 5 is a flow chart of Embodiment 3 of the projection processing method provided by the embodiment of the present application.
  • FIG. 6 is a schematic diagram of acquiring mobile operation data provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of Embodiment 1 of Bluetooth gateway positioning processing provided by the embodiment of the present application.
  • FIG. 8 is a schematic diagram of Embodiment 2 of Bluetooth gateway positioning processing provided by the embodiment of the present application.
  • FIG. 9 is a schematic diagram of Embodiment 1 of the screen projection processing device provided by the embodiment of the present application.
  • Fig. 10 is a schematic diagram of Embodiment 2 of the screen projection processing device provided by the embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a server provided by an embodiment of the present application.
  • the mobile terminal If the user wants to cast the contents of the mobile phone to other smart devices with a screen, he needs to perform repeated operations on the phone and the device with a smart screen. Screen software, the mobile terminal operates according to the instructions of the screen projection software, and waits for the smart device with screen to display the content. Therefore, the user's actual operation is very complicated, which leads to the problem that the user's screen projection efficiency is low.
  • this application proposes a screen projection processing method.
  • the first terminal device is a mobile device
  • the first terminal device can obtain the moving direction data of the first terminal device through the gyroscope, obtain the acceleration data of the first terminal device through the acceleration sensor, and then send the moving direction data and acceleration data to the user
  • the server judges whether the user's mobile operation on the first terminal device is a screen projection operation according to the moving direction data and acceleration data, and generates first instruction information and sends it to the first terminal device.
  • the mobile operation of the first terminal device is a screen projection operation, then the first terminal device can project the display content of the first terminal device to the second terminal device according to the first instruction information, and project the display content to the second terminal device display in the device; if the user's mobile operation on the first terminal device is not a screen projection operation, then the first terminal device cannot project the display content of the first terminal device to the second terminal device according to the first indication information, The display content is not projected to the second terminal device for display.
  • the first terminal device can realize screen projection through the thumbnail map on the screen projection application interface, and the thumbnail map includes the first icon corresponding to the first terminal device and the second terminal device.
  • the corresponding second icon when the user wants to project the display content of the first terminal device to the second terminal device, drag the corresponding first icon of the first terminal device to the second terminal on the thumbnail map
  • the location of the second icon corresponding to the device triggers a screen projection request at this time, the first terminal device sends the screen projection request to the server, and the server generates second instruction information according to the screen projection request and sends it to the first terminal device, so that the first The terminal device can project the displayed content to the second terminal device for display.
  • FIG 1 is a schematic diagram of the application scenario of the screen projection processing method provided by the embodiment of the present application.
  • the first terminal device is a mobile device
  • the first terminal device is a mobile phone
  • the second terminal device Take the TV as an example.
  • the user wants to project the content displayed on the screen of the mobile phone to the TV for display, he can open the screen-casting application on the mobile phone, move the mobile phone towards the TV, and make a throwing action.
  • the moving direction data can be obtained through the gyroscope in the mobile phone
  • the acceleration data can be obtained through the acceleration sensor in the mobile phone
  • the mobile phone can send the moving direction data and acceleration data to the server that provides the user with screen casting services through the screen projection application.
  • the acceleration data and the moving direction data it is judged whether the user's throwing action is to cast a screen, and then the first indication information is generated according to the judgment result and sent to the mobile phone. If the user's throwing action is to cast a screen, the first indication The information confirms that the display content on the mobile phone screen can be projected to the TV for display. If the user’s throwing action is not intended to project the screen, the first instruction information determines that the display content on the mobile phone screen cannot be projected to the TV. show.
  • the first terminal device is not a mobile device, for example, the first terminal device is a refrigerator and the second terminal device is a TV. If the user wants to project the display content on the refrigerator screen to the TV for display, he can turn on the refrigerator. After the screencasting application, drag the icon corresponding to the refrigerator to the location of the icon corresponding to the TV in the thumbnail map displayed on the screencasting application interface. At this time, a screencasting request can be triggered and the screencasting request will be sent to to the server, the server generates second instruction information according to the screen projection request, and sends it to the refrigerator, and the refrigerator projects the display content on the screen to the TV for display according to the second instruction information and the screen projection application.
  • FIG. 2 is a schematic structural diagram of a screen projection processing system provided by an embodiment of the present application. As shown in FIG. 2 , the system includes a first terminal device, a second terminal device and a server.
  • the first terminal device includes a direction module (that is, a gyroscope), a position module (that is, a Bluetooth module) and a gesture module, wherein the first terminal device can be a mobile device such as a mobile phone, and the direction module is used to analyze the movement of the user to the mobile phone or the like.
  • the location module is used to analyze the relative position of mobile devices such as mobile phones in the current room.
  • the gesture module is used to analyze the user’s intention to slide the screen of mobile devices such as mobile phones, and determine whether the user opens the mobile device such as mobile phones. screencasting application.
  • the second terminal device includes a location module (that is, a Bluetooth module) and a gesture module, wherein the second terminal device can be a non-mobile device with a screen such as a refrigerator, a TV, a computer, etc., and the location module is used to analyze the status of the refrigerator, TV, computer, etc. The relative position of non-mobile devices in the current room.
  • the gesture module is used to analyze the user's intention to slide the screen of non-mobile devices such as refrigerators, TVs, and computers, and determine whether the user opens the screen-casting application on non-mobile devices such as refrigerators, TVs, and computers.
  • the server is the screen projection background service in the local area network of the user's home.
  • the server includes a location module (that is, a Beacon device group) and a screen projection processing module.
  • the Beacon device group of the location module is used to broadcast Bluetooth signals to the room at regular intervals.
  • the processing module is used to determine the relative positions of the first terminal device and the second terminal device after the indoor first terminal device and the second terminal device receive the Bluetooth signal, and process the actual screen projection logic.
  • the server can also be used to perform screen projection pairing among all smart devices in the room, and establish an association relationship between the user and all the smart devices in the room.
  • the server may also include a screen projection security verification component, a device information database, a user database, and a user screen projection operation database, wherein the screen projection security verification component is used to verify the legality of the user's screen projection behavior, and the device information
  • the database is used to save the device information that the user wants to cast the screen
  • the user database is used to save the user's biological characteristics (face data, iris data, fingerprint data, etc.)
  • the user screen projection operation database is used to save the historical operation of the user's screen projection Record.
  • FIG. 3 is a flow chart of Embodiment 1 of the screen projection processing method provided by the embodiment of the present application. As shown in FIG. 3 , the screen projection processing method is applied to the first terminal device and includes the following steps:
  • S301 If the first terminal device is a mobile device, acquire mobile operation data in response to a user's mobile operation on the first terminal device.
  • the moving operation data includes acceleration data and moving direction data of the first terminal device.
  • the first terminal device is a mobile device, such as a mobile phone
  • the first terminal device is moved, for example, the user moves the mobile phone toward the second
  • the direction of the second terminal device (such as a TV) performs a throwing action, and the first terminal device can obtain the acceleration data and moving direction data of the first terminal device after responding to the user's movement operation.
  • S302 Send the mobile operation data to a server for providing a screen projection service for the user through the screen projection application.
  • the first terminal device can send the mobile operation data to the server for providing the screen projection service for the user through the screen projection application.
  • the server since the server is provided with a user screen projection operation database, the database stores the user's historical screen projection operation records, and the server stores the location information of all terminal devices, therefore, the first terminal device can cast
  • the screen operation data is sent to the server, and the server processes the screen projection operation data.
  • S303 Receive first indication information sent by the server.
  • the first indication information is generated by the server according to the judgment result, and the judgment result is used to determine whether the mobile operation is a screen projection operation, and the first indication information is used to indicate that when the mobile operation is a screen projection operation, the first terminal
  • the display content of the device is projected to the second terminal device, and when the mobile operation is not a screen projection operation, the display content is not projected to the second terminal device.
  • the server after receiving the mobile operation data sent by the first terminal device, the server first determines whether there is a second terminal device that can cast the screen on the path of the first terminal device's moving direction according to the mobile operation data, and if so, Then compare the mobile operation data with the historical data in the user's screen projection operation database to determine whether the mobile operation of the first terminal device is an operation that the user wants to project a screen; screen operation, the first indication information generated by the server is used to instruct to project the display content of the first terminal device to the second terminal device; The generated first indication information is used to indicate not to project the display content of the first terminal device to the second terminal device. Then the server sends the first indication information to the first terminal device.
  • a preset data can be stored in advance, so that the mobile operation data can be compared with the preset data.
  • the first terminal device determines that the first instruction information indicates that the display content of the first terminal device can be projected to the second terminal device, then the first terminal device can follow the first instruction information.
  • the second terminal device After receiving the display content projected by the first terminal device, the second terminal device displays the display content on the screen of the second terminal device.
  • the first terminal device after receiving the first indication information, determines that the first indication information indicates that the display content of the first terminal device cannot be projected to the second terminal device, then the first terminal device determines that the user The operation at this time is a misoperation, therefore, the first terminal device does not project the displayed content on the screen to the second terminal device for display.
  • both the first terminal device and the second terminal device are smart devices with a screen.
  • the method before obtaining the mobile operation data in response to the user's mobile operation on the first terminal device, the method further includes: starting the screen projection application according to the received start operation of the screen projection application.
  • the user when the user wants to perform a screen projection operation, he first opens the screen projection application on the first terminal device, and the first terminal device can start the screen projection application after receiving the user's start operation on the screen projection application, In order to facilitate users to perform screen mirroring operations.
  • the method further includes: receiving the first location information of the first terminal device and the second location information of the second terminal device sent by the server through the screen projection application, wherein the first One position information is used to represent the relative position between the first terminal device and the server, and the second position information is used to represent the relative position between the second terminal device and the server;
  • a thumbnail map is generated on the interface of the application, wherein the thumbnail map includes a first icon corresponding to the first terminal device and a second icon corresponding to the second terminal device, and the thumbnail map is used to determine the first terminal device and the second terminal device The relative position of the device.
  • the thumbnail map can be generated in the screen projection application in the first terminal device. Since the relative position information of all terminal devices and the server is stored in the server, the first terminal device can receive the server map through the screen projection application. The first location information of the first terminal device and the second location information of the second terminal device are sent, so that after determining the location information of all terminal devices, one can be determined on the screen projection application interface of the first terminal device A thumbnail map containing the locations of all terminal devices.
  • Each terminal device in the thumbnail map corresponds to an icon. For example, if the first terminal device is a mobile phone, the corresponding first icon is a mobile phone icon, and the second terminal device If it is a TV, the corresponding second icon is the TV icon, etc. Since the terminal devices in the user’s home are not just mobile phones and TVs, there are many icons corresponding to the terminal devices displayed in the thumbnail map, and the relative positions of each icon It also corresponds to the actual relative position between each terminal device.
  • the method further includes: if the first terminal device is not a mobile device, moving the first icon to where the second icon is located in response to a drag operation on the first icon on the interface of the screen casting application; Location; sending a screen projection request to the server, wherein the screen projection request is used by the first terminal device to request to project the display content on the screen to the second terminal device; receiving second indication information sent by the server, wherein the second indication information It is used for instructing to project the display content of the first terminal device to the second terminal device; based on the second instruction information and the screen projection application, the display content on the screen of the first terminal device is projected to the second terminal device.
  • the first terminal device is not a mobile device, for example, the first terminal device is a refrigerator, when the user wants to project the content displayed on the screen of the first terminal device to the second terminal device, for example, the second terminal
  • the device is a TV. Since a thumbnail map is displayed on the screen-casting application of the first terminal device, the user can directly drag the first icon corresponding to the first terminal device to the icon corresponding to the second terminal device on the thumbnail map.
  • the position of the second icon triggers the generation of a screen projection request, and then sends the screen projection request to the server, and the server generates the second indication information according to the screen projection request, and sends the second indication information to the first terminal device, then
  • the first terminal device determines that screen projection is possible, it can follow the instructions of the second instruction information and use the screen projection application to project the display content on the screen of the first terminal device to the second terminal device for display.
  • the method further includes: receiving a Bluetooth signal sent by the Bluetooth gateway of the server; determining a signal strength indicator value of the Bluetooth signal received by the first terminal device according to the Bluetooth signal; and sending the signal strength indicator value to the server.
  • a Bluetooth gateway is deployed in the user's home, that is, a beacon (Beacon) device group, and a Beacon device group is set in the server, and each Beacon device in the Beacon device group will broadcast a Bluetooth signal at regular intervals To the surrounding, the first terminal device will receive the Bluetooth signal through its own Bluetooth device, and determine the Received Signal Strength Indication (RSSI for short) value according to the received Bluetooth signal, and then send the RSSI value to server.
  • RSSI Received Signal Strength Indication
  • the second terminal device may also receive the Bluetooth signal according to its own Bluetooth device, determine the RSSI value according to the received Bluetooth signal, and then send the RSSI value to the server.
  • the first terminal device and the second terminal device may send the RSSI value to the server through wireless communication technology (Wi-Fi).
  • obtaining the mobile operation data in response to the user's mobile operation on the first terminal device includes: in response to the user's mobile operation on the first terminal device, acquiring the moving direction data through the gyroscope of the first terminal device , and acquire acceleration data through the acceleration sensor of the first terminal device.
  • the first terminal device when the first terminal device is a mobile device, the first terminal device is provided with a gyroscope and an acceleration sensor, for example, the first terminal device is a mobile phone, so that when the user performs a mobile operation on the first terminal device,
  • the moving direction data of the first terminal device may be acquired through the gyroscope of the first terminal device, and the acceleration data of the first terminal device may be acquired through the acceleration sensor of the first terminal device.
  • Fig. 6 is a schematic diagram of obtaining mobile operation data provided by the embodiment of the present application. As shown in Fig. 6, the acceleration data and the moving direction data are all according to the x-axis, y-axis and z-axis of the first terminal device on the space coordinate system integrated from the data.
  • the first terminal device when the first terminal device is a mobile device, if the user wants to project the display content of the first terminal device to the second terminal device for display, the first The terminal device moves towards the direction of the second terminal device, so that after receiving the first instruction information sent by the server, and the first instruction information indicates that the display content of the first terminal device can be projected to the second terminal device, the The display content on the screen of the first terminal device can be projected to the second terminal device through the first instruction information and the screen casting application; when the first terminal device is not a mobile device, if the user wants to implement the first terminal device The displayed content of the first terminal device can be projected to the second terminal device for display, then the first icon corresponding to the first terminal device can be moved to the second terminal device in the thumbnail map displayed on the screen projection application interface of the first terminal device The position of the second icon corresponding to the device, so that after receiving the second indication information sent by the server, the display content on the screen of the first terminal device can be projected to the second through the second indication information and the screen
  • FIG. 4 is a flow chart of Embodiment 2 of the screen projection processing method provided by the embodiment of the present application. As shown in FIG. 4 , the screen projection processing method is applied to a server that provides users with screen projection services, and includes the following steps:
  • the moving operation data includes acceleration data and moving direction data of the first terminal device.
  • the first terminal device is a mobile device, such as a mobile phone
  • the first terminal device is moved, for example, the user moves the mobile phone toward the second
  • the direction of the second terminal device for example, a TV
  • the first terminal device responds to the user's mobile operation, it can generate mobile operation data, and send the mobile operation data to the server according to the screen projection application. Process the received mobile operation data.
  • the acceleration data of the second terminal device can be based on the x-axis, y-axis and z-axis on the spatial coordinate system as shown in Figure 6 Acceleration data are integrated.
  • S402 Determine whether the movement operation of the first terminal device is a screen projection operation according to the movement operation data, and generate a determination result.
  • the server After the server receives the mobile operation data sent by the first terminal device, since the server is provided with a user screen projection operation database, the database stores the user's historical screen projection operation records, and the server stores all The location information of the terminal device. Therefore, after receiving the mobile operation data sent by the first terminal device, the server first determines whether there is a second terminal device that can cast the screen on the path of the first terminal device's moving direction according to the mobile operation data. If so, compare the mobile operation data with the historical data in the user’s screen projection operation database to determine whether the mobile operation on the first terminal device is an operation that the user wants to project the screen.
  • the judgment result is that the user's mobile operation on the first terminal device is a screen projection operation; if it is determined that the user's operation on the first terminal device is not an operation that the user wants to perform screen projection, then The judgment result is that the user's mobile operation on the first terminal device is not a screen projection operation.
  • a preset data can be stored in advance, so that the mobile operation data can be compared with the preset data.
  • the server every time the user performs screen projection operation, after receiving the user's current mobile operation data, the server will store the current mobile operation data in the user's screen projection operation database, so that the user's screen projection operation can be expanded
  • the data in the database will facilitate the subsequent server to more quickly match the user's screen projection operation according to the user's screen projection operation database.
  • the first instruction information is used to indicate that when the mobile operation is a screen projection operation, the display content of the first terminal device is projected to the screen. to the second terminal device; if the judgment result is that the user’s mobile operation on the first terminal device is not a screen projection operation, then the first indication information is used to indicate that when the mobile operation is not a screen projection operation, the displayed content will not be projected to the second terminal device. on the second terminal device.
  • S404 Send the first indication information to the first terminal device.
  • the method further includes: if the first terminal device is not a mobile device, receiving a screen projection request sent by the first terminal device, wherein the screen projection request is used for the first terminal device to request that the displayed content on the screen Projecting the screen to the second terminal device; generating second instruction information according to the screen projection request, wherein the second instruction information is used to indicate that the display content of the first terminal device is projected to the second terminal device; the second instruction information sent to the first terminal device.
  • the first terminal device is not a mobile device, for example, the first terminal device is a refrigerator, when the user wants to project the content displayed on the screen of the first terminal device to the second terminal device, for example, the second terminal
  • the device is a TV. Since a thumbnail map is displayed on the screen-casting application of the first terminal device, the user can directly drag the first icon corresponding to the first terminal device to the icon corresponding to the second terminal device on the thumbnail map. The location of the second icon triggers the generation of a screen projection request, and then sends the screen projection request to the server. After receiving the screen projection request, the server determines that the first terminal device wants to perform screen projection. Therefore, the server can The screen request generates second indication information, and sends the second indication information to the first terminal device, and the first terminal device can determine that the display content can be projected to the second terminal device through the second indication information.
  • judging whether the moving operation of the first terminal device is a screen projection operation according to the moving operation data, and generating a judgment result includes: determining whether there is a second terminal device in the moving direction of the first terminal device according to the moving operation data ; When there is a second terminal device in the moving direction of the first terminal device, comparing the mobile operation data with the preset data to determine whether the mobile operation data exists in the preset interval of the preset data; if the mobile operation data exists in the preset interval of the preset data; In the preset interval of the preset data, a first result is generated, wherein the first result is used to indicate that the mobile operation of the first terminal device is a screen projection operation; if the mobile operation data does not exist in the preset interval of the preset data, A second result is generated, where the second result is used to indicate that the moving operation of the first terminal device is not a screen casting operation.
  • the server since the server is provided with a user screen projection operation database, the database stores the user's historical screen projection operation records, and the server stores the location information of all terminal devices, therefore, the server is generated according to the mobile operation data.
  • the server After receiving the mobile operation data, it is necessary to determine whether there is a second terminal device capable of projecting in the moving direction of the first terminal device.
  • the second terminal device of the screen can compare the mobile operation data with the preset data.
  • the preset data can be the historical data in the user's screen projection operation database, or the user's screen projection operation database set in advance by the developer.
  • Reasonable data in if the difference between the mobile operation data and the preset data is not big, that is, the mobile operation data is within the preset range of the preset data, it means that the user's mobile operation is a screen projection operation, and screen projection can be realized ; If the difference between the mobile operation data and the preset data is large, that is to say, the mobile operation data is not within the preset range of the preset data, it means that the user's mobile operation is not a screen projection operation. The mobile operation of the device may be a wrong operation, so screen projection cannot be realized.
  • the server will return a prompt message to the first terminal device, so that the first terminal device can determine that it is not possible to cast the screen at this time. Screencasting operation.
  • generating the second indication information according to the screen casting request includes: determining whether the screen casting request is a request triggered when the first icon is moved to the position of the second icon, wherein the first icon is a thumbnail map The icon corresponding to the first terminal device, the second icon is the icon corresponding to the second terminal device in the thumbnail map, and the thumbnail map is used to determine the relative position of the first terminal device and the second terminal device; When the request is triggered when the first icon is moved to the location of the second icon, the second indication information is generated according to the screen casting request.
  • the first terminal device is not a mobile device. Therefore, when the user implements the screen projection operation on the first terminal device, he needs to operate on the thumbnail map of the screen projection application of the first terminal device, that is, The user drags the first icon corresponding to the first terminal device to the position of the second icon corresponding to the second terminal device on the thumbnail map. At this time, the first terminal device will trigger the generation of a screen projection request, and the server will The screen request is a request triggered by the user dragging the first icon to the position of the second icon on the thumbnail map. The server determines that the user needs to project the display content on the screen of the first terminal device to the second terminal device. Therefore, the server may generate second indication information according to the screen projection request, and send the second indication information to the first terminal device, so that the first terminal device can perform a screen projection operation.
  • the method further includes: periodically broadcasting Bluetooth signals according to a preset time interval; receiving the signal strength indicator value sent by the first terminal device and the signal strength indicator value sent by the second terminal device; based on The signal strength indicator value sent by the first terminal device determines the first distance between the first terminal device and the server; determines the second distance between the second terminal device and the server based on the signal strength indicator value sent by the second terminal device; The first position information is determined based on the first distance, wherein the first position information is used to indicate the relative position between the first terminal device and the server; the second position information is determined based on the second distance, wherein the second position information is used to indicate the first terminal device and the server. The relative position between the two terminal devices and the server; sending the first position information and the second position information to the first terminal device.
  • the server in order to facilitate the operation of users in each family, can be set in the user's family.
  • the server can also be called a micro server, and the Beacon device group in the server can periodically The broadcast Bluetooth signal, so that the first terminal device and the second terminal device (or other smart display devices in the user's home) can receive the Bluetooth signal through the Bluetooth module of the device, and according to the received Bluetooth The signal sends the RSSI value to the server respectively.
  • the server can determine the first distance between the first terminal device and the server according to the RSSI value sent by the first terminal device, and the server can determine the distance between the first terminal device and the server through the first distance. relative position; the server can determine the second distance between the second terminal device and the server according to the RSSI value sent by the second terminal device, and the server can determine the distance between the second terminal device and the server through the second distance Relative location, therefore, the server includes the location information of all smart display devices in the user's home, and can update the location information of the first terminal device and the second terminal device in real time according to the Bluetooth signal.
  • the server after the server obtains the first location information of the first terminal device and the second location information of the second terminal device, it can send the first location information and the second location information to the first terminal device, so that The screen-casting application on the first terminal device can generate a thumbnail map.
  • FIG. 7 is a schematic diagram of the first embodiment of Bluetooth gateway positioning processing provided by the embodiment of the present application.
  • the server determines the location information of all smart devices with screens in the user's home through the Bluetooth gateway (Beacon device group), which can be as follows As shown in Figure 7, assuming that the current room is a large room of 8*8 square meters, a Beacon device is deployed every 2 meters in the room, and the position of each Beacon device can be expressed by coordinates, as shown in Figure 7 (x0, y2 ), (x0, y3), (x1, y3), etc., since the location information of each Beacon device is predetermined and has been uploaded to the server, when the smart device with a screen is in any position indoors, the deployed The Beacon device group can ensure that each smart device with a screen will have the three nearest Beacon devices. Therefore, in theory, the server can determine the location information of any smart device with a screen in the room through the three Beacon devices. That is to say , the location
  • FIG. 8 is a schematic diagram of the second embodiment of the positioning processing of the Bluetooth gateway provided by the embodiment of the present application.
  • the server includes the relative position information of all smart devices with screens in the room.
  • the server when the first terminal device is a mobile device, if the user wants to project the display content of the first terminal device to the second terminal device for display, the server can The operation data judges whether the user's throwing action is intended to cast a screen, and then generates the first indication information according to the judgment result, and sends the first indication information to the first terminal device, so that the first terminal device receives the first indication information sent by the server.
  • the display on the screen of the first terminal device can be realized through the first instruction information and the screen projection application Content projection to the second terminal device;
  • the server can according to the screen projection request Generate the second indication information, and send the second indication information to the first terminal device, so that after the first terminal device receives the second indication information sent by the server, the second indication information and the screen-casting application can be used to implement the second indication information.
  • the content displayed on the screen of a terminal device is projected to the second terminal device, thereby preventing the user from performing complicated operations on the first terminal device, and achieving the purpose of improving the efficiency of the user's screen projection.
  • Fig. 5 is a flow chart of Embodiment 3 of the screen projection processing method provided by the embodiment of the present application. As shown in Fig. 5, the screen projection processing method includes the following steps:
  • S501 Determine that the first terminal device is a mobile device.
  • the first terminal device may be a mobile device such as a mobile phone.
  • the first terminal device determines whether the user has a screen projection behavior.
  • step S503 if the user has screen projection behavior, jump to step S503; if the user does not have screen projection behavior, the solution ends.
  • the first terminal device sends the mobile operation data corresponding to the user's screen projection behavior to the server that provides the user with a screen projection service.
  • the movement operation data includes movement direction data of the first terminal device.
  • S504 The server judges whether there is a second terminal device capable of receiving screen projection content in the moving direction of the first terminal device.
  • step S505 if there is a second terminal device capable of receiving screen-casting content in the moving direction of the first terminal device, jump to step S505; if there is no second terminal device capable of receiving screen-casting content in the moving direction of the first terminal device two terminal devices, the solution ends.
  • S505 The server retrieves the mobile operation data from the user screen projection operation database.
  • S506 The server judges whether the mobile operation data can enable the first terminal device to start a screen projection function.
  • step S507 if the mobile operation data can enable the first terminal device to start the screen projection function, then jump to step S507; if the mobile operation data cannot enable the first terminal device to start the screen projection function, the solution ends.
  • the first terminal device activates a screen projection function, and projects the content displayed on the screen of the first terminal device to the second terminal device for display.
  • S508 The server records the mobile operation data in the user screen projection operation database.
  • the user when the user wants to project the display content on the screen of a mobile device such as a mobile phone to other terminal devices, the user only needs to open the screen projection application in the mobile device such as a mobile phone, and then take Pick up a mobile device such as a mobile phone and make a throwing action towards other terminal devices, so that the display content on the screen of the mobile device such as a mobile phone can be projected to other terminal devices for display;
  • a thumbnail map is displayed on the screen-casting application interface of non-mobile devices such as refrigerators, and then the user drags the icons corresponding to non-mobile devices such as refrigerators on the thumbnail map Move to the position of the icon corresponding to other terminal devices, which can realize the display content on the screen of non-mobile devices such as refrigerators to be displayed on other terminal devices.
  • the user since the location information of all indoor terminal devices is stored in the server, the user opens the screen-casting application on the terminal device that initiates the screen-casting operation and the terminal device that receives the screen-casting content respectively. , and the user only needs to perform the corresponding screen-casting operation on the terminal device that initiates the screen-casting operation, and the server can determine whether the corresponding terminal device that receives the screen-casting content can be matched, so that when the corresponding terminal device that receives the screen-casting content is matched Realizing the user's screen projection operation after the terminal device is a technical implementation method that can greatly improve the user's screen projection efficiency.
  • FIG. 9 is a schematic diagram of Embodiment 1 of the screen projection processing device provided in the embodiment of the present application.
  • the screen projection processing device 90 includes:
  • the acquiring module 91 is configured to, if the first terminal device is a mobile device, acquire mobile operation data in response to the user's mobile operation on the first terminal device, wherein the mobile operation data includes acceleration data and moving direction data of the first terminal device ;
  • the first sending module 92 is configured to send the mobile operation data to a server for providing screen projection services for users through the screen projection application;
  • the first receiving module 93 is configured to receive the first indication information sent by the server, wherein the first indication information is generated by the server according to the judgment result, and the judgment result is used to determine whether the mobile operation is a screen projection operation, and the first indication information is used for Instructing to project the display content of the first terminal device to the second terminal device when the mobile operation is a screen projection operation, and not to project the display content to the second terminal device when the mobile operation is not a screen projection operation;
  • the screen projection module 94 is configured to, when the user's first instruction information is used to indicate to project the display content of the first terminal device to the second terminal device, based on the first instruction information and the screen projection application, the screen of the first terminal device The content displayed on the screen is projected to the second terminal device.
  • the apparatus is further configured to start the screen projection application according to the received start operation of the screen projection application before acquiring the movement operation data in response to the user's movement operation on the first terminal device.
  • the apparatus is further configured to receive the first location information of the first terminal device and the second location information of the second terminal device sent by the server through the screen-casting application, wherein the first location information is used to indicate that the first terminal device The relative position between the server and the server, the second position information is used to indicate the relative position between the second terminal device and the server; according to the first position information and the second position information, a thumbnail map is generated on the interface of the screen-casting application, wherein , the thumbnail map includes a first icon corresponding to the first terminal device and a second icon corresponding to the second terminal device, and the thumbnail map is used to determine the relative positions of the first terminal device and the second terminal device.
  • the device is further configured to, if the first terminal device is not a mobile device, move the first icon to the position of the second icon in response to a drag operation on the first icon on the screen projection application interface;
  • the server sends a screen projection request, wherein the screen projection request is used by the first terminal device to request to project the displayed content on the screen to the second terminal device; receiving the second indication information sent by the server, wherein the second indication information is used to indicate Projecting the display content of the first terminal device to the second terminal device; projecting the display content on the screen of the first terminal device to the second terminal device based on the second instruction information and the screen projection application.
  • the device is also used to receive the Bluetooth signal sent by the Bluetooth gateway of the server; determine the signal strength indicator value of the Bluetooth signal received by the first terminal device according to the Bluetooth signal; and send the signal strength indicator value to the server.
  • the acquiring module 91 is further configured to acquire moving direction data through a gyroscope of the first terminal device, and acquire acceleration data through an acceleration sensor of the first terminal device in response to a user's mobile operation on the first terminal device.
  • the screen projection processing device is used to implement the technical solution of the first terminal device in the foregoing method embodiments, and its implementation principle and technical effect are similar to those in the foregoing method embodiments, and will not be repeated here.
  • FIG. 10 is a schematic diagram of Embodiment 2 of the screen projection processing device provided in the embodiment of the present application.
  • the screen projection processing device 1000 includes:
  • the second receiving module 1001 is configured to, if the first terminal device is a mobile device, receive mobile operation data sent when the first terminal device performs a mobile operation, wherein the mobile operation data includes acceleration data and moving direction data of the first terminal device ;
  • the first generating module 1002 is configured to judge whether the mobile operation of the first terminal device is a screen projection operation according to the mobile operation data, and generate a judgment result;
  • the second generation module 1003 is configured to generate first instruction information according to the judgment result, wherein the first instruction information is used to indicate that when the moving operation is a screen projection operation, the display content of the first terminal device is projected to the second terminal device When the mobile operation is not a screen projection operation, the displayed content will not be projected to the second terminal device;
  • the second sending module 1004 is configured to send the first indication information to the first terminal device.
  • the device is also used to receive a screen projection request sent by the first terminal device if the first terminal device is not a mobile device, wherein the screen projection request is used for the first terminal device to request to project the display content on the screen to On the second terminal device; generate second indication information according to the screen casting request, wherein the second indication information is used to indicate to cast the display content of the first terminal device to the second terminal device; send the second indication information to the second terminal device a terminal device.
  • the first generating module 1002 is also configured to determine whether there is a second terminal device in the moving direction of the first terminal device according to the moving operation data; when there is a second terminal device in the moving direction of the first terminal device, the mobile comparing the operation data with the preset data to determine whether the movement operation data exists in the preset interval of the preset data; if the movement operation data exists in the preset interval of the preset data, a first result is generated, wherein the first result It is used to indicate that the movement operation of the first terminal device is a screen projection operation; if the movement operation data does not exist in the preset interval of the preset data, a second result is generated, wherein the second result is used to indicate the movement of the first terminal device The operation is not a mirroring operation.
  • the device is further configured to determine whether the screen casting request is a request triggered when the first icon is moved to the position of the second icon, wherein the first icon is an icon corresponding to the first terminal device in the thumbnail map, The second icon is the icon corresponding to the second terminal device in the thumbnail map, and the thumbnail map is used to determine the relative position of the first terminal device and the second terminal device; the screen casting request is to move the first icon to the second icon When the request is triggered at the location, the second indication information is generated according to the screen projection request.
  • the device is also used to periodically broadcast Bluetooth signals according to a preset time interval; receive the signal strength indicator value sent by the first terminal device and the signal strength indicator value sent by the second terminal device; Determine the first distance between the first terminal device and the server based on the signal strength indicator value sent by the device; determine the second distance between the second terminal device and the server based on the signal strength indicator value sent by the second terminal device; determine the second distance between the second terminal device and the server based on the first distance determining first location information, wherein the first location information is used to indicate the relative location between the first terminal device and the server; determining second location information based on the second distance, wherein the second location information is used to indicate the second terminal device and the relative position between the server; sending the first position information and the second position information to the first terminal device.
  • the screen projection processing device is used to implement the technical solution of the server in the foregoing method embodiments, and its realization principle and technical effect are similar to those in the foregoing method embodiments, and will not be repeated here.
  • FIG. 11 is a schematic structural diagram of a terminal device provided in an embodiment of the present application. As shown in FIG. 11 , the terminal device 1100 includes:
  • the memory 1111 is used to store computer-executable instructions, and the processor 1112 executes the computer-executable instructions stored in the memory 1111 to implement the technical solution of the screen projection processing method of the first terminal device in the foregoing method embodiments.
  • the memory 1112 can be independent or integrated with the processor 1111 .
  • the terminal device 1100 may further include:
  • the display 1113 can be used for the user to interact with the terminal device 1100; the bus is used for connecting the above devices.
  • FIG. 12 is a schematic structural diagram of a server provided in an embodiment of the present application. As shown in FIG. 12, the server 1200 includes:
  • the processing component 1201 further includes one or more processors, and a memory resource represented by the memory 1202 for storing instructions executable by the processing component 1201 , such as application programs.
  • the application program stored in memory 1202 may include one or more modules each corresponding to a set of instructions.
  • the processing component 1201 is configured to execute instructions, so as to implement the technical solution of the server's screen projection processing method in the foregoing method embodiments.
  • the server 1200 may also include a power supply component 1203 configured to perform power management of the server 1200, a wired or wireless network interface 1204 configured to connect the server 1200 to a network, and an input-output interface 1205, which may also Called the I/O interface 1205 .
  • the server 1200 may operate based on an operating system stored in the memory 1202, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.
  • the embodiment of the present application also provides a readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the screen projection processing method provided in the foregoing method embodiment is implemented.
  • An embodiment of the present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the screen projection processing method provided in the foregoing method embodiments is implemented.
  • the aforementioned program can be stored in a computer-readable storage medium.
  • the program executes the steps including the above-mentioned method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present application belongs to the field of computers, and specifically relates to a screen projection processing method and apparatus, and a device and a storage medium. The method in the present application comprises: starting a screen projection application according to a received starting operation of the screen projection application; if a first terminal device is a mobile device, acquiring movement operation data in response to a movement operation of a user for the first terminal device; sending, by means of the screen projection application, the movement operation data to a server, which is used for providing a screen projection service for the user; receiving first indication information, which is sent by the server; and on the basis of the first indication information and the screen projection application, projecting display content on the screen of the first terminal device to a second terminal device.

Description

投屏处理方法、装置、设备和存储介质Screen projection processing method, device, equipment and storage medium
本申请要求于2021年10月25日提交中国专利局、申请号为202111251675.X、申请名称为“投屏处理方法、装置、设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202111251675.X and the application name "screen projection processing method, device, equipment and storage medium" submitted to the China Patent Office on October 25, 2021, the entire content of which is passed References are incorporated in this application.
技术领域technical field
本申请属于计算机领域,具体涉及一种投屏处理方法、装置、设备和存储介质。The present application belongs to the field of computers, and in particular relates to a screen projection processing method, device, equipment and storage medium.
背景技术Background technique
随着计算机技术的发展,智能带屏设备越来越多的被用户使用,比如电视、冰箱、家庭监控摄像头等。用户在使用过程中,可以通过手机等终端设备与智能带屏设备之间进行屏幕投屏。With the development of computer technology, more and more smart devices with screens are used by users, such as TVs, refrigerators, and home surveillance cameras. During use, the user can perform screen projection between terminal devices such as mobile phones and smart devices with screens.
现有技术中,在实现手机等终端设备与智能带屏设备之间进行屏幕投屏时,通常是通过在手机等终端设备和智能带屏设备上分别下载对应的投屏软件,用户在想要投屏时,在手机等终端设备和智能带屏设备上打开投屏软件,然后按照投屏软件的引导信息进行操作,从而实现投屏。但是,这种方法往往需要用户在手机等终端设备和智能带屏设备上进行反复操作,因此,由于用户的操作过程较为复杂,存在用户进行投屏的效率较低的问题。In the prior art, when implementing screen projection between a terminal device such as a mobile phone and a smart device with a screen, the corresponding screen projection software is usually downloaded on the terminal device such as a mobile phone and the smart device with a screen. When casting a screen, open the screen projection software on terminal devices such as mobile phones and smart devices with screens, and then operate according to the guidance information of the screen projection software, so as to realize screen projection. However, this method often requires the user to perform repeated operations on terminal devices such as mobile phones and smart devices with screens. Therefore, due to the relatively complicated operation process of the user, there is a problem that the efficiency of the user's screen projection is low.
发明内容Contents of the invention
为了解决现有技术中的上述问题,即为了解决由于用户的操作过程较为复杂,导致用户进行投屏的效率较低的问题,本申请提供了一种投屏处理方法,应用于第一终端设备,该方法包括:若第一终端设备是移动设备,则响应于用户对第一终端设备的移动操作,获取移动操作数据,其中,移动操作数据包括第一终端设备的加速度数据和移动方向数据;通过投屏应用将移动操作数据发送至用于为用户提供投屏服务的服务器;接收服务器发送的第一指示信息,其中,第一指示信息为 服务器根据判断结果生成的,判断结果用于确定移动操作是否为投屏操作,第一指示信息用于指示在移动操作是投屏操作时,将第一终端设备的显示内容投屏至第二终端设备上,在移动操作不是投屏操作时,不将显示内容投屏至第二终端设备上;在用户第一指示信息用于指示将第一终端设备的显示内容投屏至第二终端设备上时,基于第一指示信息和投屏应用将第一终端设备的屏幕上的显示内容投屏至第二终端设备。In order to solve the above-mentioned problems in the prior art, that is, to solve the problem that the user’s screen projection efficiency is low due to the complicated operation process of the user, the present application provides a screen projection processing method, which is applied to the first terminal device , the method includes: if the first terminal device is a mobile device, acquiring mobile operation data in response to a user's mobile operation on the first terminal device, wherein the mobile operation data includes acceleration data and moving direction data of the first terminal device; The mobile operation data is sent to the server for providing the user with the screen projection service through the screen projection application; the first indication information sent by the server is received, wherein the first indication information is generated by the server according to the judgment result, and the judgment result is used to determine the movement Whether the operation is a screen projection operation, the first indication information is used to indicate that when the mobile operation is a screen projection operation, the display content of the first terminal device is projected to the second terminal device; when the mobile operation is not a screen projection operation, no Projecting the display content to the second terminal device; when the user's first instruction information is used to instruct to project the display content of the first terminal device to the second terminal device, based on the first instruction information and the screen projection application, the second The content displayed on the screen of a terminal device is projected to the second terminal device.
本申请实施例还提供了一种投屏处理方法,应用于为服务器,该方法包括:若第一终端设备是移动设备,则接收第一终端设备执行移动操作时发送的移动操作数据,其中,移动操作数据包括第一终端设备的加速度数据和移动方向数据;根据移动操作数据判断第一终端设备的移动操作是否为投屏操作,生成判断结果;根据判断结果生成第一指示信息,其中,第一指示信息用于指示在移动操作是投屏操作时,将第一终端设备的显示内容投屏至第二终端设备上,在移动操作不是投屏操作时,不将显示内容投屏至第二终端设备上;将第一指示信息发送至第一终端设备。The embodiment of the present application also provides a screen projection processing method, which is applied to a server, and the method includes: if the first terminal device is a mobile device, receiving mobile operation data sent by the first terminal device when performing a mobile operation, wherein, The mobile operation data includes acceleration data and moving direction data of the first terminal device; judging whether the mobile operation of the first terminal device is a screen projection operation according to the mobile operation data, and generating a judgment result; generating first instruction information according to the judgment result, wherein, the first The instruction information is used to indicate that when the mobile operation is a screen projection operation, the display content of the first terminal device is projected to the second terminal device, and when the mobile operation is not a screen projection operation, the display content is not projected to the second terminal device. On the terminal device; sending the first indication information to the first terminal device.
本申请实施例还提供了一种投屏处理装置,包括:获取模块,设置为若第一终端设备是移动设备,则响应于用户对第一终端设备的移动操作,获取移动操作数据,其中,移动操作数据包括第一终端设备的加速度数据和移动方向数据;第一发送模块,设置为通过投屏应用将移动操作数据发送至用于为用户提供投屏服务的服务器;第一接收模块,设置为接收服务器发送的第一指示信息,其中,第一指示信息为服务器根据判断结果生成的,判断结果用于确定移动操作是否为投屏操作,第一指示信息用于指示在移动操作是投屏操作时,将第一终端设备的显示内容投屏至第二终端设备上,在移动操作不是投屏操作时,不将显示内容投屏至第二终端设备上;投屏模块,设置为在用户第一指示信息用于指示将第一终端设备的显示内容投屏至第二终端设备上时,基于第一指示信息和投屏应用将第一终端设备的屏幕上的显示内容投屏至第二终端设备。An embodiment of the present application also provides a screen projection processing device, including: an acquisition module configured to acquire mobile operation data in response to a user's mobile operation on the first terminal device if the first terminal device is a mobile device, wherein, The mobile operation data includes acceleration data and moving direction data of the first terminal device; the first sending module is configured to send the mobile operation data to a server for providing screen projection services for users through the screen projection application; the first receiving module is configured to To receive the first indication information sent by the server, wherein the first indication information is generated by the server according to the judgment result, the judgment result is used to determine whether the mobile operation is a screen projection operation, and the first indication information is used to indicate that the mobile operation is a screen projection operation During operation, the display content of the first terminal device is projected to the second terminal device, and when the mobile operation is not a screen projection operation, the display content is not projected to the second terminal device; The first instruction information is used to indicate that when the display content of the first terminal device is projected to the second terminal device, based on the first instruction information and the screen projection application, the display content on the screen of the first terminal device is projected to the second terminal device. Terminal Equipment.
本申请实施例还提供了一种投屏处理装置,包括:第二接收模块,设置为若第一终端设备是移动设备,则接收第一终端设备执行移 动操作时发送的移动操作数据,其中,移动操作数据包括第一终端设备的加速度数据和移动方向数据;第一生成模块,设置为根据移动操作数据判断第一终端设备的移动操作是否为投屏操作,生成判断结果;第二生成模块,设置为根据判断结果生成第一指示信息,其中,第一指示信息用于指示在移动操作是投屏操作时,将第一终端设备的显示内容投屏至第二终端设备上,在移动操作不是投屏操作时,不将显示内容投屏至第二终端设备上;第二发送模块,设置为将第一指示信息发送至第一终端设备。The embodiment of the present application also provides a screen projection processing device, including: a second receiving module, configured to receive the mobile operation data sent when the first terminal device performs a mobile operation if the first terminal device is a mobile device, wherein, The mobile operation data includes acceleration data and moving direction data of the first terminal device; the first generation module is configured to judge whether the mobile operation of the first terminal device is a screen projection operation according to the mobile operation data, and generate a judgment result; the second generation module, It is set to generate the first instruction information according to the judgment result, wherein the first instruction information is used to indicate that when the mobile operation is a screen projection operation, the display content of the first terminal device is projected to the second terminal device, and when the mobile operation is not During the screen projection operation, the display content is not projected to the second terminal device; the second sending module is configured to send the first indication information to the first terminal device.
本申请实施例还提供了一种终端设备,包括:处理器,以及与处理器通信连接的存储器;处理器执行存储器存储的计算机执行指令,以实现前述方法中的应用于第一终端设备的投屏处理方法。The embodiment of the present application also provides a terminal device, including: a processor, and a memory connected to the processor in communication; screen processing method.
本申请实施例还提供了一种服务器,包括:处理器,以及与处理器通信连接的存储器;处理器执行存储器存储的计算机执行指令,以实现前述方法中的应用于服务器的投屏处理方法。The embodiment of the present application also provides a server, including: a processor, and a memory communicatively connected to the processor; the processor executes computer-executed instructions stored in the memory, so as to implement the screen projection processing method applied to the server in the foregoing method.
本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时用于实现前述方法中的应用于第一终端设备的投屏处理方法,或,应用于服务器的投屏处理方法。The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it is used to implement the screen projection processing method applied to the first terminal device in the foregoing method, or, Screen projection processing method applied to the server.
本申请实施例还提供了一种计算机程序产品,包括计算机程序,计算机程序被处理器执行时用于实现前述方法中的应用于第一终端设备的投屏处理方法,或,应用于服务器的投屏处理方法。The embodiment of the present application also provides a computer program product, including a computer program. When the computer program is executed by a processor, the computer program is used to implement the screen projection processing method applied to the first terminal device in the foregoing method, or the projection process applied to the server. screen processing method.
本领域技术人员能够理解的是,本申请的投屏处理方法,应用于第一终端设备,通过在第一终端设备是移动设备时,若用户想要实现将第一终端设备的显示内容投屏至第二终端设备上进行显示,则可以将第一终端设备朝向第二终端设备的方向进行移动,这样在接收到服务器发送的第一指示信息,且该第一指示信息指示将第一终端设备的显示内容投屏至第二终端设备上之后,就可以通过第一指示信息和投屏应用实现将第一终端设备的屏幕上的显示内容投屏至第二终端设备。Those skilled in the art can understand that the screen projection processing method of the present application is applied to the first terminal device. When the first terminal device is a mobile device, if the user wants to realize the screen projection to display on the second terminal device, the first terminal device can be moved towards the direction of the second terminal device, so that after receiving the first instruction information sent by the server, and the first instruction information indicates that the first terminal device After the display content of the first terminal device is projected to the second terminal device, the display content on the screen of the first terminal device can be projected to the second terminal device through the first instruction information and the screen projection application.
本申请的投屏处理方法,还可以应用于服务器,通过在第一终端设备是移动设备时,若用户想要实现将第一终端设备的显示内容投屏至第二终端设备上进行显示,则服务器可以根据移动操作数据生 成判断结果,确定用户对第一终端设备的移动操作是否为投屏操作,然后根据判断结果生成第一指示信息,并将第一指示信息发送至第一终端设备,这样在第一终端设备接收到服务器发送的第一指示信息,且该第一指示信息指示将第一终端设备的显示内容投屏至第二终端设备上之后,就可以通过第一指示信息和投屏应用实现将第一终端设备的屏幕上的显示内容投屏至第二终端设备。The screen projection processing method of the present application can also be applied to the server. When the first terminal device is a mobile device, if the user wants to realize the projection of the display content of the first terminal device to the second terminal device for display, then The server may generate a judgment result according to the mobile operation data, determine whether the user's mobile operation on the first terminal device is a screen projection operation, and then generate first indication information according to the judgment result, and send the first indication information to the first terminal device, thus After the first terminal device receives the first instruction information sent by the server, and the first instruction information indicates to project the display content of the first terminal device to the second terminal device, it can use the first instruction information and the screen projection The application realizes projecting the display content on the screen of the first terminal device to the second terminal device.
附图说明Description of drawings
下面参照附图来描述本申请的投屏处理方法的优选实施方式。附图为:Preferred implementations of the screen projection processing method of the present application are described below with reference to the accompanying drawings. Attached are:
图1是本申请实施例提供的投屏处理方法的应用场景示意图;FIG. 1 is a schematic diagram of an application scenario of a projection processing method provided in an embodiment of the present application;
图2是本申请实施例提供的投屏处理系统的结构示意图;FIG. 2 is a schematic structural diagram of a screen projection processing system provided by an embodiment of the present application;
图3是本申请实施例提供的投屏处理方法实施例一的流程图;FIG. 3 is a flow chart of Embodiment 1 of the projection processing method provided by the embodiment of the present application;
图4是本申请实施例提供的投屏处理方法实施例二的流程图;FIG. 4 is a flow chart of Embodiment 2 of the projection processing method provided by the embodiment of the present application;
图5是本申请实施例提供的投屏处理方法实施例三的流程图;FIG. 5 is a flow chart of Embodiment 3 of the projection processing method provided by the embodiment of the present application;
图6是本申请实施例提供的获取移动操作数据的示意图;FIG. 6 is a schematic diagram of acquiring mobile operation data provided by an embodiment of the present application;
图7是本申请实施例提供的蓝牙网关定位处理实施例一的示意图;FIG. 7 is a schematic diagram of Embodiment 1 of Bluetooth gateway positioning processing provided by the embodiment of the present application;
图8是本申请实施例提供的蓝牙网关定位处理实施例二的示意图;FIG. 8 is a schematic diagram of Embodiment 2 of Bluetooth gateway positioning processing provided by the embodiment of the present application;
图9是本申请实施例提供的投屏处理装置实施例一的示意图;FIG. 9 is a schematic diagram of Embodiment 1 of the screen projection processing device provided by the embodiment of the present application;
图10是本申请实施例提供的投屏处理装置实施例二的示意图;Fig. 10 is a schematic diagram of Embodiment 2 of the screen projection processing device provided by the embodiment of the present application;
图11是本申请实施例提供的终端设备的结构示意图;FIG. 11 is a schematic structural diagram of a terminal device provided by an embodiment of the present application;
图12是本申请实施例提供的服务器的结构示意图。FIG. 12 is a schematic structural diagram of a server provided by an embodiment of the present application.
具体实施方式Detailed ways
首先,本领域技术人员应当理解的是,这些实施方式仅仅用于解释本申请的技术原理,并非旨在限制本申请的保护范围。本领域技术人员可以根据需要对其作出调整,以便适应具体的应用场合。First of all, those skilled in the art should understand that these embodiments are only used to explain the technical principle of the present application, and are not intended to limit the protection scope of the present application. Those skilled in the art can make adjustments as needed so as to adapt to specific applications.
其次,需要说明的是,在本申请实施例的描述中,术语“第一”、“第二”、“第三”“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。Secondly, it should be noted that in the description of the embodiments of the present application, the terms "first", "second", "third", "fourth" and so on (if they exist) are used to distinguish similar objects and do not necessarily Used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein can be practiced in sequences other than those illustrated or described herein.
此外,还需要说明的是,在本申请实施例的描述中,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。In addition, it should be noted that in the description of the embodiments of the present application, the terms "comprising" and "having" and any variations thereof are intended to cover a non-exclusive inclusion, for example, a process comprising a series of steps or units A method, system, product or device is not necessarily limited to those steps or elements explicitly listed, but may include other steps or elements not explicitly listed or inherent to the process, method, product or device.
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
背景技术中提供的现有技术中,用户进行投屏的方案中,至少存在以下技术问题:In the prior art provided in the background art, there are at least the following technical problems in the solution for users to cast screens:
用户如果想要将手机内容投屏到其他智能带屏设备上,需要在手机和智能带屏设备上进行反复操作,比如,首先点开手机端投屏软件,然后在智能带屏设备中打开投屏软件,手机端按照投屏软件的指示进行操作,并等待智能带屏设备显示内容。因此,用户的实际操作非常复杂,导致用户进行投屏的效率较低的问题。If the user wants to cast the contents of the mobile phone to other smart devices with a screen, he needs to perform repeated operations on the phone and the device with a smart screen. Screen software, the mobile terminal operates according to the instructions of the screen projection software, and waits for the smart device with screen to display the content. Therefore, the user's actual operation is very complicated, which leads to the problem that the user's screen projection efficiency is low.
针对上述的这些问题,本申请提出一种投屏处理方法,在第一终端设备是移动设备时,用户若想要将第一终端设备的显示内容投屏至第二终端设备中,则将第一终端设备进行移动,第一终端设备可以通过陀螺仪获取到第一终端设备的移动方向数据,通过加速度传感器获取到第一终端设备的加速度数据,然后将移动方向数据和加速度数据发送到为用户提供投屏服务的服务器中,服务器再根据移动方向数据和加速度数据判断用户对第一终端设备的移动操作是否为投屏操作,并生成第一指示信息发送至第一终端设备中,若用户对第一终端设备的移动操作是 投屏操作,则第一终端设备根据第一指示信息指示的可以将第一终端设备的显示内容投屏至第二终端设备,将显示内容投屏至第二终端设备中进行显示;若用户对第一终端设备的移动操作不是投屏操作,则第一终端设备根据第一指示信息指示的不可以将第一终端设备的显示内容投屏至第二终端设备,不将显示内容投屏至第二终端设备中进行显示。In view of the above-mentioned problems, this application proposes a screen projection processing method. When the first terminal device is a mobile device, if the user wants to project the display content of the first terminal device to the second terminal device, the When a terminal device moves, the first terminal device can obtain the moving direction data of the first terminal device through the gyroscope, obtain the acceleration data of the first terminal device through the acceleration sensor, and then send the moving direction data and acceleration data to the user In the server that provides the screen projection service, the server judges whether the user's mobile operation on the first terminal device is a screen projection operation according to the moving direction data and acceleration data, and generates first instruction information and sends it to the first terminal device. The mobile operation of the first terminal device is a screen projection operation, then the first terminal device can project the display content of the first terminal device to the second terminal device according to the first instruction information, and project the display content to the second terminal device display in the device; if the user's mobile operation on the first terminal device is not a screen projection operation, then the first terminal device cannot project the display content of the first terminal device to the second terminal device according to the first indication information, The display content is not projected to the second terminal device for display.
若第一终端设备不是移动设备,则第一终端设备可以通过投屏应用界面上的缩略地图实现投屏,该缩略地图中包括有第一终端设备对应的第一图标和第二终端设备对应的第二图标,当用户想要将第一终端设备的显示内容投屏至第二终端设备中时,在缩略地图上将第一终端设备的对应的第一图标拖动至第二终端设备对应的第二图标所在位置,此时触发一个投屏请求,第一终端设备将投屏请求发送至服务器,服务器根据投屏请求生成第二指示信息发送至第一终端设备中,这样第一终端设备就可以将显示内容投屏至第二终端设备中进行显示。If the first terminal device is not a mobile device, the first terminal device can realize screen projection through the thumbnail map on the screen projection application interface, and the thumbnail map includes the first icon corresponding to the first terminal device and the second terminal device The corresponding second icon, when the user wants to project the display content of the first terminal device to the second terminal device, drag the corresponding first icon of the first terminal device to the second terminal on the thumbnail map The location of the second icon corresponding to the device triggers a screen projection request at this time, the first terminal device sends the screen projection request to the server, and the server generates second instruction information according to the screen projection request and sends it to the first terminal device, so that the first The terminal device can project the displayed content to the second terminal device for display.
图1是本申请实施例提供的投屏处理方法的应用场景示意图,如图1所示,在该场景中,若第一终端设备是移动设备,以第一终端设备是手机,第二终端设备是电视为例,用户想要将手机的屏幕上的显示内容投屏到电视上进行显示,可以在把手机上的投屏应用打开之后,将手机朝向电视的方向移动,做出投掷动作,这样可以通过手机中的陀螺仪获取到移动方向数据,通过手机中的加速度传感器获取到加速度数据,然后手机通过投屏应用将移动方向数据和加速度数据发送至为用户提供投屏服务的服务器中,服务器根据加速度数据和移动方向数据判断用户的投掷动作是否是想要投屏,然后根据判断结果生成第一指示信息,并发送至手机中,若用户的投掷动作是想要投屏,则第一指示信息确定可以将手机屏幕上的显示内容投屏至电视上进行显示,若用户的投掷动作不是想要投屏,则第一指示信息确定不可以将手机屏幕上的显示内容投屏至电视上进行显示。Figure 1 is a schematic diagram of the application scenario of the screen projection processing method provided by the embodiment of the present application. As shown in Figure 1, in this scenario, if the first terminal device is a mobile device, the first terminal device is a mobile phone, and the second terminal device Take the TV as an example. If the user wants to project the content displayed on the screen of the mobile phone to the TV for display, he can open the screen-casting application on the mobile phone, move the mobile phone towards the TV, and make a throwing action. The moving direction data can be obtained through the gyroscope in the mobile phone, the acceleration data can be obtained through the acceleration sensor in the mobile phone, and then the mobile phone can send the moving direction data and acceleration data to the server that provides the user with screen casting services through the screen projection application. According to the acceleration data and the moving direction data, it is judged whether the user's throwing action is to cast a screen, and then the first indication information is generated according to the judgment result and sent to the mobile phone. If the user's throwing action is to cast a screen, the first indication The information confirms that the display content on the mobile phone screen can be projected to the TV for display. If the user’s throwing action is not intended to project the screen, the first instruction information determines that the display content on the mobile phone screen cannot be projected to the TV. show.
若第一终端设备不是移动设备,以第一终端设备是冰箱,第二终端设备是电视为例,用户想要将冰箱的屏幕上的显示内容投屏到电视上进行显示,可以在打开冰箱上的投屏应用之后,在投屏应用的界面上显示的缩略地图中将冰箱对应的图标拖动至电视对应的图标所在位置,此时,可以触发一个投屏请求,并将投屏请求发送至服务器中, 服务器根据投屏请求生成第二指示信息,并发送至冰箱中,冰箱根据第二指示信息和投屏应用将屏幕上的显示内容投屏至电视上进行显示。If the first terminal device is not a mobile device, for example, the first terminal device is a refrigerator and the second terminal device is a TV. If the user wants to project the display content on the refrigerator screen to the TV for display, he can turn on the refrigerator. After the screencasting application, drag the icon corresponding to the refrigerator to the location of the icon corresponding to the TV in the thumbnail map displayed on the screencasting application interface. At this time, a screencasting request can be triggered and the screencasting request will be sent to to the server, the server generates second instruction information according to the screen projection request, and sends it to the refrigerator, and the refrigerator projects the display content on the screen to the TV for display according to the second instruction information and the screen projection application.
图2是本申请实施例提供的投屏处理系统的结构示意图,如图2所示,该系统包括第一终端设备,第二终端设备和服务器。FIG. 2 is a schematic structural diagram of a screen projection processing system provided by an embodiment of the present application. As shown in FIG. 2 , the system includes a first terminal device, a second terminal device and a server.
第一终端设备中包括方向模块(也即陀螺仪)、位置模块(也即蓝牙模块)和手势模块,其中,第一终端设备可以为手机等移动设备,方向模块用于解析用户对手机等移动设备进行移动操作时的方向逻辑,位置模块用于解析手机等移动设备在当前室内的相对位置,手势模块用于解析用户滑动手机等移动设备的屏幕的意图,确定用户是否打开手机等移动设备上的投屏应用。The first terminal device includes a direction module (that is, a gyroscope), a position module (that is, a Bluetooth module) and a gesture module, wherein the first terminal device can be a mobile device such as a mobile phone, and the direction module is used to analyze the movement of the user to the mobile phone or the like. The direction logic when the device performs mobile operations. The location module is used to analyze the relative position of mobile devices such as mobile phones in the current room. The gesture module is used to analyze the user’s intention to slide the screen of mobile devices such as mobile phones, and determine whether the user opens the mobile device such as mobile phones. screencasting application.
第二终端设备中包括位置模块(也即蓝牙模块)和手势模块,其中,第二终端设备可以为冰箱、电视、电脑等带屏的非移动设备,位置模块用于解析冰箱、电视、电脑等非移动设备在当前室内的相对位置,手势模块用于解析用户滑动冰箱、电视、电脑等非移动设备的屏幕的意图,确定用户是否打开冰箱、电视、电脑等非移动设备上的投屏应用。The second terminal device includes a location module (that is, a Bluetooth module) and a gesture module, wherein the second terminal device can be a non-mobile device with a screen such as a refrigerator, a TV, a computer, etc., and the location module is used to analyze the status of the refrigerator, TV, computer, etc. The relative position of non-mobile devices in the current room. The gesture module is used to analyze the user's intention to slide the screen of non-mobile devices such as refrigerators, TVs, and computers, and determine whether the user opens the screen-casting application on non-mobile devices such as refrigerators, TVs, and computers.
服务器是用户家庭的局域网内的投屏后台服务,服务器中包括位置模块(也即Beacon设备群)和投屏处理模块,其中的位置模块的Beacon设备群用于向室内定时广播蓝牙信号,投屏处理模块用于当室内的第一终端设备和第二终端设备接受蓝牙信号后,可以确定出第一终端设备和第二终端的相对位置,并处理实际的投屏逻辑。The server is the screen projection background service in the local area network of the user's home. The server includes a location module (that is, a Beacon device group) and a screen projection processing module. The Beacon device group of the location module is used to broadcast Bluetooth signals to the room at regular intervals. The processing module is used to determine the relative positions of the first terminal device and the second terminal device after the indoor first terminal device and the second terminal device receive the Bluetooth signal, and process the actual screen projection logic.
服务器中还可以用于进行室内所有智能设备间的投屏配对,并组建用户与室内所有智能设备之间的关联关系。服务器还可以包括投屏安全性校验组件、设备信息数据库、用户数据库和用户投屏操作数据库,其中投屏安全性校验组件用于对用户的投屏行为的合法性进行校验,设备信息数据库用于保存用户想要投屏的设备信息,用户数据库用于保存用户的生物特征(人脸数据,虹膜数据,指纹数据等),用户投屏操作数据库用于保存用户进行投屏的历史操作记录。The server can also be used to perform screen projection pairing among all smart devices in the room, and establish an association relationship between the user and all the smart devices in the room. The server may also include a screen projection security verification component, a device information database, a user database, and a user screen projection operation database, wherein the screen projection security verification component is used to verify the legality of the user's screen projection behavior, and the device information The database is used to save the device information that the user wants to cast the screen, the user database is used to save the user's biological characteristics (face data, iris data, fingerprint data, etc.), and the user screen projection operation database is used to save the historical operation of the user's screen projection Record.
以下基于上述应用场景和系统,并结合附图对本申请实施例的原理和特征进行描述,所举实例只用于解释本申请实施例,并非用于限定本申请实施例的范围。The principles and features of the embodiments of the present application are described below based on the above-mentioned application scenarios and systems, and in conjunction with the accompanying drawings. The examples given are only used to explain the embodiments of the present application, and are not used to limit the scope of the embodiments of the present application.
图3是本申请实施例提供的投屏处理方法实施例一的流程图,如图3所示,该投屏处理方法应用于第一终端设备,包括以下步骤:FIG. 3 is a flow chart of Embodiment 1 of the screen projection processing method provided by the embodiment of the present application. As shown in FIG. 3 , the screen projection processing method is applied to the first terminal device and includes the following steps:
S301:若第一终端设备是移动设备,则响应于用户对第一终端设备的移动操作,获取移动操作数据。S301: If the first terminal device is a mobile device, acquire mobile operation data in response to a user's mobile operation on the first terminal device.
在本步骤中,移动操作数据包括第一终端设备的加速度数据和移动方向数据。若第一终端设备是移动设备,比如,手机,用户在想要进行投屏操作时,在第一终端设备上打开投屏应用之后,对第一终端设备进行移动,比如,用户将手机朝向第二终端设备(比如,电视)的方向做投掷动作,第一终端设备在响应了用户的移动操作之后,就可以获取到第一终端设备的加速度数据和移动方向数据。In this step, the moving operation data includes acceleration data and moving direction data of the first terminal device. If the first terminal device is a mobile device, such as a mobile phone, when the user wants to perform a screen projection operation, after opening the screen projection application on the first terminal device, the first terminal device is moved, for example, the user moves the mobile phone toward the second The direction of the second terminal device (such as a TV) performs a throwing action, and the first terminal device can obtain the acceleration data and moving direction data of the first terminal device after responding to the user's movement operation.
S302:通过投屏应用将移动操作数据发送至用于为用户提供投屏服务的服务器。S302: Send the mobile operation data to a server for providing a screen projection service for the user through the screen projection application.
在本步骤中,第一终端设备中有投屏应用,第一终端设备可以通过投屏应用将移动操作数据发送至用于为用户提供投屏服务的服务器中。In this step, there is a screen projection application in the first terminal device, and the first terminal device can send the mobile operation data to the server for providing the screen projection service for the user through the screen projection application.
在上述方案中,由于服务器中设置有用户投屏操作数据库,该数据库中存储有用户的历史投屏操作记录,且服务器中存储了所有终端设备的位置信息,因此,第一终端设备可以将投屏操作数据发送至服务器中,由服务器对该投屏操作数据进行处理。In the above scheme, since the server is provided with a user screen projection operation database, the database stores the user's historical screen projection operation records, and the server stores the location information of all terminal devices, therefore, the first terminal device can cast The screen operation data is sent to the server, and the server processes the screen projection operation data.
S303:接收服务器发送的第一指示信息。S303: Receive first indication information sent by the server.
在本步骤中,第一指示信息为服务器根据判断结果生成的,判断结果用于确定移动操作是否为投屏操作,第一指示信息用于指示在移动操作是投屏操作时,将第一终端设备的显示内容投屏至第二终端设备上,在移动操作不是投屏操作时,不将显示内容投屏至第二终端设备上。In this step, the first indication information is generated by the server according to the judgment result, and the judgment result is used to determine whether the mobile operation is a screen projection operation, and the first indication information is used to indicate that when the mobile operation is a screen projection operation, the first terminal The display content of the device is projected to the second terminal device, and when the mobile operation is not a screen projection operation, the display content is not projected to the second terminal device.
在上述方案中,服务器在接收到第一终端设备发送的移动操作数据之后,首先根据移动操作数据确定第一终端设备的移动方向的路径上是否有可以投屏的第二终端设备,若有,则将该移动操作数据与用户投屏操作数据库中的历史数据进行对比,判断对第一终端设备的移动操作是否为用户想要投屏的操作,若确定用户的移动操作是用户想要进行投屏的操作,则服务器生成的第一指示信息用于指示将第一 终端设备的显示内容投屏至第二终端设备上;若确定用户的移动操作不是用户想要进行投屏的操作,则服务器生成的第一指示信息用于指示不将第一终端设备的显示内容投屏至第二终端设备上。然后服务器将第一指示信息发送至第一终端设备中。In the above scheme, after receiving the mobile operation data sent by the first terminal device, the server first determines whether there is a second terminal device that can cast the screen on the path of the first terminal device's moving direction according to the mobile operation data, and if so, Then compare the mobile operation data with the historical data in the user's screen projection operation database to determine whether the mobile operation of the first terminal device is an operation that the user wants to project a screen; screen operation, the first indication information generated by the server is used to instruct to project the display content of the first terminal device to the second terminal device; The generated first indication information is used to indicate not to project the display content of the first terminal device to the second terminal device. Then the server sends the first indication information to the first terminal device.
在上述方案中,若用户投屏操作数据库中没有用户的历史数据,则可以预先存储一个预设数据,这样就可以将移动操作数据与预设数据进行对比。In the above solution, if there is no historical data of the user in the user's screen projection operation database, a preset data can be stored in advance, so that the mobile operation data can be compared with the preset data.
S304:在第一指示信息用于指示将第一终端设备的显示内容投屏至第二终端设备上时,基于第一指示信息和投屏应用将第一终端设备的屏幕上的显示内容投屏至第二终端设备。S304: When the first instruction information is used to indicate to project the display content of the first terminal device to the second terminal device, project the display content on the screen of the first terminal device based on the first instruction information and the screen projection application to the second terminal device.
在本步骤中,第一终端设备在接收到第一指示信息之后,确定第一指示信息指示可以将第一终端设备的显示内容投屏至第二终端设备上,则第一终端设备可以按照第一指示信息的指示,并利用投屏应用将第一终端设备的屏幕上的显示内容投屏至第二终端设备上进行显示,该第一终端设备是发起投屏操作的设备,第二终端设备是接收投屏内容的设备,第二终端设备在接收到第一终端设备投屏过来的显示内容后,在第二终端设备的屏幕上将显示内容显示出来。In this step, after receiving the first instruction information, the first terminal device determines that the first instruction information indicates that the display content of the first terminal device can be projected to the second terminal device, then the first terminal device can follow the first instruction information. An indication of instruction information, and use the screen projection application to project the display content on the screen of the first terminal device to the second terminal device for display, the first terminal device is the device that initiates the screen projection operation, and the second terminal device It is a device for receiving screen projection content. After receiving the display content projected by the first terminal device, the second terminal device displays the display content on the screen of the second terminal device.
在上述方案中,若第一终端设备在接收到第一指示信息之后,确定第一指示信息指示不能将第一终端设备的显示内容投屏至第二终端设备上,则第一终端设备确定用户此时的操作为误操作,因此,第一终端设备不将屏幕上的显示内容投屏至第二终端设备中进行显示。In the above solution, if the first terminal device, after receiving the first indication information, determines that the first indication information indicates that the display content of the first terminal device cannot be projected to the second terminal device, then the first terminal device determines that the user The operation at this time is a misoperation, therefore, the first terminal device does not project the displayed content on the screen to the second terminal device for display.
在上述方案中,第一终端设备和第二终端设备均为智能带屏设备。In the above solution, both the first terminal device and the second terminal device are smart devices with a screen.
在一种具体实现中,在响应于用户对第一终端设备的移动操作,获取移动操作数据之前,该方法还包括:根据接收到的投屏应用的启动操作,启动投屏应用。In a specific implementation, before obtaining the mobile operation data in response to the user's mobile operation on the first terminal device, the method further includes: starting the screen projection application according to the received start operation of the screen projection application.
在该方案中,用户在想要进行投屏操作时,首先在第一终端设备上打开投屏应用,第一终端设备在接收到用户对投屏应用的启动操作之后,可以启动投屏应用,以便于用户进行投屏操作。In this solution, when the user wants to perform a screen projection operation, he first opens the screen projection application on the first terminal device, and the first terminal device can start the screen projection application after receiving the user's start operation on the screen projection application, In order to facilitate users to perform screen mirroring operations.
在一种具体实现中,在启动投屏应用之后,该方法还包括:通过投屏应用接收服务器发送的第一终端设备的第一位置信息和第二 终端设备的第二位置信息,其中,第一位置信息用于表示第一终端设备和服务器之间的相对位置,第二位置信息用于表示第二终端设备和服务器之间的相对位置;根据第一位置信息和第二位置信息在投屏应用的界面上生成缩略地图,其中,缩略地图中包括第一终端设备对应的第一图标和第二终端设备对应的第二图标,缩略地图用于确定第一终端设备和第二终端设备的相对位置。In a specific implementation, after starting the screen projection application, the method further includes: receiving the first location information of the first terminal device and the second location information of the second terminal device sent by the server through the screen projection application, wherein the first One position information is used to represent the relative position between the first terminal device and the server, and the second position information is used to represent the relative position between the second terminal device and the server; A thumbnail map is generated on the interface of the application, wherein the thumbnail map includes a first icon corresponding to the first terminal device and a second icon corresponding to the second terminal device, and the thumbnail map is used to determine the first terminal device and the second terminal device The relative position of the device.
在该方案中,第一终端设备中的投屏应用中可以生成缩略地图,由于服务器中存储有所有终端设备与该服务器的相对位置信息,因此,第一终端设备可以通过投屏应用接收服务器发送的第一终端设备的第一位置信息和第二终端设备的第二位置信息,这样在确定了所有终端设备的位置信息之后,就可以在第一终端设备的投屏应用界面上确定出一个包含了所有终端设备的位置的缩略地图,该缩略地图中每一个终端设备都对应有一个图标,比如,第一终端设备是手机,则对应的第一图标为手机图标,第二终端设备是电视,则对应的第二图标是电视图标等,由于用户家庭当中的终端设备不只是手机和电视,因此,缩略地图中显示有很多终端设备对应的图标,每个图标之间的相对位置也就对应了实际上的每个终端设备之间的相对位置。In this solution, the thumbnail map can be generated in the screen projection application in the first terminal device. Since the relative position information of all terminal devices and the server is stored in the server, the first terminal device can receive the server map through the screen projection application. The first location information of the first terminal device and the second location information of the second terminal device are sent, so that after determining the location information of all terminal devices, one can be determined on the screen projection application interface of the first terminal device A thumbnail map containing the locations of all terminal devices. Each terminal device in the thumbnail map corresponds to an icon. For example, if the first terminal device is a mobile phone, the corresponding first icon is a mobile phone icon, and the second terminal device If it is a TV, the corresponding second icon is the TV icon, etc. Since the terminal devices in the user’s home are not just mobile phones and TVs, there are many icons corresponding to the terminal devices displayed in the thumbnail map, and the relative positions of each icon It also corresponds to the actual relative position between each terminal device.
在一种具体实现中,该方法还包括:若第一终端设备不是移动设备,则响应于在投屏应用的界面上对第一图标的拖动操作,将第一图标移动至第二图标所在位置;向服务器发送投屏请求,其中,投屏请求用于第一终端设备请求将屏幕上的显示内容投屏至第二终端设备;接收服务器发送的第二指示信息,其中,第二指示信息用于指示将第一终端设备的显示内容投屏至第二终端设备上;基于第二指示信息和投屏应用将第一终端设备的屏幕上的显示内容投屏至第二终端设备。In a specific implementation, the method further includes: if the first terminal device is not a mobile device, moving the first icon to where the second icon is located in response to a drag operation on the first icon on the interface of the screen casting application; Location; sending a screen projection request to the server, wherein the screen projection request is used by the first terminal device to request to project the display content on the screen to the second terminal device; receiving second indication information sent by the server, wherein the second indication information It is used for instructing to project the display content of the first terminal device to the second terminal device; based on the second instruction information and the screen projection application, the display content on the screen of the first terminal device is projected to the second terminal device.
在该方案中,第一终端设备不是移动设备,比如,第一终端设备是冰箱,当用户想要将第一终端设备的屏幕上的显示内容投屏至第二终端设备,比如,第二终端设备是电视,由于第一终端设备的投屏应用上显示有缩略地图,因此,用户可以直接在缩略地图上将第一终端设备对应的第一图标,拖动至第二终端设备对应的第二图标所在位置,并触发生成一个投屏请求,然后将投屏请求发送至服务器中,服务器根据投屏请求生成第二指示信息,并将第二指示信息发送至第一终端设 备中,此时,第一终端设备确定可以进行投屏,则可以按照第二指示信息的指示,并利用投屏应用将第一终端设备的屏幕上的显示内容投屏至第二终端设备上进行显示。In this solution, the first terminal device is not a mobile device, for example, the first terminal device is a refrigerator, when the user wants to project the content displayed on the screen of the first terminal device to the second terminal device, for example, the second terminal The device is a TV. Since a thumbnail map is displayed on the screen-casting application of the first terminal device, the user can directly drag the first icon corresponding to the first terminal device to the icon corresponding to the second terminal device on the thumbnail map. The position of the second icon triggers the generation of a screen projection request, and then sends the screen projection request to the server, and the server generates the second indication information according to the screen projection request, and sends the second indication information to the first terminal device, then When the first terminal device determines that screen projection is possible, it can follow the instructions of the second instruction information and use the screen projection application to project the display content on the screen of the first terminal device to the second terminal device for display.
在一种具体实现中,该方法还包括:接收服务器的蓝牙网关发送的蓝牙信号;根据蓝牙信号确定第一终端设备接收蓝牙信号的信号强度指示值;将信号强度指示值发送至服务器。In a specific implementation, the method further includes: receiving a Bluetooth signal sent by the Bluetooth gateway of the server; determining a signal strength indicator value of the Bluetooth signal received by the first terminal device according to the Bluetooth signal; and sending the signal strength indicator value to the server.
在该方案中,用户的家庭中部署有蓝牙网关,也即信标(Beacon)设备群,服务器中设置有Beacon设备群,Beacon设备群中的每个Beacon设备会每隔一定时间广播一个蓝牙信号到周围,第一终端设备会通过自身的蓝牙设备接收蓝牙信号,并根据接收到的蓝牙信号确定出接收的信号强度指示(Received Signal Strength Indication,简称:RSSI)值,然后将该RSSI值发送至服务器。In this solution, a Bluetooth gateway is deployed in the user's home, that is, a beacon (Beacon) device group, and a Beacon device group is set in the server, and each Beacon device in the Beacon device group will broadcast a Bluetooth signal at regular intervals To the surrounding, the first terminal device will receive the Bluetooth signal through its own Bluetooth device, and determine the Received Signal Strength Indication (RSSI for short) value according to the received Bluetooth signal, and then send the RSSI value to server.
在上述方案中,第二终端设备也可以根据自身的蓝牙设备接收蓝牙信号,并根据接收到的蓝牙信号确定出RSSI值,然后将该RSSI值发送至服务器。第一终端设备和第二终端设备可以通过无线通信技术(Wi-Fi)将RSSI值发送至服务器中。In the above solution, the second terminal device may also receive the Bluetooth signal according to its own Bluetooth device, determine the RSSI value according to the received Bluetooth signal, and then send the RSSI value to the server. The first terminal device and the second terminal device may send the RSSI value to the server through wireless communication technology (Wi-Fi).
在一种具体实现中,响应于用户对第一终端设备的移动操作,获取移动操作数据,包括:响应于用户对第一终端设备的移动操作,通过第一终端设备的陀螺仪获取移动方向数据,并通过第一终端设备的加速度传感器获取加速度数据。In a specific implementation, obtaining the mobile operation data in response to the user's mobile operation on the first terminal device includes: in response to the user's mobile operation on the first terminal device, acquiring the moving direction data through the gyroscope of the first terminal device , and acquire acceleration data through the acceleration sensor of the first terminal device.
在该方案中,在第一终端设备是移动设备时,第一终端设备中设置有陀螺仪和加速度传感器,比如,第一终端设备是手机,从而在用户对第一终端设备进行移动操作时,可以通过第一终端设备的陀螺仪获取第一终端设备的移动方向数据,通过第一终端设备的加速度传感器获取第一终端设备的加速度数据。In this solution, when the first terminal device is a mobile device, the first terminal device is provided with a gyroscope and an acceleration sensor, for example, the first terminal device is a mobile phone, so that when the user performs a mobile operation on the first terminal device, The moving direction data of the first terminal device may be acquired through the gyroscope of the first terminal device, and the acceleration data of the first terminal device may be acquired through the acceleration sensor of the first terminal device.
在上述方案中,第一终端设备在获取移动方向数据和加速度数据时,可以通过第一终端设备自带的应用程序接口(Application Programming Interface,简称:API)获取,安卓(Android)系统和苹果(iOS)系统都有这类系统接口,其中Android系统的应用程序接口为SensorManager,iOS系统的影城程序接口为CoreMotion。因此,第一终端设备的加速度数据和移动方向数据都可以由这两个接口获取。 图6是本申请实施例提供的获取移动操作数据的示意图,如图6所示,加速度数据和移动方向数据都是按照第一终端设备在空间坐标系上的x轴,y轴和z轴上的数据整合而来的。In the above solution, when the first terminal device obtains the moving direction data and acceleration data, it can obtain the data through the application programming interface (Application Programming Interface, API for short) that comes with the first terminal device, and the Android (Android) system and Apple ( iOS) system has this kind of system interface, wherein the application program interface of Android system is SensorManager, and the program interface of Studio City of iOS system is CoreMotion. Therefore, both the acceleration data and the moving direction data of the first terminal device can be acquired by these two interfaces. Fig. 6 is a schematic diagram of obtaining mobile operation data provided by the embodiment of the present application. As shown in Fig. 6, the acceleration data and the moving direction data are all according to the x-axis, y-axis and z-axis of the first terminal device on the space coordinate system integrated from the data.
本实施例提供的投屏处理方法,通过在第一终端设备是移动设备时,若用户想要实现将第一终端设备的显示内容投屏至第二终端设备上进行显示,则可以将第一终端设备朝向第二终端设备的方向进行移动,这样在接收到服务器发送的第一指示信息,且第一指示信息指示可以将第一终端设备的显示内容投屏至第二终端设备上之后,就可以通过第一指示信息和投屏应用实现将第一终端设备的屏幕上的显示内容投屏至第二终端设备;在第一终端设备不是移动设备时,若用户想要实现将第一终端设备的显示内容投屏至第二终端设备上进行显示,则可以在第一终端设备的投屏应用的界面上显示的缩略地图中,将第一终端设备对应的第一图标移动至第二终端设备对应的第二图标所在位置,这样在接收到服务器发送的第二指示信息之后,就可以通过第二指示信息和投屏应用实现将第一终端设备的屏幕上的显示内容投屏至第二终端设备,从而避免了用户在第一终端设备上进行复杂的操作,实现了提高用户进行投屏的效率的目的。In the screen projection processing method provided in this embodiment, when the first terminal device is a mobile device, if the user wants to project the display content of the first terminal device to the second terminal device for display, the first The terminal device moves towards the direction of the second terminal device, so that after receiving the first instruction information sent by the server, and the first instruction information indicates that the display content of the first terminal device can be projected to the second terminal device, the The display content on the screen of the first terminal device can be projected to the second terminal device through the first instruction information and the screen casting application; when the first terminal device is not a mobile device, if the user wants to implement the first terminal device The displayed content of the first terminal device can be projected to the second terminal device for display, then the first icon corresponding to the first terminal device can be moved to the second terminal device in the thumbnail map displayed on the screen projection application interface of the first terminal device The position of the second icon corresponding to the device, so that after receiving the second indication information sent by the server, the display content on the screen of the first terminal device can be projected to the second through the second indication information and the screen casting application. The terminal device avoids complicated operations performed by the user on the first terminal device, and achieves the purpose of improving the efficiency of the user's screen projection.
图4是本申请实施例提供的投屏处理方法实施例二的流程图,如图4所示,该投屏处理方法应用于为用户提供投屏服务的服务器,包括以下步骤:FIG. 4 is a flow chart of Embodiment 2 of the screen projection processing method provided by the embodiment of the present application. As shown in FIG. 4 , the screen projection processing method is applied to a server that provides users with screen projection services, and includes the following steps:
S401:若第一终端设备是移动设备,则接收第一终端设备执行移动操作时发送的移动操作数据。S401: If the first terminal device is a mobile device, receive moving operation data sent when the first terminal device performs a moving operation.
在本步骤中,移动操作数据包括第一终端设备的加速度数据和移动方向数据。若第一终端设备是移动设备,比如,手机,用户在想要进行投屏操作时,在第一终端设备上打开投屏应用之后,对第一终端设备进行移动,比如,用户将手机朝向第二终端设备(比如,电视)的方向做投掷动作,第一终端设备在响应了用户的移动操作之后,就可以生成移动操作数据,并根据投屏应用将移动操作数据发送至服务器中,由服务器对接收到的移动操作数据进行处理。In this step, the moving operation data includes acceleration data and moving direction data of the first terminal device. If the first terminal device is a mobile device, such as a mobile phone, when the user wants to perform a screen projection operation, after opening the screen projection application on the first terminal device, the first terminal device is moved, for example, the user moves the mobile phone toward the second The direction of the second terminal device (for example, a TV) performs a throwing action. After the first terminal device responds to the user's mobile operation, it can generate mobile operation data, and send the mobile operation data to the server according to the screen projection application. Process the received mobile operation data.
在上述方案中,用户将手机朝向第二终端设备的方向做投掷动作时,第二终端设备的加速度数据可以根据对如图6所示的空间坐标系上的x轴,y轴和z轴的加速度数据进行整合得到。In the above solution, when the user throws the mobile phone towards the direction of the second terminal device, the acceleration data of the second terminal device can be based on the x-axis, y-axis and z-axis on the spatial coordinate system as shown in Figure 6 Acceleration data are integrated.
S402:根据移动操作数据判断第一终端设备的移动操作是否为投屏操作,生成判断结果。S402: Determine whether the movement operation of the first terminal device is a screen projection operation according to the movement operation data, and generate a determination result.
在本步骤中,服务器在接收到第一终端设备发送的移动操作数据之后,由于服务器中设置有用户投屏操作数据库,该数据库中存储有用户的历史投屏操作记录,且服务器中存储了所有终端设备的位置信息,因此,服务器在接收到第一终端设备发送的移动操作数据之后,首先根据移动操作数据确定第一终端设备的移动方向的路径上是否有可以投屏的第二终端设备,若有,则将该移动操作数据与用户投屏操作数据库中的历史数据进行对比,判断对第一终端设备的移动操作是否为用户想要投屏的操作,若确定用户对第一终端设备的操作是用户想要进行投屏的操作,则判断结果为用户对第一终端设备的移动操作是投屏操作,若确定用户对第一终端设备的操作不是用户想要进行投屏的操作,则判断结果为用户对第一终端设备的移动操作不是投屏操作。In this step, after the server receives the mobile operation data sent by the first terminal device, since the server is provided with a user screen projection operation database, the database stores the user's historical screen projection operation records, and the server stores all The location information of the terminal device. Therefore, after receiving the mobile operation data sent by the first terminal device, the server first determines whether there is a second terminal device that can cast the screen on the path of the first terminal device's moving direction according to the mobile operation data. If so, compare the mobile operation data with the historical data in the user’s screen projection operation database to determine whether the mobile operation on the first terminal device is an operation that the user wants to project the screen. If the operation is an operation that the user wants to perform screen projection, the judgment result is that the user's mobile operation on the first terminal device is a screen projection operation; if it is determined that the user's operation on the first terminal device is not an operation that the user wants to perform screen projection, then The judgment result is that the user's mobile operation on the first terminal device is not a screen projection operation.
在上述方案中,若用户投屏操作数据库中没有用户的历史数据,则可以预先存储一个预设数据,这样就可以将移动操作数据与预设数据进行对比。In the above solution, if there is no historical data of the user in the user's screen projection operation database, a preset data can be stored in advance, so that the mobile operation data can be compared with the preset data.
在上述方案中,每次用户进行投屏操作时,服务器在接收到用户的当前的移动操作数据之后,都会将当前的移动操作数据存储至用户投屏操作数据库中,从而可以扩充用户投屏操作数据库中的数据,这样会方便后续服务器根据用户投屏操作数据库更加快速的匹配用户的投屏操作。In the above scheme, every time the user performs screen projection operation, after receiving the user's current mobile operation data, the server will store the current mobile operation data in the user's screen projection operation database, so that the user's screen projection operation can be expanded The data in the database will facilitate the subsequent server to more quickly match the user's screen projection operation according to the user's screen projection operation database.
S403:根据判断结果生成第一指示信息。S403: Generate first indication information according to the judgment result.
在上述方案中,若判断结果为用户对第一终端设备的移动操作是投屏操作,则第一指示信息用于指示在移动操作是投屏操作时,将第一终端设备的显示内容投屏至第二终端设备上;若判断结果为用户对第一终端设备的移动操作不是投屏操作,则第一指示信息用于指示在移动操作不是投屏操作时,不将显示内容投屏至第二终端设备上。In the above solution, if the judgment result is that the mobile operation of the first terminal device by the user is a screen projection operation, the first instruction information is used to indicate that when the mobile operation is a screen projection operation, the display content of the first terminal device is projected to the screen. to the second terminal device; if the judgment result is that the user’s mobile operation on the first terminal device is not a screen projection operation, then the first indication information is used to indicate that when the mobile operation is not a screen projection operation, the displayed content will not be projected to the second terminal device. on the second terminal device.
S404:将第一指示信息发送至第一终端设备。S404: Send the first indication information to the first terminal device.
在一种具体实现中,该方法还包括:若第一终端设备不是移动设备,接收第一终端设备发送的投屏请求,其中,投屏请求用于第一终端设备请求将屏幕上的显示内容投屏至第二终端设备上;根据投屏请求生成第二指示信息,其中,第二指示信息用于指示将第一终端设备的显示内容投屏至第二终端设备上;将第二指示信息发送至第一终端设备。In a specific implementation, the method further includes: if the first terminal device is not a mobile device, receiving a screen projection request sent by the first terminal device, wherein the screen projection request is used for the first terminal device to request that the displayed content on the screen Projecting the screen to the second terminal device; generating second instruction information according to the screen projection request, wherein the second instruction information is used to indicate that the display content of the first terminal device is projected to the second terminal device; the second instruction information sent to the first terminal device.
在该方案中,第一终端设备不是移动设备,比如,第一终端设备是冰箱,当用户想要将第一终端设备的屏幕上的显示内容投屏至第二终端设备,比如,第二终端设备是电视,由于第一终端设备的投屏应用上显示有缩略地图,因此,用户可以直接在缩略地图上将第一终端设备对应的第一图标,拖动至第二终端设备对应的第二图标所在位置,并触发生成一个投屏请求,然后将投屏请求发送至服务器中,服务器在接收到投屏请求之后,确定第一终端设备想要进行投屏,因此,服务器可以根据投屏请求生成第二指示信息,并将第二指示信息发送至第一终端设备,第一终端设备通过第二指示信息就可以确定可以将显示内容投屏至第二终端设备上。In this solution, the first terminal device is not a mobile device, for example, the first terminal device is a refrigerator, when the user wants to project the content displayed on the screen of the first terminal device to the second terminal device, for example, the second terminal The device is a TV. Since a thumbnail map is displayed on the screen-casting application of the first terminal device, the user can directly drag the first icon corresponding to the first terminal device to the icon corresponding to the second terminal device on the thumbnail map. The location of the second icon triggers the generation of a screen projection request, and then sends the screen projection request to the server. After receiving the screen projection request, the server determines that the first terminal device wants to perform screen projection. Therefore, the server can The screen request generates second indication information, and sends the second indication information to the first terminal device, and the first terminal device can determine that the display content can be projected to the second terminal device through the second indication information.
在一种具体实现中,根据移动操作数据判断第一终端设备的移动操作是否为投屏操作,生成判断结果,包括:根据移动操作数据确定第一终端设备的移动方向上是否有第二终端设备;在第一终端设备的移动方向上有第二终端设备时,将移动操作数据与预设数据进行对比,确定移动操作数据是否存在于预设数据的预设区间中;若移动操作数据存在于预设数据的预设区间中,生成第一结果,其中,第一结果用于指示第一终端设备的移动操作是投屏操作;若移动操作数据不存在于预设数据的预设区间中,生成第二结果,其中,第二结果用于指示第一终端设备的移动操作不是投屏操作。In a specific implementation, judging whether the moving operation of the first terminal device is a screen projection operation according to the moving operation data, and generating a judgment result includes: determining whether there is a second terminal device in the moving direction of the first terminal device according to the moving operation data ; When there is a second terminal device in the moving direction of the first terminal device, comparing the mobile operation data with the preset data to determine whether the mobile operation data exists in the preset interval of the preset data; if the mobile operation data exists in the preset interval of the preset data; In the preset interval of the preset data, a first result is generated, wherein the first result is used to indicate that the mobile operation of the first terminal device is a screen projection operation; if the mobile operation data does not exist in the preset interval of the preset data, A second result is generated, where the second result is used to indicate that the moving operation of the first terminal device is not a screen casting operation.
在该方案中,由于服务器中设置有用户投屏操作数据库,该数据库中存储有用户的历史投屏操作记录,且服务器中存储了所有终端设备的位置信息,因此,服务器在根据移动操作数据生成第一指示信息时,需要在接收到移动操作数据后,判断在第一终端设备的移动方向上是否有可以进行投屏的第二终端设备,若第一终端设备的移动方向上有可以进行投屏的第二终端设备,则可以将移动操作数据与预设数 据进行对比,该预设数据可以为用户投屏操作数据库中的历史数据,也可以为开发人员提前设置好的用户投屏操作数据库中的合理数据,若移动操作数据与预设数据的差别不大,也就是说,移动操作数据在预设数据的预设区间内,则说明用户的移动操作是投屏操作,可以实现投屏;若移动操作数据与预设数据的差别较大,也就是说,移动操作数据不在预设数据的预设区间内,则说明用户的移动操作不是投屏操作,此时,用户对第一终端设备的移动操作可能为误操作,因此,不可以实现投屏。In this solution, since the server is provided with a user screen projection operation database, the database stores the user's historical screen projection operation records, and the server stores the location information of all terminal devices, therefore, the server is generated according to the mobile operation data. In the case of the first instruction information, after receiving the mobile operation data, it is necessary to determine whether there is a second terminal device capable of projecting in the moving direction of the first terminal device. The second terminal device of the screen can compare the mobile operation data with the preset data. The preset data can be the historical data in the user's screen projection operation database, or the user's screen projection operation database set in advance by the developer. Reasonable data in , if the difference between the mobile operation data and the preset data is not big, that is, the mobile operation data is within the preset range of the preset data, it means that the user's mobile operation is a screen projection operation, and screen projection can be realized ; If the difference between the mobile operation data and the preset data is large, that is to say, the mobile operation data is not within the preset range of the preset data, it means that the user's mobile operation is not a screen projection operation. The mobile operation of the device may be a wrong operation, so screen projection cannot be realized.
在上述方案中,若第一终端设备的移动方向上没有可以进行投屏的第二终端设备,则服务器会向第一终端设备返回一个提示信息,这样第一终端设备就可以确定此时无法进行投屏操作。In the above solution, if there is no second terminal device that can cast the screen in the moving direction of the first terminal device, the server will return a prompt message to the first terminal device, so that the first terminal device can determine that it is not possible to cast the screen at this time. Screencasting operation.
在一种具体实现中,根据投屏请求生成第二指示信息,包括:确定投屏请求是否为将第一图标移动至第二图标所在位置时触发的请求,其中,第一图标为缩略地图中与第一终端设备对应的图标,第二图标为缩略地图中与第二终端设备对应的图标,缩略地图用于确定第一终端设备和第二终端设备的相对位置;在投屏请求为将第一图标移动至第二图标所在位置时触发的请求时,根据投屏请求生成第二指示信息。In a specific implementation, generating the second indication information according to the screen casting request includes: determining whether the screen casting request is a request triggered when the first icon is moved to the position of the second icon, wherein the first icon is a thumbnail map The icon corresponding to the first terminal device, the second icon is the icon corresponding to the second terminal device in the thumbnail map, and the thumbnail map is used to determine the relative position of the first terminal device and the second terminal device; When the request is triggered when the first icon is moved to the location of the second icon, the second indication information is generated according to the screen casting request.
在该方案中,第一终端设备不是移动设备,因此,用户在实现第一终端设备进行投屏操作时,需要在第一终端设备的投屏应用的缩略地图上进行操作,也就是说,用户在缩略地图上将第一终端设备对应的第一图标拖动至第二终端设备对应的第二图标所在位置,此时,第一终端设备会触发生成投屏请求,服务器在确定该投屏请求是用户在缩略地图上第一图标拖动至第二图标所在位置触发的请求时,服务器确定用户此时需要将第一终端设备的屏幕上的显示内容投屏至第二终端设备上进行显示,因此,服务器可以根据投屏请求生成第二指示信息,并将第二指示信息发送至第一终端设备,以使第一终端设备可以进行投屏操作。In this solution, the first terminal device is not a mobile device. Therefore, when the user implements the screen projection operation on the first terminal device, he needs to operate on the thumbnail map of the screen projection application of the first terminal device, that is, The user drags the first icon corresponding to the first terminal device to the position of the second icon corresponding to the second terminal device on the thumbnail map. At this time, the first terminal device will trigger the generation of a screen projection request, and the server will The screen request is a request triggered by the user dragging the first icon to the position of the second icon on the thumbnail map. The server determines that the user needs to project the display content on the screen of the first terminal device to the second terminal device. Therefore, the server may generate second indication information according to the screen projection request, and send the second indication information to the first terminal device, so that the first terminal device can perform a screen projection operation.
在一种具体实现中,该方法还包括:按照预设的时间间隔,周期性的广播蓝牙信号;接收第一终端设备发送的信号强度指示值和第二终端设备发送的信号强度指示值;基于第一终端设备发送的信号强度指示值确定第一终端设备与服务器之间的第一距离;基于第二终 端设备发送的信号强度指示值确定第二终端设备与服务器之间的第二距离;基于第一距离确定第一位置信息,其中,第一位置信息用于表示第一终端设备和服务器之间的相对位置;基于第二距离确定第二位置信息,其中,第二位置信息用于表示第二终端设备和服务器之间的相对位置;将第一位置信息和第二位置信息发送至第一终端设备。In a specific implementation, the method further includes: periodically broadcasting Bluetooth signals according to a preset time interval; receiving the signal strength indicator value sent by the first terminal device and the signal strength indicator value sent by the second terminal device; based on The signal strength indicator value sent by the first terminal device determines the first distance between the first terminal device and the server; determines the second distance between the second terminal device and the server based on the signal strength indicator value sent by the second terminal device; The first position information is determined based on the first distance, wherein the first position information is used to indicate the relative position between the first terminal device and the server; the second position information is determined based on the second distance, wherein the second position information is used to indicate the first terminal device and the server. The relative position between the two terminal devices and the server; sending the first position information and the second position information to the first terminal device.
在该方案中,为了方便每个家庭的用户进行操作,服务器可以设置在用户的家庭当中,该服务器也可以称为微服务器,且服务器中的Beacon设备群可以按照预设的时间间隔,周期性的广播蓝牙信号,这样第一终端设备和第二终端设备(或者还可以包括用户家庭当中的其他智能带屏设备)就可以通过设备自带的蓝牙模块接收到蓝牙信号,并根据接收到的蓝牙信号分别向服务器发送RSSI值。In this solution, in order to facilitate the operation of users in each family, the server can be set in the user's family. The server can also be called a micro server, and the Beacon device group in the server can periodically The broadcast Bluetooth signal, so that the first terminal device and the second terminal device (or other smart display devices in the user's home) can receive the Bluetooth signal through the Bluetooth module of the device, and according to the received Bluetooth The signal sends the RSSI value to the server respectively.
在上述方案中,服务器根据第一终端设备发送的RSSI值可以确定出第一终端设备与服务器之间的第一距离,且服务器通过该第一距离就可以确定出第一终端设备与服务器之间的相对位置;服务器根据第二终端设备发送的RSSI值可以确定出第二终端设备与服务器之间的第二距离,且服务器通过该第二距离就可以确定出第二终端设备与服务器之间的相对位置,因此,服务器中是包括有用户的家庭当中所有的智能带屏设备的位置信息的,且可以根据蓝牙信号对第一终端设备和第二终端设备的位置信息进行实时更新。In the above solution, the server can determine the first distance between the first terminal device and the server according to the RSSI value sent by the first terminal device, and the server can determine the distance between the first terminal device and the server through the first distance. relative position; the server can determine the second distance between the second terminal device and the server according to the RSSI value sent by the second terminal device, and the server can determine the distance between the second terminal device and the server through the second distance Relative location, therefore, the server includes the location information of all smart display devices in the user's home, and can update the location information of the first terminal device and the second terminal device in real time according to the Bluetooth signal.
在上述方案中,服务器在获取到第一终端设备的第一位置信息和第二终端设备的第二位置信息之后,就可以将第一位置信息和第二位置信息发送至第一终端设备,以便于第一终端设备的投屏应用可以生成缩略地图。In the above solution, after the server obtains the first location information of the first terminal device and the second location information of the second terminal device, it can send the first location information and the second location information to the first terminal device, so that The screen-casting application on the first terminal device can generate a thumbnail map.
在上述方案中,图7是本申请实施例提供的蓝牙网关定位处理实施例一的示意图,服务器通过蓝牙网关(Beacon设备群)确定用户家庭的室内所有的智能带屏设备的位置信息,可以如图7所示,假设当前的室内是8*8平米的大开间,在该室内每隔2米部署一个Beacon设备,每个Beacon设备的位置可以通过坐标表示,如图7中的(x0,y2),(x0,y3),(x1,y3)等,由于每个Beacon设备的位置信息是预先确定好的,并且已经上传至服务器中,智能带屏设备处在室内任何位置时,通过部署的Beacon设备群可以保证每个智能带屏设备都会有距离 最近的3个Beacon设备,因此,理论上,服务器通过3个Beacon设备就可以确定出室内任何一个智能带屏设备的位置信息,也就是说,智能带屏设备的位置信息可以根据距离最近的3个Beacon设备的定位数据获取到。In the above solution, FIG. 7 is a schematic diagram of the first embodiment of Bluetooth gateway positioning processing provided by the embodiment of the present application. The server determines the location information of all smart devices with screens in the user's home through the Bluetooth gateway (Beacon device group), which can be as follows As shown in Figure 7, assuming that the current room is a large room of 8*8 square meters, a Beacon device is deployed every 2 meters in the room, and the position of each Beacon device can be expressed by coordinates, as shown in Figure 7 (x0, y2 ), (x0, y3), (x1, y3), etc., since the location information of each Beacon device is predetermined and has been uploaded to the server, when the smart device with a screen is in any position indoors, the deployed The Beacon device group can ensure that each smart device with a screen will have the three nearest Beacon devices. Therefore, in theory, the server can determine the location information of any smart device with a screen in the room through the three Beacon devices. That is to say , the location information of the smart display device can be obtained according to the location data of the three nearest Beacon devices.
在上述方案中,图8是本申请实施例提供的蓝牙网关定位处理实施例二的示意图,如图8所示,已知与目标智能带屏设备(px,py)距离最近的3个Beacon设备的位置分别是(x0,y0),(x1,y0),(x1,y1),通过欧拉公式可以得到目标智能带屏设备(px,py)与上述3个Beacon设备的相对距离,分别为D1,D2,D3,然后通过加权对应Beacon设备在室内的实际距离就可以得到目标智能带屏设备在整个室内的相对位置。因此,服务器当中包括了室内所有的智能带屏设备的相对位置信息。In the above solution, FIG. 8 is a schematic diagram of the second embodiment of the positioning processing of the Bluetooth gateway provided by the embodiment of the present application. As shown in FIG. 8, it is known that there are three Beacon devices closest to the target smart device with screen (px, py) The positions are (x0, y0), (x1, y0), (x1, y1), and the relative distances between the target smart device with screen (px, py) and the above three Beacon devices can be obtained through the Euler formula, which are respectively D1, D2, D3, and then by weighting the actual distance of the corresponding Beacon device in the room, the relative position of the target smart device with screen in the whole room can be obtained. Therefore, the server includes the relative position information of all smart devices with screens in the room.
本实施例提供的投屏处理方法,通过在第一终端设备是移动设备时,若用户想要实现将第一终端设备的显示内容投屏至第二终端设备上进行显示,则服务器可以根据移动操作数据判断用户的投掷动作是否是想要投屏,然后根据判断结果生成第一指示信息,并将第一指示信息发送至第一终端设备,这样在第一终端设备接收到服务器发送的第一指示信息,且第一指示信息指示可以将第一终端设备的显示内容投屏至第二终端设备上之后,就可以通过第一指示信息和投屏应用实现将第一终端设备的屏幕上的显示内容投屏至第二终端设备;在第一终端设备不是移动设备时,若用户想要实现将第一终端设备的显示内容投屏至第二终端设备上进行显示,则服务器可以根据投屏请求生成第二指示信息,并将第二指示信息发送至第一终端设备,这样在第一终端设备接收到服务器发送的第二指示信息之后,就可以通过第二指示信息和投屏应用实现将第一终端设备的屏幕上的显示内容投屏至第二终端设备,从而避免了用户在第一终端设备上进行复杂的操作,实现了提高用户进行投屏的效率的目的。In the projection processing method provided in this embodiment, when the first terminal device is a mobile device, if the user wants to project the display content of the first terminal device to the second terminal device for display, the server can The operation data judges whether the user's throwing action is intended to cast a screen, and then generates the first indication information according to the judgment result, and sends the first indication information to the first terminal device, so that the first terminal device receives the first indication information sent by the server. After the first instruction information indicates that the display content of the first terminal device can be projected to the second terminal device, the display on the screen of the first terminal device can be realized through the first instruction information and the screen projection application Content projection to the second terminal device; when the first terminal device is not a mobile device, if the user wants to realize the projection of the display content of the first terminal device to the second terminal device for display, the server can according to the screen projection request Generate the second indication information, and send the second indication information to the first terminal device, so that after the first terminal device receives the second indication information sent by the server, the second indication information and the screen-casting application can be used to implement the second indication information. The content displayed on the screen of a terminal device is projected to the second terminal device, thereby preventing the user from performing complicated operations on the first terminal device, and achieving the purpose of improving the efficiency of the user's screen projection.
图5是本申请实施例提供的投屏处理方法实施例三的流程图,如图5所示,该投屏处理方法包括以下步骤:Fig. 5 is a flow chart of Embodiment 3 of the screen projection processing method provided by the embodiment of the present application. As shown in Fig. 5, the screen projection processing method includes the following steps:
S501:第一终端设备确定是移动设备。S501: Determine that the first terminal device is a mobile device.
在该步骤中,第一终端设备可以是手机等移动设备。In this step, the first terminal device may be a mobile device such as a mobile phone.
S502:第一终端设备判断用户是否有投屏行为。S502: The first terminal device determines whether the user has a screen projection behavior.
在该步骤中,若用户有投屏行为,则跳转至步骤S503,若用户没有投屏行为,则方案结束。In this step, if the user has screen projection behavior, jump to step S503; if the user does not have screen projection behavior, the solution ends.
S503:第一终端设备将用户的投屏行为对应的移动操作数据发送至为用户提供投屏服务的服务器。S503: The first terminal device sends the mobile operation data corresponding to the user's screen projection behavior to the server that provides the user with a screen projection service.
在该方案中,移动操作数据中包括第一终端设备的移动方向数据。In this solution, the movement operation data includes movement direction data of the first terminal device.
S504:服务器判断第一终端设备的移动方向上是否有可接收投屏内容的第二终端设备。S504: The server judges whether there is a second terminal device capable of receiving screen projection content in the moving direction of the first terminal device.
在该步骤中,若第一终端设备的移动方向上有可接收投屏内容的第二终端设备,则跳转至步骤S505,若第一终端设备的移动方向上没有可接收投屏内容的第二终端设备,则方案结束。In this step, if there is a second terminal device capable of receiving screen-casting content in the moving direction of the first terminal device, jump to step S505; if there is no second terminal device capable of receiving screen-casting content in the moving direction of the first terminal device two terminal devices, the solution ends.
S505:服务器通过用户投屏操作数据库检索移动操作数据。S505: The server retrieves the mobile operation data from the user screen projection operation database.
S506:服务器判断移动操作数据是否可以实现第一终端设备启动投屏功能。S506: The server judges whether the mobile operation data can enable the first terminal device to start a screen projection function.
在该方案中,若移动操作数据可以实现第一终端设备启动投屏功能,则跳转至步骤S507,若移动操作数据不可以实现第一终端设备启动投屏功能,则方案结束。In this solution, if the mobile operation data can enable the first terminal device to start the screen projection function, then jump to step S507; if the mobile operation data cannot enable the first terminal device to start the screen projection function, the solution ends.
S507:第一终端设备启动投屏功能,将第一终端设备的屏幕上的显示内容投屏至第二终端设备上显示。S507: The first terminal device activates a screen projection function, and projects the content displayed on the screen of the first terminal device to the second terminal device for display.
S508:服务器在用户投屏操作数据库中记录此次的移动操作数据。S508: The server records the mobile operation data in the user screen projection operation database.
本实施例提供的投屏处理方法,用户想要实现将手机等移动设备的屏幕上的显示内容投屏至其他终端设备上时,用户只需要在手机等移动设备中打开投屏应用,然后拿起手机等移动设备,朝向其他终端设备做出投掷动作,即可实现将手机等移动设备的屏幕上的显示内容投屏至其他终端设备上进行显示;用户想要实现将冰箱等非移动设备的屏幕上的显示内容投屏至其他终端设备上时,在冰箱等非移动设备的投屏应用的界面上显示出缩略地图,然后用户在缩略地图上将冰箱等非移动设备对应的图标拖动至其他终端设备对应的图标所在位置,既可以实现将冰箱等非移动设备的屏幕上的显示内容投屏至其他终端设备上进行显示。In the screen projection processing method provided in this embodiment, when the user wants to project the display content on the screen of a mobile device such as a mobile phone to other terminal devices, the user only needs to open the screen projection application in the mobile device such as a mobile phone, and then take Pick up a mobile device such as a mobile phone and make a throwing action towards other terminal devices, so that the display content on the screen of the mobile device such as a mobile phone can be projected to other terminal devices for display; When the displayed content on the screen is projected to other terminal devices, a thumbnail map is displayed on the screen-casting application interface of non-mobile devices such as refrigerators, and then the user drags the icons corresponding to non-mobile devices such as refrigerators on the thumbnail map Move to the position of the icon corresponding to other terminal devices, which can realize the display content on the screen of non-mobile devices such as refrigerators to be displayed on other terminal devices.
从总体上来说,本申请提供的技术方案,由于服务器中存储了室内所有终端设备的位置信息,因此,用户在发起投屏操作的终端设备和接收投屏内容的终端设备上分别打开投屏应用,且用户只需要在发起投屏操作的终端设备上进行对应的投屏操作,服务器就可以确定是否可以匹配到对应的接收投屏内容的终端设备,从而在匹配到对应的接收投屏内容的终端设备后,实现用户的投屏操作,是一种可以极大地提高用户投屏效率的技术实现方法。Generally speaking, in the technical solution provided by this application, since the location information of all indoor terminal devices is stored in the server, the user opens the screen-casting application on the terminal device that initiates the screen-casting operation and the terminal device that receives the screen-casting content respectively. , and the user only needs to perform the corresponding screen-casting operation on the terminal device that initiates the screen-casting operation, and the server can determine whether the corresponding terminal device that receives the screen-casting content can be matched, so that when the corresponding terminal device that receives the screen-casting content is matched Realizing the user's screen projection operation after the terminal device is a technical implementation method that can greatly improve the user's screen projection efficiency.
本申请实施例还提供一种投屏处理装置,图9是本申请实施例提供的投屏处理装置实施例一的示意图,如图9所示,该投屏处理装置90包括:The embodiment of the present application also provides a screen projection processing device. FIG. 9 is a schematic diagram of Embodiment 1 of the screen projection processing device provided in the embodiment of the present application. As shown in FIG. 9 , the screen projection processing device 90 includes:
获取模块91,设置为若第一终端设备是移动设备,则响应于用户对第一终端设备的移动操作,获取移动操作数据,其中,移动操作数据包括第一终端设备的加速度数据和移动方向数据;The acquiring module 91 is configured to, if the first terminal device is a mobile device, acquire mobile operation data in response to the user's mobile operation on the first terminal device, wherein the mobile operation data includes acceleration data and moving direction data of the first terminal device ;
第一发送模块92,设置为通过投屏应用将移动操作数据发送至用于为用户提供投屏服务的服务器;The first sending module 92 is configured to send the mobile operation data to a server for providing screen projection services for users through the screen projection application;
第一接收模块93,设置为接收服务器发送的第一指示信息,其中,第一指示信息为服务器根据判断结果生成的,判断结果用于确定移动操作是否为投屏操作,第一指示信息用于指示在移动操作是投屏操作时,将第一终端设备的显示内容投屏至第二终端设备上,在移动操作不是投屏操作时,不将显示内容投屏至第二终端设备上;The first receiving module 93 is configured to receive the first indication information sent by the server, wherein the first indication information is generated by the server according to the judgment result, and the judgment result is used to determine whether the mobile operation is a screen projection operation, and the first indication information is used for Instructing to project the display content of the first terminal device to the second terminal device when the mobile operation is a screen projection operation, and not to project the display content to the second terminal device when the mobile operation is not a screen projection operation;
投屏模块94,设置为在用户第一指示信息用于指示将第一终端设备的显示内容投屏至第二终端设备上时,基于第一指示信息和投屏应用将第一终端设备的屏幕上的显示内容投屏至第二终端设备。The screen projection module 94 is configured to, when the user's first instruction information is used to indicate to project the display content of the first terminal device to the second terminal device, based on the first instruction information and the screen projection application, the screen of the first terminal device The content displayed on the screen is projected to the second terminal device.
可选的,该装置还用于在响应于用户对第一终端设备的移动操作,获取移动操作数据之前,根据接收到的投屏应用的启动操作,启动投屏应用。Optionally, the apparatus is further configured to start the screen projection application according to the received start operation of the screen projection application before acquiring the movement operation data in response to the user's movement operation on the first terminal device.
可选的,该装置还用于通过投屏应用接收服务器发送的第一终端设备的第一位置信息和第二终端设备的第二位置信息,其中,第一位置信息用于表示第一终端设备和服务器之间的相对位置,第二位置信息用于表示第二终端设备和服务器之间的相对位置;根据第一位置信息和第二位置信息在投屏应用的界面上生成缩略地图,其中,缩略 地图中包括第一终端设备对应的第一图标和第二终端设备对应的第二图标,缩略地图用于确定第一终端设备和第二终端设备的相对位置。Optionally, the apparatus is further configured to receive the first location information of the first terminal device and the second location information of the second terminal device sent by the server through the screen-casting application, wherein the first location information is used to indicate that the first terminal device The relative position between the server and the server, the second position information is used to indicate the relative position between the second terminal device and the server; according to the first position information and the second position information, a thumbnail map is generated on the interface of the screen-casting application, wherein , the thumbnail map includes a first icon corresponding to the first terminal device and a second icon corresponding to the second terminal device, and the thumbnail map is used to determine the relative positions of the first terminal device and the second terminal device.
可选的,该装置还用于若第一终端设备不是移动设备,则响应于在投屏应用的界面上对第一图标的拖动操作,将第一图标移动至第二图标所在位置;向服务器发送投屏请求,其中,投屏请求用于第一终端设备请求将屏幕上的显示内容投屏至第二终端设备;接收服务器发送的第二指示信息,其中,第二指示信息用于指示将第一终端设备的显示内容投屏至第二终端设备上;基于第二指示信息和投屏应用将第一终端设备的屏幕上的显示内容投屏至第二终端设备。Optionally, the device is further configured to, if the first terminal device is not a mobile device, move the first icon to the position of the second icon in response to a drag operation on the first icon on the screen projection application interface; The server sends a screen projection request, wherein the screen projection request is used by the first terminal device to request to project the displayed content on the screen to the second terminal device; receiving the second indication information sent by the server, wherein the second indication information is used to indicate Projecting the display content of the first terminal device to the second terminal device; projecting the display content on the screen of the first terminal device to the second terminal device based on the second instruction information and the screen projection application.
可选的,该装置还用于接收服务器的蓝牙网关发送的蓝牙信号;根据蓝牙信号确定第一终端设备接收蓝牙信号的信号强度指示值;将信号强度指示值发送至服务器。Optionally, the device is also used to receive the Bluetooth signal sent by the Bluetooth gateway of the server; determine the signal strength indicator value of the Bluetooth signal received by the first terminal device according to the Bluetooth signal; and send the signal strength indicator value to the server.
可选的,获取模块91还用于响应于用户对第一终端设备的移动操作,通过第一终端设备的陀螺仪获取移动方向数据,并通过第一终端设备的加速度传感器获取加速度数据。Optionally, the acquiring module 91 is further configured to acquire moving direction data through a gyroscope of the first terminal device, and acquire acceleration data through an acceleration sensor of the first terminal device in response to a user's mobile operation on the first terminal device.
该投屏处理装置用于执行前述方法实施例中第一终端设备的技术方案,其实现原理和技术效果与前述方法实施例中类似,在此不再赘述。The screen projection processing device is used to implement the technical solution of the first terminal device in the foregoing method embodiments, and its implementation principle and technical effect are similar to those in the foregoing method embodiments, and will not be repeated here.
本申请实施例还提供一种投屏处理装置,图10是本申请实施例提供的投屏处理装置实施例二的示意图,如图10所示,该投屏处理装置1000包括:The embodiment of the present application also provides a screen projection processing device. FIG. 10 is a schematic diagram of Embodiment 2 of the screen projection processing device provided in the embodiment of the present application. As shown in FIG. 10 , the screen projection processing device 1000 includes:
第二接收模块1001,设置为若第一终端设备是移动设备,则接收第一终端设备执行移动操作时发送的移动操作数据,其中,移动操作数据包括第一终端设备的加速度数据和移动方向数据;The second receiving module 1001 is configured to, if the first terminal device is a mobile device, receive mobile operation data sent when the first terminal device performs a mobile operation, wherein the mobile operation data includes acceleration data and moving direction data of the first terminal device ;
第一生成模块1002,设置为根据移动操作数据判断第一终端设备的移动操作是否为投屏操作,生成判断结果;The first generating module 1002 is configured to judge whether the mobile operation of the first terminal device is a screen projection operation according to the mobile operation data, and generate a judgment result;
第二生成模块1003,设置为根据判断结果生成第一指示信息,其中,第一指示信息用于指示在移动操作是投屏操作时,将第一终端设备的显示内容投屏至第二终端设备上,在移动操作不是投屏操作时,不将显示内容投屏至第二终端设备上;The second generation module 1003 is configured to generate first instruction information according to the judgment result, wherein the first instruction information is used to indicate that when the moving operation is a screen projection operation, the display content of the first terminal device is projected to the second terminal device When the mobile operation is not a screen projection operation, the displayed content will not be projected to the second terminal device;
第二发送模块1004,设置为将第一指示信息发送至第一终端设备。The second sending module 1004 is configured to send the first indication information to the first terminal device.
可选的,该装置还用于若第一终端设备不是移动设备,接收第一终端设备发送的投屏请求,其中,投屏请求用于第一终端设备请求将屏幕上的显示内容投屏至第二终端设备上;根据投屏请求生成第二指示信息,其中,第二指示信息用于指示将第一终端设备的显示内容投屏至第二终端设备上;将第二指示信息发送至第一终端设备。Optionally, the device is also used to receive a screen projection request sent by the first terminal device if the first terminal device is not a mobile device, wherein the screen projection request is used for the first terminal device to request to project the display content on the screen to On the second terminal device; generate second indication information according to the screen casting request, wherein the second indication information is used to indicate to cast the display content of the first terminal device to the second terminal device; send the second indication information to the second terminal device a terminal device.
可选的,第一生成模块1002还用于根据移动操作数据确定第一终端设备的移动方向上是否有第二终端设备;在第一终端设备的移动方向上有第二终端设备时,将移动操作数据与预设数据进行对比,确定移动操作数据是否存在于预设数据的预设区间中;若移动操作数据存在于预设数据的预设区间中,生成第一结果,其中,第一结果用于指示第一终端设备的移动操作是投屏操作;若移动操作数据不存在于预设数据的预设区间中,生成第二结果,其中,第二结果用于指示第一终端设备的移动操作不是投屏操作。Optionally, the first generating module 1002 is also configured to determine whether there is a second terminal device in the moving direction of the first terminal device according to the moving operation data; when there is a second terminal device in the moving direction of the first terminal device, the mobile comparing the operation data with the preset data to determine whether the movement operation data exists in the preset interval of the preset data; if the movement operation data exists in the preset interval of the preset data, a first result is generated, wherein the first result It is used to indicate that the movement operation of the first terminal device is a screen projection operation; if the movement operation data does not exist in the preset interval of the preset data, a second result is generated, wherein the second result is used to indicate the movement of the first terminal device The operation is not a mirroring operation.
可选的,该装置还用于确定投屏请求是否为将第一图标移动至第二图标所在位置时触发的请求,其中,第一图标为缩略地图中与第一终端设备对应的图标,第二图标为缩略地图中与第二终端设备对应的图标,缩略地图用于确定第一终端设备和第二终端设备的相对位置;在投屏请求为将第一图标移动至第二图标所在位置时触发的请求时,根据投屏请求生成第二指示信息。Optionally, the device is further configured to determine whether the screen casting request is a request triggered when the first icon is moved to the position of the second icon, wherein the first icon is an icon corresponding to the first terminal device in the thumbnail map, The second icon is the icon corresponding to the second terminal device in the thumbnail map, and the thumbnail map is used to determine the relative position of the first terminal device and the second terminal device; the screen casting request is to move the first icon to the second icon When the request is triggered at the location, the second indication information is generated according to the screen projection request.
可选的,该装置还用于按照预设的时间间隔,周期性的广播蓝牙信号;接收第一终端设备发送的信号强度指示值和第二终端设备发送的信号强度指示值;基于第一终端设备发送的信号强度指示值确定第一终端设备与服务器之间的第一距离;基于第二终端设备发送的信号强度指示值确定第二终端设备与服务器之间的第二距离;基于第一距离确定第一位置信息,其中,第一位置信息用于表示第一终端设备和服务器之间的相对位置;基于第二距离确定第二位置信息,其中,第二位置信息用于表示第二终端设备和服务器之间的相对位置;将第一位置信息和第二位置信息发送至第一终端设备。Optionally, the device is also used to periodically broadcast Bluetooth signals according to a preset time interval; receive the signal strength indicator value sent by the first terminal device and the signal strength indicator value sent by the second terminal device; Determine the first distance between the first terminal device and the server based on the signal strength indicator value sent by the device; determine the second distance between the second terminal device and the server based on the signal strength indicator value sent by the second terminal device; determine the second distance between the second terminal device and the server based on the first distance determining first location information, wherein the first location information is used to indicate the relative location between the first terminal device and the server; determining second location information based on the second distance, wherein the second location information is used to indicate the second terminal device and the relative position between the server; sending the first position information and the second position information to the first terminal device.
该投屏处理装置用于执行前述方法实施例中服务器的技术方案,其实现原理和技术效果与前述方法实施例中类似,在此不再赘述。The screen projection processing device is used to implement the technical solution of the server in the foregoing method embodiments, and its realization principle and technical effect are similar to those in the foregoing method embodiments, and will not be repeated here.
图11是本申请实施例提供的终端设备的结构示意图,如图11所示,该终端设备1100包括:FIG. 11 is a schematic structural diagram of a terminal device provided in an embodiment of the present application. As shown in FIG. 11 , the terminal device 1100 includes:
处理器1111,以及与处理器1111通信连接的存储器1112;A processor 1111, and a memory 1112 communicatively connected to the processor 1111;
存储器1111用于存储计算机执行指令,处理器1112执行存储器1111存储的计算机执行指令,以执行前述方法实施例中的第一终端设备的投屏处理方法的技术方案。The memory 1111 is used to store computer-executable instructions, and the processor 1112 executes the computer-executable instructions stored in the memory 1111 to implement the technical solution of the screen projection processing method of the first terminal device in the foregoing method embodiments.
可选的,存储器1112既可以是独立的,也可以跟处理器1111集成在一起。Optionally, the memory 1112 can be independent or integrated with the processor 1111 .
可选的,当存储器1112是独立于处理器1111之外的器件时,终端设备1100还可以包括:Optionally, when the memory 1112 is a device independent of the processor 1111, the terminal device 1100 may further include:
显示器1113,可以用于用户与终端设备1100进行交互;总线,用于将上述器件连接起来。The display 1113 can be used for the user to interact with the terminal device 1100; the bus is used for connecting the above devices.
图12是本申请实施例提供的服务器的结构示意图,如图12所示,该服务器1200包括:FIG. 12 is a schematic structural diagram of a server provided in an embodiment of the present application. As shown in FIG. 12, the server 1200 includes:
处理组件1201,其进一步包括一个或多个处理器,以及由存储器1202所代表的存储器资源,用于存储可由处理组件1201的执行的指令,例如应用程序。存储器1202中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1201被配置为执行指令,以执行前述方法实施例中的服务器的投屏处理方法的技术方案。The processing component 1201 further includes one or more processors, and a memory resource represented by the memory 1202 for storing instructions executable by the processing component 1201 , such as application programs. The application program stored in memory 1202 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 1201 is configured to execute instructions, so as to implement the technical solution of the server's screen projection processing method in the foregoing method embodiments.
服务器1200还可以包括一个电源组件1203被配置为执行服务器1200的电源管理,一个有线或无线网络接口1204被配置为将服务器1200连接到网络,和一个输入输出接口1205,该输入输出接口1205也可以称为I/O接口1205。服务器1200可以操作基于存储在存储器1202的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。The server 1200 may also include a power supply component 1203 configured to perform power management of the server 1200, a wired or wireless network interface 1204 configured to connect the server 1200 to a network, and an input-output interface 1205, which may also Called the I/O interface 1205 . The server 1200 may operate based on an operating system stored in the memory 1202, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.
本申请实施例还提供一种可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现前述方法实施例提供的投屏处理方法。The embodiment of the present application also provides a readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the screen projection processing method provided in the foregoing method embodiment is implemented.
本申请实施例还提供一种计算机程序产品,包括计算机程序,计算机程序被处理器执行时实现前述方法实施例提供的投屏处理方法。An embodiment of the present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the screen projection processing method provided in the foregoing method embodiments is implemented.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above method embodiments can be completed by program instructions and related hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above-mentioned method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and are not intended to limit it; although the application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present application. scope.

Claims (17)

  1. 一种投屏处理方法,应用于第一终端设备,所述方法包括:A screen projection processing method applied to a first terminal device, the method comprising:
    若第一终端设备是移动设备,则响应于用户对所述第一终端设备的移动操作,获取移动操作数据,其中,所述移动操作数据包括所述第一终端设备的加速度数据和移动方向数据;If the first terminal device is a mobile device, acquiring mobile operation data in response to a user's mobile operation on the first terminal device, wherein the mobile operation data includes acceleration data and moving direction data of the first terminal device ;
    通过投屏应用将所述移动操作数据发送至用于为用户提供投屏服务的服务器;Sending the mobile operation data to a server for providing users with screen casting services through the screen casting application;
    接收所述服务器发送的第一指示信息,其中,所述第一指示信息为所述服务器根据判断结果生成的,所述判断结果用于确定所述移动操作是否为投屏操作,所述第一指示信息用于指示在所述移动操作是投屏操作时,将所述第一终端设备的显示内容投屏至所述第二终端设备上,在所述移动操作不是投屏操作时,不将所述显示内容投屏至所述第二终端设备上;receiving first indication information sent by the server, wherein the first indication information is generated by the server according to a judgment result, the judgment result is used to determine whether the mobile operation is a screen projection operation, and the first The instruction information is used to indicate that when the moving operation is a screen casting operation, the display content of the first terminal device is projected to the second terminal device, and when the moving operation is not a screen projection operation, the Projecting the display content to the second terminal device;
    在所述第一指示信息用于指示将所述第一终端设备的显示内容投屏至所述第二终端设备上时,基于所述第一指示信息和所述投屏应用将所述第一终端设备的屏幕上的显示内容投屏至第二终端设备。When the first indication information is used to indicate to cast the display content of the first terminal device to the second terminal device, based on the first indication information and the screen casting application, the first The display content on the screen of the terminal device is projected to the second terminal device.
  2. 根据权利要求1所述的方法,其中,所述响应于用户对所述第一终端设备的移动操作,获取移动操作数据之前,所述方法还包括:The method according to claim 1, wherein, before obtaining the mobile operation data in response to the mobile operation of the first terminal device by the user, the method further comprises:
    根据接收到的所述投屏应用的启动操作,启动所述投屏应用。Start the screen projection application according to the received start operation of the screen projection application.
  3. 根据权利要求2所述的方法,其中,在所述启动所述投屏应用之后,所述方法还包括:The method according to claim 2, wherein, after the launching of the screen-casting application, the method further comprises:
    通过所述投屏应用接收所述服务器发送的所述第一终端设备的第一位置信息和所述第二终端设备的第二位置信息,其中,所述第一位置信息用于表示所述第一终端设备和所述服务器之间的相对位置,所述第二位置信息用于表示所述第二终端设备和所述服务器之间的相对位置;Receive the first location information of the first terminal device and the second location information of the second terminal device sent by the server through the screen projection application, wherein the first location information is used to indicate the first location information A relative position between the terminal device and the server, the second position information is used to indicate the relative position between the second terminal device and the server;
    根据所述第一位置信息和所述第二位置信息在所述投屏应用的界面上生成缩略地图,其中,所述缩略地图中包括所述第一终端设备对应的第一图标和所述第二终端设备对应的第二图标,所述缩略地图用于确定所述第一终端设备和所述第二终端设备的相对位置。A thumbnail map is generated on the interface of the screen casting application according to the first location information and the second location information, wherein the thumbnail map includes the first icon corresponding to the first terminal device and the the second icon corresponding to the second terminal device, and the thumbnail map is used to determine the relative positions of the first terminal device and the second terminal device.
  4. 根据权利要求3所述的方法,其中,所述方法还包括:The method according to claim 3, wherein the method further comprises:
    若所述第一终端设备不是移动设备,则响应于在所述投屏应用的界面上对所述第一图标的拖动操作,将所述第一图标移动至所述第二图标所在位置;If the first terminal device is not a mobile device, moving the first icon to the position of the second icon in response to a drag operation on the first icon on the interface of the screen-casting application;
    向所述服务器发送投屏请求,其中,所述投屏请求用于所述第一终端设备请求将屏幕上的显示内容发送至所述第二终端设备;Sending a screen projection request to the server, wherein the screen projection request is used for the first terminal device to request that the display content on the screen be sent to the second terminal device;
    接收所述服务器发送的第二指示信息,其中,所述第二指示信息用于指示将所述第一终端设备的显示内容投屏至所述第二终端设备上;receiving second instruction information sent by the server, where the second instruction information is used to instruct to cast the display content of the first terminal device to the second terminal device;
    基于所述第二指示信息和所述投屏应用将所述第一终端设备的屏幕上的显示内容投屏至第二终端设备。Projecting the display content on the screen of the first terminal device to the second terminal device based on the second indication information and the screen projection application.
  5. 根据权利要求1所述的方法,其中,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    接收所述服务器的蓝牙网关发送的蓝牙信号;receiving the bluetooth signal sent by the bluetooth gateway of the server;
    根据所述蓝牙信号确定所述第一终端设备接收所述蓝牙信号的信号强度指示值;determining a signal strength indicator value for the first terminal device to receive the Bluetooth signal according to the Bluetooth signal;
    将所述信号强度指示值发送至所述服务器。sending the signal strength indicator value to the server.
  6. 根据权利要求1所述的方法,其中,所述响应于用户对所述第一终端设备的移动操作,获取移动操作数据,包括:The method according to claim 1, wherein said obtaining mobile operation data in response to the user's mobile operation on the first terminal device comprises:
    响应于用户对所述第一终端设备的移动操作,通过所述第一终端设备的陀螺仪获取所述方向数据,并通过所述第一终端设备的加速度传感器获取所述加速度数据。In response to a user's mobile operation on the first terminal device, the direction data is acquired through a gyroscope of the first terminal device, and the acceleration data is acquired through an acceleration sensor of the first terminal device.
  7. 一种投屏处理方法,应用于服务器,所述方法包括:A screen projection processing method applied to a server, the method comprising:
    若所述第一终端设备是移动设备,则接收第一终端设备执行移动操作时发送的移动操作数据,其中,所述移动操作数据包括所述第一终端设备的加速度数据和移动方向数据;If the first terminal device is a mobile device, receiving mobile operation data sent when the first terminal device performs a mobile operation, wherein the mobile operation data includes acceleration data and moving direction data of the first terminal device;
    根据所述移动操作数据判断所述第一终端设备的所述移动操作是否为投屏操作,生成判断结果;judging whether the moving operation of the first terminal device is a screen projection operation according to the moving operation data, and generating a judgment result;
    根据所述判断结果生成第一指示信息,其中,所述第一指示信息用于指示在所述移动操作是投屏操作时,将所述第一终端设备的显示内容投屏至所述第二终端设备上,在所述移动操作不是投屏操作时,不将所述显示内容投屏至所述第二终端设备上;Generate first instruction information according to the judgment result, wherein the first instruction information is used to indicate that when the moving operation is a screen projection operation, project the display content of the first terminal device to the second terminal device. On the terminal device, when the mobile operation is not a screen projection operation, the display content is not projected to the second terminal device;
    将所述第一指示信息发送至所述第一终端设备。Send the first indication information to the first terminal device.
  8. 根据权利要求7所述的方法,其中,所述方法还包括:The method according to claim 7, wherein the method further comprises:
    若所述第一终端设备不是移动设备,接收所述第一终端设备发送 的投屏请求,其中,所述投屏请求用于所述第一终端设备请求将屏幕上的显示内容投屏至所述第二终端设备上;If the first terminal device is not a mobile device, receive a screen projection request sent by the first terminal device, wherein the screen projection request is used for the first terminal device to request to project the display content on the screen to the on the second terminal device;
    根据所述投屏请求生成所述第二指示信息,其中,所述第二指示信息用于指示将所述第一终端设备的显示内容投屏至所述第二终端设备上;generating the second instruction information according to the screen projection request, where the second instruction information is used to instruct to project the display content of the first terminal device to the second terminal device;
    将所述第二指示信息发送至所述第一终端设备。Send the second indication information to the first terminal device.
  9. 根据权利要求7所述的方法,其中,所述根据所述移动操作数据判断所述第一终端设备的所述移动操作是否为投屏操作,生成判断结果,包括:The method according to claim 7, wherein the judging whether the moving operation of the first terminal device is a screen-casting operation based on the moving operation data, and generating a judging result includes:
    根据所述移动操作数据确定所述第一终端设备的移动方向上是否有所述第二终端设备;determining whether there is the second terminal device in the moving direction of the first terminal device according to the moving operation data;
    在所述第一终端设备的移动方向上有所述第二终端设备时,将所述移动操作数据与预设数据进行对比,确定所述移动操作数据是否存在于所述预设数据的预设区间中;When there is the second terminal device in the moving direction of the first terminal device, comparing the moving operation data with preset data, and determining whether the moving operation data exists in the preset data of the preset data in the interval;
    若所述移动操作数据存在于所述预设数据的预设区间中,生成第一结果,其中,所述第一结果用于指示所述第一终端设备的所述移动操作是投屏操作;If the moving operation data exists in the preset interval of the preset data, generate a first result, where the first result is used to indicate that the moving operation of the first terminal device is a screen projection operation;
    若所述移动操作数据不存在于所述预设数据的预设区间中,生成第二结果,其中,所述第二结果用于指示所述第一终端设备的所述移动操作不是投屏操作。If the moving operation data does not exist in the preset interval of the preset data, generate a second result, wherein the second result is used to indicate that the moving operation of the first terminal device is not a screen projection operation .
  10. 根据权利要求8所述的方法,其中,所述根据所述投屏请求生成所述第二指示信息,包括:The method according to claim 8, wherein said generating said second indication information according to said screen projection request comprises:
    确定所述投屏请求是否为将第一图标移动至第二图标所在位置时触发的请求,其中,所述第一图标为缩略地图中与所述第一终端设备对应的图标,所述第二图标为所述缩略地图中与所述第二终端设备对应的图标,所述缩略地图用于确定所述第一终端设备和所述第二终端设备的相对位置;determining whether the screen casting request is a request triggered when the first icon is moved to the location of the second icon, wherein the first icon is an icon corresponding to the first terminal device in the thumbnail map, and the second The second icon is an icon corresponding to the second terminal device in the thumbnail map, and the thumbnail map is used to determine the relative positions of the first terminal device and the second terminal device;
    在所述投屏请求为将所述第一图标移动至所述第二图标所在位置时触发的请求时,根据所述投屏请求生成所述第二指示信息。When the screen casting request is a request triggered when the first icon is moved to the location of the second icon, the second indication information is generated according to the screen casting request.
  11. 根据权利要求7所述的方法,其中,所述方法还包括:The method according to claim 7, wherein the method further comprises:
    按照预设的时间间隔,周期性的广播蓝牙信号;Periodically broadcast Bluetooth signals according to the preset time interval;
    接收所述第一终端设备发送的信号强度指示值和所述第二终端设 备发送的信号强度指示值;receiving the signal strength indicator value sent by the first terminal device and the signal strength indicator value sent by the second terminal device;
    基于所述第一终端设备发送的信号强度指示值确定所述第一终端设备与所述服务器之间的第一距离;determining a first distance between the first terminal device and the server based on a signal strength indicator value sent by the first terminal device;
    基于所述第二终端设备发送的信号强度指示值确定所述第二终端设备与所述服务器之间的第二距离;determining a second distance between the second terminal device and the server based on the signal strength indicator value sent by the second terminal device;
    基于所述第一距离确定第一位置信息,其中,所述第一位置信息用于表示所述第一终端设备和所述服务器之间的相对位置;determining first location information based on the first distance, where the first location information is used to represent a relative location between the first terminal device and the server;
    基于所述第二距离确定第二位置信息,其中,所述第二位置信息用于表示所述第二终端设备和所述服务器之间的相对位置;determining second location information based on the second distance, where the second location information is used to represent a relative location between the second terminal device and the server;
    将所述第一位置信息和所述第二位置信息发送至所述第一终端设备。sending the first location information and the second location information to the first terminal device.
  12. 一种投屏处理装置,包括:A screen projection processing device, comprising:
    获取模块,设置为若所述第一终端设备是移动设备,则响应于用户对所述第一终端设备的移动操作,获取移动操作数据,其中,所述移动操作数据包括所述第一终端设备的加速度数据和移动方向数据;An acquisition module, configured to acquire mobile operation data in response to a user's mobile operation on the first terminal device if the first terminal device is a mobile device, wherein the mobile operation data includes the first terminal device Acceleration data and moving direction data;
    第一发送模块,设置为通过所述投屏应用将所述移动操作数据发送至用于为用户提供投屏服务的服务器;The first sending module is configured to send the mobile operation data to a server for providing screen projection services for users through the screen projection application;
    第一接收模块,设置为接收所述服务器发送的第一指示信息,其中,所述第一指示信息为所述服务器根据判断结果生成的,所述判断结果用于确定所述移动操作是否为投屏操作,所述第一指示信息用于指示在所述移动操作是投屏操作时,将所述第一终端设备的显示内容投屏至所述第二终端设备上,在所述移动操作不是投屏操作时,不将所述显示内容投屏至所述第二终端设备上;The first receiving module is configured to receive the first indication information sent by the server, wherein the first indication information is generated by the server according to the judgment result, and the judgment result is used to determine whether the mobile operation is casting Screen operation, the first indication information is used to indicate that when the mobile operation is a screen projection operation, project the display content of the first terminal device to the second terminal device, and when the mobile operation is not During the screen projection operation, the display content is not projected to the second terminal device;
    投屏模块,设置为在所述用户第一指示信息用于指示将所述第一终端设备的显示内容投屏至所述第二终端设备上时,基于所述第一指示信息和所述投屏应用将所述第一终端设备的屏幕上的显示内容投屏至第二终端设备。The screen projection module is configured to, when the user's first instruction information is used to indicate to project the display content of the first terminal device to the second terminal device, based on the first instruction information and the projection The screen application projects the display content on the screen of the first terminal device to the second terminal device.
  13. 一种投屏处理装置,包括:A screen projection processing device, comprising:
    第二接收模块,设置为若所述第一终端设备是移动设备,则接收第一终端设备发送的移动操作数据,其中,所述移动操作数据包括所述第一终端设备的加速度数据和移动方向数据;The second receiving module is configured to receive mobile operation data sent by the first terminal device if the first terminal device is a mobile device, wherein the mobile operation data includes acceleration data and a moving direction of the first terminal device data;
    第一生成模块,设置为根据所述移动操作数据判断所述第一终端 设备的所述移动操作是否为投屏操作,生成判断结果;The first generation module is configured to judge whether the mobile operation of the first terminal device is a screen projection operation according to the mobile operation data, and generate a judgment result;
    第二生成模块,设置为根据所述判断结果生成第一指示信息,其中,所述第一指示信息用于指示在所述移动操作是投屏操作时,将所述第一终端设备的显示内容投屏至所述第二终端设备上,在所述移动操作不是投屏操作时,不将所述显示内容投屏至所述第二终端设备上;The second generating module is configured to generate first indication information according to the judgment result, wherein the first indication information is used to indicate that when the moving operation is a screen projection operation, the display content of the first terminal device Projecting the screen to the second terminal device, and not projecting the display content to the second terminal device when the mobile operation is not a screen projection operation;
    第二发送模块,设置为将所述第一指示信息发送至所述第一终端设备。The second sending module is configured to send the first indication information to the first terminal device.
  14. 一种终端设备,包括:A terminal device comprising:
    处理器,以及与所述处理器通信连接的存储器;a processor, and a memory communicatively connected to the processor;
    所述处理器执行所述存储器存储的计算机执行指令,以实现如权利要求1至6任一项所述的投屏处理方法。The processor executes the computer-executed instructions stored in the memory, so as to realize the screen projection processing method according to any one of claims 1-6.
  15. 一种服务器,包括:A server comprising:
    处理器,以及与所述处理器通信连接的存储器;a processor, and a memory communicatively connected to the processor;
    所述处理器执行所述存储器存储的计算机执行指令,以实现如权利要求7至11任一项所述的投屏处理方法。The processor executes the computer-executed instructions stored in the memory, so as to realize the screen projection processing method according to any one of claims 7 to 11.
  16. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1至11任一项所述的投屏处理方法。A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the screen projection processing method according to any one of claims 1 to 11 is realized.
  17. 一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时用于实现权利要求1至11任一项所述的投屏处理方法。A computer program product, including a computer program, the computer program is used to implement the screen projection processing method according to any one of claims 1 to 11 when executed by a processor.
PCT/CN2022/121178 2021-10-25 2022-09-26 Screen projection processing method and apparatus, and device and storage medium WO2023071655A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111251675.XA CN114089935B (en) 2021-10-25 2021-10-25 Screen projection processing method, device, equipment and storage medium
CN202111251675.X 2021-10-25

Publications (1)

Publication Number Publication Date
WO2023071655A1 true WO2023071655A1 (en) 2023-05-04

Family

ID=80297764

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/121178 WO2023071655A1 (en) 2021-10-25 2022-09-26 Screen projection processing method and apparatus, and device and storage medium

Country Status (2)

Country Link
CN (1) CN114089935B (en)
WO (1) WO2023071655A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114089935B (en) * 2021-10-25 2024-01-23 青岛海尔科技有限公司 Screen projection processing method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102487393A (en) * 2010-12-01 2012-06-06 深圳市同洲软件有限公司 Method and system for interaction between digital television receiving terminal and mobile terminal, and apparatuses
CN103428559A (en) * 2013-08-19 2013-12-04 乐视致新电子科技(天津)有限公司 Data display method, mobile terminal and play device
CN104853235A (en) * 2015-05-12 2015-08-19 西安诺瓦电子科技有限公司 Method for interacting with display screen terminal
CN109831691A (en) * 2019-03-12 2019-05-31 刘耕 A kind of multi-screen interaction method
CN110248224A (en) * 2019-05-24 2019-09-17 南京苏宁软件技术有限公司 Throw screen connection method for building up, device, computer equipment and storage medium
CN113473217A (en) * 2021-06-23 2021-10-01 四川长虹电器股份有限公司 Screen projection connection method, device and system
CN114089935A (en) * 2021-10-25 2022-02-25 青岛海尔科技有限公司 Screen projection processing method, device, equipment and storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102012223010A1 (en) * 2012-12-13 2014-06-18 Robert Bosch Gmbh Portable laser projector with an eye protection device and method for protection against laser light
US9756299B2 (en) * 2014-04-14 2017-09-05 Crayola, Llc Handheld digital drawing and projection device
CN104657099B (en) * 2015-01-15 2019-04-12 小米科技有限责任公司 Screen projective techniques, apparatus and system
CN110597473A (en) * 2019-07-30 2019-12-20 华为技术有限公司 Screen projection method and electronic equipment
CN112527222A (en) * 2019-09-19 2021-03-19 华为技术有限公司 Information processing method and electronic equipment
CN111078167B (en) * 2019-11-12 2023-08-22 博泰车联网科技(上海)股份有限公司 Information transmission method, vehicle, computer storage medium and information transmission system
CN113031890A (en) * 2019-12-25 2021-06-25 上海博泰悦臻电子设备制造有限公司 Method and device for controlling mobile terminal to perform screen projection interaction
CN111897507B (en) * 2020-07-30 2023-03-24 茂佳科技(广东)有限公司 Screen projection method and device, second terminal and storage medium
CN112134788B (en) * 2020-09-18 2023-06-06 Oppo广东移动通信有限公司 Event processing method, device, storage medium, mobile terminal and computer
CN112261572A (en) * 2020-10-14 2021-01-22 北京小米移动软件有限公司 Information interaction method and device and storage medium
CN112689085A (en) * 2020-12-09 2021-04-20 展讯通信(上海)有限公司 Method, device and system for identifying PPT screen projection area and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102487393A (en) * 2010-12-01 2012-06-06 深圳市同洲软件有限公司 Method and system for interaction between digital television receiving terminal and mobile terminal, and apparatuses
CN103428559A (en) * 2013-08-19 2013-12-04 乐视致新电子科技(天津)有限公司 Data display method, mobile terminal and play device
CN104853235A (en) * 2015-05-12 2015-08-19 西安诺瓦电子科技有限公司 Method for interacting with display screen terminal
CN109831691A (en) * 2019-03-12 2019-05-31 刘耕 A kind of multi-screen interaction method
CN110248224A (en) * 2019-05-24 2019-09-17 南京苏宁软件技术有限公司 Throw screen connection method for building up, device, computer equipment and storage medium
CN113473217A (en) * 2021-06-23 2021-10-01 四川长虹电器股份有限公司 Screen projection connection method, device and system
CN114089935A (en) * 2021-10-25 2022-02-25 青岛海尔科技有限公司 Screen projection processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN114089935B (en) 2024-01-23
CN114089935A (en) 2022-02-25

Similar Documents

Publication Publication Date Title
US11081086B2 (en) Display method and apparatus
US11262903B2 (en) IoT device control system and method using virtual reality and augmented reality
US10192414B2 (en) System and method for overlap detection in surveillance camera network
US20170171696A1 (en) Audio/video playing method and apparatus
WO2017148155A1 (en) Wireless charging system and method
EP3182715A2 (en) Method and apparatus for controlling electronic device
WO2019036939A1 (en) Positioning method and apparatus
US10764539B2 (en) System and method for using mobile device of zone and correlated motion detection
US9310902B2 (en) Digital signs
US20160163190A1 (en) Terminal device and remote control method
US20110252131A1 (en) System and method for automatically managing a network of user-selectable devices
CN106713598B (en) Instruction transmission method and device based on indication direction and intelligent equipment
KR20160063041A (en) Method for proximity service data and an electronic device thereof
US20160192151A1 (en) Mobile device tracking with peer-to-peer mobile device network
WO2023071655A1 (en) Screen projection processing method and apparatus, and device and storage medium
KR102478031B1 (en) Electronic device and method for connection with external device
CN105050038B (en) A kind of method, apparatus and system monitoring location information of mobile terminal
US10896513B2 (en) Method and apparatus for surveillance using location-tracking imaging devices
US20230169839A1 (en) Object Contextual Control Based On UWB Radios
KR102076647B1 (en) IoT Device Control System And Method Using Virtual reality And Augmented Reality
CN110989372A (en) Equipment control method, device and system based on position information
EP4030790A1 (en) Method and apparatus for generating semantic map, and readable storage medium
CN107632285B (en) Map creating and modifying method and device
JP2014139745A (en) Equipment management system, equipment management device, equipment management method and program
US20230324906A1 (en) Systems and methods for remote viewing of self-driving vehicles

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22885542

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE