WO2022142492A1 - Screen sharing method for mobile terminals, mobile terminal, and storage medium - Google Patents

Screen sharing method for mobile terminals, mobile terminal, and storage medium Download PDF

Info

Publication number
WO2022142492A1
WO2022142492A1 PCT/CN2021/119143 CN2021119143W WO2022142492A1 WO 2022142492 A1 WO2022142492 A1 WO 2022142492A1 CN 2021119143 W CN2021119143 W CN 2021119143W WO 2022142492 A1 WO2022142492 A1 WO 2022142492A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
screen sharing
screen
session
sip invite
Prior art date
Application number
PCT/CN2021/119143
Other languages
French (fr)
Chinese (zh)
Inventor
肖其虎
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2022142492A1 publication Critical patent/WO2022142492A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1083In-session procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/24Systems for the transmission of television signals using pulse code modulation

Definitions

  • the embodiments of the present disclosure relate to the field of communications, and in particular, to a screen sharing method for a mobile terminal, a mobile terminal, and a storage medium.
  • the screen sharing method in the prior art needs to download an additional program and register an additional account to realize the screen sharing, and the efficiency of the screen sharing is low.
  • the embodiments of the present disclosure provide a screen sharing method for a mobile terminal, a mobile terminal, and a storage medium, so as to at least solve the problem of low screen sharing efficiency of the mobile terminal in the related art.
  • a screen sharing method for a mobile terminal including: the first mobile terminal defines a session name field of session header information in a first SIP INVITE message as a specific value; the first mobile terminal described above Send a screen sharing request to the second mobile terminal, wherein the screen sharing request includes the mobile phone number on the second mobile terminal, the screen sharing request also includes the first SIP INVITE message, and the second mobile terminal receives the
  • the above-mentioned first SIP INVITE message in the above-mentioned screen-sharing request is parsed, and the above-mentioned session name field of the above-mentioned session header information of the above-mentioned first SIP INVITE message is obtained, and the above-mentioned session name field is the above-mentioned specific value.
  • the first mobile terminal records the interface content of the first mobile terminal, and encodes the recorded content into a video stream; the first mobile terminal sends the video stream to the second mobile terminal to Do screen sharing.
  • a screen sharing method for a mobile terminal including: a second mobile terminal receiving a screen sharing request from a first mobile terminal, wherein the screen sharing request includes a screen sharing request on the second mobile terminal.
  • mobile phone number the above-mentioned screen sharing request also includes the first SIP INVITE message;
  • the above-mentioned second mobile terminal parses the above-mentioned first SIP INVITE message, and the session name field of the session header information in the above-mentioned first SIP INVITE message is a specific value
  • prompt there is an invitation for remote desktop sharing and in the case that the above-mentioned session name field is empty, it is processed according to the default RCS video sharing service flow;
  • the above-mentioned second mobile terminal sends an instruction to receive screen sharing to the above-mentioned first mobile terminal or an instruction to reject screen sharing; when the second mobile terminal sends the above-mentioned instruction to receive screen sharing to the first mobile terminal, the second mobile terminal
  • a first mobile terminal comprising: a defining unit configured to define a session name field of session header information in a first SIP INVITE message as a specific value; a first sending unit, Set to send a screen sharing request to the second mobile terminal, wherein the above-mentioned screen sharing request includes the mobile phone number on the above-mentioned second mobile terminal, the above-mentioned screen sharing request also includes the above-mentioned first SIP INVITE message, and the above-mentioned second mobile terminal is in the In the case of receiving the above-mentioned screen sharing request, parse the above-mentioned first SIP INVITE message in the above-mentioned screen sharing request, and obtain the above-mentioned session name field of the above-mentioned session header information of the above-mentioned first SIP INVITE message, where the above-mentioned session name field is the above-mentioned session name field.
  • the recording unit is set to receive the above-mentioned No.
  • the second sending unit is set so that the first mobile terminal sends the video stream to the video stream. sent to the above-mentioned second mobile terminal for screen sharing.
  • a second mobile terminal comprising: a first receiving unit configured to receive a screen sharing request from the first mobile terminal, wherein the screen sharing request includes the second mobile terminal
  • the mobile phone number on the above-mentioned screen sharing request also includes the first SIP INVITE message
  • the parsing unit is set to parse the above-mentioned first SIP INVITE message, and the session name field of the session header information in the above-mentioned first SIP INVITE message is a specific In the case of value, it is prompted that there is an invitation for remote desktop sharing, and in the case that the above-mentioned session name field is empty, it is processed according to the default RCS video sharing business process; an instruction to instruct or reject screen sharing;
  • the second receiving unit is configured to receive the video stream sent by the first mobile terminal when the second mobile terminal sends the instruction to receive the screen sharing to the first mobile terminal, to Screen sharing is performed, wherein the video stream is obtained by recording the interface content of the first mobile terminal by the
  • a computer-readable storage medium is also provided, where a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute any one of the above method embodiments when running steps in .
  • an electronic device including a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to execute any of the above method embodiments steps in .
  • FIG. 1 is a block diagram of a hardware structure of a mobile terminal according to a screen sharing method for a mobile terminal according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of a screen sharing method of a mobile terminal according to an embodiment of the present disclosure
  • FIG. 3 is a flowchart of another screen sharing method of a mobile terminal according to an embodiment of the present disclosure
  • FIG. 4 is a flowchart of still another screen sharing method of a mobile terminal according to an embodiment of the present disclosure
  • FIG. 5 is an interactive schematic diagram of a screen sharing method of a mobile terminal according to an embodiment of the present disclosure
  • FIG. 6 is a schematic structural diagram of a first mobile terminal according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of a second mobile terminal according to an embodiment of the present disclosure.
  • FIG. 1 is a block diagram of a hardware structure of a mobile terminal according to a screen sharing method for a mobile terminal according to an embodiment of the present disclosure.
  • the mobile terminal may include one or more (only one is shown in FIG.
  • processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 configured to store data, wherein the above-mentioned mobile terminal may further include a transmission device 106 and an input/output device 108 configured as a communication function.
  • a processing device such as a microprocessor MCU or a programmable logic device FPGA
  • a memory 104 configured to store data
  • the above-mentioned mobile terminal may further include a transmission device 106 and an input/output device 108 configured as a communication function.
  • FIG. 1 is only a schematic diagram, which does not limit the structure of the above-mentioned mobile terminal.
  • the mobile terminal may also include more or fewer components than those shown in FIG. 1 , or have a different configuration than that shown in FIG. 1 .
  • the memory 104 may be configured to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the screen sharing method of the mobile terminal in the embodiment of the present disclosure.
  • the processor 102 runs the computer programs stored in the memory 104 , so as to perform various functional applications and data processing, that is, to implement the above method.
  • Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory 104 may further include memory located remotely from the processor 102, and these remote memories may be connected to the mobile terminal through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • Transmission means 106 are arranged to receive or transmit data via a network.
  • the specific example of the above-mentioned network may include a wireless network provided by a communication provider of the mobile terminal.
  • the transmission device 106 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet.
  • the transmission device 106 may be a radio frequency (Radio Frequency, RF for short) module, which is configured to communicate with the Internet in a wireless manner.
  • RF Radio Frequency
  • FIG. 2 is a flowchart of a screen sharing method for a mobile terminal according to an embodiment of the present disclosure. As shown in FIG. 2 , the process includes the following steps:
  • the first mobile terminal defines the session name field of the session header information in the first SIP INVITE message as a specific value
  • the first mobile terminal sends a screen sharing request to the second mobile terminal, wherein the screen sharing request includes the mobile phone number of the second mobile terminal, and the screen sharing request also includes the first SIP INVITE message, in the case of receiving the screen sharing request, the second mobile terminal parses the first SIP INVITE message in the screen sharing request, and obtains the meeting of the first SIP INVITE message.
  • the session name field of the session header information in the case that the session name field is the specific value, prompts an invitation for remote desktop sharing, and in the case that the session name field is empty, the default RCS video sharing is performed. business process processing;
  • the first mobile terminal in the case that the first mobile terminal receives the instruction of receiving screen sharing returned by the second mobile terminal, the first mobile terminal records the interface content of the first mobile terminal, and records the recorded content encoded as a video stream;
  • the first mobile terminal sends the video stream to the second mobile terminal for screen sharing.
  • the above-mentioned method for screen sharing of mobile terminals may be applied, but not limited to, in the process of sharing screens between mobile terminals.
  • the first mobile terminal may be a terminal that shares a screen
  • the second mobile terminal is a terminal that displays the screen of the first mobile terminal. If the first mobile terminal initiates a screen sharing request to the second mobile terminal, the screen sharing request may be directly sent to the second mobile terminal through the mobile phone number of the second mobile terminal. If the second mobile terminal agrees to perform screen sharing, the first mobile terminal records the interface content of the first mobile terminal and shares it with the second mobile terminal.
  • the second mobile terminal can display the interface content shared by the first mobile terminal, and operate the interface content, then the interface of the first mobile terminal performs corresponding processing according to the operation of the second mobile terminal, so as to realize the The screen is shared to the second mobile terminal.
  • the first mobile terminal when the screen sharing of the mobile terminal is performed, the first mobile terminal can directly initiate a screen sharing request to the second mobile terminal through the mobile phone number of the second mobile terminal, and use the first SIP INVITE message to carry this
  • the secondary request is the identifier of the screen sharing request, thereby realizing the effect of rapid screen sharing. Therefore, the problem of low screen sharing efficiency of the mobile terminal can be solved, and the effect of improving the screen sharing efficiency of the mobile terminal can be achieved.
  • the method further includes:
  • the first mobile terminal In the case of receiving the pause instruction sent by the second mobile terminal, the first mobile terminal pauses recording the interface content, or the first mobile terminal pauses sending the video to the second mobile terminal flow.
  • the method further includes:
  • the first mobile terminal receives the SIP UPDATE message sent by the second mobile terminal, wherein after the second mobile terminal performs a touch operation on the screen interface of the first mobile terminal, the touch operation is performed. and the touch position of the touch operation is filled into a specific field of the SIP UPDATE message;
  • the first mobile terminal parses the SIP UPDATE message to acquire the touch operation and the touch position of the touch operation.
  • the method further includes:
  • the first mobile terminal receives the session message sent by the second mobile terminal, and in the case of parsing that the session message contains a specific field, obtains the record of the second mobile terminal in the specific field.
  • the touch operation performed on the screen interface of the first mobile terminal and the touch position of the touch operation during the screen sharing process;
  • the first mobile terminal forwards the touch operation and the touch position of the touch operation to the screen sharing application.
  • the method further includes:
  • the first mobile terminal receives the second sip invite message sent by the second mobile terminal;
  • the first mobile terminal parses the second sip invite message, and obtains the touch operation and the touch control performed by the second mobile terminal on the screen interface of the first mobile terminal during the screen sharing process The touch position of the operation.
  • a screen sharing method of a mobile terminal includes:
  • the second mobile terminal receives a screen sharing request from the first mobile terminal, wherein the screen sharing request includes the mobile phone number on the second mobile terminal, and the screen sharing request further includes a first SIP INVITE message ;
  • the second mobile terminal parses the first SIP INVITE message, and in the case that the session name field of the session header information in the first SIP INVITE message is a specific value, prompts an invitation for remote desktop sharing, and When the session name field is empty, it is processed according to the default RCS video sharing business process;
  • the second mobile terminal sends to the first mobile terminal an indication of receiving screen sharing or an indication of rejecting screen sharing;
  • the second mobile terminal in the case that the second mobile terminal sends the instruction for receiving screen sharing to the first mobile terminal, the second mobile terminal receives the video stream sent by the first mobile terminal to perform screen sharing , wherein the video stream is obtained by recording the interface content of the first mobile terminal by the first mobile terminal and encoding the recorded content.
  • the method further includes:
  • the touch operation and the touch position of the touch operation are filled in a specific field of the SIP UPDATE message;
  • the second mobile terminal sends a SIP UPDATE message to the first mobile terminal, so that the first mobile terminal parses the SIP UPDATE message to obtain the touch operation and the touch position of the touch operation.
  • the method further includes:
  • the second mobile terminal establishes an instant communication session with the first mobile terminal
  • the second mobile terminal sends a session message to the first mobile terminal, wherein the session message includes a specific field, and the specific field records the touches performed by the second mobile terminal on the screen interface of the first mobile terminal during the screen sharing process. control operation and the touch position of the touch operation.
  • the method further includes:
  • the second mobile terminal sends a second sip invite message to the first mobile terminal, where the second sip invite message includes touch operations and touches performed by the second mobile terminal on the screen interface of the first mobile terminal during the screen sharing process.
  • the touch position of the control operation is not limited to:
  • the method further includes:
  • the second mobile terminal sends a pause instruction to the first mobile terminal, so that the first mobile terminal pauses recording the interface content, or pauses sending the recording content to the second mobile terminal.
  • the first mobile terminal and the second mobile terminal in the embodiments of the present application may be mobile communication terminals, and may be mobile terminals supporting a rich media communication (Rich Communication Suite, RCS for short) service.
  • RCS Rich media communication
  • the relevant standard information of RCS is GSMA RCC.71 RCC.07
  • the first mobile terminal and the second mobile terminal may be mobile phones.
  • mobile phone A can send a request for screen sharing to mobile phone B, and mobile phone B responds to mobile phone A to receive the sharing instruction, then mobile phone A can send the shared content to mobile phone B for display. Click on the screen content of the mobile phone A displayed on the screen, so as to control the screen content of the mobile phone A.
  • the software part of this application is divided into 6 modules.
  • the modules may include: m1: desktop sharing service initiator control module.
  • M2 Desktop screen recording module.
  • m3 Video encoding module.
  • m4 RCS protocol parsing module.
  • m5 Video decoding module.
  • m6 desktop sharing service receiver control module.
  • m1 desktop sharing service initiator control module
  • this module is the user portal for initiating remote desktop sharing, and has two functions: providing an operation interface for user operations, and responding to user operations from remote mobile phones.
  • m1-1 provides the user with an input phone number and initiates the process behind remote desktop sharing.
  • an interface can be provided for the user to select a person in the address book, or enter a phone number, and then choose to initiate remote desktop sharing, or after a remote desktop sharing application is started, choose to share his desktop with the remote mobile phone .
  • m1-2 analyzes and processes the data information returned by the remote user operation. For example, when the user of mobile phone B clicks on the screen, mobile phone B will send a message back, and mobile phone A analyzes and processes the message and responds to the click.
  • the desktop screen recording module in this application is responsible for intercepting the screen interface of mobile phone A, and transmits the data of the content displayed on the screen to m3 for video encoding.
  • Video encoding module responsible for encoding the data of the content displayed on the screen into a video stream according to a specific format, such as a video encoded in H.264 format.
  • the RCS service video sharing service uses the Session Initiation Protocol (SIP for short) to establish a session with the B mobile phone.
  • SIP Session Initiation Protocol
  • the relevant standard information of SIP is: IETF RFC 3261.
  • a mobile phone will pass some parameters of the video sharing through the SIP invite message, and will update the session information through the SIP update message.
  • the remote desktop sharing is realized by analyzing these extended fields. For example, a specific character is used to inform that the request is a request to establish screen sharing.
  • m5 video decoding module
  • mobile phone B receives the video stream sent by mobile phone A, decodes it and displays it on the screen.
  • m6 desktop sharing service receiver control module, this module is responsible for receiving the interface display and user operation screen (such as touching the menu on the screen interface) event, and returning the event to A mobile phone.
  • steps S401 to S415 of the flowchart 4 The specific steps may be as shown in steps S401 to S415 of the flowchart 4 .
  • S401 User A operates the mobile phone of A, and selects the number of B as the target to start the process of the remote desktop. You can directly input B's phone number, or you can find the contact from the address book and call records, and then automatically extract B's phone number as the target object.
  • a clear desktop sharing operation menu is provided on the interface for users to choose and start the process of remote desktop.
  • S402 A mobile phone sends an RCS video sharing service session invitation message to B mobile phone.
  • the session name field of the session header information in the SIP INVITE is defined as a specific value, which is used to indicate that it is a special RCS video sharing service—remote desktop sharing business.
  • the session name field of the SIP INVITE message is not processed and is set to be empty by default, that is:
  • S406 The user of the mobile phone B touches the screen and accepts the invitation, and the mobile phone B replies with an answering message to the mobile phone A.
  • the frame rate of the screen recording can be set by the user according to the content shared on the desktop to ensure a better user experience. For example, if you want to provide the desktop of mobile phone A to mobile phone B to control mobile phone A, then the interface of mobile phone A will not change too fast, you can record and encode the screen according to the frame rate of 15fps; and if it is a shared game, according to the game video frame rate for screen recording and encoding.
  • the resolution parameter of video coding adopts the parameter determined in the session negotiation between A mobile phone and B mobile phone.
  • Mobile phone B receives the video sent by mobile phone A, and displays it on the screen according to the interface design of remote desktop sharing. Further,
  • mobile phone A sends the screen recording of its own mobile phone, that is, the full-screen image displayed on the screen of mobile phone A, although it is a video stream compiled according to the resolution negotiated in the session, and sent to mobile phone B Still need to make a suitable display area according to B mobile phone screen.
  • the mobile phone B In S408-2, the mobile phone B must be able to completely display the desktop image of the mobile phone A.
  • mobile phone A sends the image of its own screen to mobile phone B for display in real time.
  • the user operates on the mobile phone B, and in the step of S408, the screen of the mobile phone B displays the full screen interface on the screen of the mobile phone A.
  • the program will judge the location area of the contact, and do different processing according to the area.
  • mobile phone A sends a full-screen image to mobile phone B, and mobile phone B displays the screen shared by mobile phone A. Click to form a contact (solid dot) on the screen shared by A's mobile phone on B's mobile phone, and the position of the point needs to be transmitted to A's mobile phone.
  • S410 if the touch point is within the full screen area of the mobile phone A, it is interpreted as an operation on the mobile phone A.
  • S411-1 records the position coordinates of the touch point on the screen, and processes and packages the touch event of the user to A mobile phone.
  • the parameter information of the touch event includes the event type and the position coordinates.
  • the position coordinates of the touch point on the screen of mobile phone B should be combined with the position area of the full-screen image of mobile phone A on the screen of mobile phone B, and further converted into the relative position ratio of the touch point on the full-screen image of mobile phone A.
  • touch events of the user on the screen include click, double-click, long-press, drag, etc., which are exactly the same as the general touch event definitions of Android mobile phones/Iphone mobile phones/winphone mobile phones.
  • the mobile phone B sends the user operation event to the mobile phone A. Further, there are multiple ways to send a message back to A:
  • the user operation event is filled into the specific field of the SIP UPDATE message, and the session update cancellation request of the RCS service is sent to the A mobile phone.
  • a or B mobile phone is allowed to send a session update message.
  • the answering party can refuse the session update.
  • the receiving party refuses the session update, the current session will not be affected in any way.
  • two extended attributes are defined in the media information of the UPDATE message. The former indicates the type of a remote user operation event, and the latter indicates the coordinates of the touch point. Examples are as follows:
  • RCS service multiple sessions are allowed to be established between users at the same time, and a real-time chat session is established while the video sharing service is established, so that the wrapped user operation events can be sent by using the chat session.
  • A receives the chat information data, it parses out the user operation time for remote desktop sharing according to the specific field information, and then forwards the event to the remote sharing application for processing.
  • the mobile phone A receives the SIP UPDATE message, and needs to parse the description information of the message.
  • the two pieces of information newly added in S8 are parsed, it knows that this is a user's remote click operation on the mobile phone A, and the user operates The event information is saved.
  • the mobile phone A further parses the user operation event, replaces the corresponding coordinates transmitted by the SIP UPDATE message with the real coordinates on the current screen, and responds to this event according to the current application interface.
  • a mobile phone sends a response message of the session update request to B mobile phone, and rejects the session update request initiated by B mobile phone.
  • the response message of 48x can be selected. This type of message will not affect the current session, so it will not initiate a session update, nor will it have any impact on the current session.
  • the mobile phone A sends its desktop to the mobile phone B, and the user's operation on the mobile phone B can respond on the mobile phone A.
  • the advantage of the above embodiment is that users can directly initiate a desktop sharing service based on mobile phone numbers, which greatly reduces the threshold for remote desktops between users. Between ordinary users, it can be initiated and used at any time.
  • the present application is based on the framework of the RCS service, the RCS is a service to be supported by the 5G terminal by default, and the mobile terminal must support its basic protocol by default. Therefore, the technical difficulty of complex mobility management can be omitted, and it is easy to implement on the terminal; at the same time, the method can help operators increase new business scenarios and increase revenue without the need to transform the network.
  • a first mobile terminal is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementations, and what has been described will not be repeated.
  • the term "module” may be a combination of software and/or hardware that implements a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
  • FIG. 6 is a first mobile terminal according to an embodiment of the present application, as shown in FIG. 6 , including:
  • a definition unit 602 is set to define the session name field of the session header information in the first SIP INVITE message as a specific value
  • the first sending unit 604 is configured to send a screen sharing request to the second mobile terminal, wherein the screen sharing request includes the mobile phone number on the second mobile terminal, and the screen sharing request also includes the first SIP INVITE message, in the case of receiving the screen sharing request, the second mobile terminal parses the first SIP INVITE message in the screen sharing request, and obtains all the information of the first SIP INVITE message.
  • the session name field of the session header information in the case that the session name field is the specific value, prompts an invitation to share the remote desktop, in the case that the session name field is empty, according to the default RCS Video sharing business process processing;
  • the recording unit 606 is configured to record the interface content of the first mobile terminal when the first mobile terminal receives an instruction to receive screen sharing returned by the second mobile terminal, and encode the recorded content as video stream;
  • the second sending unit 608 is configured for the first mobile terminal to send the video stream to the second mobile terminal for screen sharing.
  • the first mobile terminal further includes:
  • a processing unit configured to, in the process of screen sharing, in the case of receiving a pause instruction sent by the second mobile terminal, the first mobile terminal to pause the recording of the interface content, or the first mobile terminal Suspend sending the video stream to the second mobile terminal.
  • the first mobile terminal further includes:
  • the first receiving unit is configured to receive a SIP UPDATE message sent by the second mobile terminal during the screen sharing process, wherein the second mobile terminal is performing touch on the screen interface of the first mobile terminal. After the control operation, fill the touch operation and the touch position of the touch operation into a specific field of the SIP UPDATE message;
  • the first parsing unit is configured to parse the SIP UPDATE message to obtain the touch operation and the touch position of the touch operation.
  • the first mobile terminal further includes:
  • an establishment unit configured to establish an instant communication session with the second mobile terminal during the screen sharing process
  • the second receiving unit is configured to receive the session message sent by the second mobile terminal, and obtain the second mobile terminal recorded in the specific field when it is parsed that the session message contains a specific field a touch operation performed on the screen interface of the first mobile terminal and a touch position of the touch operation during the screen sharing;
  • a forwarding unit configured to forward the touch operation and the touch position of the touch operation to the screen sharing application.
  • the first mobile terminal further includes:
  • the third receiving unit is configured to receive the second sip invite message sent by the second mobile terminal during the screen sharing process
  • a second parsing unit configured to parse the second sip invite message, to obtain the touch operation and the touch operation performed by the second mobile terminal on the screen interface of the first mobile terminal during the screen sharing process.
  • the touch position of the control operation is configured to parse the second sip invite message, to obtain the touch operation and the touch operation performed by the second mobile terminal on the screen interface of the first mobile terminal during the screen sharing process.
  • FIG. 7 is another first mobile terminal according to an embodiment of the present application, as shown in FIG. 7 , including:
  • the first receiving unit 702 is configured to receive a screen sharing request from a first mobile terminal, wherein the screen sharing request includes a mobile phone number on the second mobile terminal, and the screen sharing request also includes a first SIP INVITE message;
  • the parsing unit 704 is configured to parse the first SIP INVITE message, and in the case that the session name field of the session header information in the first SIP INVITE message is a specific value, prompting an invitation for remote desktop sharing, and in the If the session name field is empty, follow the default RCS video sharing business process;
  • a sending unit 706, configured to send an indication of receiving screen sharing or an indication of rejecting screen sharing to the first mobile terminal
  • the second receiving unit 708 is configured to receive the video stream sent by the first mobile terminal to perform screen sharing when the second mobile terminal sends the instruction for receiving screen sharing to the first mobile terminal , wherein the video stream is obtained by recording the interface content of the first mobile terminal by the first mobile terminal and encoding the recorded content.
  • the second mobile terminal further includes:
  • the filling unit is configured to fill the touch operation and the touch position of the touch operation into the SIP UPDATE message after the second mobile terminal performs the touch operation on the screen interface of the first mobile terminal during the screen sharing process. in a specific field;
  • the second sending unit is configured to send the SIP UPDATE message to the first mobile terminal, so that the first mobile terminal parses the SIP UPDATE message to obtain the touch operation and the touch position of the touch operation.
  • the second mobile terminal further includes:
  • a establishing unit configured to establish an instant communication session with the first mobile terminal during the screen sharing process
  • the third sending unit is configured to send a session message to the first mobile terminal, wherein the session message includes a specific field, and the specific field records the screen interface of the second mobile terminal to the first mobile terminal during the screen sharing process The touch operation performed and the touch position of the touch operation.
  • the second mobile terminal further includes:
  • the fourth sending unit is configured to send a second sip invite message to the first mobile terminal in the process of screen sharing, wherein the second sip invite message includes the second mobile terminal in the process of screen sharing to the first mobile terminal.
  • the touch operation performed on the screen interface of the terminal and the touch position of the touch operation.
  • the second mobile terminal further includes:
  • the fifth sending unit is configured to, during the screen sharing process, the second mobile terminal sends a pause instruction to the first mobile terminal, so that the first mobile terminal suspends recording the interface content, or suspends sending the recording content to the second mobile terminal.
  • Embodiments of the present disclosure also provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute the steps in any one of the above method embodiments when running.
  • the above-mentioned computer-readable storage medium may include, but is not limited to, a USB flash drive, a read-only memory (Read-Only Memory, referred to as ROM for short), and a random access memory (Random Access Memory, referred to as RAM for short) , mobile hard disk, magnetic disk or CD-ROM and other media that can store computer programs.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • An embodiment of the present disclosure also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
  • the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
  • modules or steps of the present disclosure can be implemented by a general-purpose computing device, and they can be centralized on a single computing device or distributed in a network composed of multiple computing devices
  • they can be implemented in program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, can be performed in a different order than shown here.
  • the described steps, or they are respectively made into individual integrated circuit modules, or a plurality of modules or steps in them are made into a single integrated circuit module to realize.
  • the present disclosure is not limited to any particular combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

Embodiments of the present disclosure provides a screen sharing method for mobile terminals. The method comprises: a first mobile terminal defines a session name field of session header information in a first SIP INVITE message as a specific value; the first mobile terminal sends a screen sharing request to a second mobile terminal; when the first mobile terminal receives an indication of receiving screen sharing returned from the second mobile terminal, the first mobile terminal records interface content of the first mobile terminal, and encodes the recorded content into a video stream; and the first mobile terminal sends the video stream to the second mobile terminal to perform screen sharing.

Description

移动终端的屏幕共享方法和移动终端及存储介质Screen sharing method of mobile terminal, mobile terminal and storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本公开基于2020年12月31日提交的发明名称为“移动终端的屏幕共享方法和移动终端及存储介质”的中国专利申请CN202011635623.8,并且要求该专利申请的优先权,通过引用将其所公开的内容全部并入本公开。The present disclosure is based on Chinese patent application CN202011635623.8 filed on December 31, 2020, entitled "Screen Sharing Method for Mobile Terminal and Mobile Terminal and Storage Medium", and claims the priority of this patent application, all of which are incorporated by reference. The disclosure is fully incorporated into this disclosure.
技术领域technical field
本公开实施例涉及通信领域,具体而言,涉及一种移动终端的屏幕共享方法和移动终端及存储介质。The embodiments of the present disclosure relate to the field of communications, and in particular, to a screen sharing method for a mobile terminal, a mobile terminal, and a storage medium.
背景技术Background technique
现有技术中,在实现移动终端屏幕共享的过程中,通常需要两个终端上安装相同的第三方应用程序,然后注册账号,并通过账号的查找等进行移动终端的屏幕共享。In the prior art, in the process of realizing screen sharing of mobile terminals, it is usually necessary to install the same third-party application program on two terminals, then register an account, and perform screen sharing of the mobile terminal through account search and the like.
然而,现有技术中的屏幕共享的手段需要下载额外的程序,注册额外的账号来实现屏幕共享,进行屏幕共享的效率低。However, the screen sharing method in the prior art needs to download an additional program and register an additional account to realize the screen sharing, and the efficiency of the screen sharing is low.
发明内容SUMMARY OF THE INVENTION
本公开实施例提供了一种移动终端的屏幕共享方法和移动终端及存储介质,以至少解决相关技术中移动终端屏幕共享效率低的问题。The embodiments of the present disclosure provide a screen sharing method for a mobile terminal, a mobile terminal, and a storage medium, so as to at least solve the problem of low screen sharing efficiency of the mobile terminal in the related art.
根据本公开的一个实施例,提供了一种移动终端的屏幕共享方法,包括:第一移动终端将第一SIP INVITE消息中的会话头信息的会话名称字段定义为特定值;上述第一移动终端向第二移动终端发送屏幕共享请求,其中,上述屏幕共享请求中包括上述第二移动终端上的手机号,上述屏幕共享请求中还包括上述第一SIP INVITE消息,上述第二移动终端在接收到上述屏幕共享请求的情况下,解析上述屏幕共享请求中的上述第一SIP INVITE消息,得到上述上述第一SIP INVITE消息的上述会话头信息的上述会话名称字段,在上述会话名称字段为上述特定值的情况下,提示有远程桌面共享的邀请,在上述会话名称字段为空的情况下,按照默认的RCS视频共享业务流程处理;在上述第一移动终端接收到上述第二移动终端返回的接收屏幕共享的指示的情况下,上述第一移动终端录制上述第一移动终端的界面内容,并将录制的内容编码为视频流;上述第一移动终端将上述视频流发送给上述第二移动终端,以进行屏幕共享。According to an embodiment of the present disclosure, a screen sharing method for a mobile terminal is provided, including: the first mobile terminal defines a session name field of session header information in a first SIP INVITE message as a specific value; the first mobile terminal described above Send a screen sharing request to the second mobile terminal, wherein the screen sharing request includes the mobile phone number on the second mobile terminal, the screen sharing request also includes the first SIP INVITE message, and the second mobile terminal receives the In the case of the above-mentioned screen sharing request, the above-mentioned first SIP INVITE message in the above-mentioned screen-sharing request is parsed, and the above-mentioned session name field of the above-mentioned session header information of the above-mentioned first SIP INVITE message is obtained, and the above-mentioned session name field is the above-mentioned specific value. Under the circumstance, it is prompted that there is an invitation for remote desktop sharing, and in the case that the above-mentioned session name field is empty, it is processed according to the default RCS video sharing business process; when the above-mentioned first mobile terminal receives the receiving screen returned by the above-mentioned second mobile terminal In the case of sharing the instruction, the first mobile terminal records the interface content of the first mobile terminal, and encodes the recorded content into a video stream; the first mobile terminal sends the video stream to the second mobile terminal to Do screen sharing.
根据本公开的另一个实施例,提供了一种移动终端的屏幕共享方法,包括:第二移动终端接收第一移动终端的屏幕共享请求,其中,上述屏幕共享请求中包括上述第二移动终端上的手机号,上述屏幕共享请求中还包括有第一SIP INVITE消息;上述第二移动终端解析上述第一SIP INVITE消息,在上述第一SIP INVITE消息中的会话头信息的会话名称字段为特定值的情况下,提示有远程桌面共享的邀请,在上述会话名称字段为空的情况下,按照默认的RCS视频共享业务流程处理;上述第二移动终端向上述第一移动终端发送接收屏幕共享的指示或拒绝屏幕共享的指示;在上述第二移动终端向上述第一移动终端发送上述接收屏幕共享的指示的情况下,上述第二移动终端接收上述第一移动终端发送的视频流,以进行屏幕共享, 其中,上述视频流通过上述第一移动终端录制上述第一移动终端的界面内容并对录制的内容进行编码得到。According to another embodiment of the present disclosure, there is provided a screen sharing method for a mobile terminal, including: a second mobile terminal receiving a screen sharing request from a first mobile terminal, wherein the screen sharing request includes a screen sharing request on the second mobile terminal. mobile phone number, the above-mentioned screen sharing request also includes the first SIP INVITE message; the above-mentioned second mobile terminal parses the above-mentioned first SIP INVITE message, and the session name field of the session header information in the above-mentioned first SIP INVITE message is a specific value Under the circumstance, prompt there is an invitation for remote desktop sharing, and in the case that the above-mentioned session name field is empty, it is processed according to the default RCS video sharing service flow; the above-mentioned second mobile terminal sends an instruction to receive screen sharing to the above-mentioned first mobile terminal or an instruction to reject screen sharing; when the second mobile terminal sends the above-mentioned instruction to receive screen sharing to the first mobile terminal, the second mobile terminal receives the video stream sent by the first mobile terminal to perform screen sharing , wherein the video stream is obtained by recording the interface content of the first mobile terminal by the first mobile terminal and encoding the recorded content.
根据本公开的又一个实施例,提供了一种第一移动终端,包括:定义单元,设置为将第一SIP INVITE消息中的会话头信息的会话名称字段定义为特定值;第一发送单元,设置为向第二移动终端发送屏幕共享请求,其中,上述屏幕共享请求中包括上述第二移动终端上的手机号,上述屏幕共享请求中还包括上述第一SIP INVITE消息,上述第二移动终端在接收到上述屏幕共享请求的情况下,解析上述屏幕共享请求中的上述第一SIP INVITE消息,得到上述上述第一SIP INVITE消息的上述会话头信息的上述会话名称字段,在上述会话名称字段为上述特定值的情况下,提示有远程桌面共享的邀请,在上述会话名称字段为空的情况下,按照默认的RCS视频共享业务流程处理;录制单元,设置为在上述第一移动终端接收到上述第二移动终端返回的接收屏幕共享的指示的情况下,录制上述第一移动终端的界面内容,并将录制的内容编码为视频流;第二发送单元,设置为上述第一移动终端将上述视频流发送给上述第二移动终端,以进行屏幕共享。According to yet another embodiment of the present disclosure, a first mobile terminal is provided, comprising: a defining unit configured to define a session name field of session header information in a first SIP INVITE message as a specific value; a first sending unit, Set to send a screen sharing request to the second mobile terminal, wherein the above-mentioned screen sharing request includes the mobile phone number on the above-mentioned second mobile terminal, the above-mentioned screen sharing request also includes the above-mentioned first SIP INVITE message, and the above-mentioned second mobile terminal is in the In the case of receiving the above-mentioned screen sharing request, parse the above-mentioned first SIP INVITE message in the above-mentioned screen sharing request, and obtain the above-mentioned session name field of the above-mentioned session header information of the above-mentioned first SIP INVITE message, where the above-mentioned session name field is the above-mentioned session name field. In the case of a specific value, it is prompted that there is an invitation for remote desktop sharing, and when the above-mentioned session name field is empty, it is processed according to the default RCS video sharing business process; the recording unit is set to receive the above-mentioned No. In the case of receiving the screen sharing instruction returned by the second mobile terminal, record the interface content of the first mobile terminal, and encode the recorded content into a video stream; the second sending unit is set so that the first mobile terminal sends the video stream to the video stream. sent to the above-mentioned second mobile terminal for screen sharing.
根据本公开的又一个实施例,提供了一种第二移动终端,包括:第一接收单元,设置为接收第一移动终端的屏幕共享请求,其中,上述屏幕共享请求中包括上述第二移动终端上的手机号,上述屏幕共享请求中还包括有第一SIP INVITE消息;解析单元,设置为解析上述第一SIP INVITE消息,在上述第一SIP INVITE消息中的会话头信息的会话名称字段为特定值的情况下,提示有远程桌面共享的邀请,在上述会话名称字段为空的情况下,按照默认的RCS视频共享业务流程处理;发送单元,设置为向上述第一移动终端发送接收屏幕共享的指示或拒绝屏幕共享的指示;第二接收单元,设置为在上述第二移动终端向上述第一移动终端发送上述接收屏幕共享的指示的情况下,接收上述第一移动终端发送的视频流,以进行屏幕共享,其中,上述视频流通过上述第一移动终端录制上述第一移动终端的界面内容并对录制的内容进行编码得到。According to yet another embodiment of the present disclosure, a second mobile terminal is provided, comprising: a first receiving unit configured to receive a screen sharing request from the first mobile terminal, wherein the screen sharing request includes the second mobile terminal The mobile phone number on the above-mentioned screen sharing request also includes the first SIP INVITE message; the parsing unit is set to parse the above-mentioned first SIP INVITE message, and the session name field of the session header information in the above-mentioned first SIP INVITE message is a specific In the case of value, it is prompted that there is an invitation for remote desktop sharing, and in the case that the above-mentioned session name field is empty, it is processed according to the default RCS video sharing business process; an instruction to instruct or reject screen sharing; the second receiving unit is configured to receive the video stream sent by the first mobile terminal when the second mobile terminal sends the instruction to receive the screen sharing to the first mobile terminal, to Screen sharing is performed, wherein the video stream is obtained by recording the interface content of the first mobile terminal by the first mobile terminal and encoding the recorded content.
根据本公开的又一个实施例,还提供了一种计算机可读存储介质,上述计算机可读存储介质中存储有计算机程序,其中,上述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present disclosure, a computer-readable storage medium is also provided, where a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute any one of the above method embodiments when running steps in .
根据本公开的又一个实施例,还提供了一种电子装置,包括存储器和处理器,上述存储器中存储有计算机程序,上述处理器被设置为运行上述计算机程序以执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present disclosure, an electronic device is also provided, including a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to execute any of the above method embodiments steps in .
附图说明Description of drawings
图1是根据本公开实施例的移动终端的屏幕共享方法的移动终端的硬件结构框图;1 is a block diagram of a hardware structure of a mobile terminal according to a screen sharing method for a mobile terminal according to an embodiment of the present disclosure;
图2是根据本公开实施例的一种移动终端的屏幕共享方法的流程图;2 is a flowchart of a screen sharing method of a mobile terminal according to an embodiment of the present disclosure;
图3是根据本公开实施例的另一种移动终端的屏幕共享方法的流程图;3 is a flowchart of another screen sharing method of a mobile terminal according to an embodiment of the present disclosure;
图4是根据本公开实施例的又一种移动终端的屏幕共享方法的流程图;FIG. 4 is a flowchart of still another screen sharing method of a mobile terminal according to an embodiment of the present disclosure;
图5是根据本公开实施例的一种移动终端的屏幕共享方法的交互示意图;5 is an interactive schematic diagram of a screen sharing method of a mobile terminal according to an embodiment of the present disclosure;
图6是根据本公开实施例的第一移动终端的结构示意图;6 is a schematic structural diagram of a first mobile terminal according to an embodiment of the present disclosure;
图7是根据本公开实施例的第二移动终端的结构示意图。FIG. 7 is a schematic structural diagram of a second mobile terminal according to an embodiment of the present disclosure.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本公开的实施例。Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings and in conjunction with the embodiments.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first", "second" and the like in the description and claims of the present disclosure and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence.
本申请实施例中所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是本公开实施例的一种移动终端的屏幕共享方法的移动终端的硬件结构框图。如图1所示,移动终端可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和设置为存储数据的存储器104,其中,上述移动终端还可以包括设置为通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述移动终端的结构造成限定。例如,移动终端还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method embodiments provided in the embodiments of this application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, FIG. 1 is a block diagram of a hardware structure of a mobile terminal according to a screen sharing method for a mobile terminal according to an embodiment of the present disclosure. As shown in FIG. 1 , the mobile terminal may include one or more (only one is shown in FIG. 1 ) processor 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 configured to store data, wherein the above-mentioned mobile terminal may further include a transmission device 106 and an input/output device 108 configured as a communication function. Those of ordinary skill in the art can understand that the structure shown in FIG. 1 is only a schematic diagram, which does not limit the structure of the above-mentioned mobile terminal. For example, the mobile terminal may also include more or fewer components than those shown in FIG. 1 , or have a different configuration than that shown in FIG. 1 .
存储器104可设置为存储计算机程序,例如,应用软件的软件程序以及模块,如本公开实施例中的移动终端的屏幕共享方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 may be configured to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the screen sharing method of the mobile terminal in the embodiment of the present disclosure. The processor 102 runs the computer programs stored in the memory 104 , so as to perform various functional applications and data processing, that is, to implement the above method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory located remotely from the processor 102, and these remote memories may be connected to the mobile terminal through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
传输装置106设置为经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,简称为RF)模块,其设置为通过无线方式与互联网进行通讯。Transmission means 106 are arranged to receive or transmit data via a network. The specific example of the above-mentioned network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (Radio Frequency, RF for short) module, which is configured to communicate with the Internet in a wireless manner.
在本实施例中提供了一种移动终端的屏幕共享方法,图2是根据本公开实施例的移动终端的屏幕共享方法的流程图,如图2所示,该流程包括如下步骤:This embodiment provides a screen sharing method for a mobile terminal. FIG. 2 is a flowchart of a screen sharing method for a mobile terminal according to an embodiment of the present disclosure. As shown in FIG. 2 , the process includes the following steps:
S202,第一移动终端将第一SIP INVITE消息中的会话头信息的会话名称字段定义为特定值;S202, the first mobile terminal defines the session name field of the session header information in the first SIP INVITE message as a specific value;
S204,所述第一移动终端向第二移动终端发送屏幕共享请求,其中,所述屏幕共享请求中包括所述第二移动终端上的手机号,所述屏幕共享请求中还包括所述第一SIP INVITE消息,所述第二移动终端在接收到所述屏幕共享请求的情况下,解析所述屏幕共享请求中的所述第一SIP INVITE消息,得到所述第一SIP INVITE消息的所述会话头信息的所述会话名称字段,在所述会话名称字段为所述特定值的情况下,提示有远程桌面共享的邀请,在所述会话名称字段为空的情况下,按照默认的RCS视频共享业务流程处理;S204, the first mobile terminal sends a screen sharing request to the second mobile terminal, wherein the screen sharing request includes the mobile phone number of the second mobile terminal, and the screen sharing request also includes the first SIP INVITE message, in the case of receiving the screen sharing request, the second mobile terminal parses the first SIP INVITE message in the screen sharing request, and obtains the meeting of the first SIP INVITE message. The session name field of the session header information, in the case that the session name field is the specific value, prompts an invitation for remote desktop sharing, and in the case that the session name field is empty, the default RCS video sharing is performed. business process processing;
S206,在所述第一移动终端接收到所述第二移动终端返回的接收屏幕共享的指示的情况下,所述第一移动终端录制所述第一移动终端的界面内容,并将录制的内容编码为视频流;S206, in the case that the first mobile terminal receives the instruction of receiving screen sharing returned by the second mobile terminal, the first mobile terminal records the interface content of the first mobile terminal, and records the recorded content encoded as a video stream;
S208,所述第一移动终端将所述视频流发送给所述第二移动终端,以进行屏幕共享。S208, the first mobile terminal sends the video stream to the second mobile terminal for screen sharing.
可选地,上述移动终端的屏幕共享方法可以但不限于应用于移动终端之间进行共享屏幕的过程中。第一移动终端可以为共享屏幕的终端,第二移动终端为展示第一移动终端的屏幕的终端。如果第一移动终端向第二移动终端发起屏幕共享请求,则可以直接通过第二移动终 端的手机号向第二移动终端发送屏幕共享请求。如果第二移动终端同意进行屏幕共享,则第一移动终端录制第一移动终端的界面内容,共享给第二移动终端。第二移动终端可以展示第一移动终端共享的界面内容,并对界面内容进行操作,则第一移动终端的界面上按照第二移动终端的操作执行对应的处理,从而实现将第一移动终端的屏幕共享给第二移动终端。Optionally, the above-mentioned method for screen sharing of mobile terminals may be applied, but not limited to, in the process of sharing screens between mobile terminals. The first mobile terminal may be a terminal that shares a screen, and the second mobile terminal is a terminal that displays the screen of the first mobile terminal. If the first mobile terminal initiates a screen sharing request to the second mobile terminal, the screen sharing request may be directly sent to the second mobile terminal through the mobile phone number of the second mobile terminal. If the second mobile terminal agrees to perform screen sharing, the first mobile terminal records the interface content of the first mobile terminal and shares it with the second mobile terminal. The second mobile terminal can display the interface content shared by the first mobile terminal, and operate the interface content, then the interface of the first mobile terminal performs corresponding processing according to the operation of the second mobile terminal, so as to realize the The screen is shared to the second mobile terminal.
通过上述实施例,由于在进行移动终端的屏幕共享的时候第一移动终端可以直接通过第二移动终端的手机号向第二移动终端发起屏幕共享的请求,且通过第一SIP INVITE消息来携带本次请求为屏幕共享请求的标识,从而实现了快速进行屏幕共享的效果,因此,可以解决移动终端屏幕共享效率低的问题,达到提高移动终端屏幕共享效率的效果。Through the above embodiment, when the screen sharing of the mobile terminal is performed, the first mobile terminal can directly initiate a screen sharing request to the second mobile terminal through the mobile phone number of the second mobile terminal, and use the first SIP INVITE message to carry this The secondary request is the identifier of the screen sharing request, thereby realizing the effect of rapid screen sharing. Therefore, the problem of low screen sharing efficiency of the mobile terminal can be solved, and the effect of improving the screen sharing efficiency of the mobile terminal can be achieved.
作为一种可选的示例,所述方法还包括:As an optional example, the method further includes:
在接收到所述第二移动终端发送的暂停指令的情况下,所述第一移动终端暂停录制所述界面内容,或者,所述第一移动终端暂停向所述第二移动终端发送所述视频流。In the case of receiving the pause instruction sent by the second mobile terminal, the first mobile terminal pauses recording the interface content, or the first mobile terminal pauses sending the video to the second mobile terminal flow.
作为一种可选的示例,在所述屏幕共享的过程中,所述方法还包括:As an optional example, during the screen sharing process, the method further includes:
所述第一移动终端接收所述第二移动终端发送的SIP UPDATE消息,其中,所述第二移动终端在对所述第一移动终端的屏幕界面执行触控操作后,将所述触控操作和所述触控操作的触控位置填充到所述SIP UPDATE消息的特定字段中;The first mobile terminal receives the SIP UPDATE message sent by the second mobile terminal, wherein after the second mobile terminal performs a touch operation on the screen interface of the first mobile terminal, the touch operation is performed. and the touch position of the touch operation is filled into a specific field of the SIP UPDATE message;
所述第一移动终端解析所述SIP UPDATE消息,获取所述触控操作和所述触控操作的触控位置。The first mobile terminal parses the SIP UPDATE message to acquire the touch operation and the touch position of the touch operation.
作为一种可选的示例,所述方法还包括:As an optional example, the method further includes:
所述第一移动终端与所述第二移动终端建立即时通信会话;establishing an instant communication session between the first mobile terminal and the second mobile terminal;
所述第一移动终端接收所述第二移动终端发送的会话消息,在解析到所述会话消息中包含特定的字段的情况下,获取所述特定的字段中记录的所述第二移动终端在所述屏幕共享的过程中对所述第一移动终端的屏幕界面执行的触控操作与所述触控操作的触控位置;The first mobile terminal receives the session message sent by the second mobile terminal, and in the case of parsing that the session message contains a specific field, obtains the record of the second mobile terminal in the specific field. The touch operation performed on the screen interface of the first mobile terminal and the touch position of the touch operation during the screen sharing process;
所述第一移动终端将所述触控操作与所述触控操作的触控位置转发给所述屏幕共享的应用。The first mobile terminal forwards the touch operation and the touch position of the touch operation to the screen sharing application.
作为一种可选的示例,所述方法还包括:As an optional example, the method further includes:
所述第一移动终端接收所述第二移动终端发送的第二sip invite消息;The first mobile terminal receives the second sip invite message sent by the second mobile terminal;
所述第一移动终端解析所述第二sip invite消息,得到所述第二移动终端在所述屏幕共享的过程中对所述第一移动终端的屏幕界面执行的触控操作与所述触控操作的触控位置。The first mobile terminal parses the second sip invite message, and obtains the touch operation and the touch control performed by the second mobile terminal on the screen interface of the first mobile terminal during the screen sharing process The touch position of the operation.
作为一种可选的示例,提供了一种移动终端的屏幕共享方法,如图3所示,上述方法包括:As an optional example, a screen sharing method of a mobile terminal is provided. As shown in FIG. 3 , the above method includes:
S302,第二移动终端接收第一移动终端的屏幕共享请求,其中,所述屏幕共享请求中包括所述第二移动终端上的手机号,所述屏幕共享请求中还包括有第一SIP INVITE消息;S302, the second mobile terminal receives a screen sharing request from the first mobile terminal, wherein the screen sharing request includes the mobile phone number on the second mobile terminal, and the screen sharing request further includes a first SIP INVITE message ;
S304,所述第二移动终端解析所述第一SIP INVITE消息,在所述第一SIP INVITE消息中的会话头信息的会话名称字段为特定值的情况下,提示有远程桌面共享的邀请,在所述会 话名称字段为空的情况下,按照默认的RCS视频共享业务流程处理;S304, the second mobile terminal parses the first SIP INVITE message, and in the case that the session name field of the session header information in the first SIP INVITE message is a specific value, prompts an invitation for remote desktop sharing, and When the session name field is empty, it is processed according to the default RCS video sharing business process;
S306,所述第二移动终端向所述第一移动终端发送接收屏幕共享的指示或拒绝屏幕共享的指示;S306, the second mobile terminal sends to the first mobile terminal an indication of receiving screen sharing or an indication of rejecting screen sharing;
S308,在所述第二移动终端向所述第一移动终端发送所述接收屏幕共享的指示的情况下,所述第二移动终端接收所述第一移动终端发送的视频流,以进行屏幕共享,其中,所述视频流通过所述第一移动终端录制所述第一移动终端的界面内容并对录制的内容进行编码得到。S308, in the case that the second mobile terminal sends the instruction for receiving screen sharing to the first mobile terminal, the second mobile terminal receives the video stream sent by the first mobile terminal to perform screen sharing , wherein the video stream is obtained by recording the interface content of the first mobile terminal by the first mobile terminal and encoding the recorded content.
作为一种可选的示例,在进行屏幕共享的过程中,方法还包括:As an optional example, in the process of screen sharing, the method further includes:
第二移动终端在对第一移动终端的屏幕界面执行触控操作后,将触控操作和触控操作的触控位置填充到SIP UPDATE消息的特定字段中;After the second mobile terminal performs the touch operation on the screen interface of the first mobile terminal, the touch operation and the touch position of the touch operation are filled in a specific field of the SIP UPDATE message;
第二移动终端向第一移动终端发送SIP UPDATE消息,以使第一移动终端解析SIP UPDATE消息,得到触控操作和触控操作的触控位置。The second mobile terminal sends a SIP UPDATE message to the first mobile terminal, so that the first mobile terminal parses the SIP UPDATE message to obtain the touch operation and the touch position of the touch operation.
作为一种可选的示例,在进行屏幕共享的过程中,方法还包括:As an optional example, in the process of screen sharing, the method further includes:
第二移动终端与第一移动终端建立即时通信会话;The second mobile terminal establishes an instant communication session with the first mobile terminal;
第二移动终端向第一移动终端发送会话消息,其中,会话消息中包含特定的字段,特定的字段中记录有第二移动终端在屏幕共享的过程中对第一移动终端的屏幕界面执行的触控操作与触控操作的触控位置。The second mobile terminal sends a session message to the first mobile terminal, wherein the session message includes a specific field, and the specific field records the touches performed by the second mobile terminal on the screen interface of the first mobile terminal during the screen sharing process. control operation and the touch position of the touch operation.
作为一种可选的示例,在进行屏幕共享的过程中,方法还包括:As an optional example, in the process of screen sharing, the method further includes:
第二移动终端向第一移动终端发送第二sip invite消息,其中,第二sip invite消息中包括第二移动终端在屏幕共享的过程中对第一移动终端的屏幕界面执行的触控操作与触控操作的触控位置。The second mobile terminal sends a second sip invite message to the first mobile terminal, where the second sip invite message includes touch operations and touches performed by the second mobile terminal on the screen interface of the first mobile terminal during the screen sharing process. The touch position of the control operation.
作为一种可选的示例,在屏幕共享的过程中,该方法还包括:As an optional example, in the process of screen sharing, the method further includes:
第二移动终端向第一移动终端发送暂停指令,以使第一移动终端暂停录制界面内容,或者,暂停向第二移动终端发送录制内容。The second mobile terminal sends a pause instruction to the first mobile terminal, so that the first mobile terminal pauses recording the interface content, or pauses sending the recording content to the second mobile terminal.
以一个具体实例进行说明。本申请实施例中的第一移动终端与第二移动终端可以为移动通信终端,可以为支持富媒体通信(Rich Communitcation Suite,简称为RCS)业务的移动终端。RCS的相关标准信息为GSMA RCC.71 RCC.07Take a concrete example to illustrate. The first mobile terminal and the second mobile terminal in the embodiments of the present application may be mobile communication terminals, and may be mobile terminals supporting a rich media communication (Rich Communication Suite, RCS for short) service. The relevant standard information of RCS is GSMA RCC.71 RCC.07
本申请实施例中,第一移动终端与第二移动终端可以为手机。以支持RCS的手机为例,A手机可以向B手机发送屏幕共享的请求,B手机向A手机响应接收共享的指示,则A手机可以将共享的内容发送到B手机进行展示,用户对B手机上展示的A手机的屏幕内容进行点击,从而控制A手机的屏幕内容。本申请的软件部分分为6个模块。模块可以包括:m1:桌面共享业务发起端控制模块。M2:桌面录屏模块。m3:视频编码模块。m4:RCS协议解析模块。m5:视频解码模块。m6:桌面共享业务接收端控制模块。In this embodiment of the present application, the first mobile terminal and the second mobile terminal may be mobile phones. Taking a mobile phone that supports RCS as an example, mobile phone A can send a request for screen sharing to mobile phone B, and mobile phone B responds to mobile phone A to receive the sharing instruction, then mobile phone A can send the shared content to mobile phone B for display. Click on the screen content of the mobile phone A displayed on the screen, so as to control the screen content of the mobile phone A. The software part of this application is divided into 6 modules. The modules may include: m1: desktop sharing service initiator control module. M2: Desktop screen recording module. m3: Video encoding module. m4: RCS protocol parsing module. m5: Video decoding module. m6: desktop sharing service receiver control module.
m1:桌面共享业务发起端控制模块,本模块是发起远程桌面共享的用户入口,作用有两点:提供操作界面给用户操作,响应来自远端手机用户操作。进一步的,m1: desktop sharing service initiator control module, this module is the user portal for initiating remote desktop sharing, and has two functions: providing an operation interface for user operations, and responding to user operations from remote mobile phones. further,
m1-1给用户提供一个输入电话号码,并发起远程桌面共享后面的流程。比如可以提供界面让用户选择一个通讯录中的人,或者输入一个电话号码,然后选择发起远程桌面共享,也可以是一个远程桌面共享的应用启动后,选择要把自己的桌面分享给远端手机。m1-1 provides the user with an input phone number and initiates the process behind remote desktop sharing. For example, an interface can be provided for the user to select a person in the address book, or enter a phone number, and then choose to initiate remote desktop sharing, or after a remote desktop sharing application is started, choose to share his desktop with the remote mobile phone .
m1-2对远端用户操作返回的数据信息进行分析处理。比如B手机用户点击了屏幕,B手机会有消息发回来,A手机分析处理这个消息,对这个点击进行响应。m1-2 analyzes and processes the data information returned by the remote user operation. For example, when the user of mobile phone B clicks on the screen, mobile phone B will send a message back, and mobile phone A analyzes and processes the message and responds to the click.
m2:在RCS视频共享业务中,本申请由桌面录屏模块,负责截取A手机的屏幕界面,将屏幕显示内容的数据传给m3进行视频编码。m2: In the RCS video sharing service, the desktop screen recording module in this application is responsible for intercepting the screen interface of mobile phone A, and transmits the data of the content displayed on the screen to m3 for video encoding.
m3:视频编码模块,负责把屏幕显示内容的数据按照特定格式编码为视频流,比如编码为H.264格式的视频。m3: Video encoding module, responsible for encoding the data of the content displayed on the screen into a video stream according to a specific format, such as a video encoded in H.264 format.
m4:RCS协议解析模块,RCS业务视频共享业务采用会话初始化协议(Session Initiation Protocol,简称为SIP)来与B手机建立会话,SIP的相关标准信息为:IETF RFC 3261。A手机会通过SIP invite消息来传递视频共享的一些参数,会通过SIP update消息来更新会话信息。本申请实施例中,基于协议中一些本来只用于人工分析而不用于程序控制的可选字段进行扩展,对这些扩展字段的解析,来实现远程桌面共享。如通过特定的字符等来告知请求为建立屏幕共享的请求。m4: RCS protocol parsing module. The RCS service video sharing service uses the Session Initiation Protocol (SIP for short) to establish a session with the B mobile phone. The relevant standard information of SIP is: IETF RFC 3261. A mobile phone will pass some parameters of the video sharing through the SIP invite message, and will update the session information through the SIP update message. In the embodiment of the present application, based on some optional fields in the protocol that are originally only used for manual analysis but not used for program control, the remote desktop sharing is realized by analyzing these extended fields. For example, a specific character is used to inform that the request is a request to establish screen sharing.
m5:视频解码模块,B手机接收到A手机发送过来的视频流,将其解码显示在屏幕上。m5: video decoding module, mobile phone B receives the video stream sent by mobile phone A, decodes it and displays it on the screen.
m6:桌面共享业务接收端控制模块,这个模块负责接收界面的显示和用户操作屏幕(比如点触屏幕界面上的菜单)事件,并将这个事件回传给A手机。m6: desktop sharing service receiver control module, this module is responsible for receiving the interface display and user operation screen (such as touching the menu on the screen interface) event, and returning the event to A mobile phone.
具体的步骤可以如流程图4的步骤S401到步骤S415所示。The specific steps may be as shown in steps S401 to S415 of the flowchart 4 .
流程图4中,S401:用户A操作A手机,选择B的号码作为目标启动远程桌面的流程。可以直接输入B的电话号码,也可以是从通讯录、通话记录中找到这个联系人,然后自动提取B的电话号码,作为目标对象。界面上提供明确的桌面共享操作菜单供用户选择,启动远程桌面的流程。In the flowchart 4, S401: User A operates the mobile phone of A, and selects the number of B as the target to start the process of the remote desktop. You can directly input B's phone number, or you can find the contact from the address book and call records, and then automatically extract B's phone number as the target object. A clear desktop sharing operation menu is provided on the interface for users to choose and start the process of remote desktop.
S402:A手机向B手机发起RCS视频分享业务会话邀请消息,消息中,将SIP INVITE中的会话头信息的会话名称字段定义为特定值,用来表明是一个特殊的RCS视频分享业务——远程桌面共享业务。S402: A mobile phone sends an RCS video sharing service session invitation message to B mobile phone. In the message, the session name field of the session header information in the SIP INVITE is defined as a specific value, which is used to indicate that it is a special RCS video sharing service—remote desktop sharing business.
RCS业务协议中,SIP INVITE消息的会话名称字段是不做处理的,默认置为空,即:In the RCS service protocol, the session name field of the SIP INVITE message is not processed and is set to be empty by default, that is:
“s=”"s="
本实施例中,作为一个实施案例,将其置为“DesktopShare”,即“s=DesktopShare”In this embodiment, as an implementation case, it is set as "DesktopShare", that is, "s=DesktopShare"
S402:B手机接收到A的RCS视频共享业务会话邀请消息,S404,B手机解析消息头中的会话名称行,判断是否为远程桌面的共享业务。如果这个名称是实现约定的特定值,比如“s=DesktopShare”,表明是远程桌面共享业务,S405-1,B手机在屏幕上提示用户,有一个远程桌面共享的邀请,等待用户操作。如果这个名称是空,S405-2,按照默认的RCS视频共享业务流程处理。S402: The mobile phone B receives the RCS video sharing service session invitation message of A, and S404, the mobile phone B parses the session name line in the message header to determine whether it is a remote desktop sharing service. If the name is a specific value of the implementation agreement, such as "s=DesktopShare", it indicates that it is a remote desktop sharing service, S405-1, the mobile phone B prompts the user on the screen that there is an invitation for remote desktop sharing, waiting for the user to operate. If this name is empty, S405-2, it is processed according to the default RCS video sharing business process.
S406:B手机用户触控屏幕,接受邀请,则B手机回复应答消息给A手机。S406: The user of the mobile phone B touches the screen and accepts the invitation, and the mobile phone B replies with an answering message to the mobile phone A.
S407:A手机收到B手机的应答消息后,RCS视频共享会话建立,A手机进入远程桌面共享状态。A手机开始录屏,并编码成会话协商格式的视频流,发送给B手机。进一步的,S407: After the mobile phone A receives the reply message from the mobile phone B, the RCS video sharing session is established, and the mobile phone A enters the remote desktop sharing state. Mobile phone A starts to record the screen, encodes it into a video stream in the session negotiation format, and sends it to mobile phone B. further,
S407-1,A手机的远程共享状态,指的是A手机前端界面会有状态提示以及退出这个状态的控制入口,后台开始进入录屏和视频编码状态;S407-1, the remote sharing status of mobile phone A, which means that the front-end interface of mobile phone A will have a status prompt and a control entry to exit this status, and the background will start to enter the screen recording and video encoding status;
S407-2,录屏的帧率,可以根据桌面共享的内容,由用户设定,以保证更好的用户体验。比如是想把A手机的桌面提供给B手机控制A手机,那么A手机的界面变化不会太快,则可以按照15fps的帧率来录屏和编码;而如果是共享游戏,则按照游戏视频的帧率进行录屏和编码。S407-2, the frame rate of the screen recording can be set by the user according to the content shared on the desktop to ensure a better user experience. For example, if you want to provide the desktop of mobile phone A to mobile phone B to control mobile phone A, then the interface of mobile phone A will not change too fast, you can record and encode the screen according to the frame rate of 15fps; and if it is a shared game, according to the game video frame rate for screen recording and encoding.
S407-3,视频编码的分辨率参数,采用A手机、B手机之间的会话协商中确定的参数。S407-3, the resolution parameter of video coding adopts the parameter determined in the session negotiation between A mobile phone and B mobile phone.
S408:B手机接收到A手机发过来的视频,按照远程桌面共享的界面设计来显示在屏幕上。进一步的,S408: Mobile phone B receives the video sent by mobile phone A, and displays it on the screen according to the interface design of remote desktop sharing. further,
S408-1,远程桌面共享,A手机发送的是自己手机的屏幕录屏,也就是显示在A手机屏幕上的全屏图像,虽然是按照会话协商的分辨率编制的视频流,发送到B手机上还是需要根据B手机屏幕来做一个合适的显示区域。S408-1, remote desktop sharing, mobile phone A sends the screen recording of its own mobile phone, that is, the full-screen image displayed on the screen of mobile phone A, although it is a video stream compiled according to the resolution negotiated in the session, and sent to mobile phone B Still need to make a suitable display area according to B mobile phone screen.
S408-2,B手机要能将A手机的桌面图像完整显示。In S408-2, the mobile phone B must be able to completely display the desktop image of the mobile phone A.
至此,基于RCS视频共享业务,A手机把自己屏幕的图像实时地发送给到B手机上显示出来的过程。So far, based on the RCS video sharing service, mobile phone A sends the image of its own screen to mobile phone B for display in real time.
S409,用户在B手机上操作,在S408的步骤中,B手机的屏幕上就显示了A手机屏幕上的全屏界面。比如点击一下屏幕,程序要盘判断一下这个触点位置区域,根据区域做不同的处理。如图5所示。图5中,A手机将全屏图像发送给B手机,B手机展示A手机分享的屏幕。在B手机上的A手机分享的屏幕上点击形成触点(实心点),则需要将该点的位置传输给A手机。S409, the user operates on the mobile phone B, and in the step of S408, the screen of the mobile phone B displays the full screen interface on the screen of the mobile phone A. For example, if you click the screen, the program will judge the location area of the contact, and do different processing according to the area. As shown in Figure 5. In Figure 5, mobile phone A sends a full-screen image to mobile phone B, and mobile phone B displays the screen shared by mobile phone A. Click to form a contact (solid dot) on the screen shared by A's mobile phone on B's mobile phone, and the position of the point needs to be transmitted to A's mobile phone.
S410,触点如果在A手机全屏画面区域内,则解释为是对A手机的操作。S411-1把这个触点在屏幕上的位置坐标记录下来,处理包装成用户对A手机的触控事件,触控事件的参数信息包含事件类型和位置坐标。触点在B手机屏幕上的位置坐标,要结合A手机全屏图像在B手机屏幕上的位置区域,进一步换算成触点在A手机全屏图像的相对位置比例。进一步的,假设点击图5中B手机的实心点触点在B的坐标是(540,1500),A全屏图像在B屏幕区域是左上角(0,100),右下角(1080,2020),那么这个触点在A屏幕上的坐标就需要减去一个偏移量100,变成(440,1500)。考虑到A、B屏幕分辨率差异,还要考虑一个缩放比例。因此,为了准确定位触点在A屏幕上的位置,这个触点使用的是一个比例值,x=0.407(即440/1080),y=0.781(即1500/1920)。S410, if the touch point is within the full screen area of the mobile phone A, it is interpreted as an operation on the mobile phone A. S411-1 records the position coordinates of the touch point on the screen, and processes and packages the touch event of the user to A mobile phone. The parameter information of the touch event includes the event type and the position coordinates. The position coordinates of the touch point on the screen of mobile phone B should be combined with the position area of the full-screen image of mobile phone A on the screen of mobile phone B, and further converted into the relative position ratio of the touch point on the full-screen image of mobile phone A. Further, it is assumed that the coordinates of the solid point contact of the mobile phone B in Figure 5 are (540, 1500) in B, and the full-screen image of A in the screen area of B is the upper left corner (0, 100) and the lower right corner (1080, 2020), Then the coordinates of this contact on screen A need to subtract an offset of 100 to become (440,1500). Considering the difference in screen resolution between A and B, there is also a scaling ratio to consider. Therefore, in order to accurately locate the position of the touch point on screen A, a scale value is used for this touch point, x=0.407 (ie 440/1080) and y=0.781 (ie 1500/1920).
进一步的,用户在屏幕上的触控事件类型,有点击、双击、长按、拖动等类型,与通用的安卓手机/Iphone手机/winphone手机的触控事件定义完全相同。Further, the types of touch events of the user on the screen include click, double-click, long-press, drag, etc., which are exactly the same as the general touch event definitions of Android mobile phones/Iphone mobile phones/winphone mobile phones.
S411-2,如果触点在A手机全屏画面区域之外,则解释为不是对A手机的操作,按照B手机当前界面触控进行处理。S411-2, if the touch point is outside the full-screen screen area of the mobile phone A, it is interpreted as not an operation on the mobile phone A, and processing is performed according to the current interface touch of the mobile phone B.
S412,B手机将用户操作事件,发送给A手机。进一步的,把消息回送给A有多种方法:S412, the mobile phone B sends the user operation event to the mobile phone A. Further, there are multiple ways to send a message back to A:
利用会话更新消息,把用户操作事件填充到SIP UPDATE消息的特定字段中,对A手机发送RCS业务的会话更新消请求。在RCS业务框架中,在一个会话建立之后,是允许A或者B手机发送会话更新消息的。而且应答方是可以拒绝会话更新的,当接收消息方拒绝会话更新的话,当前的会话不受任何影响。利用这个特点,在UPDATE消息的媒体信息中,定义两条扩展属性,前一条表示这是一个远端用户操作事件的类型,后一条表示为这个触控的点的坐标,例子如下:Using the session update message, the user operation event is filled into the specific field of the SIP UPDATE message, and the session update cancellation request of the RCS service is sent to the A mobile phone. In the RCS service framework, after a session is established, A or B mobile phone is allowed to send a session update message. Moreover, the answering party can refuse the session update. When the receiving party refuses the session update, the current session will not be affected in any way. Taking advantage of this feature, two extended attributes are defined in the media information of the UPDATE message. The former indicates the type of a remote user operation event, and the latter indicates the coordinates of the touch point. Examples are as follows:
a=remote_action clicka=remote_action click
a=0.407/0.781a=0.407/0.781
利用RCS业务中,允许用户之间同时建立多条会话,在建立了视频共享业务的同时建立及时聊天会话,这样可以利用聊天会话来发送包装的用户操作事件。A收到聊天信息数据时,根据特定的字段信息解析出是用于远程桌面共享的用户操作时间,再把这个事件转发给远程共享应用处理。In the RCS service, multiple sessions are allowed to be established between users at the same time, and a real-time chat session is established while the video sharing service is established, so that the wrapped user operation events can be sent by using the chat session. When A receives the chat information data, it parses out the user operation time for remote desktop sharing according to the specific field information, and then forwards the event to the remote sharing application for processing.
利用RCS业务的sip invite消息,再次发起会话邀请消息,将用户操作时间封装到消息的数据字段中返回给A。Use the sip invite message of the RCS service to initiate a session invitation message again, and encapsulate the user operation time into the data field of the message and return it to A.
S413,A手机接收到SIP UPDATE消息,要对消息的描述信息进行解析,当解析到S8中新增的这2条信息时,知道这是一个用户对A手机的远端点击操作,把用户操作事件的信息保存下来。S413, the mobile phone A receives the SIP UPDATE message, and needs to parse the description information of the message. When the two pieces of information newly added in S8 are parsed, it knows that this is a user's remote click operation on the mobile phone A, and the user operates The event information is saved.
S414,A手机进一步解析用户操作事件,把SIP UPDATE消息传过来的对应的坐标,换成成当前屏幕上的真正的坐标位置,根据当前应用界面,响应这个事件。S414, the mobile phone A further parses the user operation event, replaces the corresponding coordinates transmitted by the SIP UPDATE message with the real coordinates on the current screen, and responds to this event according to the current application interface.
S415,A手机发送会话更新请求的应答消息给B手机,拒绝B手机发起的会话更新请求。优选地,按照SIP协议的定义,可以选择48x的应答消息。这类消息,不会对当前的会话有影响,也就不会发起会话更新,也不会对当前会话有任何影响。S415, A mobile phone sends a response message of the session update request to B mobile phone, and rejects the session update request initiated by B mobile phone. Preferably, according to the definition of the SIP protocol, the response message of 48x can be selected. This type of message will not affect the current session, so it will not initiate a session update, nor will it have any impact on the current session.
通过上述步骤,实现了A手机把自己桌面发送给了B手机,用户在B手机上的操作,就可以在A手机上有响应。Through the above steps, it is realized that the mobile phone A sends its desktop to the mobile phone B, and the user's operation on the mobile phone B can respond on the mobile phone A.
上述实施例的好处在于,用户之间可以直接基于手机号码,发起桌面共享的业务,这大大降低了用户之间远程桌面的门槛。普通用户之间,随时可以发起和使用。The advantage of the above embodiment is that users can directly initiate a desktop sharing service based on mobile phone numbers, which greatly reduces the threshold for remote desktops between users. Between ordinary users, it can be initiated and used at any time.
而且,本申请基于RCS业务的框架,RCS是5G终端默认要支持的业务,移动终端上默认都要支持其基础的协议。因此可以省略掉了复杂的移动性管理的技术困难,易于在终端上实现;同时,本方法不需要改造网络就可以帮助运营商增加新业务场景增加收入。Moreover, the present application is based on the framework of the RCS service, the RCS is a service to be supported by the 5G terminal by default, and the mobile terminal must support its basic protocol by default. Therefore, the technical difficulty of complex mobility management can be omitted, and it is easy to implement on the terminal; at the same time, the method can help operators increase new business scenarios and increase revenue without the need to transform the network.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开各个实施例的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present disclosure essentially or the parts that contribute to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to enable a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of the various embodiments of the present disclosure.
在本实施例中还提供了一种第一移动终端,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a first mobile terminal is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementations, and what has been described will not be repeated. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
图6是本申请实施例的一种第一移动终端,如图6所示,包括:FIG. 6 is a first mobile terminal according to an embodiment of the present application, as shown in FIG. 6 , including:
定义单元602,设置为将第一SIP INVITE消息中的会话头信息的会话名称字段定义为特定值;A definition unit 602 is set to define the session name field of the session header information in the first SIP INVITE message as a specific value;
第一发送单元604,设置为向第二移动终端发送屏幕共享请求,其中,所述屏幕共享请求中包括所述第二移动终端上的手机号,所述屏幕共享请求中还包括所述第一SIP INVITE消 息,所述第二移动终端在接收到所述屏幕共享请求的情况下,解析所述屏幕共享请求中的所述第一SIP INVITE消息,得到所述所述第一SIP INVITE消息的所述会话头信息的所述会话名称字段,在所述会话名称字段为所述特定值的情况下,提示有远程桌面共享的邀请,在所述会话名称字段为空的情况下,按照默认的RCS视频共享业务流程处理;The first sending unit 604 is configured to send a screen sharing request to the second mobile terminal, wherein the screen sharing request includes the mobile phone number on the second mobile terminal, and the screen sharing request also includes the first SIP INVITE message, in the case of receiving the screen sharing request, the second mobile terminal parses the first SIP INVITE message in the screen sharing request, and obtains all the information of the first SIP INVITE message. The session name field of the session header information, in the case that the session name field is the specific value, prompts an invitation to share the remote desktop, in the case that the session name field is empty, according to the default RCS Video sharing business process processing;
录制单元606,设置为在所述第一移动终端接收到所述第二移动终端返回的接收屏幕共享的指示的情况下,录制所述第一移动终端的界面内容,并将录制的内容编码为视频流;The recording unit 606 is configured to record the interface content of the first mobile terminal when the first mobile terminal receives an instruction to receive screen sharing returned by the second mobile terminal, and encode the recorded content as video stream;
第二发送单元608,设置为所述第一移动终端将所述视频流发送给所述第二移动终端,以进行屏幕共享。The second sending unit 608 is configured for the first mobile terminal to send the video stream to the second mobile terminal for screen sharing.
作为一种可选的示例,所述第一移动终端还包括:As an optional example, the first mobile terminal further includes:
处理单元,设置为在屏幕共享的过程中,在接收到所述第二移动终端发送的暂停指令的情况下,所述第一移动终端暂停录制所述界面内容,或者,所述第一移动终端暂停向所述第二移动终端发送所述视频流。a processing unit configured to, in the process of screen sharing, in the case of receiving a pause instruction sent by the second mobile terminal, the first mobile terminal to pause the recording of the interface content, or the first mobile terminal Suspend sending the video stream to the second mobile terminal.
作为一种可选的示例,所述第一移动终端还包括:As an optional example, the first mobile terminal further includes:
第一接收单元,设置为在所述屏幕共享的过程中,接收所述第二移动终端发送的SIP UPDATE消息,其中,所述第二移动终端在对所述第一移动终端的屏幕界面执行触控操作后,将所述触控操作和所述触控操作的触控位置填充到所述SIP UPDATE消息的特定字段中;The first receiving unit is configured to receive a SIP UPDATE message sent by the second mobile terminal during the screen sharing process, wherein the second mobile terminal is performing touch on the screen interface of the first mobile terminal. After the control operation, fill the touch operation and the touch position of the touch operation into a specific field of the SIP UPDATE message;
第一解析单元,设置为解析所述SIP UPDATE消息,获取所述触控操作和所述触控操作的触控位置。The first parsing unit is configured to parse the SIP UPDATE message to obtain the touch operation and the touch position of the touch operation.
作为一种可选的示例,所述第一移动终端还包括:As an optional example, the first mobile terminal further includes:
建立单元,设置为在所述屏幕共享的过程中,与所述第二移动终端建立即时通信会话;an establishment unit, configured to establish an instant communication session with the second mobile terminal during the screen sharing process;
第二接收单元,设置为接收所述第二移动终端发送的会话消息,在解析到所述会话消息中包含特定的字段的情况下,获取所述特定的字段中记录的所述第二移动终端在所述屏幕共享的过程中对所述第一移动终端的屏幕界面执行的触控操作与所述触控操作的触控位置;The second receiving unit is configured to receive the session message sent by the second mobile terminal, and obtain the second mobile terminal recorded in the specific field when it is parsed that the session message contains a specific field a touch operation performed on the screen interface of the first mobile terminal and a touch position of the touch operation during the screen sharing;
转发单元,设置为将所述触控操作与所述触控操作的触控位置转发给所述屏幕共享的应用。A forwarding unit, configured to forward the touch operation and the touch position of the touch operation to the screen sharing application.
作为一种可选的示例,所述第一移动终端还包括:As an optional example, the first mobile terminal further includes:
第三接收单元,设置为在所述屏幕共享的过程中,接收所述第二移动终端发送的第二sip invite消息;The third receiving unit is configured to receive the second sip invite message sent by the second mobile terminal during the screen sharing process;
第二解析单元,设置为解析所述第二sip invite消息,得到所述第二移动终端在所述屏幕共享的过程中对所述第一移动终端的屏幕界面执行的触控操作与所述触控操作的触控位置。A second parsing unit, configured to parse the second sip invite message, to obtain the touch operation and the touch operation performed by the second mobile terminal on the screen interface of the first mobile terminal during the screen sharing process. The touch position of the control operation.
本实施例的其他示例请参见上述示例,在此不再赘述。For other examples of this embodiment, please refer to the foregoing examples, and details are not described herein again.
图7是本申请实施例的另一种第一移动终端,如图7所示,包括:FIG. 7 is another first mobile terminal according to an embodiment of the present application, as shown in FIG. 7 , including:
第一接收单元702,设置为接收第一移动终端的屏幕共享请求,其中,所述屏幕共享请 求中包括所述第二移动终端上的手机号,所述屏幕共享请求中还包括有第一SIP INVITE消息;The first receiving unit 702 is configured to receive a screen sharing request from a first mobile terminal, wherein the screen sharing request includes a mobile phone number on the second mobile terminal, and the screen sharing request also includes a first SIP INVITE message;
解析单元704,设置为解析所述第一SIP INVITE消息,在所述第一SIP INVITE消息中的会话头信息的会话名称字段为特定值的情况下,提示有远程桌面共享的邀请,在所述会话名称字段为空的情况下,按照默认的RCS视频共享业务流程处理;The parsing unit 704 is configured to parse the first SIP INVITE message, and in the case that the session name field of the session header information in the first SIP INVITE message is a specific value, prompting an invitation for remote desktop sharing, and in the If the session name field is empty, follow the default RCS video sharing business process;
发送单元706,设置为向所述第一移动终端发送接收屏幕共享的指示或拒绝屏幕共享的指示;A sending unit 706, configured to send an indication of receiving screen sharing or an indication of rejecting screen sharing to the first mobile terminal;
第二接收单元708,设置为在所述第二移动终端向所述第一移动终端发送所述接收屏幕共享的指示的情况下,接收所述第一移动终端发送的视频流,以进行屏幕共享,其中,所述视频流通过所述第一移动终端录制所述第一移动终端的界面内容并对录制的内容进行编码得到。The second receiving unit 708 is configured to receive the video stream sent by the first mobile terminal to perform screen sharing when the second mobile terminal sends the instruction for receiving screen sharing to the first mobile terminal , wherein the video stream is obtained by recording the interface content of the first mobile terminal by the first mobile terminal and encoding the recorded content.
作为一种可选的示例,第二移动终端还包括:As an optional example, the second mobile terminal further includes:
填充单元,设置为在进行屏幕共享的过程中,第二移动终端在对第一移动终端的屏幕界面执行触控操作后,将触控操作和触控操作的触控位置填充到SIP UPDATE消息的特定字段中;The filling unit is configured to fill the touch operation and the touch position of the touch operation into the SIP UPDATE message after the second mobile terminal performs the touch operation on the screen interface of the first mobile terminal during the screen sharing process. in a specific field;
第二发送单元,设置为向第一移动终端发送SIP UPDATE消息,以使第一移动终端解析SIP UPDATE消息,得到触控操作和触控操作的触控位置。The second sending unit is configured to send the SIP UPDATE message to the first mobile terminal, so that the first mobile terminal parses the SIP UPDATE message to obtain the touch operation and the touch position of the touch operation.
作为一种可选的示例,第二移动终端还包括:As an optional example, the second mobile terminal further includes:
建立单元,设置为在进行屏幕共享的过程中,与第一移动终端建立即时通信会话;a establishing unit, configured to establish an instant communication session with the first mobile terminal during the screen sharing process;
第三发送单元,设置为向第一移动终端发送会话消息,其中,会话消息中包含特定的字段,特定的字段中记录有第二移动终端在屏幕共享的过程中对第一移动终端的屏幕界面执行的触控操作与触控操作的触控位置。The third sending unit is configured to send a session message to the first mobile terminal, wherein the session message includes a specific field, and the specific field records the screen interface of the second mobile terminal to the first mobile terminal during the screen sharing process The touch operation performed and the touch position of the touch operation.
作为一种可选的示例,第二移动终端还包括:As an optional example, the second mobile terminal further includes:
第四发送单元,设置为在进行屏幕共享的过程中,向第一移动终端发送第二sip invite消息,其中,第二sip invite消息中包括第二移动终端在屏幕共享的过程中对第一移动终端的屏幕界面执行的触控操作与触控操作的触控位置。The fourth sending unit is configured to send a second sip invite message to the first mobile terminal in the process of screen sharing, wherein the second sip invite message includes the second mobile terminal in the process of screen sharing to the first mobile terminal. The touch operation performed on the screen interface of the terminal and the touch position of the touch operation.
作为一种可选的示例,第二移动终端还包括:As an optional example, the second mobile terminal further includes:
第五发送单元,设置为在屏幕共享的过程中,第二移动终端向第一移动终端发送暂停指令,以使第一移动终端暂停录制界面内容,或者,暂停向第二移动终端发送录制内容。The fifth sending unit is configured to, during the screen sharing process, the second mobile terminal sends a pause instruction to the first mobile terminal, so that the first mobile terminal suspends recording the interface content, or suspends sending the recording content to the second mobile terminal.
本实施例的其他示例请参见上述示例,在此不再赘述。For other examples of this embodiment, please refer to the foregoing examples, and details are not described herein again.
本公开的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。Embodiments of the present disclosure also provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute the steps in any one of the above method embodiments when running.
在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In an exemplary embodiment, the above-mentioned computer-readable storage medium may include, but is not limited to, a USB flash drive, a read-only memory (Read-Only Memory, referred to as ROM for short), and a random access memory (Random Access Memory, referred to as RAM for short) , mobile hard disk, magnetic disk or CD-ROM and other media that can store computer programs.
本公开的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present disclosure also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
在一个示例性实施例中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。In an exemplary embodiment, the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and exemplary implementation manners, and details are not described herein again in this embodiment.
显然,本领域的技术人员应该明白,上述的本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present disclosure can be implemented by a general-purpose computing device, and they can be centralized on a single computing device or distributed in a network composed of multiple computing devices On the other hand, they can be implemented in program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, can be performed in a different order than shown here. Or the described steps, or they are respectively made into individual integrated circuit modules, or a plurality of modules or steps in them are made into a single integrated circuit module to realize. As such, the present disclosure is not limited to any particular combination of hardware and software.
以上所述仅为本公开的优选实施例而已,并不用于限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开的原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。The above descriptions are only preferred embodiments of the present disclosure, and are not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the principles of the present disclosure shall be included within the protection scope of the present disclosure.

Claims (10)

  1. 一种移动终端的屏幕共享方法,包括:A screen sharing method of a mobile terminal, comprising:
    第一移动终端将第一SIP INVITE消息中的会话头信息的会话名称字段定义为特定值;The first mobile terminal defines the session name field of the session header information in the first SIP INVITE message as a specific value;
    所述第一移动终端向第二移动终端发送屏幕共享请求,其中,所述屏幕共享请求中包括所述第二移动终端上的手机号,所述屏幕共享请求中还包括所述第一SIP INVITE消息,所述第二移动终端在接收到所述屏幕共享请求的情况下,解析所述屏幕共享请求中的所述第一SIP INVITE消息,得到所述所述第一SIP INVITE消息的所述会话头信息的所述会话名称字段,在所述会话名称字段为所述特定值的情况下,提示有远程桌面共享的邀请,在所述会话名称字段为空的情况下,按照默认的RCS视频共享业务流程处理;The first mobile terminal sends a screen sharing request to the second mobile terminal, wherein the screen sharing request includes a mobile phone number on the second mobile terminal, and the screen sharing request further includes the first SIP INVITE message, the second mobile terminal, when receiving the screen sharing request, parses the first SIP INVITE message in the screen sharing request, and obtains the meeting of the first SIP INVITE message. The session name field of the session header information, in the case that the session name field is the specific value, prompts an invitation for remote desktop sharing, and in the case that the session name field is empty, the default RCS video sharing is performed. business process processing;
    在所述第一移动终端接收到所述第二移动终端返回的接收屏幕共享的指示的情况下,所述第一移动终端录制所述第一移动终端的界面内容,并将录制的内容编码为视频流;In the case that the first mobile terminal receives the instruction of receiving screen sharing returned by the second mobile terminal, the first mobile terminal records the interface content of the first mobile terminal, and encodes the recorded content as video stream;
    所述第一移动终端将所述视频流发送给所述第二移动终端,以进行屏幕共享。The first mobile terminal sends the video stream to the second mobile terminal for screen sharing.
  2. 根据权利要求1所述的方法,其中,在屏幕共享的过程中,所述方法还包括:The method according to claim 1, wherein, in the process of screen sharing, the method further comprises:
    在接收到所述第二移动终端发送的暂停指令的情况下,所述第一移动终端暂停录制所述界面内容,或者,所述第一移动终端暂停向所述第二移动终端发送所述视频流。In the case of receiving the pause instruction sent by the second mobile terminal, the first mobile terminal pauses recording the interface content, or the first mobile terminal pauses sending the video to the second mobile terminal flow.
  3. 根据权利要求1所述的方法,其中,在所述屏幕共享的过程中,所述方法还包括:The method according to claim 1, wherein, in the process of the screen sharing, the method further comprises:
    所述第一移动终端接收所述第二移动终端发送的SIP UPDATE消息,其中,所述第二移动终端在对所述第一移动终端的屏幕界面执行触控操作后,将所述触控操作和所述触控操作的触控位置填充到所述SIP UPDATE消息的特定字段中;The first mobile terminal receives the SIP UPDATE message sent by the second mobile terminal, wherein after the second mobile terminal performs a touch operation on the screen interface of the first mobile terminal, the touch operation is performed. and the touch position of the touch operation is filled into a specific field of the SIP UPDATE message;
    所述第一移动终端解析所述SIP UPDATE消息,获取所述触控操作和所述触控操作的触控位置。The first mobile terminal parses the SIP UPDATE message to acquire the touch operation and the touch position of the touch operation.
  4. 根据权利要求1所述的方法,其中,在所述屏幕共享的过程中,所述方法还包括:The method according to claim 1, wherein, in the process of the screen sharing, the method further comprises:
    所述第一移动终端与所述第二移动终端建立即时通信会话;establishing an instant communication session between the first mobile terminal and the second mobile terminal;
    所述第一移动终端接收所述第二移动终端发送的会话消息,在解析到所述会话消息中包含特定的字段的情况下,获取所述特定的字段中记录的所述第二移动终端在所述屏幕共享的过程中对所述第一移动终端的屏幕界面执行的触控操作与所述触控操作的触控位置;The first mobile terminal receives the session message sent by the second mobile terminal, and in the case of parsing that the session message contains a specific field, obtains the record of the second mobile terminal in the specific field. The touch operation performed on the screen interface of the first mobile terminal and the touch position of the touch operation during the screen sharing process;
    所述第一移动终端将所述触控操作与所述触控操作的触控位置转发给所述屏幕共享的应用。The first mobile terminal forwards the touch operation and the touch position of the touch operation to the screen sharing application.
  5. 根据权利要求1所述的方法,其中,在所述屏幕共享的过程中,所述方法还包括:The method according to claim 1, wherein, in the process of the screen sharing, the method further comprises:
    所述第一移动终端接收所述第二移动终端发送的第二sip invite消息;The first mobile terminal receives the second sip invite message sent by the second mobile terminal;
    所述第一移动终端解析所述第二sip invite消息,得到所述第二移动终端在所述屏幕共享的过程中对所述第一移动终端的屏幕界面执行的触控操作与所述触控操作的触控位置。The first mobile terminal parses the second sip invite message, and obtains the touch operation and the touch control performed by the second mobile terminal on the screen interface of the first mobile terminal during the screen sharing process The touch position of the operation.
  6. 一种移动终端的屏幕共享方法,包括:A screen sharing method of a mobile terminal, comprising:
    第二移动终端接收第一移动终端的屏幕共享请求,其中,所述屏幕共享请求中包括所述第二移动终端上的手机号,所述屏幕共享请求中还包括有第一SIP INVITE消息;The second mobile terminal receives a screen sharing request from the first mobile terminal, wherein the screen sharing request includes a mobile phone number on the second mobile terminal, and the screen sharing request further includes a first SIP INVITE message;
    所述第二移动终端解析所述第一SIP INVITE消息,在所述第一SIP INVITE消息中的会话头信息的会话名称字段为特定值的情况下,提示有远程桌面共享的邀请,在所述会话名称字段为空的情况下,按照默认的RCS视频共享业务流程处理;The second mobile terminal parses the first SIP INVITE message, and in the case that the session name field of the session header information in the first SIP INVITE message is a specific value, it prompts that there is an invitation for remote desktop sharing. If the session name field is empty, follow the default RCS video sharing business process;
    所述第二移动终端向所述第一移动终端发送接收屏幕共享的指示或拒绝屏幕共享的指示;sending, by the second mobile terminal, an indication of receiving screen sharing or an indication of rejecting screen sharing to the first mobile terminal;
    在所述第二移动终端向所述第一移动终端发送所述接收屏幕共享的指示的情况下,所述第二移动终端接收所述第一移动终端发送的视频流,以进行屏幕共享,其中,所述视频流通过所述第一移动终端录制所述第一移动终端的界面内容并对录制的内容进行编码得到。In the case where the second mobile terminal sends the indication of receiving screen sharing to the first mobile terminal, the second mobile terminal receives the video stream sent by the first mobile terminal for screen sharing, wherein , the video stream is obtained by recording the interface content of the first mobile terminal by the first mobile terminal and encoding the recorded content.
  7. 一种第一移动终端,包括:A first mobile terminal, comprising:
    定义单元,设置为将第一SIP INVITE消息中的会话头信息的会话名称字段定义为特定值;A definition unit, configured to define the session name field of the session header information in the first SIP INVITE message as a specific value;
    第一发送单元,设置为向第二移动终端发送屏幕共享请求,其中,所述屏幕共享请求中包括所述第二移动终端上的手机号,所述屏幕共享请求中还包括所述第一SIP INVITE消息,所述第二移动终端在接收到所述屏幕共享请求的情况下,解析所述屏幕共享请求中的所述第一SIP INVITE消息,得到所述所述第一SIP INVITE消息的所述会话头信息的所述会话名称字段,在所述会话名称字段为所述特定值的情况下,提示有远程桌面共享的邀请,在所述会话名称字段为空的情况下,按照默认的RCS视频共享业务流程处理;a first sending unit configured to send a screen sharing request to a second mobile terminal, wherein the screen sharing request includes a mobile phone number on the second mobile terminal, and the screen sharing request further includes the first SIP INVITE message, in the case of receiving the screen sharing request, the second mobile terminal parses the first SIP INVITE message in the screen sharing request to obtain the information of the first SIP INVITE message The session name field of the session header information, in the case that the session name field is the specific value, prompts an invitation for remote desktop sharing, and in the case that the session name field is empty, according to the default RCS video Shared business process processing;
    录制单元,设置为在所述第一移动终端接收到所述第二移动终端返回的接收屏幕共享的指示的情况下,录制所述第一移动终端的界面内容,并将录制的内容编码为视频流;a recording unit, configured to record the interface content of the first mobile terminal when the first mobile terminal receives an instruction to receive screen sharing returned by the second mobile terminal, and encode the recorded content into a video flow;
    第二发送单元,设置为所述第一移动终端将所述视频流发送给所述第二移动终端,以进行屏幕共享。The second sending unit is configured to send the video stream to the second mobile terminal by the first mobile terminal for screen sharing.
  8. 一种第二移动终端,包括:A second mobile terminal, comprising:
    第一接收单元,设置为接收第一移动终端的屏幕共享请求,其中,所述屏幕共享请求中包括所述第二移动终端上的手机号,所述屏幕共享请求中还包括有第一SIP INVITE消息;A first receiving unit, configured to receive a screen sharing request from a first mobile terminal, wherein the screen sharing request includes a mobile phone number on the second mobile terminal, and the screen sharing request also includes a first SIP INVITE information;
    解析单元,设置为解析所述第一SIP INVITE消息,在所述第一SIP INVITE消息中的会话头信息的会话名称字段为特定值的情况下,提示有远程桌面共享的邀请,在所述会话名称字段为空的情况下,按照默认的RCS视频共享业务流程处理;A parsing unit, configured to parse the first SIP INVITE message, and in the case that the session name field of the session header information in the first SIP INVITE message is a specific value, prompting an invitation for remote desktop sharing, and in the session If the name field is empty, it is processed according to the default RCS video sharing business process;
    发送单元,设置为向所述第一移动终端发送接收屏幕共享的指示或拒绝屏幕共享的指示;a sending unit, configured to send an indication of receiving screen sharing or an indication of rejecting screen sharing to the first mobile terminal;
    第二接收单元,设置为在所述第二移动终端向所述第一移动终端发送所述接收屏幕共享的指示的情况下,接收所述第一移动终端发送的视频流,以进行屏幕共享,其中,所述视频流通过所述第一移动终端录制所述第一移动终端的界面内容并对录制的内容进行编码得到。a second receiving unit, configured to receive a video stream sent by the first mobile terminal to perform screen sharing when the second mobile terminal sends the instruction to receive the screen sharing to the first mobile terminal, The video stream is obtained by recording the interface content of the first mobile terminal by the first mobile terminal and encoding the recorded content.
  9. 一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,其中,所述计算机程序被处理器执行时实现所述权利要求1至5任一项中所述的方法的步骤,或者实 现权利要求6中所述的方法的步骤。A computer-readable storage medium storing a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 5 when the computer program is executed by a processor , or implement the steps of the method recited in claim 6 .
  10. 一种电子装置,包括存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现所述权利要求1至5任一项中所述的方法的步骤,或者实现权利要求6中所述的方法的步骤。An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, when the processor executes the computer program, any one of claims 1 to 5 is implemented The steps of the method recited in claim 6, or the steps of implementing the method recited in claim 6.
PCT/CN2021/119143 2020-12-31 2021-09-17 Screen sharing method for mobile terminals, mobile terminal, and storage medium WO2022142492A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011635623.8 2020-12-31
CN202011635623.8A CN114765603A (en) 2020-12-31 2020-12-31 Screen sharing method of mobile terminal, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
WO2022142492A1 true WO2022142492A1 (en) 2022-07-07

Family

ID=82258986

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/119143 WO2022142492A1 (en) 2020-12-31 2021-09-17 Screen sharing method for mobile terminals, mobile terminal, and storage medium

Country Status (2)

Country Link
CN (1) CN114765603A (en)
WO (1) WO2022142492A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115484086A (en) * 2022-09-07 2022-12-16 中移互联网有限公司 Cloud mobile phone screen sharing method, electronic equipment and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009138004A1 (en) * 2008-05-14 2009-11-19 华为技术有限公司 Method, device and system for realizing the electronic whiteboard in an audio/video conference
CN101674110A (en) * 2009-10-21 2010-03-17 中兴通讯股份有限公司 Method for implementing desktop sharing and control of mobile terminals and mobile terminal
WO2010135876A1 (en) * 2009-05-27 2010-12-02 中兴通讯股份有限公司 System and method for implementing electronic whiteboard conference based on ip multimedia subsystem architecture
US20140108568A1 (en) * 2011-03-29 2014-04-17 Ti Square Technology Ltd. Method and System for Providing Multimedia Content Sharing Service While Conducting Communication Service
CN104836852A (en) * 2015-04-22 2015-08-12 深圳市邦彦信息技术有限公司 Multi-linked screen desktop sharing method and system
CN105472100A (en) * 2014-08-15 2016-04-06 中兴通讯股份有限公司 Desktop sharing method and terminal
CN110691102A (en) * 2019-10-29 2020-01-14 维沃移动通信有限公司 Information sharing method, electronic equipment and server
CN111314903A (en) * 2020-02-14 2020-06-19 维沃移动通信有限公司 Information sharing method and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7664124B2 (en) * 2005-05-31 2010-02-16 At&T Intellectual Property, I, L.P. Methods, systems, and products for sharing content
CN101346964B (en) * 2005-11-03 2012-09-05 意大利电信股份公司 Method for establishing multimedia conversation with remote user of communication network
US8347216B2 (en) * 2008-10-01 2013-01-01 Lg Electronics Inc. Mobile terminal and video sharing method thereof
CN104954149B (en) * 2014-03-26 2018-10-30 华为技术有限公司 The method, apparatus and system of data sharing are carried out in Web conference
CN111225103B (en) * 2018-11-23 2022-06-07 中兴通讯股份有限公司 Call method, terminal and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009138004A1 (en) * 2008-05-14 2009-11-19 华为技术有限公司 Method, device and system for realizing the electronic whiteboard in an audio/video conference
WO2010135876A1 (en) * 2009-05-27 2010-12-02 中兴通讯股份有限公司 System and method for implementing electronic whiteboard conference based on ip multimedia subsystem architecture
CN101674110A (en) * 2009-10-21 2010-03-17 中兴通讯股份有限公司 Method for implementing desktop sharing and control of mobile terminals and mobile terminal
US20140108568A1 (en) * 2011-03-29 2014-04-17 Ti Square Technology Ltd. Method and System for Providing Multimedia Content Sharing Service While Conducting Communication Service
CN103748610A (en) * 2011-03-29 2014-04-23 Ti广场技术株式会社 Method and system for providing multimedia content sharing service while conducting communication service
CN105472100A (en) * 2014-08-15 2016-04-06 中兴通讯股份有限公司 Desktop sharing method and terminal
CN104836852A (en) * 2015-04-22 2015-08-12 深圳市邦彦信息技术有限公司 Multi-linked screen desktop sharing method and system
CN110691102A (en) * 2019-10-29 2020-01-14 维沃移动通信有限公司 Information sharing method, electronic equipment and server
CN111314903A (en) * 2020-02-14 2020-06-19 维沃移动通信有限公司 Information sharing method and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115484086A (en) * 2022-09-07 2022-12-16 中移互联网有限公司 Cloud mobile phone screen sharing method, electronic equipment and computer readable storage medium
CN115484086B (en) * 2022-09-07 2023-10-27 中移互联网有限公司 Cloud mobile phone screen sharing method, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN114765603A (en) 2022-07-19

Similar Documents

Publication Publication Date Title
EP3952265B1 (en) Call processing method and device
WO2020220840A1 (en) Same-screen network connection method, apparatus, smart device, and storage medium
CN110891123B (en) Interactive information transmission method and device
US20140293997A1 (en) Method, Apparatus, and System for Implementing VOIP Call in Cloud Computing Environment
US11050801B2 (en) Call to meeting upgrade
CN110650254B (en) Information transmission method, information reception method, terminal, and storage medium
CN107786415B (en) Service processing method and related equipment and system
WO2022142492A1 (en) Screen sharing method for mobile terminals, mobile terminal, and storage medium
CN113473395B (en) Message processing method, device, medium and electronic equipment
US20180270278A1 (en) Device and method for providing mobile internet call service
US9049310B2 (en) Data communication
CN112866253B (en) Information transmission method and device and electronic equipment
CN117715235A (en) Communication establishment method and device, terminal equipment and network side equipment
CN116346988A (en) Method and device for receiving incoming call
CN113766630A (en) IMS network registration method, device and electronic equipment
CN110505070A (en) A kind of method for building up and device of tripartite's session
WO2024067309A1 (en) Position guidance processing method and apparatus, storage medium and electronic apparatus
CN117082461B (en) Method, device and storage medium for transmitting 5G message in audio/video call
EP4395306A1 (en) Communication method, apparatus, and system
WO2023011476A1 (en) Communication method, data channel establishment method, device, and storage medium
WO2023011024A1 (en) Method for reporting malicious call, terminal, electronic device, and storage medium
WO2023221855A1 (en) Data channel application list processing method, apparatus, and device
WO2023087925A1 (en) Telecommunication method, electronic device, and storage medium
JP6731977B2 (en) Information processing system, information processing system control method, and information processing system control program
US20210185170A1 (en) Media display control method and related product

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

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

Country of ref document: EP

Kind code of ref document: A1