WO2022052649A1 - Trajectory display method, first terminal, second terminal, and storage medium - Google Patents

Trajectory display method, first terminal, second terminal, and storage medium Download PDF

Info

Publication number
WO2022052649A1
WO2022052649A1 PCT/CN2021/107840 CN2021107840W WO2022052649A1 WO 2022052649 A1 WO2022052649 A1 WO 2022052649A1 CN 2021107840 W CN2021107840 W CN 2021107840W WO 2022052649 A1 WO2022052649 A1 WO 2022052649A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
terminal
sharing
display
displayed
Prior art date
Application number
PCT/CN2021/107840
Other languages
French (fr)
Chinese (zh)
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 WO2022052649A1 publication Critical patent/WO2022052649A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/04Large scale networks; Deep hierarchical networks
    • H04W84/08Trunked mobile radio systems

Definitions

  • the embodiments of the present application relate to the field of communications technologies, and in particular, to a method for displaying a trajectory, a first terminal, a second terminal, and a storage medium.
  • terminals can provide more and more functions. For example, screen sharing can be performed between terminals, as well as remote assistance.
  • one terminal needs to share its own display interface with another terminal.
  • the shared terminal can only display the operation results of the other terminal on the shared interface
  • the assisted terminal can only display the other terminal's own interface. The user can only know the operation result of the interface, and the interface display effect is not good.
  • Embodiments of the present application provide a trajectory display method, a first terminal, a second terminal, and a storage medium, which can provide a display interface for a shared terminal or an assisted terminal during screen sharing or remote assistance between terminals , which improves the interface display effect.
  • An embodiment of the present application provides a trajectory display method, which is applied to a first terminal, and the method includes:
  • the operation track is transmitted to the second terminal, so that the second terminal can display the operation track on the displayed second sharing interface that is the same as the first sharing interface.
  • the embodiment of the present application provides a trajectory display method, which is applied to a second terminal, and the method includes:
  • the first sharing interface is the same interface displayed by the first terminal as the second sharing interface
  • the operation track is displayed on the second sharing interface.
  • An embodiment of the present application provides a first terminal, including:
  • a first sharing module configured to perform interface sharing with the second terminal when a wireless connection is established with the second terminal, and determine the displayed interface as the first shared interface
  • a determining module configured to collect operation information for the first shared interface when the trajectory display function is turned on, and determine an operation trajectory based on the operation information
  • the first communication module is configured to transmit the operation track to the second terminal, so that the second terminal can display the operation track on the displayed second sharing interface that is the same as the first sharing interface.
  • An embodiment of the present application provides a second terminal, including:
  • a second sharing module configured to perform interface sharing with the first terminal when a wireless connection is established with the first terminal, and determine the displayed interface as the second shared interface
  • a second communication module configured to receive the operation track on the first sharing interface transmitted by the first terminal;
  • the first sharing interface is the same interface displayed by the first terminal as the second sharing interface;
  • a display module configured to display the operation track on the second sharing interface.
  • An embodiment of the present application provides a first terminal, including: a first processor, a first memory, a first display, and a first communication bus;
  • the first communication bus configured to implement a communication connection between the first processor, the first memory and the first display
  • the first processor and the first display are configured to execute the first track display program stored in the first memory, so as to implement the above track display method applied to the first terminal.
  • An embodiment of the present application provides a second terminal, including: a second processor, a second memory, a second display, and a second communication bus;
  • the second communication bus configured to implement a communication connection between the second processor, the second memory and the second display
  • the second processor and the second display are configured to execute the second track display program stored in the second memory, so as to implement the above track display method applied to the second terminal.
  • An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the above-mentioned trajectory display method.
  • FIG. 1 is a schematic flowchart 1 of a method for displaying a trajectory according to an embodiment of the present application
  • FIG. 2 is a schematic diagram 1 of display of an exemplary first terminal according to an embodiment of the present application
  • FIG. 3 is a second schematic diagram of display of an exemplary first terminal according to an embodiment of the present application.
  • FIG. 4 is a third schematic diagram of display of an exemplary first terminal provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of an exemplary trajectory display provided by an embodiment of the present application.
  • FIG. 6 is a second schematic flowchart of a method for displaying a trajectory according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of terminal interaction in an exemplary remote assistance scenario provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram 1 of a first terminal according to an embodiment of the present application.
  • FIG. 9 is a second schematic structural diagram of a first terminal according to an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram 1 of a second terminal according to an embodiment of the present application.
  • FIG. 11 is a second schematic structural diagram of a second terminal according to an embodiment of the present application.
  • an embodiment of the present application provides a trajectory display method, which is applied to a first terminal, and the method includes:
  • the operation track is transmitted to the second terminal, so that the second terminal can display the operation track on the displayed second sharing interface that is the same as the first sharing interface.
  • the performing interface sharing with the second terminal and determining the displayed interface as the first shared interface includes:
  • the first interface information corresponding to the first sharing interface is transmitted to the second terminal, so that the second terminal uses the first interface information to display the second sharing interface.
  • the performing interface sharing with the second terminal and determining the displayed interface as the first shared interface includes:
  • the collecting operation information for the first shared interface, and determining the operation trajectory based on the operation information includes:
  • the operation trajectory is generated on the transparent interface based on the operation information.
  • the operation information includes a plurality of touch points
  • the generating the operation track on the transparent interface based on the operation information includes:
  • a target special effect is added to the at least one line segment to obtain the operation trajectory.
  • the method before performing interface sharing with the second terminal in the case of establishing a wireless connection with the second terminal, and determining the displayed interface as the first shared interface, the method further includes:
  • an embodiment of the present application provides a method for displaying a trajectory, which is applied to a second terminal, and the method includes:
  • the first sharing interface is the same interface displayed by the first terminal as the second sharing interface
  • the operation track is displayed on the second sharing interface.
  • performing interface sharing with the first terminal and determining the displayed interface as the second shared interface includes:
  • the interface is displayed according to the first interface information to obtain the second shared interface.
  • performing interface sharing with the first terminal and determining the displayed interface as the second shared interface includes:
  • the second interface information corresponding to the second sharing interface is transmitted to the first terminal, so that the first terminal uses the second interface information to display the first sharing interface.
  • the method further includes:
  • an embodiment of the present application provides a first terminal, including:
  • a first sharing module configured to perform interface sharing with the second terminal when a wireless connection is established with the second terminal, and determine the displayed interface as the first shared interface
  • a determination module configured to collect operation information for the first shared interface when the trajectory display function is turned on, and determine an operation trajectory based on the operation information
  • the first communication module is configured to transmit the operation track to the second terminal, so that the second terminal can display the operation track on the displayed second sharing interface that is the same as the first sharing interface.
  • the first sharing module is specifically configured to determine the currently displayed first display interface as the first sharing interface; and transmit the first interface information corresponding to the first sharing interface to the The second terminal is used for the second terminal to display the second sharing interface by using the first interface information.
  • the first sharing module is specifically configured to receive second interface information corresponding to the second sharing interface transmitted by the second terminal; perform interface display according to the second interface information, and obtain the first sharing interface.
  • the determining module is specifically configured to cover a transparent interface on the first sharing interface; receive a touch operation on the first sharing interface through the transparent interface, and The touch operation determines the operation information; and the operation track is generated on the transparent interface based on the operation information.
  • an embodiment of the present application provides a second terminal, including:
  • a second sharing module configured to perform interface sharing with the first terminal when a wireless connection is established with the first terminal, and determine the displayed interface as the second shared interface
  • a second communication module configured to receive the operation track on the first sharing interface transmitted by the first terminal;
  • the first sharing interface is the same interface displayed by the first terminal as the second sharing interface;
  • a display module configured to display the operation track on the second sharing interface.
  • the second sharing module is specifically configured to receive first interface information corresponding to the first sharing interface transmitted by the first terminal; perform interface display according to the first interface information, and obtain the second shared interface.
  • the second sharing module is specifically configured to determine the second display interface currently displayed as the second sharing interface; and transmit the second interface information corresponding to the second sharing interface to the second sharing interface.
  • the first terminal is used for the first terminal to display the first sharing interface by using the second interface information.
  • an embodiment of the present application provides a first terminal, including: a first processor, a first memory, a first display, and a first communication bus;
  • the first communication bus configured to implement a communication connection between the first processor, the first memory and the first display
  • the first processor is configured to execute the first track display program stored in the first memory, so as to implement the above track display method applied to the first terminal.
  • an embodiment of the present application provides a second terminal, including: a second processor, a second memory, a second display, and a second communication bus;
  • the second communication bus configured to implement a communication connection between the second processor, the second memory and the second display
  • the second processor is configured to execute the second track display program stored in the second memory, so as to implement the above track display method applied to the second terminal.
  • an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the above-mentioned trajectory display method.
  • FIG. 1 is a schematic flowchart 1 of a method for displaying a trajectory according to an embodiment of the present application. As shown in Figure 1, it mainly includes the following steps:
  • the first terminal when a wireless connection is established with the second terminal, the first terminal performs interface sharing with the second terminal, and determines the displayed interface as the first shared interface.
  • the second terminal may be an electronic device such as a mobile phone and a tablet computer, which is not limited in the embodiments of the present application.
  • the first terminal needs to establish a wireless connection with the second terminal first, and then perform interface sharing with the second terminal.
  • the first terminal and the second terminal can simultaneously enable screen sharing or remote assistance functions, so as to access the same network for account matching and wireless connection.
  • other manners may also be used to establish a wireless connection between the first terminal and the second terminal, which is not limited in this embodiment of the present application.
  • FIG. 2 is a schematic diagram 1 of display of an exemplary first terminal according to an embodiment of the present application.
  • the user can click the “remote assistance” icon displayed on the first terminal to enable the remote assistance function, thereby further performing account connection and matching with the second terminal that also has the remote assistance function enabled. , to realize the wireless connection with the second terminal.
  • FIG. 3 is a second schematic diagram of display of an exemplary first terminal according to an embodiment of the present application.
  • the user can click the "screen sharing" icon displayed on the first terminal to enable the screen sharing function, thereby further performing account connection and matching with the second terminal that also enables the screen sharing function , to realize the wireless connection with the second terminal.
  • the second terminal when the remote assistance or screen sharing function is enabled on the first terminal, the second terminal also needs to enable the same function.
  • the first terminal when the first terminal establishes a wireless connection with the second terminal, it can share the interface with the second terminal, so that the interface displayed by itself is determined as the first shared interface. .
  • the terminal and the second terminal share the interface, in fact, the display interfaces of the two terminals are the same, that is, the interface displayed on the second terminal is the same interface as the first shared interface.
  • the specific first sharing interface is not limited in this embodiment of the present application.
  • the first terminal and the second terminal share the interface, which may be the first terminal displaying the interface displayed by the second terminal, or the second terminal displaying the interface displayed by the first terminal. , both actually display the same interface.
  • the first terminal and the second terminal perform interface sharing, and determining the displayed interface as the first shared interface includes: determining the currently displayed first display interface as the first shared interface ; transmitting the first interface information corresponding to the first sharing interface to the second terminal, so that the second terminal can display the second sharing interface by using the first interface information.
  • the first terminal may directly determine the currently displayed first display interface as the first shared interface, and assign the first shared interface corresponding to the first shared interface.
  • the interface information is wirelessly transmitted to the second terminal, so that the second terminal can display a second shared interface identical to the first shared interface according to the first interface information.
  • the first terminal and the second terminal perform interface sharing, and determine the displayed interface as the first shared interface, including: receiving a second interface corresponding to the second shared interface transmitted by the second terminal interface information; performing interface display according to the second interface information to obtain a first shared interface.
  • the first terminal needs to display the interface displayed by the second terminal, which is the second shared interface. Therefore, the second terminal can The second interface information corresponding to the shared interface is transmitted to the first terminal, and the first terminal can display the same interface as the second shared interface according to the received second interface information, which is the first shared interface.
  • the first terminal may collect operation information for the first shared interface, and determine the operation track based on the operation information.
  • the user when a wireless connection is established between the first terminal and the second terminal, for example, the first terminal and the second terminal are in the process of screen sharing or remote assistance, the user can use the A specific operation enables the trace display function.
  • the specific enabling manner of the track display function is not limited in this embodiment of the present application.
  • FIG. 4 is a third schematic diagram of display of an exemplary first terminal according to an embodiment of the present application.
  • the screen sharing function is enabled on the first terminal, and a wireless connection is established with the second terminal.
  • the user can click the “operation track” icon on the first terminal to enable the track display function.
  • the user can perform a touch operation on the first sharing interface displayed by the first terminal.
  • the user can click on certain function entries provided in the first sharing interface. Therefore, the first terminal can collect the corresponding operation information, thereby Determine the operation track corresponding to the touch operation.
  • the first terminal collects operation information for the first sharing interface, and determines the operation trajectory based on the operation information, including: covering the first sharing interface with a transparent interface; The touch operation of the first shared interface, and the operation information is determined according to the touch operation; the operation track is generated on the transparent interface based on the operation information.
  • the first terminal may cover the displayed first sharing interface with a layer of transparent interface for drawing the operation track, and the transparent interface does not affect the user's click on the first sharing interface. Waiting for the touch operation, when the first terminal draws and displays the operation track on the transparent interface, the terminal may continue to receive the touch operation on the first shared interface through the transparent interface.
  • the operation information includes multiple touch points
  • the first terminal generates an operation track on the transparent interface based on the operation information, including:
  • the touch sequences are connected in sequence to obtain at least one line segment; target special effects are added to at least one line segment to obtain an operation track.
  • the first terminal may sequentially connect the collected touch points on the transparent interface, and form a line segment between every two touch points, thereby obtaining at least one touch point.
  • Line segment, and the end point of the previous line segment is used as the start point of the next line segment, with continuity.
  • the terminal may add target special effects to at least one line segment on the transparent interface, thereby obtaining the operation trajectory. Compared with directly displaying at least one line segment, the obtained operation trajectory has a better visual effect.
  • the target special effect can include that the thickness of the line segment gradually decreases with time, so as to achieve the effect of a large beginning and a small tail, and it can also include that the transparency of the line segment gradually decreases with time to achieve the effect of gradually disappearing.
  • a target special effect may be stored in the first terminal, so that the target special effect is called during the drawing of the operation track.
  • the specific target effect can be set according to actual needs, which is not limited in the embodiment of the present application.
  • S103 Transmit the operation track to the second terminal, so that the second terminal can display the operation track on the displayed second sharing interface that is the same as the first sharing interface.
  • the first terminal after obtaining the operation track, can transmit the operation track to the second terminal for displaying the operation track on the displayed second sharing interface that is the same as the first sharing interface.
  • the first terminal and the second terminal share the interface, and the first shared interface displayed on the first terminal is the same as the second shared interface displayed on the second terminal.
  • the first terminal transmits the operation track on the first sharing interface to the second terminal, and the second terminal can display the operation track on the second sharing interface displayed by itself, which is equivalent to displaying the user using the first terminal for the first terminal.
  • An operation track of the interface is shared, so that the user using the second terminal can know the operation process of the user using the first terminal, not just the operation result.
  • FIG. 5 is a schematic diagram of a track display of an exemplary second sharing interface provided by an embodiment of the present application.
  • the second terminal may display the operation track on the second sharing interface according to the received operation track.
  • the first sharing interface on the first terminal is the same as the second sharing interface, and the first terminal draws an operation track on the transparent interface on the first sharing interface, that is, the content actually displayed by the first terminal is the same as the first sharing interface.
  • the content displayed on the two terminals is the same.
  • the first terminal in the scenario of remote assistance, also needs to transmit the operation information to the second terminal, so that the second terminal displays the trajectory on the second sharing interface. , and can also respond accordingly on the second sharing interface according to the operation information.
  • the first terminal is a terminal that provides screen sharing or a terminal that provides remote assistance
  • the second terminal is a shared terminal or an assisted terminal.
  • the method further includes: Send a control request to the user server; receive the cluster identification and authentication information generated by the user server according to the control request; use the authentication information to initiate a request to join the cluster corresponding to the cluster identification to the real-time communication server, so as to join the cluster through the real-time communication server, and complete Handshake connection with the second terminal joining the cluster.
  • the first terminal and the second terminal complete a handshake connection, so as to mutually determine a wireless connection mode for wireless connection.
  • the first terminal and the second terminal can directly exchange information with each other.
  • the first terminal can The operation track is transmitted to the second terminal through the data channel.
  • the first terminal and the second terminal can exchange information through the relay server.
  • the first terminal transmits the operation track to the second terminal through the relay server.
  • a specific manner in which the first terminal and the second terminal perform information interaction is not limited in this embodiment of the present application.
  • An embodiment of the present application provides a method for displaying a trajectory, which is applied to a first terminal, including: in the case of establishing a wireless connection with a second terminal, performing interface sharing with the second terminal, and determining the displayed interface as the first sharing interface; when the trajectory display function is turned on, collect operation information for the first shared interface, and determine the operation trajectory based on the operation information; transmit the operation trajectory to the second terminal for the second terminal to share with the first terminal on the display The operation track is displayed on the second shared interface with the same interface.
  • the trajectory display method provided by the embodiments of the present application can provide the shared terminal or the assisted terminal with the operation trajectory of the display interface during the process of screen sharing or remote assistance between terminals, thereby improving the interface display effect.
  • FIG. 6 is a second schematic flowchart of a method for displaying a trajectory according to an embodiment of the present application. As shown in Figure 6, it mainly includes the following steps:
  • the second terminal when a wireless connection is established with the first terminal, the second terminal performs interface sharing with the first terminal, and determines the displayed interface as the second shared interface.
  • the second terminal needs to establish a wireless connection with the first terminal first, and then perform interface sharing with the first terminal.
  • the second terminal and the first terminal can enable screen sharing or remote assistance functions at the same time, so as to access the same network for account matching and wireless connection.
  • other manners may also be used to establish a wireless connection between the second terminal and the first terminal, which is not limited in this embodiment of the present application.
  • the second terminal shares the interface with the first terminal, which may be the second terminal displaying the interface displayed by the first terminal, or the first terminal displaying the interface displayed by the second terminal. , the two actually display the same interface.
  • the second terminal performs interface sharing with the first terminal, and determines the displayed interface as the second shared interface, including: receiving a first interface corresponding to the first shared interface transmitted by the first terminal interface information; performing interface display according to the first interface information to obtain a second shared interface.
  • the second terminal performs interface sharing with the first terminal, and determining the displayed interface as the second shared interface includes: determining the currently displayed second display interface as the second shared interface ; transmitting the second interface information corresponding to the second sharing interface to the first terminal, so that the first terminal can display the first sharing interface by using the second interface information.
  • S602. Receive the operation track on the first sharing interface transmitted by the first terminal; the first sharing interface is the same interface displayed by the first terminal as the second sharing interface.
  • the second terminal may receive the operation track on the first sharing interface transmitted by the first terminal, where the first sharing interface is the same interface displayed by the first terminal as the second sharing interface.
  • the second terminal shares the interface with the first terminal, therefore, the interfaces displayed by the two are actually the same, that is, the second shared interface displayed by the second terminal
  • the first sharing interface displayed by the first terminal is the same, and the only difference is that the displayed terminals are different.
  • a user using the first terminal can perform a touch operation on the first shared interface displayed by the first terminal, so that the first terminal can obtain the operation track on the first shared interface and transmit it to the second terminal.
  • the second terminal after receiving the operation track transmitted by the first terminal, the second terminal may display the operation track on the displayed second sharing interface.
  • the second terminal shares the interface with the first terminal, and the second shared interface displayed on the second terminal is the same as the first shared interface displayed on the first terminal. . Therefore, when the second terminal receives the operation track on the first shared interface, it can use the operation track to display the track on the second shared interface displayed by itself, which is equivalent to two terminals displaying the same interface, and On the user's operation track on the same interface, the user using the second terminal can learn the operation process of the user using the first terminal, not just the operation result.
  • the first terminal may also transmit operation information for the first shared interface to the second terminal, that is, the second terminal may also receive the operation information, Therefore, when the second terminal displays the operation track on the second sharing interface, it can also make a corresponding response on the second sharing interface according to the operation information.
  • the second terminal when the second terminal establishes a wireless connection with the first terminal, the second terminal performs interface sharing with the first terminal, and before determining the displayed interface as the second shared interface, further Perform the following steps: receive the cluster identification and authentication information sent by the user server; use the authentication information to send a request for joining the cluster corresponding to the cluster identification to the real-time communication server, so as to join the cluster through the real-time communication server, and complete the first step with joining the cluster. Terminal handshake connection.
  • the second terminal and the first terminal complete a handshake connection, so as to mutually determine a wireless connection mode for wireless connection.
  • the first terminal and the second terminal can directly exchange information with each other.
  • the second terminal can The information of its own display interface is transmitted to the first terminal through the audio and video channel.
  • the first terminal and the second terminal can exchange information through the relay server.
  • the second terminal transmits the information of its own display interface to the first terminal through the relay server.
  • a specific manner in which the first terminal and the second terminal perform information interaction is not limited in this embodiment of the present application.
  • FIG. 7 is a schematic diagram of terminal interaction in an exemplary remote assistance scenario provided by an embodiment of the present application.
  • the first terminal in the scenario where the first terminal remotely assists the second terminal, the first terminal first requests assistance/control from the user server, and then the user server generates a unified room identifier and authentication token, wherein the room identifier That is, it is equivalent to the cluster identification, and the authentication token is equivalent to the authentication information.
  • the user server can send the room identification and authentication token to the first terminal and the second terminal, and the first terminal and the second terminal can initiate connection authentication to the real-time communication server according to the received room identification and authentication token, After joining the room corresponding to the room identifier, the real-time communication server can complete the handshake connection between the first terminal and the second terminal through the SDP protocol exchange.
  • the second terminal can transmit the information of the display interface to the first terminal through the audio and video channel, and the first terminal can transmit the operation information to the second terminal through the data channel
  • the second terminal sends the information of the display interface to the first terminal through the relay server
  • the first terminal sends the operation information to the second terminal through the relay server.
  • FIG. 8 is a schematic structural diagram 1 of a first terminal according to an embodiment of the present application. As shown in Figure 8, the first terminal includes:
  • a first sharing module 801 configured to perform interface sharing with the second terminal when a wireless connection is established with the second terminal, and determine the displayed interface as the first shared interface;
  • the determining module 802 is configured to collect operation information for the first shared interface under the condition of enabling the trajectory display function, and determine an operation trajectory based on the operation information;
  • the first communication module 803 is configured to transmit the operation track to the second terminal, so that the second terminal can display the operation track on the displayed second sharing interface that is the same as the first sharing interface .
  • the first sharing module 801 is specifically configured to determine the currently displayed first display interface as the first sharing interface; and transmit the first interface information corresponding to the first sharing interface to the second terminal, so that the second terminal uses the first interface information to display the second sharing interface.
  • the first sharing module 801 is specifically configured to receive second interface information corresponding to the second sharing interface transmitted by the second terminal; and perform interface display according to the second interface information to obtain the first sharing interface.
  • the determining module 802 is specifically configured to cover a transparent interface on the first sharing interface; receive a touch operation on the first sharing interface through the transparent interface, and according to The touch operation determines the operation information; and the operation track is generated on the transparent interface based on the operation information.
  • the determining module 802 is specifically configured to, on the transparent interface, connect the plurality of touch points in sequence according to the touch sequence to obtain at least one line segment; Add target special effects to obtain the operation trajectory.
  • the first communication module 803 is further configured to send a control request to a user server; receive a cluster identifier and authentication information generated by the user server according to the control request; use the authentication The information initiates a request to join the cluster corresponding to the cluster identifier to the real-time communication server, so as to join the cluster through the real-time communication server and complete the handshake with the second terminal that joins the cluster.
  • FIG. 9 is a second schematic structural diagram of a first terminal according to an embodiment of the present application.
  • the first terminal includes: a first processor 901, a first memory 902, a first display 903 and a first communication bus 904;
  • the first communication bus 904 is configured to realize the communication connection between the first processor 901, the first memory 902 and the first display 903;
  • the first processor 901 is configured to execute the first track display program stored in the first memory 902, so as to implement the above track display method applied to the first terminal.
  • FIG. 10 is a schematic structural diagram 1 of a second terminal according to an embodiment of the present application. As shown in Figure 10, the second terminal includes:
  • the second sharing module 1001 is configured to perform interface sharing with the first terminal when a wireless connection is established with the first terminal, and determine the displayed interface as the second shared interface;
  • the second communication module 1002 is configured to receive the operation track on the first sharing interface transmitted by the first terminal; the first sharing interface is the same interface displayed by the first terminal as the second sharing interface;
  • the display module 1003 is configured to display the operation track on the second sharing interface.
  • the second sharing module 1001 is specifically configured to receive first interface information corresponding to the first sharing interface transmitted by the first terminal; and perform interface display according to the first interface information to obtain the second sharing interface.
  • the second sharing module 1001 is specifically configured to determine the second display interface currently displayed as the second sharing interface; and transmit the second interface information corresponding to the second sharing interface to the first terminal, so that the first terminal uses the second interface information to display the first sharing interface.
  • the second communication module 1002 is further configured to receive the cluster identifier and authentication information sent by the user server; and use the authentication information to send the real-time communication server to join the cluster corresponding to the cluster identifier request to join the cluster through the real-time communication server, and complete the handshake connection with the first terminal that joins the cluster.
  • FIG. 11 is a second schematic structural diagram of a second terminal according to an embodiment of the present application.
  • the second terminal includes: a second processor 1101, a second memory 1102, a second display 1103, and a second communication bus 1104;
  • the second communication bus 1104 is configured to realize the communication connection between the second processor 1101, the second memory 1102 and the second display 1103;
  • the second processor 1101 is configured to execute the second track display program stored in the second memory 1102, so as to implement the above track display method applied to the second terminal.
  • An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the above-mentioned trajectory display method.
  • the computer-readable storage medium may be a volatile memory (volatile memory), such as a random access memory (Random-Access Memory, RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (Read-only memory) Only Memory, ROM), flash memory (flash memory), hard disk (Hard Disk Drive, HDD) or solid-state drive (Solid-State Drive, SSD); it can also be a respective device including one or any combination of the above memories, such as Mobile phones, computers, tablet devices, personal digital assistants, etc.
  • the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including but not limited to disk storage, optical storage, and the like.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions
  • An apparatus implements the functions specified in a flow or flows of the implementation flow diagram and/or a block or blocks of the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the implementing flow diagram and/or the block or blocks of the block diagram.
  • Embodiments of the present application provide a trajectory display method, a first terminal, a second terminal, and a storage medium, and the method applied to the first terminal includes: in the case of establishing a wireless connection with the second terminal, interface with the second terminal share, and determine the displayed interface as the first shared interface; in the case of enabling the trajectory display function, collect operation information for the first shared interface, and determine the operation trajectory based on the operation information; transmit the operation trajectory to the second terminal, for the second terminal to display the operation track on the displayed second sharing interface that is the same as the first sharing interface.
  • the technical solutions provided by the embodiments of the present application can provide the shared terminal or the assisted terminal with the operation track of the display interface during the process of screen sharing or remote assistance between terminals, thereby improving the interface display effect.

Abstract

Disclosed in the embodiments of the present application are a trajectory display method, a first terminal, a second terminal, and a storage medium. The method applied to the first terminal comprises: under the condition of establishing a wireless connection with a second terminal, sharing an interface with the second terminal, and determining a displayed interface as a first shared interface; under the condition that a trajectory display function is enabled, collecting operation information for the first shared interface, and determining an operation trajectory on the basis of the operation information; and transmitting the operation trajectory to the second terminal to allow for the second terminal to display the operation trajectory on a displayed second shared interface identical to the first shared interface.

Description

一种轨迹显示方法、第一终端、第二终端及存储介质Track display method, first terminal, second terminal and storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请基于申请号202010932667.0、申请日2020年09月08日,申请名称为“一种轨迹显示方法、第一终端、第二终端及存储介质”的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式结合在本申请中。This application is based on the application number 202010932667.0, the application date is September 08, 2020, and the application name is "A trajectory display method, a first terminal, a second terminal and a storage medium" Chinese patent application, and requires the Chinese patent application Priority, the entire content of this Chinese patent application is hereby incorporated by reference into this application.
技术领域technical field
本申请实施例涉及通信技术领域,尤其涉及一种轨迹显示方法、第一终端、第二终端及存储介质。The embodiments of the present application relate to the field of communications technologies, and in particular, to a method for displaying a trajectory, a first terminal, a second terminal, and a storage medium.
背景技术Background technique
随着通信技术的不断发展,终端能够提供越来越多的功能。例如,终端之间可以进行屏幕共享,以及远程协助。With the continuous development of communication technologies, terminals can provide more and more functions. For example, screen sharing can be performed between terminals, as well as remote assistance.
目前,终端之间在进行屏幕共享或者远程协助的过程中,需要一个终端将自身的显示界面共享至另一个终端。然而,在屏幕共享的场景中,被共享的终端,仅能显示另一终端针对共享界面的操作结果,而在远程协助的场景中,被协助的终端,也仅能显示另一终端针对自身界面的操作结果,即用户仅能获知界面操作结果,界面显示效果不佳。Currently, in the process of screen sharing or remote assistance between terminals, one terminal needs to share its own display interface with another terminal. However, in the screen sharing scenario, the shared terminal can only display the operation results of the other terminal on the shared interface, and in the remote assistance scenario, the assisted terminal can only display the other terminal's own interface. The user can only know the operation result of the interface, and the interface display effect is not good.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种轨迹显示方法、第一终端、第二终端及存储介质,在终端之间进行屏幕共享或者远程协助的过程中,可以为被共享的终端或被协助的终端提供显示界面的操作轨迹,提高了界面显示效果。Embodiments of the present application provide a trajectory display method, a first terminal, a second terminal, and a storage medium, which can provide a display interface for a shared terminal or an assisted terminal during screen sharing or remote assistance between terminals , which improves the interface display effect.
本申请实施例的技术方案是这样实现的:The technical solutions of the embodiments of the present application are implemented as follows:
本申请实施例提供了一种轨迹显示方法,应用于第一终端,所述方法包括:An embodiment of the present application provides a trajectory display method, which is applied to a first terminal, and the method includes:
在与第二终端建立无线连接的情况下,与所述第二终端进行界面共享,并将显示的界面确定为第一共享界面;In the case of establishing a wireless connection with the second terminal, perform interface sharing with the second terminal, and determine the displayed interface as the first shared interface;
在开启轨迹显示功能的情况下,采集针对所述第一共享界面的操作信息,并基于所述操作信息确定操作轨迹;In the case of enabling the trajectory display function, collecting operation information for the first shared interface, and determining an operation trajectory based on the operation information;
将所述操作轨迹传输至所述第二终端,以供所述第二终端在显示的与所述第一共享界面相同的第二共享界面上显示所述操作轨迹。The operation track is transmitted to the second terminal, so that the second terminal can display the operation track on the displayed second sharing interface that is the same as the first sharing interface.
本申请实施例提供了一种轨迹显示方法,应用于第二终端,所述方法 包括:The embodiment of the present application provides a trajectory display method, which is applied to a second terminal, and the method includes:
在与第一终端建立无线连接的情况下,与所述第一终端进行界面共享,并将显示的界面确定为第二共享界面;In the case of establishing a wireless connection with the first terminal, perform interface sharing with the first terminal, and determine the displayed interface as the second shared interface;
接收所述第一终端传输的第一共享界面上的操作轨迹;所述第一共享界面为所述第一终端显示的与所述第二共享界面相同的界面;receiving the operation track on the first sharing interface transmitted by the first terminal; the first sharing interface is the same interface displayed by the first terminal as the second sharing interface;
在所述第二共享界面上显示所述操作轨迹。The operation track is displayed on the second sharing interface.
本申请实施例提供了一种第一终端,包括:An embodiment of the present application provides a first terminal, including:
第一共享模块,配置为在与第二终端建立无线连接的情况下,与所述第二终端进行界面共享,并将显示的界面确定为第一共享界面;a first sharing module, configured to perform interface sharing with the second terminal when a wireless connection is established with the second terminal, and determine the displayed interface as the first shared interface;
确定模块,配置为在开启轨迹显示功能的情况下,采集针对所述第一共享界面的操作信息,并基于所述操作信息确定操作轨迹;a determining module, configured to collect operation information for the first shared interface when the trajectory display function is turned on, and determine an operation trajectory based on the operation information;
第一通信模块,配置为将所述操作轨迹传输至所述第二终端,以供所述第二终端在显示的与所述第一共享界面相同的第二共享界面上显示所述操作轨迹。The first communication module is configured to transmit the operation track to the second terminal, so that the second terminal can display the operation track on the displayed second sharing interface that is the same as the first sharing interface.
本申请实施例提供了一种第二终端,包括:An embodiment of the present application provides a second terminal, including:
第二共享模块,配置为在与第一终端建立无线连接的情况下,与所述第一终端进行界面共享,并将显示的界面确定为第二共享界面;a second sharing module, configured to perform interface sharing with the first terminal when a wireless connection is established with the first terminal, and determine the displayed interface as the second shared interface;
第二通信模块,配置为接收所述第一终端传输的第一共享界面上的操作轨迹;所述第一共享界面为所述第一终端显示的与所述第二共享界面相同的界面;a second communication module, configured to receive the operation track on the first sharing interface transmitted by the first terminal; the first sharing interface is the same interface displayed by the first terminal as the second sharing interface;
显示模块,配置为在所述第二共享界面上显示所述操作轨迹。A display module configured to display the operation track on the second sharing interface.
本申请实施例提供了一种第一终端,包括:第一处理器、第一存储器、第一显示器和第一通信总线;An embodiment of the present application provides a first terminal, including: a first processor, a first memory, a first display, and a first communication bus;
所述第一通信总线,配置为实现所述第一处理器、所述第一存储器和所述第一显示器之间的通信连接;the first communication bus configured to implement a communication connection between the first processor, the first memory and the first display;
所述第一处理器和所述第一显示器,用配置为执行所述第一存储器中存储的第一轨迹显示程序,以实现上述应用于第一终端的轨迹显示方法。The first processor and the first display are configured to execute the first track display program stored in the first memory, so as to implement the above track display method applied to the first terminal.
本申请实施例提供了一种第二终端,包括:第二处理器、第二存储器、第二显示器和第二通信总线;An embodiment of the present application provides a second terminal, including: a second processor, a second memory, a second display, and a second communication bus;
所述第二通信总线,配置为实现所述第二处理器、所述第二存储器和所述第二显示器之间的通信连接;the second communication bus configured to implement a communication connection between the second processor, the second memory and the second display;
所述第二处理器和所述第二显示器,配置为执行所述第二存储器中存储的第二轨迹显示程序,以实现上述应用于第二终端的轨迹显示方法。The second processor and the second display are configured to execute the second track display program stored in the second memory, so as to implement the above track display method applied to the second terminal.
本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述轨迹显示方法。An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the above-mentioned trajectory display method.
附图说明Description of drawings
图1为本申请实施例提供的一种轨迹显示方法的流程示意图一;FIG. 1 is a schematic flowchart 1 of a method for displaying a trajectory according to an embodiment of the present application;
图2为本申请实施例提供的一种示例性的第一终端的显示示意图一;FIG. 2 is a schematic diagram 1 of display of an exemplary first terminal according to an embodiment of the present application;
图3为本申请实施例提供的一种示例性的第一终端的显示示意图二;FIG. 3 is a second schematic diagram of display of an exemplary first terminal according to an embodiment of the present application;
图4为本申请实施例提供的一种示例性的第一终端的显示示意图三;FIG. 4 is a third schematic diagram of display of an exemplary first terminal provided by an embodiment of the present application;
图5为本申请实施例提供的一种示例性的轨迹显示示意图;FIG. 5 is a schematic diagram of an exemplary trajectory display provided by an embodiment of the present application;
图6为本申请实施例提供的一种轨迹显示方法的流程示意图二;FIG. 6 is a second schematic flowchart of a method for displaying a trajectory according to an embodiment of the present application;
图7为本申请实施例提供的一种示例性的远程协助场景下的终端交互示意图;FIG. 7 is a schematic diagram of terminal interaction in an exemplary remote assistance scenario provided by an embodiment of the present application;
图8为本申请实施例提供的一种第一终端的结构示意图一;FIG. 8 is a schematic structural diagram 1 of a first terminal according to an embodiment of the present application;
图9为本申请实施例提供的一种第一终端的结构示意图二;FIG. 9 is a second schematic structural diagram of a first terminal according to an embodiment of the present application;
图10为本申请实施例提供的一种第二终端的结构示意图一;FIG. 10 is a schematic structural diagram 1 of a second terminal according to an embodiment of the present application;
图11为本申请实施例提供的一种第二终端的结构示意图二。FIG. 11 is a second schematic structural diagram of a second terminal according to an embodiment of the present application.
具体实施方式detailed description
第一方面,本申请实施例提供了一种轨迹显示方法,应用于第一终端,所述方法包括:In a first aspect, an embodiment of the present application provides a trajectory display method, which is applied to a first terminal, and the method includes:
在与第二终端建立无线连接的情况下,与所述第二终端进行界面共享,并将显示的界面确定为第一共享界面;In the case of establishing a wireless connection with the second terminal, perform interface sharing with the second terminal, and determine the displayed interface as the first shared interface;
在开启轨迹显示功能的情况下,采集针对所述第一共享界面的操作信息,并基于所述操作信息确定操作轨迹;In the case of enabling the trajectory display function, collecting operation information for the first shared interface, and determining an operation trajectory based on the operation information;
将所述操作轨迹传输至所述第二终端,以供所述第二终端在显示的与所述第一共享界面相同的第二共享界面上显示所述操作轨迹。The operation track is transmitted to the second terminal, so that the second terminal can display the operation track on the displayed second sharing interface that is the same as the first sharing interface.
在上述方法中,所述与所述第二终端进行界面共享,并将显示的界面确定为第一共享界面,包括:In the above method, the performing interface sharing with the second terminal and determining the displayed interface as the first shared interface includes:
将当前显示的第一显示界面确定为所述第一共享界面;determining the currently displayed first display interface as the first shared interface;
将所述第一共享界面对应的第一界面信息传输至所述第二终端,以供所述第二终端利用所述第一界面信息显示所述第二共享界面。The first interface information corresponding to the first sharing interface is transmitted to the second terminal, so that the second terminal uses the first interface information to display the second sharing interface.
在上述方法中,所述与所述第二终端进行界面共享,并将显示的界面确定为第一共享界面,包括:In the above method, the performing interface sharing with the second terminal and determining the displayed interface as the first shared interface includes:
接收所述第二终端传输的所述第二共享界面对应的第二界面信息;receiving second interface information corresponding to the second shared interface transmitted by the second terminal;
根据所述第二界面信息进行界面显示,得到所述第一共享界面。Perform interface display according to the second interface information to obtain the first shared interface.
在上述方法中,所述采集针对所述第一共享界面的操作信息,并基于所述操作信息确定操作轨迹,包括:In the above method, the collecting operation information for the first shared interface, and determining the operation trajectory based on the operation information, includes:
在所述第一共享界面上覆盖透明界面;overlaying a transparent interface on the first sharing interface;
透过所述透明界面接收针对所述第一共享界面的触控操作,并根据所述触控操作确定所述操作信息;receiving a touch operation on the first shared interface through the transparent interface, and determining the operation information according to the touch operation;
基于所述操作信息在所述透明界面上生成所述操作轨迹。The operation trajectory is generated on the transparent interface based on the operation information.
在上述方法中,所述操作信息包括多个触控点,所述基于所述操作信息在所述透明界面上生成所述操作轨迹,包括:In the above method, the operation information includes a plurality of touch points, and the generating the operation track on the transparent interface based on the operation information includes:
在所述透明界面上,将所述多个触控点按照触控顺序依次连接,得到至少一个线段;On the transparent interface, connect the plurality of touch points in sequence according to the touch sequence to obtain at least one line segment;
对所述至少一个线段增加目标特效,得到所述操作轨迹。A target special effect is added to the at least one line segment to obtain the operation trajectory.
在上述方法中,所述在与第二终端建立无线连接的情况下,与所述第二终端进行界面共享,并将显示的界面确定为第一共享界面之前,所述方法还包括:In the above method, before performing interface sharing with the second terminal in the case of establishing a wireless connection with the second terminal, and determining the displayed interface as the first shared interface, the method further includes:
向用户服务器发送控制请求;Send a control request to the user server;
接收所述用户服务器根据所述控制请求生成的集群标识和鉴权信息;receiving the cluster identification and authentication information generated by the user server according to the control request;
利用所述鉴权信息向实时通信服务器发起加入所述集群标识对应的集群的请求,以通过所述实时通信服务器加入所述集群,并完成与加入所述集群的所述第二终端的握手连接。Use the authentication information to initiate a request to join the cluster corresponding to the cluster identifier to the real-time communication server, so as to join the cluster through the real-time communication server and complete the handshake connection with the second terminal that joins the cluster .
第二方面,本申请实施例提供了一种轨迹显示方法,应用于第二终端,所述方法包括:In a second aspect, an embodiment of the present application provides a method for displaying a trajectory, which is applied to a second terminal, and the method includes:
在与第一终端建立无线连接的情况下,与所述第一终端进行界面共享,并将显示的界面确定为第二共享界面;In the case of establishing a wireless connection with the first terminal, perform interface sharing with the first terminal, and determine the displayed interface as the second shared interface;
接收所述第一终端传输的第一共享界面上的操作轨迹;所述第一共享界面为所述第一终端显示的与所述第二共享界面相同的界面;receiving the operation track on the first sharing interface transmitted by the first terminal; the first sharing interface is the same interface displayed by the first terminal as the second sharing interface;
在所述第二共享界面上显示所述操作轨迹。The operation track is displayed on the second sharing interface.
在上述方法中,所述与所述第一终端进行界面共享,并将显示的界面确定为第二共享界面,包括:In the above method, performing interface sharing with the first terminal and determining the displayed interface as the second shared interface includes:
接收所述第一终端传输的所述第一共享界面对应的第一界面信息;receiving first interface information corresponding to the first shared interface transmitted by the first terminal;
根据所述第一界面信息进行界面显示,得到所述第二共享界面。The interface is displayed according to the first interface information to obtain the second shared interface.
在上述方法中,所述与所述第一终端进行界面共享,并将显示的界面确定为第二共享界面,包括:In the above method, performing interface sharing with the first terminal and determining the displayed interface as the second shared interface includes:
将当前显示的第二显示界面确定为所述第二共享界面;determining the currently displayed second display interface as the second shared interface;
将所述第二共享界面对应的第二界面信息传输至所述第一终端,以供所述第一终端利用所述第二界面信息显示所述第一共享界面。The second interface information corresponding to the second sharing interface is transmitted to the first terminal, so that the first terminal uses the second interface information to display the first sharing interface.
在上述方法中,所述在与第一终端建立无线连接的情况下,与所述第一终端进行界面共享,并将显示的界面确定为第二共享界面之前,所述方法还包括:In the above method, before the interface is shared with the first terminal when a wireless connection is established with the first terminal, and the displayed interface is determined as the second shared interface, the method further includes:
接收用户服务器发送的集群标识和鉴权信息;Receive the cluster identification and authentication information sent by the user server;
利用所述鉴权信息向实时通信服务器发送加入所述集群标识对应的集群的请求,以通过所述实时通信服务器加入所述集群,并完成与加入所述集群的所述第一终端的握手连接。Send a request to join the cluster corresponding to the cluster identifier to the real-time communication server by using the authentication information, so as to join the cluster through the real-time communication server and complete the handshake connection with the first terminal that joins the cluster .
第三方面,本申请实施例提供了一种第一终端,包括:In a third aspect, an embodiment of the present application provides a first terminal, including:
第一共享模块,配置为在与第二终端建立无线连接的情况下,与所述第二终端进行界面共享,并将显示的界面确定为第一共享界面;a first sharing module, configured to perform interface sharing with the second terminal when a wireless connection is established with the second terminal, and determine the displayed interface as the first shared interface;
确定模块,配置为在开启轨迹显示功能的情况下,采集针对所述第一 共享界面的操作信息,并基于所述操作信息确定操作轨迹;A determination module, configured to collect operation information for the first shared interface when the trajectory display function is turned on, and determine an operation trajectory based on the operation information;
第一通信模块,配置为将所述操作轨迹传输至所述第二终端,以供所述第二终端在显示的与所述第一共享界面相同的第二共享界面上显示所述操作轨迹。The first communication module is configured to transmit the operation track to the second terminal, so that the second terminal can display the operation track on the displayed second sharing interface that is the same as the first sharing interface.
在上述第一终端中,所述第一共享模块,具体配置为将当前显示的第一显示界面确定为所述第一共享界面;将所述第一共享界面对应的第一界面信息传输至所述第二终端,以供所述第二终端利用所述第一界面信息显示所述第二共享界面。In the above-mentioned first terminal, the first sharing module is specifically configured to determine the currently displayed first display interface as the first sharing interface; and transmit the first interface information corresponding to the first sharing interface to the The second terminal is used for the second terminal to display the second sharing interface by using the first interface information.
在上述第一终端中,所述第一共享模块,具体配置为接收所述第二终端传输的所述第二共享界面对应的第二界面信息;根据所述第二界面信息进行界面显示,得到所述第一共享界面。In the above-mentioned first terminal, the first sharing module is specifically configured to receive second interface information corresponding to the second sharing interface transmitted by the second terminal; perform interface display according to the second interface information, and obtain the first sharing interface.
在上述第一终端中,所述确定模块,具体配置为在所述第一共享界面上覆盖透明界面;透过所述透明界面接收针对所述第一共享界面的触控操作,并根据所述触控操作确定所述操作信息;基于所述操作信息在所述透明界面上生成所述操作轨迹。In the above-mentioned first terminal, the determining module is specifically configured to cover a transparent interface on the first sharing interface; receive a touch operation on the first sharing interface through the transparent interface, and The touch operation determines the operation information; and the operation track is generated on the transparent interface based on the operation information.
第四方面,本申请实施例提供了一种第二终端,包括:In a fourth aspect, an embodiment of the present application provides a second terminal, including:
第二共享模块,配置为在与第一终端建立无线连接的情况下,与所述第一终端进行界面共享,并将显示的界面确定为第二共享界面;a second sharing module, configured to perform interface sharing with the first terminal when a wireless connection is established with the first terminal, and determine the displayed interface as the second shared interface;
第二通信模块,配置为接收所述第一终端传输的第一共享界面上的操作轨迹;所述第一共享界面为所述第一终端显示的与所述第二共享界面相同的界面;a second communication module, configured to receive the operation track on the first sharing interface transmitted by the first terminal; the first sharing interface is the same interface displayed by the first terminal as the second sharing interface;
显示模块,配置为在所述第二共享界面上显示所述操作轨迹。A display module configured to display the operation track on the second sharing interface.
在上述第二终端中,所述第二共享模块,具体配置为接收所述第一终端传输的所述第一共享界面对应的第一界面信息;根据所述第一界面信息进行界面显示,得到所述第二共享界面。In the above-mentioned second terminal, the second sharing module is specifically configured to receive first interface information corresponding to the first sharing interface transmitted by the first terminal; perform interface display according to the first interface information, and obtain the second shared interface.
在上述第二终端中,所述第二共享模块,具体配置为将当前显示的第二显示界面确定为所述第二共享界面;将所述第二共享界面对应的第二界面信息传输至所述第一终端,以供所述第一终端利用所述第二界面信息显示所述第一共享界面。In the above-mentioned second terminal, the second sharing module is specifically configured to determine the second display interface currently displayed as the second sharing interface; and transmit the second interface information corresponding to the second sharing interface to the second sharing interface. The first terminal is used for the first terminal to display the first sharing interface by using the second interface information.
第五方面,本申请实施例提供了一种第一终端,包括:第一处理器、第一存储器、第一显示器和第一通信总线;In a fifth aspect, an embodiment of the present application provides a first terminal, including: a first processor, a first memory, a first display, and a first communication bus;
所述第一通信总线,配置为实现所述第一处理器、所述第一存储器和所述第一显示器之间的通信连接;the first communication bus configured to implement a communication connection between the first processor, the first memory and the first display;
所述第一处理器,配置为执行所述第一存储器中存储的第一轨迹显示程序,以实现上述应用于第一终端的轨迹显示方法。The first processor is configured to execute the first track display program stored in the first memory, so as to implement the above track display method applied to the first terminal.
第六方面,本申请实施例提供了一种第二终端,包括:第二处理器、第二存储器、第二显示器和第二通信总线;In a sixth aspect, an embodiment of the present application provides a second terminal, including: a second processor, a second memory, a second display, and a second communication bus;
所述第二通信总线,配置为实现所述第二处理器、所述第二存储器和 所述第二显示器之间的通信连接;the second communication bus configured to implement a communication connection between the second processor, the second memory and the second display;
所述第二处理器,配置为执行所述第二存储器中存储的第二轨迹显示程序,以实现上述应用于第二终端的轨迹显示方法。The second processor is configured to execute the second track display program stored in the second memory, so as to implement the above track display method applied to the second terminal.
第七方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述轨迹显示方法。In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the above-mentioned trajectory display method.
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
本申请实施例提供了一种轨迹显示方法,通过第一终端实现。第一终端可以是手机、平板电脑等电子设备,本申请实施例不作限定。图1为本申请实施例提供的一种轨迹显示方法的流程示意图一。如图1所示,主要包括以下步骤:An embodiment of the present application provides a method for displaying a trajectory, which is implemented by a first terminal. The first terminal may be an electronic device such as a mobile phone and a tablet computer, which is not limited in this embodiment of the present application. FIG. 1 is a schematic flowchart 1 of a method for displaying a trajectory according to an embodiment of the present application. As shown in Figure 1, it mainly includes the following steps:
S101、在与第二终端建立无线连接的情况下,与第二终端进行界面共享,并将显示的界面确定为第一共享界面。S101. In the case of establishing a wireless connection with the second terminal, perform interface sharing with the second terminal, and determine the displayed interface as the first shared interface.
在本申请的实施例中,第一终端在与第二终端建立无线连接的情况下,与第二终端进行界面共享,并将显示的界面确定为第一共享界面。In the embodiment of the present application, when a wireless connection is established with the second terminal, the first terminal performs interface sharing with the second terminal, and determines the displayed interface as the first shared interface.
需要说明的是,在本申请的实施例中,第二终端可以为手机、平板电脑等电子设备,本申请实施例不作限定。It should be noted that, in the embodiments of the present application, the second terminal may be an electronic device such as a mobile phone and a tablet computer, which is not limited in the embodiments of the present application.
需要说明的是,在本申请的实施例中,第一终端需要先与第二终端建立无线连接,再与第二终端进行界面共享。具体的,第一终端可以与第二终端同时开启屏幕共享或远程协助功能,从而接入同一网络进行账号匹配,实现无线连接。当然,第一终端与第二终端之间还可以采用其它方式建立无线连接,本申请实施例不作限定。It should be noted that, in the embodiment of the present application, the first terminal needs to establish a wireless connection with the second terminal first, and then perform interface sharing with the second terminal. Specifically, the first terminal and the second terminal can simultaneously enable screen sharing or remote assistance functions, so as to access the same network for account matching and wireless connection. Certainly, other manners may also be used to establish a wireless connection between the first terminal and the second terminal, which is not limited in this embodiment of the present application.
图2为本申请实施例提供的一种示例性的第一终端的显示示意图一。如图2所示,在本申请的实施例中,用户可以点击第一终端上显示的“远程协助”图标,开启远程协助功能,从而进一步与同样开启远程协助功能的第二终端进行账号连接匹配,实现与第二终端的无线连接。FIG. 2 is a schematic diagram 1 of display of an exemplary first terminal according to an embodiment of the present application. As shown in FIG. 2 , in the embodiment of the present application, the user can click the “remote assistance” icon displayed on the first terminal to enable the remote assistance function, thereby further performing account connection and matching with the second terminal that also has the remote assistance function enabled. , to realize the wireless connection with the second terminal.
图3为本申请实施例提供的一种示例性的第一终端的显示示意图二。如图3所示,在本申请的实施例中,用户可以点击第一终端上显示的“屏幕共享”图标,开启屏幕共享功能,从而进一步与同样开启屏幕共享功能的第二终端进行账号连接匹配,实现与第二终端的无线连接。FIG. 3 is a second schematic diagram of display of an exemplary first terminal according to an embodiment of the present application. As shown in FIG. 3 , in the embodiment of the present application, the user can click the "screen sharing" icon displayed on the first terminal to enable the screen sharing function, thereby further performing account connection and matching with the second terminal that also enables the screen sharing function , to realize the wireless connection with the second terminal.
可以理解的是,在本申请的实施例中,第一终端在开启远程协助或屏幕共享功能的情况下,第二终端也需要开启相同的功能。It can be understood that, in the embodiment of the present application, when the remote assistance or screen sharing function is enabled on the first terminal, the second terminal also needs to enable the same function.
可以理解的是,在本申请的实施例中,第一终端在与第二终端建立无线连接的情况下,即可与第二终端进行界面共享,从而将自身显示的界面确定为第一共享界面。当然,由于终端与第二终端进行了界面共享,实际上两者的显示界面是相同的,即第二终端上显示的界面为与第一共享界面相同的界面。具体的第一共享界面本申请实施例不作限定。It can be understood that, in the embodiment of the present application, when the first terminal establishes a wireless connection with the second terminal, it can share the interface with the second terminal, so that the interface displayed by itself is determined as the first shared interface. . Of course, since the terminal and the second terminal share the interface, in fact, the display interfaces of the two terminals are the same, that is, the interface displayed on the second terminal is the same interface as the first shared interface. The specific first sharing interface is not limited in this embodiment of the present application.
需要说明的是,在本申请的实施例中,第一终端与第二终端进行界面共享,可以是第一终端显示第二终端显示的界面,也可以是第二终端显示第一终端显示的界面,两者实际上显示的界面是相同的。It should be noted that, in this embodiment of the present application, the first terminal and the second terminal share the interface, which may be the first terminal displaying the interface displayed by the second terminal, or the second terminal displaying the interface displayed by the first terminal. , both actually display the same interface.
具体的,在本申请的实施例中,第一终端与第二终端进行界面共享,并将显示的界面确定为第一共享界面,包括:将当前显示的第一显示界面确定为第一共享界面;将第一共享界面对应的第一界面信息传输至第二终端,以供第二终端利用第一界面信息显示第二共享界面。Specifically, in the embodiment of the present application, the first terminal and the second terminal perform interface sharing, and determining the displayed interface as the first shared interface includes: determining the currently displayed first display interface as the first shared interface ; transmitting the first interface information corresponding to the first sharing interface to the second terminal, so that the second terminal can display the second sharing interface by using the first interface information.
可以理解的是,在本申请的实施例中,在屏幕共享的场景下,第一终端可以将当前显示的第一显示界面直接确定为第一共享界面,并将第一共享界面对应的第一界面信息无线传输给第二终端,第二终端从而可以根据第一界面信息显示出与第一共享界面相同的第二共享界面。It can be understood that, in this embodiment of the present application, in a screen sharing scenario, the first terminal may directly determine the currently displayed first display interface as the first shared interface, and assign the first shared interface corresponding to the first shared interface. The interface information is wirelessly transmitted to the second terminal, so that the second terminal can display a second shared interface identical to the first shared interface according to the first interface information.
具体的,在本申请的实施例中,第一终端与第二终端进行界面共享,并将显示的界面确定为第一共享界面,包括:接收第二终端传输的第二共享界面对应的第二界面信息;根据第二界面信息进行界面显示,得到第一共享界面。Specifically, in the embodiment of the present application, the first terminal and the second terminal perform interface sharing, and determine the displayed interface as the first shared interface, including: receiving a second interface corresponding to the second shared interface transmitted by the second terminal interface information; performing interface display according to the second interface information to obtain a first shared interface.
可以理解的是,在本申请的实施例中,在远程协助的情况下,第一终端需要显示第二终端显示的界面,该界面即为第二共享界面,因此,第二终端可以将第二共享界面对应的第二界面信息传输至第一终端,第一终端即可根据接收到的第二界面信息显示出与第二共享界面相同的界面,该界面即为第一共享界面。It can be understood that, in the embodiment of the present application, in the case of remote assistance, the first terminal needs to display the interface displayed by the second terminal, which is the second shared interface. Therefore, the second terminal can The second interface information corresponding to the shared interface is transmitted to the first terminal, and the first terminal can display the same interface as the second shared interface according to the received second interface information, which is the first shared interface.
S102、在开启轨迹显示功能的情况下,采集针对第一共享界面的操作信息,并基于操作信息确定操作轨迹。S102. In the case where the trajectory display function is enabled, collect operation information for the first shared interface, and determine the operation trajectory based on the operation information.
在本申请的实施例中,第一终端在开启轨迹显示功能的情况下,可以采集针对第一共享界面的操作信息,并基于操作信息确定操作轨迹。In the embodiment of the present application, when the track display function is enabled, the first terminal may collect operation information for the first shared interface, and determine the operation track based on the operation information.
需要说明的是,在本申请的实施例中,在第一终端与第二终端建立无线连接的情况下,例如,第一终端和第二终端处于屏幕共享或远程协助的过程中,用户可以通过特定的操作开启轨迹显示功能。具体的轨迹显示功能的开启方式本申请实施例不作限定。It should be noted that, in this embodiment of the present application, when a wireless connection is established between the first terminal and the second terminal, for example, the first terminal and the second terminal are in the process of screen sharing or remote assistance, the user can use the A specific operation enables the trace display function. The specific enabling manner of the track display function is not limited in this embodiment of the present application.
图4为本申请实施例提供的一种示例性的第一终端的显示示意图三。如图4所示,第一终端开启了屏幕共享功能,与第二终端建立了无线连接,用户可以点击第一终端上的“操作轨迹”图标,从而开启轨迹显示功能。FIG. 4 is a third schematic diagram of display of an exemplary first terminal according to an embodiment of the present application. As shown in FIG. 4 , the screen sharing function is enabled on the first terminal, and a wireless connection is established with the second terminal. The user can click the “operation track” icon on the first terminal to enable the track display function.
可以理解的是,在本申请的实施例中,用户可以对第一终端显示的第一共享界面进行触控操作,例如,在屏幕共享的场景下,用户可以对某些需要重点关注的地方进行画圈标记,或者,进行界面的滑动,在远程协助的场景下,用户可以将针对第一共享界面中的提供的某些功能入口进行点击,因此,第一终端可以采集相应的操作信息,从而确定触控操作对应的操作轨迹。It can be understood that, in the embodiment of the present application, the user can perform a touch operation on the first sharing interface displayed by the first terminal. Draw a circle mark, or slide the interface. In the remote assistance scenario, the user can click on certain function entries provided in the first sharing interface. Therefore, the first terminal can collect the corresponding operation information, thereby Determine the operation track corresponding to the touch operation.
具体的,在本申请的实施例中,第一终端采集针对第一共享界面的操 作信息,并基于操作信息确定操作轨迹,包括:在第一共享界面上覆盖透明界面;透过透明界面接收针对第一共享界面的触控操作,并根据触控操作确定操作信息;基于操作信息在透明界面上生成操作轨迹。Specifically, in the embodiment of the present application, the first terminal collects operation information for the first sharing interface, and determines the operation trajectory based on the operation information, including: covering the first sharing interface with a transparent interface; The touch operation of the first shared interface, and the operation information is determined according to the touch operation; the operation track is generated on the transparent interface based on the operation information.
可以理解的是,在本申请的实施例中,第一终端可以在显示的第一共享界面上覆盖一层透明界面,用于绘制操作轨迹,该透明界面不影响用户针对第一共享界面进行点击等触控操作,在第一终端在透明界面上绘制出操作轨迹并显示的情况下,终端可以透过透明界面继续接收针对第一共享界面的触控操作。It can be understood that, in the embodiment of the present application, the first terminal may cover the displayed first sharing interface with a layer of transparent interface for drawing the operation track, and the transparent interface does not affect the user's click on the first sharing interface. Waiting for the touch operation, when the first terminal draws and displays the operation track on the transparent interface, the terminal may continue to receive the touch operation on the first shared interface through the transparent interface.
需要说明的是,在本申请的实施例中,操作信息包括多个触控点,第一终端基于操作信息在透明界面上生成操作轨迹,包括:在透明界面上,将多个触控点按照触控顺序依次连接,得到至少一个线段;对至少一个线段增加目标特效,得到操作轨迹。It should be noted that, in the embodiment of the present application, the operation information includes multiple touch points, and the first terminal generates an operation track on the transparent interface based on the operation information, including: The touch sequences are connected in sequence to obtain at least one line segment; target special effects are added to at least one line segment to obtain an operation track.
需要说明的是,在本申请的实施例中,第一终端可以在透明界面上,将采集到的多个触控点依次连接,每两个触控点之间形成一个线段,从而得到至少一个线段,并且上一个线段的终点作为下一个线段的起点,具有连贯性。之后,终端可以对透明界面上的至少一个线段增加目标特效,从而得到操作轨迹。相比于直接显示至少一个线段,得到的操作轨迹视觉效果更好。其中,目标特效可以包括线段的粗细随时间逐渐变小,从而达到开头大,尾巴小的效果,也可以包括线段的透明度随时间逐渐变小,达到逐渐消失的效果。It should be noted that, in the embodiment of the present application, the first terminal may sequentially connect the collected touch points on the transparent interface, and form a line segment between every two touch points, thereby obtaining at least one touch point. Line segment, and the end point of the previous line segment is used as the start point of the next line segment, with continuity. Afterwards, the terminal may add target special effects to at least one line segment on the transparent interface, thereby obtaining the operation trajectory. Compared with directly displaying at least one line segment, the obtained operation trajectory has a better visual effect. Among them, the target special effect can include that the thickness of the line segment gradually decreases with time, so as to achieve the effect of a large beginning and a small tail, and it can also include that the transparency of the line segment gradually decreases with time to achieve the effect of gradually disappearing.
需要说明的是,在本申请的实施例中,第一终端中可以存储有目标特效,从而在进行操作轨迹的绘制中调用该目标特效。具体的目标效果可以根据实际需求设置,本申请实施例不作限定。It should be noted that, in the embodiment of the present application, a target special effect may be stored in the first terminal, so that the target special effect is called during the drawing of the operation track. The specific target effect can be set according to actual needs, which is not limited in the embodiment of the present application.
S103、将操作轨迹传输至第二终端,以供第二终端在显示的与第一共享界面相同的第二共享界面上显示操作轨迹。S103: Transmit the operation track to the second terminal, so that the second terminal can display the operation track on the displayed second sharing interface that is the same as the first sharing interface.
在本申请的实施例中,第一终端在得到操作轨迹之后,即可将操作轨迹传输至第二终端,以供在显示的与第一共享界面相同的第二共享界面上显示操作轨迹。In the embodiment of the present application, after obtaining the operation track, the first terminal can transmit the operation track to the second terminal for displaying the operation track on the displayed second sharing interface that is the same as the first sharing interface.
可以理解的是,在本申请的实施例中,第一终端与第二终端进行了界面共享,第一终端上显示的第一共享界面,与第二终端上显示的第二共享界面是相同的。第一终端将第一共享界面上的操作轨迹传输给第二终端,第二终端即可在自身显示的第二共享界面上显示出该操作轨迹,等同于显示出使用第一终端的用户针对第一共享界面的操作轨迹,从而使用第二终端的用户可以获知使用第一终端的用户的操作过程,而非仅仅是操作结果。It can be understood that, in the embodiment of the present application, the first terminal and the second terminal share the interface, and the first shared interface displayed on the first terminal is the same as the second shared interface displayed on the second terminal. . The first terminal transmits the operation track on the first sharing interface to the second terminal, and the second terminal can display the operation track on the second sharing interface displayed by itself, which is equivalent to displaying the user using the first terminal for the first terminal. An operation track of the interface is shared, so that the user using the second terminal can know the operation process of the user using the first terminal, not just the operation result.
图5为本申请实施例提供的一种示例性的第二共享界面的轨迹显示示意图。如图5所示,在本申请的实施例中,第二终端可以根据接收到的操作轨迹,在第二共享界面上显示出操作轨迹。需要说明的是,第一终端上的第一共享界面与第二共享界面相同,第一终端在第一共享界面上的透明 界面上绘制了操作轨迹,即第一终端实际上显示的内容与第二终端显示的内容相同。FIG. 5 is a schematic diagram of a track display of an exemplary second sharing interface provided by an embodiment of the present application. As shown in FIG. 5 , in the embodiment of the present application, the second terminal may display the operation track on the second sharing interface according to the received operation track. It should be noted that the first sharing interface on the first terminal is the same as the second sharing interface, and the first terminal draws an operation track on the transparent interface on the first sharing interface, that is, the content actually displayed by the first terminal is the same as the first sharing interface. The content displayed on the two terminals is the same.
需要说明的是,在本申请的实施例中,在远程协助的场景下,第一终端还需要将操作信息传输给第二终端,从而第二终端在第二共享界面上进行轨迹显示的情况下,还能够根据操作信息在第二共享界面上进行对应的响应。It should be noted that, in the embodiments of the present application, in the scenario of remote assistance, the first terminal also needs to transmit the operation information to the second terminal, so that the second terminal displays the trajectory on the second sharing interface. , and can also respond accordingly on the second sharing interface according to the operation information.
需要说明的是,在本申请的实施例中,第一终端为提供屏幕共享的终端或者提供远程协助的终端,相应的,第二终端为被共享的终端或被协助的终端。It should be noted that, in the embodiments of the present application, the first terminal is a terminal that provides screen sharing or a terminal that provides remote assistance, and correspondingly, the second terminal is a shared terminal or an assisted terminal.
需要说明的是,在本申请的实施例中,在与第二终端建立无线连接的情况下,与第二终端进行界面共享,并将显示的界面确定为第一共享界面之前,方法还包括:向用户服务器发送控制请求;接收用户服务器根据控制请求生成的集群标识和鉴权信息;利用鉴权信息向实时通信服务器发起加入集群标识对应的集群的请求,以通过实时通信服务器加入集群,并完成与加入集群的第二终端的握手连接。It should be noted that, in the embodiment of the present application, in the case of establishing a wireless connection with the second terminal, before performing interface sharing with the second terminal and determining the displayed interface as the first shared interface, the method further includes: Send a control request to the user server; receive the cluster identification and authentication information generated by the user server according to the control request; use the authentication information to initiate a request to join the cluster corresponding to the cluster identification to the real-time communication server, so as to join the cluster through the real-time communication server, and complete Handshake connection with the second terminal joining the cluster.
需要说明的是,在本申请的实施例中,第一终端与第二终端完成握手连接,从而互相确定无线连接方式以进行无线连接。在第一终端和第二终端可以建立直接连接的场景下,第一终端和第二终端可以直接互相进行信息的交互,例如,在第一终端远程协助第二终端的情况下,第一终端可以将操作轨迹通过数据通道传输给第二终端。此外,在第一终端和第二终端无法建立直接连接的场景下,第一终端和第二终端可以通过中转服务器进行信息交互,例如,在第一终端远程协助第二终端的情况下,第一终端将操作轨迹通过中转服务器传输给第二终端。具体的第一终端和第二终端进行信息交互的方式本申请实施例不作限定。It should be noted that, in the embodiment of the present application, the first terminal and the second terminal complete a handshake connection, so as to mutually determine a wireless connection mode for wireless connection. In a scenario where a direct connection can be established between the first terminal and the second terminal, the first terminal and the second terminal can directly exchange information with each other. For example, in the case where the first terminal remotely assists the second terminal, the first terminal can The operation track is transmitted to the second terminal through the data channel. In addition, in a scenario where a direct connection cannot be established between the first terminal and the second terminal, the first terminal and the second terminal can exchange information through the relay server. For example, in the case where the first terminal remotely assists the second terminal, the first terminal The terminal transmits the operation track to the second terminal through the relay server. A specific manner in which the first terminal and the second terminal perform information interaction is not limited in this embodiment of the present application.
本申请实施例提供了一种轨迹显示方法,应用于第一终端,包括:在与第二终端建立无线连接的情况下,与第二终端进行界面共享,并将显示的界面确定为第一共享界面;在开启轨迹显示功能的情况下,采集针对第一共享界面的操作信息,并基于操作信息确定操作轨迹;将操作轨迹传输至第二终端,以供第二终端在显示的与第一共享界面相同的第二共享界面上显示操作轨迹。本申请实施例提供的轨迹显示方法,在终端之间进行屏幕共享或者远程协助的过程中,可以为被共享的终端或被协助的终端提供显示界面的操作轨迹,提高了界面显示效果。An embodiment of the present application provides a method for displaying a trajectory, which is applied to a first terminal, including: in the case of establishing a wireless connection with a second terminal, performing interface sharing with the second terminal, and determining the displayed interface as the first sharing interface; when the trajectory display function is turned on, collect operation information for the first shared interface, and determine the operation trajectory based on the operation information; transmit the operation trajectory to the second terminal for the second terminal to share with the first terminal on the display The operation track is displayed on the second shared interface with the same interface. The trajectory display method provided by the embodiments of the present application can provide the shared terminal or the assisted terminal with the operation trajectory of the display interface during the process of screen sharing or remote assistance between terminals, thereby improving the interface display effect.
本申请实施例提供了一种轨迹显示方法,应用于第二终端。图6为本申请实施例提供的一种轨迹显示方法的流程示意图二。如图6所示,主要包括以下步骤:An embodiment of the present application provides a method for displaying a trajectory, which is applied to a second terminal. FIG. 6 is a second schematic flowchart of a method for displaying a trajectory according to an embodiment of the present application. As shown in Figure 6, it mainly includes the following steps:
S601、在与第一终端建立无线连接的情况下,与第一终端进行界面共享,并将显示的界面确定为第二共享界面。S601. In the case of establishing a wireless connection with the first terminal, perform interface sharing with the first terminal, and determine the displayed interface as the second shared interface.
在本申请的实施例中,第二终端在与第一终端建立无线连接的情况下, 与第一终端进行界面共享,并将显示的界面确定为第二共享界面。In the embodiment of the present application, when a wireless connection is established with the first terminal, the second terminal performs interface sharing with the first terminal, and determines the displayed interface as the second shared interface.
需要说明的是,在本申请的实施例中,第二终端需要先与第一终端建立无线连接,再与第一终端进行界面共享。具体的,第二终端可以与第一终端同时开启屏幕共享或远程协助功能,从而接入同一网络进行账号匹配,实现无线连接。当然,第二终端与第一终端之间还可以采用其它方式建立无线连接,本申请实施例不作限定。It should be noted that, in the embodiment of the present application, the second terminal needs to establish a wireless connection with the first terminal first, and then perform interface sharing with the first terminal. Specifically, the second terminal and the first terminal can enable screen sharing or remote assistance functions at the same time, so as to access the same network for account matching and wireless connection. Certainly, other manners may also be used to establish a wireless connection between the second terminal and the first terminal, which is not limited in this embodiment of the present application.
需要说明的是,在本申请的实施例中,第二终端与第一终端进行界面共享,可以是第二终端显示第一终端显示的界面,也可以是第一终端显示第二终端显示的界面,两者实际上显示的界面是相同的。It should be noted that, in the embodiment of the present application, the second terminal shares the interface with the first terminal, which may be the second terminal displaying the interface displayed by the first terminal, or the first terminal displaying the interface displayed by the second terminal. , the two actually display the same interface.
具体的,在本申请的实施例中,第二终端与第一终端进行界面共享,并将显示的界面确定为第二共享界面,包括:接收第一终端传输的第一共享界面对应的第一界面信息;根据第一界面信息进行界面显示,得到第二共享界面。Specifically, in the embodiment of the present application, the second terminal performs interface sharing with the first terminal, and determines the displayed interface as the second shared interface, including: receiving a first interface corresponding to the first shared interface transmitted by the first terminal interface information; performing interface display according to the first interface information to obtain a second shared interface.
具体的,在本申请的实施例中,第二终端与第一终端进行界面共享,并将显示的界面确定为第二共享界面,包括:将当前显示的第二显示界面确定为第二共享界面;将第二共享界面对应的第二界面信息传输至第一终端,以供第一终端利用第二界面信息显示第一共享界面。Specifically, in the embodiment of the present application, the second terminal performs interface sharing with the first terminal, and determining the displayed interface as the second shared interface includes: determining the currently displayed second display interface as the second shared interface ; transmitting the second interface information corresponding to the second sharing interface to the first terminal, so that the first terminal can display the first sharing interface by using the second interface information.
S602、接收第一终端传输的第一共享界面上的操作轨迹;第一共享界面为第一终端显示的与第二共享界面相同的界面。S602. Receive the operation track on the first sharing interface transmitted by the first terminal; the first sharing interface is the same interface displayed by the first terminal as the second sharing interface.
在本申请的实施例中,第二终端可以接收第一终端传输的第一共享界面上的操作轨迹,其中,第一共享界面为第一终端显示的与第二共享界面相同的界面。In the embodiment of the present application, the second terminal may receive the operation track on the first sharing interface transmitted by the first terminal, where the first sharing interface is the same interface displayed by the first terminal as the second sharing interface.
可以理解的是,在本申请的实施例中,第二终端与第一终端进行界面共享,因此,两者实际上显示的界面是相同的,也就是说,第二终端显示的第二共享界面与第一终端显示的第一共享界面是相同的,区别仅在于显示的终端是不同的。使用第一终端的用户可以针对第一终端显示的第一共享界面进行触控操作,第一终端从而可以得到第一共享界面上的操作轨迹,从而将其传输至第二终端。It can be understood that, in the embodiment of the present application, the second terminal shares the interface with the first terminal, therefore, the interfaces displayed by the two are actually the same, that is, the second shared interface displayed by the second terminal The first sharing interface displayed by the first terminal is the same, and the only difference is that the displayed terminals are different. A user using the first terminal can perform a touch operation on the first shared interface displayed by the first terminal, so that the first terminal can obtain the operation track on the first shared interface and transmit it to the second terminal.
S603、在第二共享界面上显示操作轨迹。S603. Display the operation track on the second sharing interface.
在本申请的实施例中,第二终端接收到第一终端传输的操作轨迹之后,即可在显示的第二共享界面显示该操作轨迹。In the embodiment of the present application, after receiving the operation track transmitted by the first terminal, the second terminal may display the operation track on the displayed second sharing interface.
可以理解的是,在本申请的实施例中,第二终端与第一终端进行了界面共享,第二终端上显示的第二共享界面,与第一终端上显示的第一共享界面是相同的。因此,第二终端在接收到第一共享界面上的操作轨迹的情况下,可以利用该操作轨迹在自身显示的第二共享界面上进行轨迹显示,相当于两个终端显示了同样的界面,以及在同样界面上用户的操作轨迹,使用第二终端的用户可以获知使用第一终端的用户的操作过程,而非仅仅是操作结果。It can be understood that, in the embodiment of the present application, the second terminal shares the interface with the first terminal, and the second shared interface displayed on the second terminal is the same as the first shared interface displayed on the first terminal. . Therefore, when the second terminal receives the operation track on the first shared interface, it can use the operation track to display the track on the second shared interface displayed by itself, which is equivalent to two terminals displaying the same interface, and On the user's operation track on the same interface, the user using the second terminal can learn the operation process of the user using the first terminal, not just the operation result.
需要说明的是,在本申请的实施例中,在远程协助的场景下,第一终端还可以将针对第一共享界面的操作信息传输给第二终端,即第二终端还可以接收操作信息,从而第二终端在第二共享界面上显示操作轨迹的情况下,还能够根据操作信息在第二共享界面上进行对应的响应。It should be noted that, in the embodiment of the present application, in the scenario of remote assistance, the first terminal may also transmit operation information for the first shared interface to the second terminal, that is, the second terminal may also receive the operation information, Therefore, when the second terminal displays the operation track on the second sharing interface, it can also make a corresponding response on the second sharing interface according to the operation information.
需要说明的是,在本申请的实施例中,第二终端在与第一终端建立无线连接的情况下,与第一终端进行界面共享,并将显示的界面确定为第二共享界面之前,还执行以下步骤:接收用户服务器发送的集群标识和鉴权信息;利用鉴权信息向实时通信服务器发送加入集群标识对应的集群的请求,以通过实时通信服务器加入集群,并完成与加入集群的第一终端的握手连接。It should be noted that, in the embodiment of the present application, when the second terminal establishes a wireless connection with the first terminal, the second terminal performs interface sharing with the first terminal, and before determining the displayed interface as the second shared interface, further Perform the following steps: receive the cluster identification and authentication information sent by the user server; use the authentication information to send a request for joining the cluster corresponding to the cluster identification to the real-time communication server, so as to join the cluster through the real-time communication server, and complete the first step with joining the cluster. Terminal handshake connection.
需要说明的是,在本申请的实施例中,第二终端与第一终端完成握手连接,从而互相确定无线连接方式以进行无线连接。在第一终端与第二终端可以建立直接连接的场景下,第一终端和第二终端可以直接互相进行信息的交互,例如,在第一终端远程协助第二终端的情况下,第二终端可以将自身显示界面的信息通过音视频通道传输给第以终端。此外,在第一终端和第二终端无法建立直接连接的场景下,第一终端和第二终端可以通过中转服务器进行信息交互,例如,在第一终端远程协助第二终端的情况下,第二终端将自身显示界面的信息通过中转服务器传输给第一终端。具体的第一终端和第二终端进行信息交互的方式本申请实施例不作限定。It should be noted that, in the embodiment of the present application, the second terminal and the first terminal complete a handshake connection, so as to mutually determine a wireless connection mode for wireless connection. In the scenario where the first terminal and the second terminal can establish a direct connection, the first terminal and the second terminal can directly exchange information with each other. For example, when the first terminal remotely assists the second terminal, the second terminal can The information of its own display interface is transmitted to the first terminal through the audio and video channel. In addition, in a scenario where a direct connection cannot be established between the first terminal and the second terminal, the first terminal and the second terminal can exchange information through the relay server. For example, in the case where the first terminal remotely assists the second terminal, the second terminal The terminal transmits the information of its own display interface to the first terminal through the relay server. A specific manner in which the first terminal and the second terminal perform information interaction is not limited in this embodiment of the present application.
图7为本申请实施例提供的一种示例性的远程协助场景下的终端交互示意图。如图7所示,在第一终端远程协助第二终端的场景下,第一终端先向用户服务器请求协助/控制,之后,用户服务器生成统一的房间标识和鉴权令牌,其中,房间标识即相当于集群标识,鉴权令牌即相当于鉴权信息。用户服务器可以将房间标识和鉴权令牌发送给第一终端和第二终端,第一终端和第二终端即可根据接收到的房间标识和鉴权令牌向实时通信服务器发起连接鉴权,加入该房间标识对应的房间,之后,实时通信服务器可以通过SDP协议交换完成第一终端和第二终端之间的握手连接。之后,在第一终端和第二终端直接连接的场景下,第二终端可以将显示界面的信息通过音视频通道传输给第一终端,第一终端可以将操作信息通过数据通道传输给第二终端,在第一终端和第二终端中转连接的场景下,第二终端将显示界面的信息通过中转服务器发送给第一终端,第一终端将操作信息通过中转服务器发送给第二终端。FIG. 7 is a schematic diagram of terminal interaction in an exemplary remote assistance scenario provided by an embodiment of the present application. As shown in FIG. 7 , in the scenario where the first terminal remotely assists the second terminal, the first terminal first requests assistance/control from the user server, and then the user server generates a unified room identifier and authentication token, wherein the room identifier That is, it is equivalent to the cluster identification, and the authentication token is equivalent to the authentication information. The user server can send the room identification and authentication token to the first terminal and the second terminal, and the first terminal and the second terminal can initiate connection authentication to the real-time communication server according to the received room identification and authentication token, After joining the room corresponding to the room identifier, the real-time communication server can complete the handshake connection between the first terminal and the second terminal through the SDP protocol exchange. After that, in the scenario where the first terminal and the second terminal are directly connected, the second terminal can transmit the information of the display interface to the first terminal through the audio and video channel, and the first terminal can transmit the operation information to the second terminal through the data channel In the scenario where the first terminal and the second terminal are connected via relay, the second terminal sends the information of the display interface to the first terminal through the relay server, and the first terminal sends the operation information to the second terminal through the relay server.
本申请实施例提供了一种第一终端。图8为本申请实施例提供的一种第一终端的结构示意图一。如图8所示,第一终端包括:Embodiments of the present application provide a first terminal. FIG. 8 is a schematic structural diagram 1 of a first terminal according to an embodiment of the present application. As shown in Figure 8, the first terminal includes:
第一共享模块801,配置为在与第二终端建立无线连接的情况下,与所述第二终端进行界面共享,并将显示的界面确定为第一共享界面;A first sharing module 801, configured to perform interface sharing with the second terminal when a wireless connection is established with the second terminal, and determine the displayed interface as the first shared interface;
确定模块802,配置为在开启轨迹显示功能的情况下,采集针对所述第一共享界面的操作信息,并基于所述操作信息确定操作轨迹;The determining module 802 is configured to collect operation information for the first shared interface under the condition of enabling the trajectory display function, and determine an operation trajectory based on the operation information;
第一通信模块803,配置为将所述操作轨迹传输至所述第二终端,以供所述第二终端在显示的与所述第一共享界面相同的第二共享界面上显示所述操作轨迹。The first communication module 803 is configured to transmit the operation track to the second terminal, so that the second terminal can display the operation track on the displayed second sharing interface that is the same as the first sharing interface .
在本申请一实施例中,所述第一共享模块801,具体配置为将当前显示的第一显示界面确定为所述第一共享界面;将所述第一共享界面对应的第一界面信息传输至所述第二终端,以供所述第二终端利用所述第一界面信息显示所述第二共享界面。In an embodiment of the present application, the first sharing module 801 is specifically configured to determine the currently displayed first display interface as the first sharing interface; and transmit the first interface information corresponding to the first sharing interface to the second terminal, so that the second terminal uses the first interface information to display the second sharing interface.
在本申请一实施例中,所述第一共享模块801,具体配置为接收所述第二终端传输的所述第二共享界面对应的第二界面信息;根据所述第二界面信息进行界面显示,得到所述第一共享界面。In an embodiment of the present application, the first sharing module 801 is specifically configured to receive second interface information corresponding to the second sharing interface transmitted by the second terminal; and perform interface display according to the second interface information to obtain the first sharing interface.
在本申请一实施例中,所述确定模块802,具体配置为在所述第一共享界面上覆盖透明界面;透过所述透明界面接收针对所述第一共享界面的触控操作,并根据所述触控操作确定所述操作信息;基于所述操作信息在所述透明界面上生成所述操作轨迹。In an embodiment of the present application, the determining module 802 is specifically configured to cover a transparent interface on the first sharing interface; receive a touch operation on the first sharing interface through the transparent interface, and according to The touch operation determines the operation information; and the operation track is generated on the transparent interface based on the operation information.
在本申请一实施例中,所述确定模块802,具体配置为在所述透明界面上,将所述多个触控点按照触控顺序依次连接,得到至少一个线段;对所述至少一个线段增加目标特效,得到所述操作轨迹。In an embodiment of the present application, the determining module 802 is specifically configured to, on the transparent interface, connect the plurality of touch points in sequence according to the touch sequence to obtain at least one line segment; Add target special effects to obtain the operation trajectory.
在本申请一实施例中,所述第一通信模块803,还配置为向用户服务器发送控制请求;接收所述用户服务器根据所述控制请求生成的集群标识和鉴权信息;利用所述鉴权信息向实时通信服务器发起加入所述集群标识对应的集群的请求,以通过所述实时通信服务器加入所述集群,并完成与加入所述集群的所述第二终端的握手。In an embodiment of the present application, the first communication module 803 is further configured to send a control request to a user server; receive a cluster identifier and authentication information generated by the user server according to the control request; use the authentication The information initiates a request to join the cluster corresponding to the cluster identifier to the real-time communication server, so as to join the cluster through the real-time communication server and complete the handshake with the second terminal that joins the cluster.
图9为本申请实施例提供的一种第一终端的结构示意图二。如图9所示,第一终端包括:第一处理器901、第一存储器902、第一显示器903和第一通信总线904;FIG. 9 is a second schematic structural diagram of a first terminal according to an embodiment of the present application. As shown in FIG. 9 , the first terminal includes: a first processor 901, a first memory 902, a first display 903 and a first communication bus 904;
所述第一通信总线904,配置为实现所述第一处理器901、所述第一存储器902和所述第一显示器903之间的通信连接;The first communication bus 904 is configured to realize the communication connection between the first processor 901, the first memory 902 and the first display 903;
所述第一处理器901,配置为执行所述第一存储器902中存储的第一轨迹显示程序,以实现上述应用于第一终端的轨迹显示方法。The first processor 901 is configured to execute the first track display program stored in the first memory 902, so as to implement the above track display method applied to the first terminal.
本申请实施例提供了一种第二终端。图10为本申请实施例提供的一种第二终端的结构示意图一。如图10所示,第二终端包括:The embodiment of the present application provides a second terminal. FIG. 10 is a schematic structural diagram 1 of a second terminal according to an embodiment of the present application. As shown in Figure 10, the second terminal includes:
第二共享模块1001,配置为在与第一终端建立无线连接的情况下,与所述第一终端进行界面共享,并将显示的界面确定为第二共享界面;The second sharing module 1001 is configured to perform interface sharing with the first terminal when a wireless connection is established with the first terminal, and determine the displayed interface as the second shared interface;
第二通信模块1002,配置为接收所述第一终端传输的第一共享界面上的操作轨迹;所述第一共享界面为所述第一终端显示的与所述第二共享界面相同的界面;The second communication module 1002 is configured to receive the operation track on the first sharing interface transmitted by the first terminal; the first sharing interface is the same interface displayed by the first terminal as the second sharing interface;
显示模块1003,配置为在所述第二共享界面上显示所述操作轨迹。The display module 1003 is configured to display the operation track on the second sharing interface.
在本申请一实施例中,所述第二共享模块1001,具体配置为接收所述 第一终端传输的所述第一共享界面对应的第一界面信息;根据所述第一界面信息进行界面显示,得到所述第二共享界面。In an embodiment of the present application, the second sharing module 1001 is specifically configured to receive first interface information corresponding to the first sharing interface transmitted by the first terminal; and perform interface display according to the first interface information to obtain the second sharing interface.
在本申请一实施例中,所述第二共享模块1001,具体配置为将当前显示的第二显示界面确定为所述第二共享界面;将所述第二共享界面对应的第二界面信息传输至所述第一终端,以供所述第一终端利用所述第二界面信息显示所述第一共享界面。In an embodiment of the present application, the second sharing module 1001 is specifically configured to determine the second display interface currently displayed as the second sharing interface; and transmit the second interface information corresponding to the second sharing interface to the first terminal, so that the first terminal uses the second interface information to display the first sharing interface.
在本申请一实施例中,所述第二通信模块1002,还配置为接收用户服务器发送的集群标识和鉴权信息;利用所述鉴权信息向实时通信服务器发送加入所述集群标识对应的集群的请求,以通过所述实时通信服务器加入所述集群,并完成与加入所述集群的所述第一终端的握手连接。In an embodiment of the present application, the second communication module 1002 is further configured to receive the cluster identifier and authentication information sent by the user server; and use the authentication information to send the real-time communication server to join the cluster corresponding to the cluster identifier request to join the cluster through the real-time communication server, and complete the handshake connection with the first terminal that joins the cluster.
图11为本申请实施例提供的一种第二终端的结构示意图二。如图11所示,在本申请的实施例中,第二终端包括:第二处理器1101、第二存储器1102、第二显示器1103和第二通信总线1104;FIG. 11 is a second schematic structural diagram of a second terminal according to an embodiment of the present application. As shown in FIG. 11, in the embodiment of the present application, the second terminal includes: a second processor 1101, a second memory 1102, a second display 1103, and a second communication bus 1104;
所述第二通信总线1104,配置为实现所述第二处理器1101、所述第二存储器1102和所述第二显示器1103之间的通信连接;The second communication bus 1104 is configured to realize the communication connection between the second processor 1101, the second memory 1102 and the second display 1103;
所述第二处理器1101,配置为执行所述第二存储器1102中存储的第二轨迹显示程序,以实现上述应用于第二终端的轨迹显示方法。The second processor 1101 is configured to execute the second track display program stored in the second memory 1102, so as to implement the above track display method applied to the second terminal.
本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述轨迹显示方法。计算机可读存储介质可以是易失性存储器(volatile memory),例如随机存取存储器(Random-Access Memory,RAM);或者非易失性存储器(non-volatile memory),例如只读存储器(Read-Only Memory,ROM),快闪存储器(flash memory),硬盘(Hard Disk Drive,HDD)或固态硬盘(Solid-State Drive,SSD);也可以是包括上述存储器之一或任意组合的各自设备,如移动电话、计算机、平板设备、个人数字助理等。An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the above-mentioned trajectory display method. The computer-readable storage medium may be a volatile memory (volatile memory), such as a random access memory (Random-Access Memory, RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (Read-only memory) Only Memory, ROM), flash memory (flash memory), hard disk (Hard Disk Drive, HDD) or solid-state drive (Solid-State Drive, SSD); it can also be a respective device including one or any combination of the above memories, such as Mobile phones, computers, tablet devices, personal digital assistants, etc.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by those skilled in the art, the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including but not limited to disk storage, optical storage, and the like.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的实现流程示意图和/或方框图来描述的。应理解可由计算机程序指令实现流程示意图和/或方框图中的每一流程和/或方框、以及实现流程示意图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在实现流程示意图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to schematic flowcharts and/or block diagrams of implementations of methods, apparatuses (systems), and computer program products according to embodiments of the present application. It will be understood that each process and/or block in the schematic flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the schematic flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a process or processes and/or a block or blocks in the block diagrams.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在实现流程示意图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions An apparatus implements the functions specified in a flow or flows of the implementation flow diagram and/or a block or blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在实现流程示意图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the implementing flow diagram and/or the block or blocks of the block diagram.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本实用申请揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application. , shall be covered within the scope of protection of this application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
工业实用性Industrial Applicability
本申请实施例提供了一种轨迹显示方法、第一终端、第二终端及存储介质,应用于第一终端的方法包括:在与第二终端建立无线连接的情况下,与第二终端进行界面共享,并将显示的界面确定为第一共享界面;在开启轨迹显示功能的情况下,采集针对第一共享界面的操作信息,并基于操作信息确定操作轨迹;将操作轨迹传输至第二终端,以供第二终端在显示的与第一共享界面相同的第二共享界面上显示操作轨迹。本申请实施例提供的技术方案,在终端之间进行屏幕共享或者远程协助的过程中,可以为被共享的终端或被协助的终端提供显示界面的操作轨迹,提高了界面显示效果。Embodiments of the present application provide a trajectory display method, a first terminal, a second terminal, and a storage medium, and the method applied to the first terminal includes: in the case of establishing a wireless connection with the second terminal, interface with the second terminal share, and determine the displayed interface as the first shared interface; in the case of enabling the trajectory display function, collect operation information for the first shared interface, and determine the operation trajectory based on the operation information; transmit the operation trajectory to the second terminal, for the second terminal to display the operation track on the displayed second sharing interface that is the same as the first sharing interface. The technical solutions provided by the embodiments of the present application can provide the shared terminal or the assisted terminal with the operation track of the display interface during the process of screen sharing or remote assistance between terminals, thereby improving the interface display effect.

Claims (20)

  1. 一种轨迹显示方法,应用于第一终端,所述方法包括:A track display method, applied to a first terminal, the method comprising:
    在与第二终端建立无线连接的情况下,与所述第二终端进行界面共享,并将显示的界面确定为第一共享界面;In the case of establishing a wireless connection with the second terminal, perform interface sharing with the second terminal, and determine the displayed interface as the first shared interface;
    在开启轨迹显示功能的情况下,采集针对所述第一共享界面的操作信息,并基于所述操作信息确定操作轨迹;In the case of enabling the trajectory display function, collecting operation information for the first shared interface, and determining an operation trajectory based on the operation information;
    将所述操作轨迹传输至所述第二终端,以供所述第二终端在显示的与所述第一共享界面相同的第二共享界面上显示所述操作轨迹。The operation track is transmitted to the second terminal, so that the second terminal can display the operation track on the displayed second sharing interface that is the same as the first sharing interface.
  2. 根据权利要求1所述的方法,其中,所述与所述第二终端进行界面共享,并将显示的界面确定为第一共享界面,包括:The method according to claim 1, wherein the performing interface sharing with the second terminal and determining the displayed interface as the first shared interface comprises:
    将当前显示的第一显示界面确定为所述第一共享界面;determining the currently displayed first display interface as the first shared interface;
    将所述第一共享界面对应的第一界面信息传输至所述第二终端,以供所述第二终端利用所述第一界面信息显示所述第二共享界面。The first interface information corresponding to the first sharing interface is transmitted to the second terminal, so that the second terminal uses the first interface information to display the second sharing interface.
  3. 根据权利要求1所述的方法,其中,所述与所述第二终端进行界面共享,并将显示的界面确定为第一共享界面,包括:The method according to claim 1, wherein the performing interface sharing with the second terminal and determining the displayed interface as the first shared interface comprises:
    接收所述第二终端传输的所述第二共享界面对应的第二界面信息;receiving second interface information corresponding to the second shared interface transmitted by the second terminal;
    根据所述第二界面信息进行界面显示,得到所述第一共享界面。Perform interface display according to the second interface information to obtain the first shared interface.
  4. 根据权利要求1所述的方法,其中,所述采集针对所述第一共享界面的操作信息,并基于所述操作信息确定操作轨迹,包括:The method according to claim 1, wherein the collecting operation information for the first shared interface, and determining an operation trajectory based on the operation information, comprises:
    在所述第一共享界面上覆盖透明界面;overlaying a transparent interface on the first sharing interface;
    透过所述透明界面接收针对所述第一共享界面的触控操作,并根据所述触控操作确定所述操作信息;receiving a touch operation on the first shared interface through the transparent interface, and determining the operation information according to the touch operation;
    基于所述操作信息在所述透明界面上生成所述操作轨迹。The operation trajectory is generated on the transparent interface based on the operation information.
  5. 根据权利要求4所述的方法,其中,所述操作信息包括多个触控点,所述基于所述操作信息在所述透明界面上生成所述操作轨迹,包括:The method according to claim 4, wherein the operation information includes a plurality of touch points, and the generating the operation track on the transparent interface based on the operation information comprises:
    在所述透明界面上,将所述多个触控点按照触控顺序依次连接,得到至少一个线段;On the transparent interface, connect the plurality of touch points in sequence according to the touch sequence to obtain at least one line segment;
    对所述至少一个线段增加目标特效,得到所述操作轨迹。A target special effect is added to the at least one line segment to obtain the operation trajectory.
  6. 根据权利要求1所述的方法,其中,所述在与第二终端建立无线连接的情况下,与所述第二终端进行界面共享,并将显示的界面确定为第一共享界面之前,所述方法还包括:The method according to claim 1, wherein, in the case of establishing a wireless connection with the second terminal, performing interface sharing with the second terminal, and before determining the displayed interface as the first shared interface, the Methods also include:
    向用户服务器发送控制请求;Send a control request to the user server;
    接收所述用户服务器根据所述控制请求生成的集群标识和鉴权信息;receiving the cluster identification and authentication information generated by the user server according to the control request;
    利用所述鉴权信息向实时通信服务器发起加入所述集群标识对应的集群的请求,以通过所述实时通信服务器加入所述集群,并完成与加入所述集群的所述第二终端的握手连接。Use the authentication information to initiate a request to join the cluster corresponding to the cluster identifier to the real-time communication server, so as to join the cluster through the real-time communication server and complete the handshake connection with the second terminal that joins the cluster .
  7. 一种轨迹显示方法,应用于第二终端,所述方法包括:A track display method, applied to a second terminal, the method comprising:
    在与第一终端建立无线连接的情况下,与所述第一终端进行界面共享,并将显示的界面确定为第二共享界面;In the case of establishing a wireless connection with the first terminal, perform interface sharing with the first terminal, and determine the displayed interface as the second shared interface;
    接收所述第一终端传输的第一共享界面上的操作轨迹;所述第一共享界面为所述第一终端显示的与所述第二共享界面相同的界面;receiving the operation track on the first sharing interface transmitted by the first terminal; the first sharing interface is the same interface displayed by the first terminal as the second sharing interface;
    在所述第二共享界面上显示所述操作轨迹。The operation track is displayed on the second sharing interface.
  8. 根据权利要求7所述的方法,其中,所述与所述第一终端进行界面共享,并将显示的界面确定为第二共享界面,包括:The method according to claim 7, wherein the performing interface sharing with the first terminal and determining the displayed interface as the second shared interface comprises:
    接收所述第一终端传输的所述第一共享界面对应的第一界面信息;receiving first interface information corresponding to the first shared interface transmitted by the first terminal;
    根据所述第一界面信息进行界面显示,得到所述第二共享界面。The interface is displayed according to the first interface information to obtain the second shared interface.
  9. 根据权利要求7所述的方法,其中,所述与所述第一终端进行界面共享,并将显示的界面确定为第二共享界面,包括:The method according to claim 7, wherein the performing interface sharing with the first terminal and determining the displayed interface as the second shared interface comprises:
    将当前显示的第二显示界面确定为所述第二共享界面;determining the currently displayed second display interface as the second shared interface;
    将所述第二共享界面对应的第二界面信息传输至所述第一终端,以供所述第一终端利用所述第二界面信息显示所述第一共享界面。The second interface information corresponding to the second sharing interface is transmitted to the first terminal, so that the first terminal uses the second interface information to display the first sharing interface.
  10. 根据权利要求7所述的方法,其中,所述在与第一终端建立无线连接的情况下,与所述第一终端进行界面共享,并将显示的界面确定为第二共享界面之前,所述方法还包括:The method according to claim 7, wherein, in the case of establishing a wireless connection with the first terminal, performing interface sharing with the first terminal, and before determining the displayed interface as the second shared interface, the Methods also include:
    接收用户服务器发送的集群标识和鉴权信息;Receive the cluster identification and authentication information sent by the user server;
    利用所述鉴权信息向实时通信服务器发送加入所述集群标识对应的集群的请求,以通过所述实时通信服务器加入所述集群,并完成与加入所述集群的所述第一终端的握手连接。Send a request to join the cluster corresponding to the cluster identifier to the real-time communication server by using the authentication information, so as to join the cluster through the real-time communication server and complete the handshake connection with the first terminal that joins the cluster .
  11. 一种第一终端,包括:A first terminal, comprising:
    第一共享模块,配置为在与第二终端建立无线连接的情况下,与所述第二终端进行界面共享,并将显示的界面确定为第一共享界面;a first sharing module, configured to perform interface sharing with the second terminal when a wireless connection is established with the second terminal, and determine the displayed interface as the first shared interface;
    确定模块,配置为在开启轨迹显示功能的情况下,采集针对所述第一共享界面的操作信息,并基于所述操作信息确定操作轨迹;a determining module, configured to collect operation information for the first shared interface when the trajectory display function is turned on, and determine an operation trajectory based on the operation information;
    第一通信模块,配置为将所述操作轨迹传输至所述第二终端,以供所述第二终端在显示的与所述第一共享界面相同的第二共享界面上显示所述操作轨迹。The first communication module is configured to transmit the operation track to the second terminal, so that the second terminal can display the operation track on the displayed second sharing interface that is the same as the first sharing interface.
  12. 根据权利要求11所述的第一终端,其中,The first terminal of claim 11, wherein,
    所述第一共享模块,具体配置为将当前显示的第一显示界面确定为所述第一共享界面;将所述第一共享界面对应的第一界面信息传输至所述第二终端,以供所述第二终端利用所述第一界面信息显示所述第二共享界面。The first sharing module is specifically configured to determine the currently displayed first display interface as the first sharing interface; and transmit the first interface information corresponding to the first sharing interface to the second terminal for use in the second terminal. The second terminal uses the first interface information to display the second sharing interface.
  13. 根据权利要求11所述的第一终端,其中,The first terminal of claim 11, wherein,
    所述第一共享模块,具体配置为接收所述第二终端传输的所述第二共享界面对应的第二界面信息;根据所述第二界面信息进行界面显示,得到所述第一共享界面。The first sharing module is specifically configured to receive second interface information corresponding to the second sharing interface transmitted by the second terminal; perform interface display according to the second interface information to obtain the first sharing interface.
  14. 根据权利要求11所述的第一终端,其中,The first terminal of claim 11, wherein,
    所述确定模块,具体配置为在所述第一共享界面上覆盖透明界面;透过所述透明界面接收针对所述第一共享界面的触控操作,并根据所述触控操作确定所述操作信息;基于所述操作信息在所述透明界面上生成所述操作轨迹。The determining module is specifically configured to cover a transparent interface on the first shared interface; receive a touch operation on the first shared interface through the transparent interface, and determine the operation according to the touch operation information; and generating the operation track on the transparent interface based on the operation information.
  15. 一种第二终端,包括:A second terminal, comprising:
    第二共享模块,配置为在与第一终端建立无线连接的情况下,与所述第一终端进行界面共享,并将显示的界面确定为第二共享界面;a second sharing module, configured to perform interface sharing with the first terminal when a wireless connection is established with the first terminal, and determine the displayed interface as the second shared interface;
    第二通信模块,配置为接收所述第一终端传输的第一共享界面上的操作轨迹;所述第一共享界面为所述第一终端显示的与所述第二共享界面相同的界面;a second communication module, configured to receive the operation track on the first sharing interface transmitted by the first terminal; the first sharing interface is the same interface displayed by the first terminal as the second sharing interface;
    显示模块,配置为在所述第二共享界面上显示所述操作轨迹。A display module configured to display the operation track on the second sharing interface.
  16. 根据权利要求15所述的第二终端,其中,The second terminal of claim 15, wherein,
    所述第二共享模块,具体配置为接收所述第一终端传输的所述第一共享界面对应的第一界面信息;根据所述第一界面信息进行界面显示,得到所述第二共享界面。The second sharing module is specifically configured to receive first interface information corresponding to the first sharing interface transmitted by the first terminal; perform interface display according to the first interface information to obtain the second sharing interface.
  17. 根据权利要求15所述的第二终端,其中,The second terminal of claim 15, wherein,
    所述第二共享模块,具体配置为将当前显示的第二显示界面确定为所述第二共享界面;将所述第二共享界面对应的第二界面信息传输至所述第一终端,以供所述第一终端利用所述第二界面信息显示所述第一共享界面。The second sharing module is specifically configured to determine the currently displayed second display interface as the second sharing interface; and transmit the second interface information corresponding to the second sharing interface to the first terminal for use in the first terminal. The first terminal uses the second interface information to display the first sharing interface.
  18. 一种第一终端,包括:第一处理器、第一存储器、第一显示器和第一通信总线;A first terminal, comprising: a first processor, a first memory, a first display and a first communication bus;
    所述第一通信总线,配置为实现所述第一处理器、所述第一存储器和所述第一显示器之间的通信连接;the first communication bus configured to implement a communication connection between the first processor, the first memory and the first display;
    所述第一处理器,配置为执行所述第一存储器中存储的第一轨迹显示程序,以实现权利要求1-6任一项所述的轨迹显示方法。The first processor is configured to execute the first track display program stored in the first memory, so as to implement the track display method according to any one of claims 1-6.
  19. 一种第二终端,包括:第二处理器、第二存储器、第二显示器和第二通信总线;A second terminal, comprising: a second processor, a second memory, a second display and a second communication bus;
    所述第二通信总线,配置为实现所述第二处理器、所述第二存储器和所述第二显示器之间的通信连接;the second communication bus configured to implement a communication connection between the second processor, the second memory and the second display;
    所述第二处理器,配置为执行所述第二存储器中存储的第二轨迹显示程序,以实现权利要求7-10任一项所述的轨迹显示方法。The second processor is configured to execute the second track display program stored in the second memory, so as to implement the track display method of any one of claims 7-10.
  20. 一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如权利要求1-10任一项所述的轨迹显示方法。A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the trajectory display method according to any one of claims 1-10.
PCT/CN2021/107840 2020-09-08 2021-07-22 Trajectory display method, first terminal, second terminal, and storage medium WO2022052649A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010932667.0A CN112153619A (en) 2020-09-08 2020-09-08 Track display method, first terminal, second terminal and storage medium
CN202010932667.0 2020-09-08

Publications (1)

Publication Number Publication Date
WO2022052649A1 true WO2022052649A1 (en) 2022-03-17

Family

ID=73889773

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/107840 WO2022052649A1 (en) 2020-09-08 2021-07-22 Trajectory display method, first terminal, second terminal, and storage medium

Country Status (2)

Country Link
CN (1) CN112153619A (en)
WO (1) WO2022052649A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153619A (en) * 2020-09-08 2020-12-29 Oppo广东移动通信有限公司 Track display method, first terminal, second terminal and storage medium
CN113242522B (en) * 2021-04-30 2022-07-19 中国银行股份有限公司 Remote mobile banking operation guiding method, device and system based on 5G
CN115269067A (en) * 2021-04-30 2022-11-01 中兴通讯股份有限公司 Information processing method, terminal, and computer-readable storage medium
CN114089878A (en) * 2021-10-21 2022-02-25 吕贺 Remote control method, terminal, electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120173622A1 (en) * 2011-01-04 2012-07-05 Samsung Electronics Co., Ltd. Social screen casting
CN203858621U (en) * 2013-12-16 2014-10-01 联想(北京)有限公司 Electronic device
CN105681542A (en) * 2014-11-21 2016-06-15 中兴通讯股份有限公司 Information processing method and system and terminal
CN105812547A (en) * 2014-12-30 2016-07-27 联想(北京)有限公司 Information processing method and electronic equipment
CN111338721A (en) * 2020-01-20 2020-06-26 北京大米未来科技有限公司 Online interaction method, system, electronic device and storage medium
CN112153619A (en) * 2020-09-08 2020-12-29 Oppo广东移动通信有限公司 Track display method, first terminal, second terminal and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101422808B1 (en) * 2012-09-21 2014-08-14 주식회사 팬택 Equipment and method for providing a service for sharing a drawing screen between mobile devices and mobile device for the same
CN107659416B (en) * 2017-03-27 2021-11-16 广州视源电子科技股份有限公司 Conference record sharing method and device, conference terminal and storage medium
US10884693B2 (en) * 2017-10-13 2021-01-05 Slack Technologies, Inc. Method, apparatus, and computer program product for sharing interface annotations among participating devices within a group-based communication system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120173622A1 (en) * 2011-01-04 2012-07-05 Samsung Electronics Co., Ltd. Social screen casting
CN203858621U (en) * 2013-12-16 2014-10-01 联想(北京)有限公司 Electronic device
CN105681542A (en) * 2014-11-21 2016-06-15 中兴通讯股份有限公司 Information processing method and system and terminal
CN105812547A (en) * 2014-12-30 2016-07-27 联想(北京)有限公司 Information processing method and electronic equipment
CN111338721A (en) * 2020-01-20 2020-06-26 北京大米未来科技有限公司 Online interaction method, system, electronic device and storage medium
CN112153619A (en) * 2020-09-08 2020-12-29 Oppo广东移动通信有限公司 Track display method, first terminal, second terminal and storage medium

Also Published As

Publication number Publication date
CN112153619A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
WO2022052649A1 (en) Trajectory display method, first terminal, second terminal, and storage medium
RU2636524C2 (en) Method, device and system of administration communication control between account and device
US11500530B2 (en) Simplified sharing of content among computing devices
WO2016023293A1 (en) Multi-screen input/output control method, device and system, and computer storage medium
EP4047902A1 (en) Remote assistance method, electronic device, and system
JP2017512352A (en) Device binding method, apparatus, program, and recording medium
JP2017530564A (en) Connection state prompting method and apparatus
US9723486B2 (en) Method and apparatus for accessing network
US20220312550A1 (en) Method for accessing network by network node, and electronic equipment
US20230199873A1 (en) Information interaction method and apparatus, and electronic device
WO2015131535A1 (en) User terminal grouping method, conference server and conference system
EP4099690A1 (en) Enhanced video call method and system, and electronic device
CN111368232A (en) Password sharing reflux method and device, electronic equipment and storage medium
WO2021254168A1 (en) Conference control method and apparatus, readable medium and electronic device
JP2021528706A (en) File transmission methods, devices, and computer-readable storage media
JP2022000760A (en) Method, system, and media for paring devices to complete tasks with application requests
TW201335867A (en) Validation method and device for business object
TW201730739A (en) Information interaction method and device
WO2015062506A1 (en) Multi-icon selection method and terminal
RU2609090C2 (en) Systems and methods for image data sharing
US9774571B2 (en) Automatic provisioning of meeting room device
US10091635B2 (en) Method and apparatus for communication using IP address exchanged via NFC
CN114760321B (en) Device data synchronization method and device, terminal device and storage medium
WO2020220782A1 (en) Information sharing method and apparatus, and device and medium
WO2016095449A1 (en) Virtual desktop display method, terminal and 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: 21865705

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21865705

Country of ref document: EP

Kind code of ref document: A1