WO2023173897A1 - 跨设备截图方法、装置、设备及存储介质 - Google Patents

跨设备截图方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2023173897A1
WO2023173897A1 PCT/CN2022/143500 CN2022143500W WO2023173897A1 WO 2023173897 A1 WO2023173897 A1 WO 2023173897A1 CN 2022143500 W CN2022143500 W CN 2022143500W WO 2023173897 A1 WO2023173897 A1 WO 2023173897A1
Authority
WO
WIPO (PCT)
Prior art keywords
cross
screenshot
connection
image
instruction
Prior art date
Application number
PCT/CN2022/143500
Other languages
English (en)
French (fr)
Inventor
杨俊拯
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023173897A1 publication Critical patent/WO2023173897A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • 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/04845Interaction 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 for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations

Definitions

  • Embodiments of the present application relate to the field of computer technology, and in particular to a cross-device screenshot method, device, equipment and storage medium.
  • Embodiments of the present application provide a cross-device screenshot method, device, equipment and storage medium, provide a new data interaction method, and can meet the diverse data interaction needs of users.
  • the technical solution is as follows:
  • a cross-device screenshot method is provided, which is executed by the first device.
  • the method includes:
  • the cross-device screenshot instruction is sent to each of the second devices through a connection with at least one second device, and the second device is connected to the first device.
  • the device logs in to the device with the same account;
  • At least one said image received is stored.
  • a cross-device screenshot method is provided, which is executed by a second device.
  • the method includes:
  • the first device is a device logged in with the same account as the second device.
  • the first device is configured to respond to The cross-device screenshot instruction is sent to the second device;
  • a cross-device screenshot device configured on the first device, and the device includes:
  • An instruction sending module configured to, upon receiving a cross-device screenshot instruction, send the cross-device screenshot instruction to each of the second devices through a connection with at least one second device, and the second device A device that is logged in with the same account as the first device;
  • An image receiving module configured to receive at least one image captured by the second device
  • An image storage module configured to store at least one of the received images.
  • a cross-device screenshot device configured on a second device, and the device includes:
  • An instruction receiving module configured to receive a cross-device screenshot instruction sent by the first device through a connection with the first device.
  • the first device is a device logged in with the same account as the second device.
  • a device is configured to respond to the cross-device screenshot instruction and send the cross-device screenshot instruction to the second device;
  • a screenshot module configured to screenshot an image and send the image to the first device.
  • a computer device includes a processor and a memory; the memory stores at least one program code, and the at least one program code is used by the processor. Execute to implement the cross-device screenshot method as described in the above aspects.
  • a computer-readable storage medium stores at least one program code, and the at least one program code is used to be executed by a processor to implement the above aspect.
  • Cross-device screenshot method is provided.
  • a computer program product stores at least one program code.
  • the at least one program code is loaded and executed by a processor to implement the cross-device described in the above aspect. Screenshot method.
  • Figure 1 shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application
  • Figure 2 shows a flow chart of a cross-device screenshot method provided by an exemplary embodiment of the present application
  • Figure 3 shows a flow chart of another cross-device screenshot method provided by an exemplary embodiment of the present application
  • Figure 4 shows a flow chart of yet another cross-device screenshot method provided by an exemplary embodiment of the present application
  • Figure 5 shows a schematic diagram of an operation detection process provided by an exemplary embodiment of the present application
  • Figure 6 shows a schematic diagram of a cross-device screenshot sub-process provided by an exemplary embodiment of the present application
  • Figure 7 shows a schematic diagram of a screenshot sub-process provided by an exemplary embodiment of the present application.
  • Figure 8 shows a schematic structural diagram of a target application provided by an exemplary embodiment of the present application.
  • Figure 9 shows a schematic diagram of a device state provided by an exemplary embodiment of the present application.
  • Figure 10 shows a schematic diagram of another device state provided by an exemplary embodiment of the present application.
  • Figure 11 shows a schematic diagram of yet another device state provided by an exemplary embodiment of the present application.
  • Figure 12 shows a schematic diagram of yet another device state provided by an exemplary embodiment of the present application.
  • Figure 13 shows a structural block diagram of a cross-device screenshot device provided by an exemplary embodiment of the present application
  • Figure 14 shows a structural block diagram of another cross-device screenshot device provided by an exemplary embodiment of the present application.
  • Figure 15 shows a structural block diagram of a terminal provided by an exemplary embodiment of the present application.
  • At least one mentioned in this article means one or more, and “plurality” means two or more.
  • “And/or” describes the relationship between related objects, indicating that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. The character “/” generally indicates that the related objects are in an "or” relationship.
  • Figure 1 shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application.
  • the implementation environment includes a first device 101 and a plurality of second devices 102.
  • the first device 101 and each second device 102 are connected through a wireless or wired network.
  • the first device 101 and the second device 102 are laptop computers, mobile phones, tablet computers, vehicle-mounted devices, smart home devices, smart wearable devices, or other devices, where smart home devices include smart refrigerators, smart TVs, and smart mirrors. Or other smart home devices.
  • the first device 101 and the second device 102 are logged in with the same account.
  • the first device 101 is configured to send the cross-device screenshot instruction to the second device 102 when receiving the cross-device screenshot instruction
  • the second device 102 is configured to respond to the cross-device screenshot instruction, screenshot the image, and obtain the image. The image is returned to the first device 101.
  • a target application is installed on the first device 101 and the second device 102.
  • the first device 101 can establish a connection with the second device 102 through the target application and perform data interaction with the second device 102 based on the connection, for example, to
  • the second device 102 sends a cross-device screenshot instruction.
  • the first device 101 and the second device 102 can also perform image display based on the target application.
  • the target application also has other functions.
  • the first device 101 can also detect operations on the first device through the target application.
  • the target application is an application in the operating systems of the first device 101 and the second device 102, or an application provided by a third party.
  • the target application is an application (application, APP), a mini program (mini Program), or a micro application (Micro APP), which is not limited in the embodiment of the present application.
  • mini programs are a type of application form that are embedded in other applications and can be used without downloading and installing.
  • Microapplication is a distributed application that can be divided into multiple services. The services run in the form of independent processes and can be independently and dynamically deployed. Services communicate in a unified cross-process manner. Multiple services of a micro-application are deployed on multiple devices. Each device in the multiple devices is deployed with the script code of the micro-application. Each device manages the communication and scheduling between multiple services by running the script code. Thus realizing a distributed application.
  • the cross-device screenshot method provided by the embodiment of the present application can be applied to screenshot scenarios. Take the first device as a mobile phone and the second device as a smart refrigerator as an example. The user has logged in to his account on both the mobile phone and the smart refrigerator. When the user wants to intercept the display content on the smart refrigerator, he can trigger the cross-device function on the mobile phone. Screenshot command. In response to the cross-device screenshot command, the mobile phone sends the cross-device screenshot command to the smart refrigerator. Then the smart refrigerator captures the image based on the cross-device screenshot command and returns the image to the mobile phone. The user can indirectly control the smart refrigerator through the mobile phone. Take a screenshot.
  • the method provided by the embodiment of the present application can also be applied to other screenshot scenarios, and the embodiment of the present application does not limit this.
  • Figure 2 shows a flow chart of a cross-device screenshot method provided by an exemplary embodiment of the present application. Referring to Figure 2, the method is executed by the first device, and the method includes:
  • the first device receives a cross-device screenshot instruction, it sends a cross-device screenshot instruction to each second device through the connection with at least one second device.
  • the second device is the same as the first device. Account device.
  • the account number is used to indicate the user's identity and distinguish different users. Different accounts correspond to different users, so logging in to the same account on the second device and the first device means that the second device and the first device belong to the same user.
  • the cross-device screenshot instruction instructs to take a screenshot, where screenshot refers to intercepting the display content of the device.
  • the first device Since there may be at least one device logged in with the same account as the first device, the first device will send a cross-device screenshot command to the at least one device. The first device sends a cross-device screenshot command to each second device in the same way. .
  • the first device receives an image captured by at least one second device.
  • the second device receives the cross-device screenshot instruction sent by the first device, takes the screenshot to obtain the image, and sends the image to the first device, so that the first device can receive at least one image sent by the second device.
  • the first device stores the received at least one image.
  • the first device After receiving the image, the first device stores the image so that the user can use the image.
  • Embodiments of the present application provide a cross-device screenshot solution.
  • the first device is triggered to send the cross-device screenshot instruction to a second device logged in with the same account, so that the second device can The device screenshots to obtain the image, so that the first device can receive and store the image sent by the second device, realizing the process of cross-device screenshots.
  • this application has expanded a new screenshot method, and the user can indirectly view the second device through the first device. Taking screenshots on two devices has wider applicability.
  • the device when the device does not have the screenshot function, the device can be screenshotted through the cross-device screenshot solution, or when the device has the screenshot function but it is inconvenient for the user to trigger the screenshot on the device, the cross-device screenshot can also be taken through the cross-device screenshot solution. program to take screenshots of the device.
  • methods also include:
  • connection information Broadcast connection information, and any second device sends a connection request based on the connection information
  • a connection is established with any second device.
  • broadcast connection information including:
  • Broadcast connection information and device indication information indicates that the first device is an image receiving device
  • the second device is also configured to receive device indication information, and in response to a cross-device screenshot instruction, send an image to the image receiving device.
  • send cross-device screenshot instructions to each second device through the connection with at least one second device including:
  • a cross-device screenshot instruction upon receiving a cross-device screenshot instruction, send a cross-device screenshot instruction to each second device through the connection with at least one second device, including any of the following:
  • a cross-device screenshot instruction is sent to each second device through the connection with at least one second device.
  • methods also include:
  • store at least one received image including:
  • the selected image is stored.
  • Figure 3 shows a flow chart of a cross-device screenshot method provided by an exemplary embodiment of the present application. Referring to Figure 3, the method is executed by a second device, and the method includes:
  • the second device receives the cross-device screenshot instruction sent by the first device through the connection with the first device.
  • the first device is a device logged in with the same account as the second device.
  • the first device is used to respond to the cross-device screenshot.
  • Screenshot command send the cross-device screenshot command to the second device.
  • the account number is used to indicate the user's identity and can distinguish different users. Different users correspond to different accounts, so logging in to the same account on the second device and the first device means that the second device and the first device belong to the same user.
  • the cross-device screenshot command instructs you to take a screenshot. Screenshot refers to taking the display content of the device.
  • the second device takes a screenshot to obtain the image, and sends the image to the first device.
  • Embodiments of the present application provide a cross-device screenshot solution.
  • the first device is triggered to send the cross-device screenshot instruction to a second device logged in with the same account, so that the second device can The device screenshots to obtain the image, so that the first device can receive and store the image sent by the second device, realizing the process of cross-device screenshots.
  • this application has expanded a new screenshot method, and the user can indirectly view the second device through the first device. Taking screenshots on two devices has wider applicability.
  • methods also include:
  • a connection is established with the first device.
  • receive connection information broadcast by the first device including:
  • Send an image to the first device including:
  • Figure 4 shows a flow chart of a cross-device screenshot method provided by an exemplary embodiment of the present application.
  • the method is interactively executed by the first device and the second device.
  • the method describes the interaction between the first device and the second device.
  • the method includes:
  • the first device receives a cross-device screenshot instruction, it sends the cross-device screenshot instruction to each second device through the connection with at least one second device.
  • the second device is logged in with the first device. Devices with the same account.
  • the cross-device screenshot instruction is generated by the user triggering the first device.
  • the cross-device screenshot instruction is triggered by a cross-device screenshot operation.
  • the cross-device screenshot operation includes operations in any of the following situations:
  • the cross-device screenshot operation is an operation of tapping the first device
  • the implementation of step 401 includes: the first device responds to the operation of tapping the first device, through a connection with at least one second device , sending a cross-device screenshot command to each second device.
  • the tapping operation is an operation of tapping any position of the first device, such as tapping the screen of the first device, tapping the back of the first device, etc. This is not limited in the embodiments of the present application. In this case, since the tapping operation is extremely simple, using the tapping operation to trigger cross-device screenshots can greatly improve the efficiency of cross-device screenshots.
  • the cross-device screenshot operation is an operation of collecting cross-device screenshot voice.
  • the implementation of step 401 includes: the first device responds to the operation of collecting cross-device screenshot voice by communicating with at least one second device. connection, sending cross-device screenshot instructions to each second device.
  • the voice content of the cross-device screenshot voice can be set as needed, and the embodiments of the present application do not limit this.
  • the voice content of the cross-device screenshot voice is "cross-device screenshot", "screenshot”, etc.
  • cross-device screenshots can be triggered by cross-device screenshot voice, which realizes voice control of the cross-device screenshot process, thereby enriching the triggering methods of cross-device screenshots. Improved the convenience of taking screenshots across devices.
  • the cross-device screenshot operation is an operation of moving according to the target trajectory.
  • the implementation of step 401 includes: the first device responds to the operation of moving according to the target trajectory, through a connection with at least one second device. , sending the cross-device screenshot command to each second device.
  • the target trajectory is a movement trajectory formed by the first device when the user moves the first device.
  • the movement mode can be set as needed, and the embodiments of the present application do not limit this. For example, if the movement mode is shaking the first device, flipping the first device, etc., then the target trajectory is the shaking trajectory or flipping trajectory.
  • the operation of moving the first device is extremely simple, by moving the first device according to the target trajectory to trigger cross-device screenshots, the efficiency of cross-device screenshots can be greatly improved.
  • the first device obtains motion information of the first device; when the motion information satisfies the target trajectory, it is determined that an operation of moving according to the target trajectory is detected.
  • the motion information is information detected by a sensor in the first device.
  • the sensor includes a pressure sensor, a gyroscope sensor, an air pressure sensor, an acceleration sensor, or a distance sensor.
  • Whether the motion information of the first device satisfies the target trajectory can indicate whether the user has performed an operation on the first device to move according to the target trajectory. If the motion information of the first device satisfies the target trajectory, it indicates that the user has performed an operation on the first device. Move according to the target trajectory. For example, whether the motion information of the first device satisfies the shaking trajectory corresponding to the shaking operation can indicate whether the user shook the first device; if the motion information of the first device meets the flipping trajectory corresponding to the flip operation, it indicates that the user has flipped the first device.
  • the first device when the cross-device screenshot operation, that is, the cross-device screenshot instruction is triggered, the first device may have established a connection with other devices or not established a connection with other devices.
  • the first device is receiving In the case of a cross-device screenshot instruction, it is determined whether the first device has currently established a connection with the other device. In the first case, if the first device does not establish a connection with other devices, the first device will not take cross-device screenshots. Since the first device is not currently connected to other devices, it is very likely that the user accidentally touched the first device. Even if the first device detects a cross-device screenshot operation, there is no need to take a cross-device screenshot, thereby reducing the performance consumption of the device. .
  • the first device can immediately establish a connection with other devices.
  • the first device broadcasts connection information
  • the second device receives the connection information broadcast by the first device. Based on the connection information, sending a connection request to the first device, the first device establishes a connection with the second device in response to receiving the connection request sent by the second device, and the second device establishes a connection with the first device based on the connection request.
  • the connection information of the first device indicates a way to establish a connection with the first device.
  • the connection information of the first device includes the IP (Internet Protocol) address, MAC (Medium Access Control, media access) of the first device. control) address, the identification of the first device, the local area network information of the first device, and other information.
  • the connection information of the first device can also include other information used to establish a connection with the first device.
  • the connection request carries the IP address, MAC address of the second device, the identifier of the second device, the local area network information of the second device, etc. The embodiments of the present application do not limit this.
  • the first device can directly communicate with other devices logged in with the same account, then the first device broadcasts the connection information and the second device can receive the connection information. Or the first device and the second device communicate through the server, then the first device sends its own connection information to the server, the server determines other devices logged in with the same account, and sends the connection information to the determined other devices.
  • a method for establishing a connection between devices is provided.
  • the first device can broadcast connection information, so that the second device that receives the connection information can send a connection request to the first device, so that the first device A connection can be established with the second device based on the connection request, so that the first device can immediately establish a connection with the second device without establishing a connection with other devices, providing communication support for the cross-device screenshot process.
  • the first device is the device that triggers the cross-device screenshot process, then the user most likely wants to view the image obtained by the screenshot on the first device, then the first device is the image receiving device for the cross-device screenshot process, accordingly , the first device can also broadcast device indication information, then the implementation of the first device broadcasting connection information includes: the first device broadcasts connection information and device indication information, and the device indication information indicates that the first device is an image receiving device, then the second device The device is also configured to receive the device indication information.
  • the implementation of the second device receiving the connection information broadcast by the first device includes: the second device receives the connection information and the device indication information broadcast by the first device.
  • the second device After receiving the device indication information, the second device stores the device indication information. For example, the second device stores the device indication information "image receiving device-identity of the first device". In addition to sending device indication information to the second device, the first device will also store a record of itself as an image receiving device. For example, the first device will generate device indication information "image receiving device-identification of the first device" and store the The device indication information makes it easier for the first device to later learn which image receiving device among the multiple devices logged into the account is.
  • the number of second devices that establishes a connection with the first device based on the connection information is at least one. If the first device has established a connection with a second device, the first device directly sends a cross-device screenshot instruction to the second device; if the first device has established a connection with multiple second devices, the first device directly sends a cross-device screenshot command to multiple second devices. Each of the second devices sends a cross-device screenshot instruction.
  • the first device filters the second devices that have established connections, and sends a cross-device screenshot instruction to the filtered second devices.
  • the filtering conditions can be set as needed, and the embodiments of the present application do not limit this. For example, filter out second devices with horizontal screens, or filter out non-mobile devices, etc.
  • At least one second device may include a device that the user wants to trigger a screenshot, or may include a device that the user does not want to trigger a screenshot, then the first device displays the identification of each second device that has established a connection; to the selected Send a cross-device screenshot command to the second device to which the identifier belongs.
  • the identifier is used to indicate the identity of the device and can distinguish different devices. Different devices correspond to different identifiers.
  • the first device displays the identification of each second device that has established a connection, so that the user can select the identification of the second device that wants to trigger the screenshot from the displayed identifications, thereby providing the user with A way to select a second device, so that the first device only needs to send a cross-device screenshot command to the second device to which the selected logo belongs, and does not need to send a cross-device screenshot command to the second device to which the unselected logo belongs, so that The cross-device screenshot command is sent more accurately, which can meet the user's screenshot needs and reduce the performance consumption of the device.
  • the first device when the first device detects the cross-device screenshot operation, that is, the cross-device screenshot command is triggered, if the first device does not establish a connection with other devices, the first device can establish a connection with the second device through the above method. After success, send a cross-device screenshot command to the second device.
  • the first device can also broadcast the information containing the cross-device screenshot instructions while broadcasting the connection information. That is, the first device broadcasts the connection information and the information containing the cross-device screenshot instructions, and the second device receives the connection information and the information containing the cross-device screenshot instructions.
  • the first device does not need to broadcast connection information and send cross-device screenshot instructions separately, nor does it need to wait for a successful connection with the second device.
  • the second device can receive connection information and information containing cross-device screenshot instructions at the same time, without receiving two separate information, thereby improving the efficiency of cross-device screenshots.
  • the first device has established a connection with at least one second device, and the first device sends a cross-device screenshot instruction to each second device through the connection with at least one second device.
  • the first device sends a test message to the second device that has established a connection. The test message is used to test whether the connection is successful. If the first device receives the test message returned by the second device , it means that the connection between the first device and the second device is successful, and the first device sends a cross-device screenshot instruction to the second device.
  • the first device does not receive the test message returned by the second device, it means that the connection between the first device and the second device fails, and the first device does not send a cross-device screenshot instruction to the second device. Even if the first device and the second device have established a connection, the connection may fail due to network or other reasons. Therefore, the first device tests the connection between the two devices by sending a test message to the second device. This can reduce invalid sending of cross-device screenshot commands.
  • the first The device establishes a connection with the second device based on the connection information.
  • the connection information may be the first message broadcast by the first device.
  • the connection information of the device may also be the connection information of the second device broadcast by the second device.
  • the first device does not broadcast the device instruction information, but when the first device detects a cross-device screenshot operation, that is, the cross-device screenshot command is When triggered, the device instruction information is broadcast.
  • the first device may send device indication information when sending a cross-device screenshot instruction to the second device.
  • the first device directly sends a cross-device screenshot instruction to each device.
  • the second device sends a cross-device screenshot instruction, or the first device sends a cross-device screenshot instruction to the selected second device.
  • the second device receives the cross-device screenshot instruction sent by the first device through the connection with the first device.
  • the second device can receive the cross-device screenshot instruction sent by the first device.
  • the second device takes a screenshot to obtain the image, and sends the image to the first device.
  • the second device After receiving the cross-device screenshot instruction, the second device intercepts the current display content and obtains an image containing the display content.
  • the second device also receives the device indication information broadcast by the first device, and the device indication information indicates that the first device is an image receiving device, and the second device is also configured to receive a cross-device screenshot instruction, Take a screenshot to get the image and send the image to the image receiving device.
  • the implementation of the second device sending the image to the first device includes: the second device sending the image to the image receiving device.
  • the first device broadcasts device indication information that can indicate that the first device is an image receiving device.
  • the sending device of the cross-device screenshot instruction is also the receiving device of the image, so that after the second device captures the image, The captured image can be sent to the first device, thereby realizing cross-device screenshots.
  • the second image can also store the image on the local end, thereby realizing the backup of the image, so that the user can view the image on the first device and also view the image on the second device. View images on your device.
  • the first device receives an image captured by at least one second device.
  • the first device stores the received at least one image.
  • the first device directly stores all received images, so that the user can view all images captured by the second device through the first device.
  • the captured image may be an image that the user wants, or it may be an image that the user does not want.
  • the first device stores the at least one received image.
  • the implementation includes: the first device displays the at least one received image and saves it. Control; in the event that at least one image is selected, in response to the save control being triggered, store the selected image.
  • the display style and display position of the save control in the interface can be set as needed, and the embodiment of the present application does not limit this.
  • the first device displays the received image after receiving at least one image screenshot taken by the second device, so that the user can select the desired image from the displayed images, and then trigger the
  • the save control triggers the first device to store the selected image, thereby providing the user with a way to select the image, so that the first device only needs to store the selected image, which can not only meet the needs of the user, but also save storage. space.
  • the following takes the cross-device screenshot operation as an operation of tapping the first device as an example to explain the process of taking cross-device screenshots.
  • Figure 5 shows a schematic diagram of an operation detection process provided by an exemplary embodiment of the present application. Referring to Figure 5, when the device is turned on, it will detect whether a cross-device screenshot operation is triggered. If so, the steps in the cross-device screenshot sub-process will be executed. If not, end.
  • Figure 6 shows a schematic diagram of a cross-device screenshot sub-process provided by an exemplary embodiment of the present application.
  • the current device detects the cross-device screenshot operation, which triggers the cross-device screenshot command, determines the current device as the screenshot receiving device, and determines whether the current device has established a connection with other devices. If not, it ends. If so, Then connect to the specified device (the device that has established a connection), and determine whether the connection is successful. If not, it ends. If so, send a cross-device screenshot command to the specified device that has established a connection, and the specified device executes the steps in the screenshot sub-process.
  • the current device receives the image and determines whether it has received the image. If not, it continues to receive the image. If it is, the received image is displayed.
  • Figure 7 shows a schematic diagram of a screenshot sub-process provided by an exemplary embodiment of the present application.
  • the current device receives the cross-device screenshot command, takes the screenshot to obtain the image, and sends the image to the image receiving device.
  • FIG. 8 shows a schematic structural diagram of a target application provided by an exemplary embodiment of the present application.
  • the target application includes an operation detection module, a business control module, a screenshot module, an image display module and a device connection module.
  • the operation detection module is used to provide an operation detection function.
  • the operation detection module includes an operation detection unit and an instruction sending unit, wherein the operation detection unit is used to detect cross-device screenshot operations.
  • the command sending unit is used to send cross-device screenshot commands.
  • Connection modules are used to establish connections with other devices.
  • the connection module includes an account unit, a device discovery unit and a device connection unit. Among them, the account unit is used to register an account, store an account, log in an account, cancel an account, etc.
  • the device discovery unit is used to determine other devices logged into the same account as the current device and determine the connection methods of other devices.
  • the device connection unit is used to establish connections with other devices according to the connection methods of other devices determined by the device discovery unit.
  • the screenshot module is used to capture images to obtain images.
  • the screenshot module includes an instruction receiving unit, a screenshot unit and an image sending unit.
  • the instruction receiving unit is used to receive cross-device screenshot instructions.
  • the screenshot unit is used to capture images.
  • the image sending unit is used to send images to the image receiving device.
  • the screenshot display module includes an image receiving unit and an image display unit.
  • the image receiving unit is used to receive images captured by other devices, and the image display unit is used to display the received images.
  • the service control module includes a device information storage unit and a service scheduling unit.
  • the device information storage unit is used to store connection information and device indication information.
  • the business scheduling unit is used to schedule various modules in the target application for cross-device screenshots.
  • Figure 9 shows a schematic diagram of a device state provided by an exemplary embodiment of the present application.
  • device 1 is the device that the user is using, and device 2, device 3 and device 4 are unused devices.
  • the user "tap" device 1, and device 1 detects a cross-device screenshot operation, that is, device 1 is the device that triggers the cross-device screenshot process. At this time, device 1 is determined as the screenshot receiving device.
  • Device2, Device3 and Device4 are unchanged.
  • device 1 sends a cross-device screenshot command to device 2, device 3 and device 4, and device 2, device 3 and device 4 take screenshots respectively to obtain images.
  • Device 2, Device 3 and Device 4 then send the screenshots to Device 1.
  • device 1 receives images captured by device 2, device 3, and device 4, and displays the images sent by device 2, device 3, and device 4 so that the user can perform subsequent operations, such as triggering device 1 to store the image.
  • FIG. 13 shows a structural block diagram of a cross-device screenshot device provided by an exemplary embodiment of the present application.
  • the cross-device screenshot device is configured on the first device, and the cross-device screenshot device includes:
  • the instruction sending module 1301 is configured to, upon receiving a cross-device screenshot instruction, send the cross-device screenshot instruction to each second device through a connection with at least one second device, and the second device is the same as the first device.
  • the device logs in to the device with the same account;
  • the image receiving module 1302 is used to receive images obtained by screenshots taken by at least one second device;
  • the device further includes:
  • An information broadcast module used to broadcast connection information, and any second device is used to send a connection request based on the connection information
  • the device connection module is configured to establish a connection with any second device in response to receiving a connection request sent by any second device.
  • the information broadcast module is used to broadcast the connection information and device indication information, and the device indication information indicates that the first device is an image receiving device; the second device is also used to receive the device indication information, In response to the cross-device screenshot instruction, the image is sent to the image receiving device.
  • the instruction sending module is configured to display the identification of each second device that has established a connection; and send a cross-device screenshot instruction to the second device to which the selected identification belongs.
  • the instruction sending module 1301 is used for any of the following:
  • the cross-device screenshot instruction is sent to each second device through the connection with at least one second device.
  • the device further includes:
  • An information acquisition module is used to obtain motion information of the first device; when the motion information satisfies the target trajectory, determine that an operation of moving according to the target trajectory is detected.
  • the image storage module 1303 is used to display the received at least one image and a save control; when at least one of the images is selected, in response to the save control being triggered, the storage is selected image.
  • Embodiments of the present application provide a cross-device screenshot solution.
  • the first device is triggered to send the cross-device screenshot instruction to a second device logged in with the same account, so that the second device can The device screenshots to obtain the image, so that the first device can receive and store the image sent by the second device, realizing the process of cross-device screenshots.
  • this application has expanded a new screenshot method, and the user can indirectly view the second device through the first device. Taking screenshots on two devices has wider applicability.
  • FIG 14 shows a structural block diagram of another cross-device screenshot device provided by an exemplary embodiment of the present application.
  • the cross-device screenshot device is configured on the second device, and the cross-device screenshot device includes:
  • the instruction receiving module 1401 is configured to receive a cross-device screenshot instruction sent by the first device through a connection with the first device.
  • the first device is a device logged in with the same account as the second device.
  • the first device is configured to respond to the Cross-device screenshot command: send the cross-device screenshot command to the second device;
  • the screenshot module 1402 is used to screenshot an image and send the image to the first device.
  • the device further includes:
  • the device connection module is configured to receive connection information broadcast by the first device; send a connection request to the first device based on the connection information; and establish a connection with the first device based on the connection request.
  • the device connection module is configured to receive the connection information and device indication information broadcast by the first device, where the device indication information indicates that the first device is an image receiving device;
  • the screenshot module 1402 is used to send the image to the image receiving device.
  • Embodiments of the present application provide a cross-device screenshot solution.
  • the first device is triggered to send the cross-device screenshot instruction to a second device logged in with the same account, so that the second device can The device screenshots to obtain the image, so that the first device can receive and store the image sent by the second device, realizing the process of cross-device screenshots.
  • this application has expanded a new screenshot method, and the user can indirectly view the second device through the first device. Taking screenshots on two devices has wider applicability.
  • Embodiments of the present application provide a computer device, which includes a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the methods provided by the above method embodiments.
  • Cross-device screenshot method is used to be executed by the processor to implement the methods provided by the above method embodiments.
  • the computer device is a terminal.
  • Figure 15 shows a structural block diagram of a terminal provided by an exemplary embodiment of the present application.
  • the terminal 1500 is a terminal such as a smartphone, a tablet, a wearable device, etc. that can access the wireless local area network as a wireless station.
  • the terminal 1500 in this application includes at least one or more of the following components: a processor 1510, a memory 1520, and at least two wireless links 1530.
  • processor 1510 includes one or more processing cores.
  • the processor 1510 uses various interfaces and lines to connect various parts of the entire terminal 1500, and executes various functions and processes of the terminal 1500 by running or executing program codes stored in the memory 1520 and calling data stored in the memory 1520. data.
  • the processor 1510 uses at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA programmable logic array
  • the processor 1510 can integrate one or more of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a neural network processor (Neural-network Processing Unit, NPU), a modem, etc.
  • a central processing unit Central Processing Unit, CPU
  • a graphics processor Graphics Processing Unit, GPU
  • a neural network processor Neural-network Processing Unit, NPU
  • the CPU mainly handles the operating system, user interface and applications
  • the GPU is used to render and draw the content that needs to be displayed on the display
  • the NPU is used to implement artificial intelligence (Artificial Intelligence, AI) functions
  • the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 1510 and may be implemented by a separate chip.
  • the processor 1510 is used to control the working conditions of at least two wireless links 1530.
  • the processor 1510 is a processor integrated with a wireless fidelity (Wireless Fidelity, Wi-Fi) chip.
  • Wi-Fi chip is a chip with dual Wi-Fi processing capabilities.
  • the Wi-Fi chip is a Dual Band Dual Concurrent (DBDC) chip, or a Dual Band Simultaneous (DBS) chip, etc.
  • the memory 1520 includes random access memory (RAM), and in some embodiments, the memory 1520 includes read-only memory (Read-Only Memory, ROM). In some embodiments, the memory 1520 includes non-transitory computer-readable storage medium. Memory 1520 may be used to store program code.
  • the memory 1520 may include a program storage area and a data storage area, where the program storage area may store program code for implementing an operating system, program code for at least one function (such as a touch function, a sound playback function, an image playback function, etc. ), program codes for implementing each of the above method embodiments, etc.; the storage data area can store data created according to the use of the terminal 1500 (such as audio data, phone book), etc.
  • the memory 1520 stores different reception schemes for receiving beacon frames for the wireless link 1530 . Also, the identifiers of the access nodes connected to different wireless links 1530, the identifiers of the wireless links 1530, etc.
  • the at least two wireless links 1530 are used to connect different access points (Access Points, APs). Receive downlink data sent by AP.
  • the different access nodes are access nodes in the same router or access nodes in different routers.
  • the terminal 1500 also includes a display screen.
  • the display screen is the display component used to display the user interface.
  • the display screen is a display screen with a touch function. Through the touch function, the user can perform touch operations on the display screen using any suitable object such as a finger or a touch pen.
  • the display screen is typically provided on the front panel of terminal 1500.
  • the display screen is designed as a full screen, curved screen, special-shaped screen, double-sided screen or folding screen.
  • the display screen is also designed to be a combination of a full screen and a curved screen, a combination of a special-shaped screen and a curved screen, etc. This embodiment is not limited to this.
  • the structure of the terminal 1500 shown in the above figures does not constitute a limitation on the terminal 1500.
  • the terminal 1500 includes more or fewer components than those shown in the figures, or a combination of certain components. components, or different arrangements of components.
  • the terminal 1500 also includes components such as a microphone, a speaker, an input unit, a sensor, an audio circuit, a module, a power supply, and a Bluetooth module, which will not be described again here.
  • This application also provides a computer-readable storage medium that stores at least one program code.
  • the at least one program code is loaded and executed by the processor to implement the cross-device screenshot method shown in the above embodiments.
  • This application also provides a computer program product, which stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the cross-device screenshot method shown in the above embodiments.
  • the computer program involved in the embodiments of the present application may be deployed and executed on one computer device, or executed on multiple computer devices located in one location, or distributed in multiple locations and communicated through Executed on multiple computer devices interconnected by a network, multiple computer devices distributed in multiple locations and interconnected through a communication network can form a blockchain system.
  • the information including but not limited to user equipment information, user personal information, etc.
  • data including but not limited to data used for analysis, stored data, displayed data, etc.
  • signals involved in this application All are authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions. For example, the images involved in this application were obtained with full permission.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了一种跨设备截图方法、装置、设备及存储介质,属于计算机技术领域。该方法包括:在接收到跨设备截图指令的情况下,通过与至少一个第二设备之间的连接,向每个第二设备发送跨设备截图指令,第二设备为与第一设备登录相同账号的设备(201);接收至少一个第二设备进行截图得到的图像(202);存储接收到的至少一个图像(203)。

Description

跨设备截图方法、装置、设备及存储介质
本申请要求于2022年03月16日提交的申请号为202210257730.4、发明名称为“跨设备截图方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及计算机技术领域,特别涉及一种跨设备截图方法、装置、设备及存储介质。
背景技术
日常生活中,用户有时需要在设备上进行截图,以便使用截取到的图像。通常是由用户在设备上触发截图控件,从而截取设备上的显示内容,得到包含该显示内容的图像。但是目前的截图功能仍然较为局限。
发明内容
本申请实施例提供了一种跨设备截图方法、装置、设备及存储介质,提供了新的数据交互方式,能够满足用户多样化的数据交互需求。技术方案如下:
根据本申请实施例的一方面,提供了一种跨设备截图方法,由第一设备执行,所述方法包括:
在接收到跨设备截图指令的情况下,通过与至少一个第二设备之间的连接,向每个所述第二设备发送所述跨设备截图指令,所述第二设备为与所述第一设备登录相同账号的设备;
接收至少一个所述第二设备进行截图得到的图像;
存储接收到的至少一个所述图像。
根据本申请实施例的另一方面,提供了一种跨设备截图方法,由第二设备执行,所述方法包括:
通过与第一设备之间的连接,接收所述第一设备发送的跨设备截图指令,所述第一设备为与所述第二设备登录相同账号的设备,所述第一设备用于响应于所述跨设备截图指令,向所述第二设备发送所述跨设备截图指令;
截图得到图像,向所述第一设备发送所述图像。
根据本申请实施例的另一方面,提供了一种跨设备截图装置,配置于第一设备,所述装置包括:
指令发送模块,用于在接收到跨设备截图指令的情况下,通过与至少一个第二设备之间的连接,向每个所述第二设备发送所述跨设备截图指令,所述第二设备为与所述第一设备登录相同账号的设备;
图像接收模块,用于接收至少一个所述第二设备进行截图得到的图像;
图像存储模块,用于存储接收到的至少一个所述图像。
根据本申请实施例的另一方面,提供了一种跨设备截图装置,配置于第二设备,所述装置包括:
指令接收模块,用于通过与第一设备之间的连接,接收所述第一设备发送的跨设备截图指令,所述第一设备为与所述第二设备登录相同账号的设备,所述第一设备用于响应于所述跨设备截图指令,向所述第二设备发送所述跨设备截图指令;
截图模块,用于截图得到图像,向所述第一设备发送所述图像。
根据本申请实施例的另一方面,提供了一种计算机设备,所述计算机设备包括处理器和存储器;所述存储器存储有至少一条程序代码,所述至少一条程序代码用于被所述处理器执行以实现如上述方面所述的跨设备截图方法。
根据本申请实施例的另一方面,提供了一种计算机可读存储介质,所述存储介质存储有至少一条程序代码,所述至少一条程序代码用于被处理器执行以实现如上述方面所述的跨设备截图方法。
根据本申请实施例的另一方面,提供了一种计算机程序产品,该计算机程序产品存储有至少一条程序代码,所述至少一条程序代码由处理器加载并执行以实现上述方面所述的跨设备截图方法。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了本申请一个示例性实施例提供的一种实施环境的示意图;
图2示出了本申请一个示例性实施例提供的一种跨设备截图方法的流程图;
图3示出了本申请一个示例性实施例提供的另一种跨设备截图方法的流程图;
图4示出了本申请一个示例性实施例提供的又一种跨设备截图方法的流程图;
图5示出了本申请一个示例性实施例提供的一种操作检测流程的示意图;
图6示出了本申请一个示例性实施例提供的一种跨设备截图子流程的示意图;
图7示出了本申请一个示例性实施例提供的一种截图子流程的示意图;
图8示出了本申请一个示例性实施例提供的一种目标应用的结构示意图;
图9示出了本申请一个示例性实施例提供的一种设备状态的示意图;
图10示出了本申请一个示例性实施例提供的另一种设备状态的示意图;
图11示出了本申请一个示例性实施例提供的又一种设备状态的示意图;
图12示出了本申请一个示例性实施例提供的再一种设备状态的示意图;
图13示出了本申请一个示例性实施例提供的一种跨设备截图装置的结构框 图;
图14示出了本申请一个示例性实施例提供的另一种跨设备截图装置的结构框图;
图15示出了本申请一个示例性实施例提供的一种终端的结构框图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
在本文中提及的“至少一个”是指一个或多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。
图1示出了本申请一个示例性实施例提供的一种实施环境的示意图。参见图1,该实施环境包括第一设备101和多个第二设备102。第一设备101和每个第二设备102之间通过无线或者有线网络连接。示例性地,第一设备101和第二设备102为笔记本电脑、手机、平板电脑、车载设备、智能家居设备、智能穿戴设备或者其他设备,其中,智能家居设备包括智能冰箱、智能电视、智能镜子或者其他智能家居设备。第一设备101和第二设备102登录了相同的账号。
其中,第一设备101用于在接收到跨设备截图指令的情况下,向第二设备102发送该跨设备截图指令,第二设备102用于响应于该跨设备截图指令,截图得到图像,将图像返回给第一设备101。
示例性地,第一设备101和第二设备102上安装有目标应用,第一设备101能够通过该目标应用与第二设备102建立连接,基于该连接与第二设备102进行数据交互,例如向第二设备102发送跨设备截图指令。第一设备101和第二设备102还能够基于该目标应用进行图像展示。可选地,该目标应用还具有其他功能,例如,第一设备101还能够通过该目标应用检测对第一设备的操作。可选地,目标应用为第一设备101和第二设备102的操作系统中的应用,或者为第三方提供的应用。可选地,目标应用为应用程序(application,APP),或者为小程序(mini Program),或者为微应用(Micro APP),本申请实施例对此不做限制。其中,小程序是一类嵌入于其他应用之中、不需要下载安装即可使用的应用形态。微应用是一种分布式应用,其可以分割为多个服务,服务以独立进程的形式运行,并可以独立动态部署,服务之间以统一的跨进程式的方式进行通信。微应用的多个服务部署在多个设备上,这多个设备中的各个设备都部署有该微应用的脚本代码,各个设备通过运行脚本代码将多个服务之间的通信、调度管理起来,从而实现一种分布式应用。
本申请实施例提供的跨设备截图方法能够应用于截图场景。以第一设备为手机,第二设备为智能冰箱为例,用户在手机和智能冰箱中均登录了自己的账号,当用户想要截取智能冰箱上的显示内容时,可以在手机上触发跨设备截图 指令,手机响应于该跨设备截图指令,向智能冰箱发送该跨设备截图指令,然后智能冰箱基于该跨设备截图指令截图得到图像,返回给手机该图像,用户可以通过手机来间接对智能冰箱进行截图。
本申请实施例提供的方法还能够应用于其他截图场景,本申请实施例对此不做限制。
图2示出了本申请一个示例性实施例提供的一种跨设备截图方法的流程图,参见图2,该方法由第一设备执行,该方法包括:
201、第一设备在接收到跨设备截图指令的情况下,通过与至少一个第二设备之间的连接,向每个第二设备发送跨设备截图指令,第二设备为与第一设备登录相同账号的设备。
其中,账号用于表明用户身份,区分不同用户。不同账号对应于不同用户,因此第二设备与第一设备登录相同账号表示第二设备与第一设备属于同一用户。跨设备截图指令指示进行截图,其中,截图指的是截取设备的显示内容。
由于与第一设备登录相同账号的设备可能有至少一个,因此,第一设备会向该至少一个设备发送跨设备截图指令,第一设备向每个第二设备发送跨设备截图指令的方式同理。
202、第一设备接收至少一个第二设备进行截图得到的图像。
第二设备接收第一设备发送的跨设备截图指令,截图得到图像,向第一设备发送该图像,从而第一设备能够接收至少一个第二设备发送的图像。
203、第一设备存储接收到的至少一个图像。
第一设备在接收到图像之后,存储该图像,以便用户使用该图像。
本申请实施例提供了一种跨设备截图的方案,通过在第一设备上触发跨设备截图指令,从而触发第一设备向登录相同账号的第二设备发送该跨设备截图指令,以使第二设备截图得到图像,这样第一设备能够接收第二设备发送的图像并存储,实现了跨设备截图的过程,可见本申请扩展了一种新的截图方式,用户可以通过第一设备来间接对第二设备进行截图,适用性更广。例如,在设备没有截图功能的情况下,能够通过该跨设备截图的方案来对设备进行截图,或者在设备有截图功能但用户不方便触发该设备截图的情况下,也能够通过该跨设备截图的方案来对设备进行截图。
可选的,方法还包括:
广播连接信息,任一第二设备基于连接信息发送连接请求;
响应于接收到任一第二设备发送的连接请求,与任一第二设备建立连接。
可选的,广播连接信息,包括:
广播连接信息和设备指示信息,设备指示信息指示第一设备为图像接收设备;
第二设备还用于接收设备指示信息,响应于跨设备截图指令,向图像接收设备发送图像。
可选的,通过与至少一个第二设备之间的连接,向每个第二设备发送跨设备截图指令,包括:
展示已建立连接的每个第二设备的标识;
向被选中的标识所属的第二设备发送跨设备截图指令。
可选的,在接收到跨设备截图指令的情况下,通过与至少一个第二设备之间的连接,向每个第二设备发送跨设备截图指令,包括以下任一项:
响应于敲击第一设备的操作,通过与至少一个第二设备之间的连接,向每个第二设备发送跨设备截图指令;
响应于采集到跨设备截图语音的操作,通过与至少一个第二设备之间的连接,向每个第二设备发送跨设备截图指令;
响应于按照目标轨迹进行移动的操作,通过与至少一个第二设备之间的连接,向每个第二设备发送跨设备截图指令。
可选的,方法还包括:
获取第一设备的运动信息;
在运动信息满足目标轨迹的情况下,确定检测到按照目标轨迹进行移动的操作。
可选的,存储接收到的至少一个图像,包括:
展示接收到的至少一个图像和保存控件;
在至少一个图像被选中的情况下,响应于保存控件被触发,存储被选中的图像。
图3示出了本申请一个示例性实施例提供的一种跨设备截图方法的流程图,参见图3,该方法由第二设备执行,该方法包括:
301、第二设备通过与第一设备之间的连接,接收第一设备发送的跨设备截图指令,第一设备为与第二设备登录相同账号的设备,第一设备用于响应于该跨设备截图指令,向第二设备发送该跨设备截图指令。
其中,账号用于表明用户身份,能够将不同用户区分开。不同用户对应不同账号,因此第二设备与第一设备登录相同账号表示第二设备与第一设备属于同一用户。跨设备截图指令指示进行截图。截图指的是截取设备的显示内容。
302、第二设备截图得到图像,向第一设备发送该图像。
本申请实施例提供了一种跨设备截图的方案,通过在第一设备上触发跨设备截图指令,从而触发第一设备向登录相同账号的第二设备发送该跨设备截图指令,以使第二设备截图得到图像,这样第一设备能够接收第二设备发送的图像并存储,实现了跨设备截图的过程,可见本申请扩展了一种新的截图方式,用户可以通过第一设备来间接对第二设备进行截图,适用性更广。
可选的,方法还包括:
接收第一设备广播的连接信息;
基于连接信息,向第一设备发送连接请求;
基于连接请求,与第一设备建立连接。
可选的,接收第一设备广播的连接信息,包括:
接收第一设备广播的连接信息和设备指示信息,设备指示信息指示第一设 备为图像接收设备;
向第一设备发送图像,包括:
向图像接收设备发送图像。
图4示出了本申请一个示例性实施例提供的一种跨设备截图方法的流程图,参见图4,该方法由第一设备和第二设备交互执行,该方法描述了第一设备与第二设备之间的跨设备截图的过程。该方法包括:
401、第一设备在接收到跨设备截图指令的情况下,通过与至少一个第二设备之间的连接,向每个第二设备发送该跨设备截图指令,第二设备为与第一设备登录相同账号的设备。
其中,跨设备截图指令是用户触发第一设备产生的,可选地,跨设备截图指令是跨设备截图操作触发的,跨设备截图操作包括以下任一种情况中的操作:
第一种情况,跨设备截图操作为敲击第一设备的操作,则步骤401的实现方式包括:第一设备响应于敲击第一设备的操作,通过与至少一个第二设备之间的连接,向每个第二设备发送跨设备截图指令。其中,敲击操作是敲击第一设备的任意位置的操作,例如敲击第一设备的屏幕、敲击第一设备的背部等,本申请实施例对此不做限制。在该情况中,由于敲击操作极为简单,因此通过敲击操作来触发进行跨设备截图,能够极大提高跨设备截图的效率。
第二种情况,跨设备截图操作是采集到跨设备截图语音的操作,则步骤401的实现方式包括:第一设备响应于采集到跨设备截图语音的操作,通过与至少一个第二设备之间的连接,向每个第二设备发送跨设备截图指令。其中,跨设备截图语音的语音内容可以根据需要设置,本申请实施例对此不做限制,例如跨设备截图语音的语音内容为“跨设备截图”、“截图”等。在该情况中,在用户不方便手动触发跨设备截图时,能够通过跨设备截图语音来触发进行跨设备截图,实现了对跨设备截图过程的语音控制,从而丰富了跨设备截图的触发方式,提高了跨设备截图的便捷性。
第三种情况,跨设备截图操作是按照目标轨迹进行移动的操作,则步骤401的实现方式包括:第一设备响应于按照目标轨迹进行移动的操作,通过与至少一个第二设备之间的连接,向每个第二设备发送该跨设备截图指令。目标轨迹是在用户移动第一设备的过程中第一设备形成的移动轨迹,移动方式可以根据需要设置,本申请实施例对此不做限制。例如,移动方式为摇晃第一设备、翻转第一设备等,则目标轨迹为摇晃轨迹、翻转轨迹。在该情况中,由于移动第一设备的操作极为简单,因此通过按照目标轨迹移动第一设备来触发进行跨设备截图,能够极大提高跨设备截图的效率。
在一种可能的实现方式中,第一设备获取第一设备的运动信息;在该运动信息满足该目标轨迹的情况下,确定检测到按照该目标轨迹进行移动的操作。该运动信息为第一设备中的传感器检测到的信息,例如,该传感器包括压力传感器、陀螺仪传感器、气压传感器、加速度传感器或距离传感器等。
其中,第一设备的运动信息是否满足目标轨迹能够表明用户是否对第一设备执行了按照目标轨迹进行移动的操作,如果第一设备的运动信息满足该目标 轨迹,表明用户对第一设备执行了按照目标轨迹进行移动的操作。例如,第一设备的运动信息是否满足摇晃操作对应的摇晃轨迹能够表明用户是否摇晃第一设备,如果第一设备的运动信息满足翻转操作对应的翻转轨迹,表明用户翻转了第一设备。
在本申请实施例中,由于用户在对第一设备执行按照目标轨迹进行移动的操作时,会产生对应的运动信息,该运行信息能够准确反映第一设备是否被执行了按照目标轨迹进行移动的操作,因此,基于第一设备的运动信息检测对第一设备的按照目标轨迹进行移动的操作,能够保证检测的准确性。
在本申请实施例中,在检测到跨设备截图操作也即跨设备截图指令被触发时,第一设备可能已与其他设备建立连接或者未与其他设备建立连接,相应地,第一设备在接收到跨设备截图指令的情况下,确定第一设备当前是否已与其他设备建立连接。第一种情况,第一设备未与其他设备建立连接,则第一设备不进行跨设备截图。由于第一设备当前没有与其他设备建立连接,则极有可能是用户误触第一设备,即使第一设备检测到跨设备截图操作,也无需进行跨设备截图,从而降低了对设备的性能消耗。
或者,第一设备未与其他设备建立连接,则第一设备能够即时与其他设备建立连接,可选地,第一设备广播连接信息,第二设备接收第一设备广播的连接信息,基于该连接信息,向第一设备发送连接请求,第一设备响应于接收到第二设备发送的连接请求,与第二设备建立连接,第二设备基于该连接请求,与第一设备建立连接。
其中,第一设备的连接信息指示与第一设备建立连接的方式,例如,第一设备的连接信息包括第一设备的IP(Internet Protocol,互联网协议)地址、MAC(Medium Access Control,媒体接入控制)地址,第一设备的标识、第一设备所处的局域网信息等信息,当然,第一设备的连接信息还能够包括其他用于与第一设备建立连接的信息,本申请实施例对此不做限制。其中,连接请求中携带有第二设备的IP地址、MAC地址、第二设备的标识、第二设备所处的局域网信息等,本申请实施例对此不做限制。
可选地,第一设备与登录有相同账号的其他设备之间能够直接通信,则第一设备广播连接信息,第二设备能够接收该连接信息。或者第一设备与第二设备之间借助于服务器进行通信,则第一设备向服务器发送自己的连接信息,服务器确定登录相同账号的其他设备,向确定出的其他设备发送该连接信息。
在本申请实施例中,提供了一种设备之间建立连接的方式,第一设备能够广播连接信息,这样接收到该连接信息的第二设备能够向第一设备发送连接请求,从而第一设备与第二设备能够基于该连接请求建立连接,使得第一设备在未与其他设备建立连接的情况下,也能够立即与第二设备建立连接,为进行跨设备截图过程提供了通信支持。
可选地,第一设备为触发跨设备截图过程的设备,则用户极大可能是想要在第一设备查看截图得到的图像,则第一设备是跨设备截图过程的图像接收设备,相应地,第一设备还能够广播设备指示信息,则第一设备广播连接信息的 实现方式包括:第一设备广播连接信息和设备指示信息,该设备指示信息指示第一设备为图像接收设备,则第二设备还用于接收该设备指示信息,相应地,第二设备接收第一设备广播的连接信息的实现方式包括:第二设备接收第一设备广播的该连接信息和设备指示信息。
其中,第二设备接收到设备指示信息之后,存储该设备指示信息,例如,第二设备存储设备指示信息“图像接收设备-第一设备的标识”。除了向第二设备发送设备指示信息外,第一设备还会存储自己作为图像接收设备的记录,例如,第一设备会生成设备指示信息“图像接收设备-第一设备的标识”,并且存储该设备指示信息,这样方便后续第一设备获知登录账号的多个设备中的图像接收设备是哪个。
在本申请实施例中,基于连接信息与第一设备建立连接的第二设备的数量为至少一个。若第一设备与一个第二设备已建立连接,则第一设备直接向第二设备发送跨设备截图指令;若第一设备与多个第二设备已建立连接,则直接第一设备向多个第二设备中的每个第二设备发送跨设备截图指令。
可选地,第一设备对已建立连接的第二设备进行筛选,向筛选出的第二设备发送跨设备截图指令,其中,筛选条件可以根据需要设置,本申请实施例对此不做限制,例如筛选出屏幕为横屏的第二设备,或者筛选出非手机设备等。
可选地,至少一个第二设备可能包括用户想要触发截图的设备,也可能包括用户不想要触发截图的设备,则第一设备展示已建立连接的每个第二设备的标识;向被选中的标识所属的第二设备发送跨设备截图指令。其中,标识用于表明设备身份,能够将不同设备区分开,不同设备对应不同标识。
在本申请实施例中,第一设备通过展示已建立连接的每个第二设备的标识,使得用户能够从已展示的标识中选择想要触发截图的第二设备的标识,从而为用户提供了一种选择第二设备的方式,这样第一设备只需向被选中的标识所属的第二设备发送跨设备截图指令,无需向未被选中的标识所属的第二设备发送跨设备截图指令,使得跨设备截图指令的发送更加准确,从而能够满足用户的截图需求,还能够降低对设备的性能消耗。
需要说明的是,第一设备在检测到跨设备截图操作也即跨设备截图指令被触发时,若未与其他设备建立连接,则第一设备可以通过上述方式与第二设备建立连接,在连接成功之后,再向第二设备发送跨设备截图指令。或者,第一设备还可以在广播连接信息的同时,广播包含跨设备截图指令的信息,也即第一设备广播连接信息和包含跨设备截图指令的信息,第二设备接收该连接信息和包含跨设备截图指令的信息,然后先基于该连接信息与第一设备建立连接,再基于跨设备截图指令执行后续操作。这样第一设备无需分别广播连接信息和发送跨设备截图指令,也无需等待是否与第二设备连接成功,而第二设备能够同时接收连接信息和包含跨设备截图指令的信息,无需分开接收两个信息,从而提高了跨设备截图的效率。
第二种情况,第一设备已与至少一个第二设备建立连接,则第一设备通过与至少一个第二设备之间的连接,向每个第二设备发送跨设备截图指令。可选 地,在发送跨设备截图指令之前,第一设备向已建立连接的第二设备发送测试消息,该测试消息用于测试是否连接成功,若第一设备接收到第二设备返回的测试消息,则表示第一设备与第二设备连接成功,则第一设备向第二设备发送跨设备截图指令。若第一设备未接收到第二设备返回的测试消息,则表示第一设备与第二设备连接失败,则第一设备不向第二设备发送跨设备截图指令。其中,即使第一设备与第二设备已建立连接,也可能因为网络或者其他原因连接失败,因此第一设备通过向第二设备发送测试消息的方式,对两个设备之间的连接进行测试,这样能够减少跨设备截图指令的无效发送。
可选地,第一设备与每个第二设备建立连接的实现方式参见第一种情况中第一设备与第二设备建立连接的实现方式,本申请实施例在此不做赘述,例如第一设备与第二设备基于连接信息建立连接。
需要说明的是,由于第一设备与第二设备建立连接之前,第一设备还未检测到跨设备截图操作也即跨设备截图指令未触发,则该连接信息可以是第一设备广播的第一设备的连接信息,也可以是第二设备广播的第二设备的连接信息。且第一设备在广播连接信息时,由于第一设备此时并非图像接收设备,则第一设备不广播设备指示信息,而是在第一设备检测到跨设备截图操作也即跨设备截图指令被触发时,再广播设备指示信息。例如第一设备可以在向第二设备发送跨设备截图指令时发送设备指示信息。
可选地,第一设备发送跨设备截图指令的实现方式参见第一种情况中第一设备发送跨设备截图指令的实现方式,本申请实施例在此不做赘述,例如第一设备直接向每个第二设备发送跨设备截图指令,或者第一设备向被选中的第二设备发送跨设备截图指令。
402、第二设备通过与第一设备之间的连接,接收第一设备发送的跨设备截图指令。
其中,由于第一设备与第二设备建立了连接,则第二设备能够接收到第一设备发送的跨设备截图指令。
403、第二设备截图得到图像,向第一设备发送该图像。
其中,第二设备在接收到跨设备截图指令之后,截取当前的显示内容,得到包含该显示内容的图像。可选地,第二设备还接收了第一设备广播的设备指示信息,该设备指示信息指示第一设备为图像接收设备,则第二设备还用于在接收到跨设备截图指令的情况下,进行截图得到图像,向图像接收设备发送图像。相应地,第二设备向第一设备发送图像的实现方式包括:第二设备向图像接收设备发送图像。
在本申请实施例中,第一设备通过广播能够指示第一设备为图像接收设备的设备指示信息,这样跨设备截图指令的发送设备也是图像的接收设备,使得第二设备在截取到图像后,能够将截取得到的图像发送给第一设备,从而实现了跨设备截图。
需要说明的是,第二图像除将图像发送给第一设备外,还能够将图像存储在本端,从而实现图像的备份,使得用户既能够在第一设备上查看图像,也能 够在第二设备上查看图像。
404、第一设备接收至少一个第二设备进行截图得到的图像。
405、第一设备存储接收到的至少一个图像。
可选地,第一设备直接存储接收到的所有图像,以使得用户能够通过第一设备查看到所有第二设备截图得到的图像。或者,截取到的图像可能是用户想要的图像,也可能是用户不想要的图像,则第一设备存储接收到的至少一个图像实现方式包括:第一设备展示接收到的至少一个图像和保存控件;在至少一个图像被选中的情况下,响应于该保存控件被触发,存储被选中的图像。其中,保存控件在界面中的展示样式和展示位置可以根据需要设置,本申请实施例对此不做限制。
在本申请实施例中,第一设备通过在接收到至少一个第二设备进行截图得到的图像之后,展示接收到的图像,使得用户能够从已展示的图像中选择想要的图像,然后通过触发保存控件,触发第一设备存储被选中的图像,从而为用户提供了一种选择图像的方式,这样第一设备只需存储被选中的图像即可,既能够满足用户的需求,又能够节省存储空间。
下面以跨设备截图操作为敲击第一设备的操作为例,说明设备进行跨设备截图的过程。
图5示出了本申请一个示例性实施例提供的一种操作检测流程的示意图。参见图5,设备在开启的状态下,会检测是否触发跨设备截图操作,如果是,则执行跨设备截图子流程中的步骤。如果否,则结束。
图6示出了本申请一个示例性实施例提供的一种跨设备截图子流程的示意图。参见图6,当前设备检测到跨设备截图操作也即触发了跨设备截图指令,将当前设备确定为截图接收设备,判断当前设备是否已与其他设备建立连接,如果否,则结束,如果是,则连接指定设备(已建立连接的设备),判断是否连接成功,如果否,则结束,如果是,则向已建立连接的指定设备发送跨设备截图指令,指定设备执行截图子流程中的步骤,当前设备接收图像,判断是否接收到图像,如果否,则继续接收图像,如果是,则展示接收到的图像。
图7示出了本申请一个示例性实施例提供的一种截图子流程的示意图。参见图7,当前设备接收到跨设备截图指令,截图得到图像,向图像接收设备发送该图像。
图8示出了本申请一个示例性实施例提供的一种目标应用的结构示意图。参见图8,该目标应用包括操作检测模块、业务控制模块、截图模块、图像展示模块和设备连接模块。其中,操作检测模块用于提供操作检测功能,操作检测模块包括操作检测单元和指令发送单元,其中,操作检测单元用于检测跨设备截图操作。指令发送单元用于发送跨设备截图指令。连接模块用于与其他设备建立连接。连接模块包括账号单元、设备发现单元和设备连接单元。其中,账号单元用于注册账号、存储账号、登录账号以及注销账号等。设备发现单元用于确定与当前设备登录同一账号的其他设备以及确定其他设备的连接方式。设备连接单元用于按照设备发现单元确定的其他设备的连接方式,与其他设备建 立连接。截图模块,用于截图得到图像,截图模块包括指令接收单元、截图单元和图像发送单元。其中,指令接收单元用于接收跨设备截图指令。截图单元用于截图得到图像。图像发送单元用于将图像发送给图像接收设备。截图展示模块包括图像接收单元和图像展示单元。其中,图像接收单元用于接收其他设备截图得到的图像,图像展示单元用于展示接收到的图像。业务控制模块包括设备信息存储单元和业务调度单元。其中,设备信息存储单元用于存储连接信息和设备指示信息。业务调度单元用于调度目标应用中的各个模块进行跨设备截图。
图9示出了本申请一个示例性实施例提供的一种设备状态的示意图。参见图9,登录同一账号的设备有四个,包括设备1、设备2、设备3和设备4,其中,设备1是用户正在使用的设备,设备2、设备3和设备4是未使用的设备。参见图10,用户“敲击”设备1,设备1检测到跨设备截图操作,也即设备1是触发跨设备截图过程的设备,此时,将设备1确定为截图接收设备。设备2、设备3和设备4未改变。参见图11,设备1向设备2、设备3和设备4发送跨设备截图指令,设备2、设备3和设备4分别进行截图,得到图像。然后设备2、设备3和设备4向设备1发送截图得到的图像。参见图12,设备1接收设备2、设备3和设备4截图得到的图像,展示设备2、设备3和设备4发送的图像,以便用户进行后续操作,例如触发设备1存储图像。
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。
请参见图13,其示出了本申请一个示例性实施例提供的跨设备截图装置的结构框图。该跨设备截图装置配置于第一设备,该跨设备截图装置包括:
指令发送模块1301,用于在接收到跨设备截图指令的情况下,通过与至少一个第二设备之间的连接,向每个第二设备发送该跨设备截图指令,第二设备为与第一设备登录相同账号的设备;
图像接收模块1302,用于接收至少一个第二设备进行截图得到的图像;
图像存储模块1303,用于存储接收到的至少一个图像。
在一种可能的实现方式中,该装置还包括:
信息广播模块,用于广播连接信息,任一第二设备用于基于该连接信息发送连接请求;
设备连接模块,用于响应于接收到任一第二设备发送的连接请求,与任一第二设备建立连接。
在一种可能的实现方式中,该信息广播模块,用于广播该连接信息和设备指示信息,该设备指示信息指示第一设备为图像接收设备;第二设备还用于接收该设备指示信息,响应于该跨设备截图指令,向该图像接收设备发送该图像。
在一种可能的实现方式中,该指令发送模块,用于展示已建立连接的每个第二设备的标识;向被选中的标识所属的第二设备发送跨设备截图指令。
在一种可能的实现方式中,该指令发送模块1301,用于以下任一项:
响应于敲击第一设备的操作,通过与至少一个第二设备之间的连接,向每 个第二设备发送该跨设备截图指令;
响应于采集到跨设备截图语音的操作,通过与至少一个第二设备之间的连接,向每个第二设备发送该跨设备截图指令;
响应于按照目标轨迹进行移动的操作,通过与至少一个第二设备之间的连接,向每个第二设备发送该跨设备截图指令。
在一种可能的实现方式中,该装置还包括:
信息获取模块,用于获取第一设备的运动信息;在该运动信息满足该目标轨迹的情况下,确定检测到按照该目标轨迹进行移动的操作。
在一种可能的实现方式中,该图像存储模块1303,用于展示接收到的至少一个该图像和保存控件;在至少一个该图像被选中的情况下,响应于该保存控件被触发,存储被选中的该图像。
本申请实施例提供了一种跨设备截图的方案,通过在第一设备上触发跨设备截图指令,从而触发第一设备向登录相同账号的第二设备发送该跨设备截图指令,以使第二设备截图得到图像,这样第一设备能够接收第二设备发送的图像并存储,实现了跨设备截图的过程,可见本申请扩展了一种新的截图方式,用户可以通过第一设备来间接对第二设备进行截图,适用性更广。
请参见图14,其示出了本申请一个示例性实施例提供的另一种跨设备截图装置的结构框图。该跨设备截图装置配置于第二设备,该跨设备截图装置包括:
指令接收模块1401,用于通过与第一设备之间的连接,接收第一设备发送的跨设备截图指令,第一设备为与第二设备登录相同账号的设备,第一设备用于响应于该跨设备截图指令,向第二设备发送该跨设备截图指令;
截图模块1402,用于截图得到图像,向第一设备发送该图像。
在一种可能的实现方式中,该装置还包括:
设备连接模块,用于接收第一设备广播的连接信息;基于该连接信息,向第一设备发送连接请求;基于该连接请求,与第一设备建立连接。
在一种可能的实现方式中,该设备连接模块,用于接收第一设备广播的该连接信息和设备指示信息,该设备指示信息指示第一设备为图像接收设备;
该截图模块1402,用于向该图像接收设备发送该图像。
本申请实施例提供了一种跨设备截图的方案,通过在第一设备上触发跨设备截图指令,从而触发第一设备向登录相同账号的第二设备发送该跨设备截图指令,以使第二设备截图得到图像,这样第一设备能够接收第二设备发送的图像并存储,实现了跨设备截图的过程,可见本申请扩展了一种新的截图方式,用户可以通过第一设备来间接对第二设备进行截图,适用性更广。
需要说明的是,上述实施例提供的装置,在实现其功能时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将计算机设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的装置与方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
本申请实施例提供了一种计算机设备,该计算机设备包括处理器和存储器;该存储器存储有至少一条程序代码,该至少一条程序代码用于被处理器执行以实现如上述各个方法实施例提供的跨设备截图方法。
在一些实施例中,该计算机设备为终端,请参见图15,其示出了本申请一个示例性实施例提供的终端的结构框图。在一些实施例中,终端1500是智能手机、平板电脑、可穿戴设备等能够作为无线站点接入无线局域网的终端。本申请中的终端1500至少包括一个或多个以下部件:处理器1510、存储器1520和至少两个无线链路1530。
在一些实施例中,处理器1510包括一个或者多个处理核心。处理器1510利用各种接口和线路连接整个终端1500内的各个部分,通过运行或执行存储在存储器1520内的程序代码,以及调用存储在存储器1520内的数据,执行终端1500的各种功能和处理数据。在一些实施例中,处理器1510采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1510能集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)、神经网络处理器(Neural-network Processing Unit,NPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示屏所需要显示的内容的渲染和绘制;NPU用于实现人工智能(Artificial Intelligence,AI)功能;调制解调器用于处理无线通信。能够理解的是,上述调制解调器也能不集成到处理器1510中,单独通过一块芯片进行实现。
在一些实施例中,该处理器1510用于控制至少两个无线链路1530的工作状况,相应的,该处理器1510为集成了无线保真(Wireless Fidelity,Wi-Fi)芯片的处理器。其中,该Wi-Fi芯片为具有双Wi-Fi处理能力的芯片。例如,该Wi-Fi芯片为双频双发(Dual Band Dual Concurrent,DBDC)芯片,或者,双频同步(Dual Band Simultaneous,DBS)芯片等。
在一些实施例中,存储器1520包括随机存储器(Random Access Memory,RAM),在一些实施例中,存储器1520包括只读存储器(Read-Only Memory,ROM)。在一些实施例中,该存储器1520包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器1520可用于存储程序代码。存储器1520可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的程序代码、用于至少一个功能的程序代码(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的程序代码等;存储数据区可存储根据终端1500的使用所创建的数据(比如音频数据、电话本)等。
在一些实施例中,存储器1520中存储有不同的无线链路1530的接收信标帧的接收方案。以及,不同的无线链路1530连接的接入节点的标识、无线链路1530的标识等。
该至少两个无线链路1530用于连接不同的接入节点(Access Point,AP)。 接收AP下发的下行数据。其中,该不同的接入节点为同一路由器中的接入节点或者不同路由器中的接入节点。
在一些实施例中,终端1500中还包括显示屏。显示屏是用于显示用户界面的显示组件。在一些实施例中,该显示屏为具有触控功能的显示屏,通过触控功能,用户可以使用手指、触摸笔等任何适合的物体在显示屏上进行触控操作。在一些实施例中,显示屏通常设置在终端1500的前面板。在一些实施例中,显示屏被设计成为全面屏、曲面屏、异型屏、双面屏或折叠屏。在一些实施例中,显示屏还被设计成为全面屏与曲面屏的结合,异型屏与曲面屏的结合等,本实施例对此不加以限定。
除此之外,本领域技术人员能够理解,上述附图所示出的终端1500的结构并不构成对终端1500的限定,终端1500包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,终端1500中还包括麦克风、扬声器、输入单元、传感器、音频电路、模块、电源、蓝牙模块等部件,在此不再赘述。
本申请还提供一种计算机可读存储介质,该存储介质存储有至少一条程序代码,该至少一条程序代码由该处理器加载并执行以实现如上各个实施例示出的跨设备截图方法。
本申请还提供了一种计算机程序产品,该计算机程序产品存储有至少一条程序代码,该至少一条程序代码由该处理器加载并执行以实现如上各个实施例示出的跨设备截图方法。
在一些实施例中,本申请实施例所涉及的计算机程序可被部署在一个计算机设备上执行,或者在位于一个地点的多个计算机设备上执行,又或者,在分布在多个地点且通过通信网络互连的多个计算机设备上执行,分布在多个地点且通过通信网络互连的多个计算机设备可以组成区块链系统。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
需要说明的是,本申请所涉及的信息(包括但不限于用户设备信息、用户个人信息等)、数据(包括但不限于用于分析的数据、存储的数据、展示的数据等)以及信号,均为经用户授权或者经过各方充分授权的,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。例如,本申请中涉及到的图像都是在充分授权的情况下获取的。
本领域普通技术人员可以理解实现上述实施例的跨设备截图方法中全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (23)

  1. 一种跨设备截图方法,由第一设备执行,所述方法包括:
    在接收到跨设备截图指令的情况下,通过与至少一个第二设备之间的连接,向每个所述第二设备发送所述跨设备截图指令,所述第二设备为与所述第一设备登录相同账号的设备;
    接收至少一个所述第二设备进行截图得到的图像;
    存储接收到的至少一个所述图像。
  2. 根据权利要求1所述的方法,其中,所述方法还包括:
    广播连接信息,任一所述第二设备基于所述连接信息发送连接请求;
    响应于接收到任一所述第二设备发送的所述连接请求,与任一所述第二设备建立连接。
  3. 根据权利要求2所述的方法,其中,所述广播连接信息,包括:
    广播所述连接信息和设备指示信息,所述设备指示信息指示所述第一设备为图像接收设备;
    所述第二设备还用于接收所述设备指示信息,响应于所述跨设备截图指令,向所述图像接收设备发送所述图像。
  4. 根据权利要求1所述的方法,其中,所述通过与至少一个第二设备之间的连接,向每个所述第二设备发送所述跨设备截图指令,包括:
    展示已建立连接的每个所述第二设备的标识;
    向被选中的所述标识所属的所述第二设备发送所述跨设备截图指令。
  5. 根据权利要求1所述的方法,其中,所述在接收到跨设备截图指令的情况下,通过与至少一个第二设备之间的连接,向每个所述第二设备发送所述跨设备截图指令,包括以下任一项:
    响应于敲击所述第一设备的操作,通过与至少一个所述第二设备之间的连接,向每个所述第二设备发送所述跨设备截图指令;
    响应于采集到跨设备截图语音的操作,通过与至少一个所述第二设备之间的连接,向每个所述第二设备发送所述跨设备截图指令;
    响应于按照目标轨迹进行移动的操作,通过与至少一个所述第二设备之间的连接,向每个所述第二设备发送所述跨设备截图指令。
  6. 根据权利要求5所述的方法,其中,所述方法还包括:
    获取所述第一设备的运动信息;
    在所述运动信息满足所述目标轨迹的情况下,确定检测到按照所述目标轨迹进行移动的操作。
  7. 根据权利要求1-6任一项所述的方法,其中,所述存储接收到的至少一个所述图像,包括:
    展示接收到的至少一个所述图像和保存控件;
    在至少一个所述图像被选中的情况下,响应于所述保存控件被触发,存储被选中的所述图像。
  8. 一种跨设备截图方法,由第二设备执行,所述方法包括:
    通过与第一设备之间的连接,接收所述第一设备发送的跨设备截图指令,所述第一设备为与所述第二设备登录相同账号的设备,所述第一设备用于响应于所述跨设备截图指令,向所述第二设备发送所述跨设备截图指令;
    截图得到图像,向所述第一设备发送所述图像。
  9. 根据权利要求8所述的方法,其中,所述方法还包括:
    接收所述第一设备广播的连接信息;
    基于所述连接信息,向所述第一设备发送连接请求;
    基于所述连接请求,与所述第一设备建立连接。
  10. 根据权利要求9所述的方法,其中,所述接收所述第一设备广播的连接信息,包括:
    接收所述第一设备广播的所述连接信息和设备指示信息,所述设备指示信息指示所述第一设备为图像接收设备;
    所述向所述第一设备发送所述图像,包括:
    向所述图像接收设备发送所述图像。
  11. 一种跨设备截图装置,配置于第一设备,所述装置包括:
    指令发送模块,用于在接收到跨设备截图指令的情况下,通过与至少一个第二设备之间的连接,向每个所述第二设备发送所述跨设备截图指令,所述第二设备为与所述第一设备登录相同账号的设备;
    图像接收模块,用于接收至少一个所述第二设备进行截图得到的图像;
    图像存储模块,用于存储接收到的至少一个所述图像。
  12. 根据权利要求11所述的装置,其中,所述装置还包括:
    信息广播模块,用于广播连接信息,任一第二设备用于基于该连接信息发送连接请求;
    设备连接模块,用于响应于接收到任一第二设备发送的连接请求,与任一第二设备建立连接。
  13. 根据权利要求12所述的装置,其中,所述信息广播模块,用于:
    广播所述连接信息和设备指示信息,所述设备指示信息指示所述第一设备 为图像接收设备;
    所述第二设备还用于接收所述设备指示信息,响应于所述跨设备截图指令,向所述图像接收设备发送所述图像。
  14. 根据权利要求11所述的装置,其中,所述指令发送模块,用于:
    展示已建立连接的每个所述第二设备的标识;
    向被选中的所述标识所属的所述第二设备发送所述跨设备截图指令。
  15. 根据权利要求11所述的装置,其中,所述指令发送模块,用于以下任一项:
    响应于敲击所述第一设备的操作,通过与至少一个所述第二设备之间的连接,向每个所述第二设备发送所述跨设备截图指令;
    响应于采集到跨设备截图语音的操作,通过与至少一个所述第二设备之间的连接,向每个所述第二设备发送所述跨设备截图指令;
    响应于按照目标轨迹进行移动的操作,通过与至少一个所述第二设备之间的连接,向每个所述第二设备发送所述跨设备截图指令。
  16. 根据权利要求15所述的装置,其中,所述装置还包括:
    信息获取模块,用于获取第一设备的运动信息;在该运动信息满足该目标轨迹的情况下,确定检测到按照该目标轨迹进行移动的操作。
  17. 根据权利要求11-16任一项所述的方法,其中,所述图像存储模块,用于:
    展示接收到的至少一个所述图像和保存控件;
    在至少一个所述图像被选中的情况下,响应于所述保存控件被触发,存储被选中的所述图像。
  18. 一种跨设备截图装置,配置于第二设备,所述装置包括:
    指令接收模块,用于通过与第一设备之间的连接,接收所述第一设备发送的跨设备截图指令,所述第一设备为与所述第二设备登录相同账号的设备,所述第一设备用于响应于所述跨设备截图指令,向所述第二设备发送所述跨设备截图指令;
    截图模块,用于截图得到图像,向所述第一设备发送所述图像。
  19. 根据权利要求18所述的装置,其中,所述装置还包括:
    设备连接模块,用于接收所述第一设备广播的连接信息;基于所述连接信息,向所述第一设备发送连接请求;基于所述连接请求,与所述第一设备建立连接。
  20. 根据权利要求19所述的装置,其中,所述设备连接模块,用于:
    接收所述第一设备广播的所述连接信息和设备指示信息,所述设备指示信息指示所述第一设备为图像接收设备;
    所述截图模块,用于向所述图像接收设备发送所述图像。
  21. 一种计算机设备,所述计算机设备包括处理器和存储器;所述存储器存储有至少一条程序代码,所述至少一条程序代码用于被所述处理器执行以实现如权利要求1至10任一所述的跨设备截图方法。
  22. 一种计算机可读存储介质,所述存储介质存储有至少一条程序代码,所述至少一条程序代码用于被处理器执行以实现如权利要求1至10任一所述的跨设备截图方法。
  23. 一种计算机程序产品,包括计算机程序,所述计算机程序用于被处理器执行以实现如权利要求1至10任一所述的跨设备截图方法。
PCT/CN2022/143500 2022-03-16 2022-12-29 跨设备截图方法、装置、设备及存储介质 WO2023173897A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210257730.4 2022-03-16
CN202210257730.4A CN114666394A (zh) 2022-03-16 2022-03-16 跨设备截图方法、装置、设备及存储介质

Publications (1)

Publication Number Publication Date
WO2023173897A1 true WO2023173897A1 (zh) 2023-09-21

Family

ID=82029972

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/143500 WO2023173897A1 (zh) 2022-03-16 2022-12-29 跨设备截图方法、装置、设备及存储介质

Country Status (2)

Country Link
CN (1) CN114666394A (zh)
WO (1) WO2023173897A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666394A (zh) * 2022-03-16 2022-06-24 Oppo广东移动通信有限公司 跨设备截图方法、装置、设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105338399A (zh) * 2015-10-29 2016-02-17 小米科技有限责任公司 图像获取方法及装置
CN105592364A (zh) * 2016-02-25 2016-05-18 腾讯科技(深圳)有限公司 跨终端的截屏图片获取方法和装置
CN110581919A (zh) * 2018-06-11 2019-12-17 阿里巴巴集团控股有限公司 信息传输与数据处理方法、设备、系统及存储介质
CN113746718A (zh) * 2020-05-29 2021-12-03 华为技术有限公司 一种内容分享的方法、装置及系统
CN114666394A (zh) * 2022-03-16 2022-06-24 Oppo广东移动通信有限公司 跨设备截图方法、装置、设备及存储介质
CN115426521A (zh) * 2022-08-31 2022-12-02 华为技术有限公司 用于截屏的方法、电子设备、介质以及程序产品

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104079717B (zh) * 2014-06-12 2016-08-24 深圳市金立通信设备有限公司 一种显示设备界面的方法及服务器
CN105242920B (zh) * 2015-09-21 2019-03-29 联想(北京)有限公司 一种截图系统、截图方法以及电子设备
CN113360062A (zh) * 2021-05-28 2021-09-07 维沃移动通信有限公司 显示控制方法、装置、电子设备和可读存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105338399A (zh) * 2015-10-29 2016-02-17 小米科技有限责任公司 图像获取方法及装置
CN105592364A (zh) * 2016-02-25 2016-05-18 腾讯科技(深圳)有限公司 跨终端的截屏图片获取方法和装置
CN110581919A (zh) * 2018-06-11 2019-12-17 阿里巴巴集团控股有限公司 信息传输与数据处理方法、设备、系统及存储介质
CN113746718A (zh) * 2020-05-29 2021-12-03 华为技术有限公司 一种内容分享的方法、装置及系统
CN114666394A (zh) * 2022-03-16 2022-06-24 Oppo广东移动通信有限公司 跨设备截图方法、装置、设备及存储介质
CN115426521A (zh) * 2022-08-31 2022-12-02 华为技术有限公司 用于截屏的方法、电子设备、介质以及程序产品

Also Published As

Publication number Publication date
CN114666394A (zh) 2022-06-24

Similar Documents

Publication Publication Date Title
KR102661339B1 (ko) Pucch 충돌의 처리 방법 및 단말
KR102473470B1 (ko) 사이드링크의 링크 실패 검사 방법 및 단말기
JP7450734B2 (ja) オーディオ出力方法および端末デバイス
WO2016155431A1 (zh) 终端及其触控操作方法和装置、存储介质
AU2019208662B2 (en) Service processing method and mobile communication terminal
CN108965306A (zh) 一种通话处理方法及移动终端
CN105722059A (zh) 一种移动终端及双调制解调器系统的通信方法
WO2024016772A1 (zh) 一种来电提醒方法和电子设备
CN107862217B (zh) 一种位置信息获取方法、移动终端以及计算机存储介质
US20220174659A1 (en) Feedback method for semi-persistent scheduling physical downlink shared channel and terminal device
CN110096375B (zh) 一种应用程序共享数据方法、装置及计算机可读存储介质
WO2023173897A1 (zh) 跨设备截图方法、装置、设备及存储介质
WO2020103089A1 (zh) 一种双卡的通信方法及相关产品
CN113194197A (zh) 交互方法、终端及存储介质
CN108322602B (zh) 一种处理应用无响应的方法、终端和计算机可读存储介质
US20220053585A1 (en) Method for pc5 link establishment, device, and system
CN107748680B (zh) 一种内核配置方法、终端及计算机可读存储介质
WO2021057733A1 (zh) 先听后发lbt子带划分方法、装置、设备及介质
CN112395106A (zh) 进程管理方法、移动终端以及计算机可读存储介质
WO2023116311A1 (zh) 数据交互方法、装置、设备及存储介质
CN110489657B (zh) 一种信息过滤方法、装置、终端设备及存储介质
CN110087223B (zh) 通信连接方法、通信设备及存储介质
CN109743469B (zh) 一种基于volte的通信方法及移动终端
CN107678622B (zh) 一种应用图标的显示方法、终端及存储介质
EP4345592A1 (en) Processing method, processing device, and readable storage medium

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: 22931902

Country of ref document: EP

Kind code of ref document: A1