Screen projection control method and device, electronic equipment and computer readable storage medium

By establishing a screen mirroring connection without waiting for user interface operation on the target device, and determining the target connection status based on interface operation, the problem of connection timeout is solved, improving the convenience of screen mirroring and user experience.

CN120956953APending Publication Date: 2025-11-14SHENZHEN TCL DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511058432.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-29
Publication Date
2025-11-14

AI Technical Summary

Technical Problem

In existing screen mirroring control systems, when users refuse screen mirroring requests via pop-up windows, fail to process them for an extended period, or block them, connection timeouts occur, preventing the phone from mirroring to the TV again within a short time, resulting in poor operational convenience.

Method used

After receiving the screen mirroring information, the device being mirrored establishes a connection without waiting for user interface operation. It can then determine the target connection status through interface operation, control the screen mirroring display, avoid connection timeout, and ensure that the device can be found next time.

Benefits of technology

It improves the convenience and user experience of device projection, ensures that the projection device can still find the projected device even if the connection times out, simplifies the connection process, and improves the accuracy and effectiveness of projection display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120956953A_ABST
    Figure CN120956953A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a screen projection control method and device, electronic equipment and a computer readable storage medium, and relates to the technical field of screen projection, and the method comprises the steps that screen projection equipment receives screen projection information sent by screen projection equipment, establishes screen projection connection with the screen projection equipment according to the screen projection information, and displays a user interface for the screen projection connection, and determining a target connection state of the projection screen connection according to an interface operation for the user interface, and controlling projection screen display according to the target connection state. According to the invention, the screen-projected device can complete the screen projection connection with the screen projection device without waiting for the interface operation of the user interface, so that the screen projection device is not in a connection timeout state due to the refusal, long-time non-processing or shielding of the screen-projected device, and the screen-projected device is prevented from being added to a blacklist of the screen projection device. The screen projection device can still search the screen-projected device during next screen projection, the convenience of screen projection of the device is improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of screen projection technology, specifically to a screen projection control method, device, electronic device, and computer-readable storage medium. Background Technology

[0002] Currently, smart devices support various screen mirroring technologies, including Miracast, DLNA, Google Cast, Scrcpy, and others. These technologies enable screen sharing and content transfer between devices via WiFi, USB, and other methods, and are widely used in scenarios such as home entertainment, office meetings, and remote education.

[0003] However, current device screen mirroring control mainly relies on interface confirmation. For example, when a mobile phone initiates a screen mirroring request to a TV, a pop-up window for screen mirroring connection will be generated and displayed on the TV. After the user confirms the connection, the screen mirroring connection between the mobile phone and the TV can be triggered.

[0004] However, when a user rejects the screen mirroring request via a pop-up, fails to process it for an extended period, or blocks the screen mirroring request, the mobile device will remain in a connection request state for an extended period, eventually resulting in a connection timeout. Consequently, the TV will be added to the blacklist. Once the TV is added to the blacklist, the mobile device will be unable to find the TV when it attempts to mirror again within a short period, causing the mobile device to be unable to attempt to mirror to the TV again for a short time, resulting in poor operational convenience. Summary of the Invention

[0005] This application provides a screen projection control method, device, electronic device, and computer-readable storage medium, which can improve the convenience of screen projection and enhance the user experience.

[0006] In a first aspect, embodiments of this application provide a screen mirroring control method, applied to a device on which the screen is mirrored, the method comprising:

[0007] Receive screen mirroring information sent by the screen mirroring device;

[0008] Establish a screen projection connection with the screen projection device based on the screen projection information, and display a user interface for the screen projection connection;

[0009] The target connection status of the screen projection connection is determined based on the interface operations performed on the user interface.

[0010] Control the screen projection display based on the target connection status.

[0011] Secondly, embodiments of this application also provide a screen projection control device, applied to the device to which the screen is projected, the device comprising:

[0012] The receiving module is used to receive screen projection information sent by the screen projection device;

[0013] The processing module is used to establish a screen projection connection with the screen projection device based on the screen projection information, and to display a user interface for the screen projection connection;

[0014] A determining module is used to determine the target connection status of the screen projection connection based on the interface operations performed on the user interface.

[0015] The control module is used to control the screen projection display according to the target connection status.

[0016] Optionally, in some embodiments of this application, controlling the screen projection display according to the target connection state includes:

[0017] If the target connection status includes maintaining a connection, then the screen projection content sent by the screen projection device is received and displayed.

[0018] If the target connection status includes disconnection, then disconnect the screen mirroring connection;

[0019] Determining the target connection status of the screen projection connection based on interface operations for the user interface includes:

[0020] If the interface operation includes an agreement to connect, then the connection will be maintained as the target connection state.

[0021] If the interface operation includes disagreeing with the connection operation or inactivity for a long time, then disconnection will be set as the target connection state.

[0022] Optionally, in some embodiments of this application, the device further includes:

[0023] If the screen mirroring device is a device that was successfully connected in a previous phase, then the user interface for the screen mirroring connection will not be displayed;

[0024] Determining the target connection status of the screen projection connection based on interface operations for the user interface includes:

[0025] The target connection state is to directly maintain the connection.

[0026] Optionally, in some embodiments of this application, the step of establishing a screen projection connection with the screen projection device based on the screen projection information and displaying a user interface for the screen projection connection includes:

[0027] The preset connection receiving information is sent to the state machine according to the screen projection information control framework layer;

[0028] The state machine controls the establishment of the screen projection connection based on the connection received information, and displays the user interface for the screen projection connection.

[0029] Thirdly, embodiments of this application provide a screen projection control method, applied to a screen projection device, the method comprising:

[0030] Send screen mirroring information to the device being mirrored;

[0031] Establish a screen projection connection with the device to which the screen is projected based on the projection information;

[0032] The device being projected also displays a user interface for the projection connection, determines the target connection status based on the interface operations for the user interface, and controls the projection display based on the target connection status.

[0033] Fourthly, embodiments of this application provide a screen projection control device, applied to a screen projection device, the device comprising:

[0034] The sending module is used to send screen projection information to the device being projected.

[0035] The connection module is used to establish a screen projection connection with the device being projected to based on the screen projection information;

[0036] The device being projected also displays a user interface for the projection connection, determines the target connection status based on the interface operations for the user interface, and controls the projection display based on the target connection status.

[0037] Optionally, in some embodiments of this application, the device further includes:

[0038] Receive the target connection status sent by the device being projected;

[0039] If the target connection status includes maintaining a connection, then send the screen projection content to the screen projection device;

[0040] If the target connection status includes disconnection, then disconnect the screen mirroring connection;

[0041] Specifically, after disconnecting the screen mirroring connection, the device being mirrored to is removed from the blacklist, and the device being mirrored to cannot find the device in the blacklist when reconnecting to the screen mirroring connection.

[0042] Fifthly, embodiments of this application also provide an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps in the above-described screen projection control method.

[0043] Sixthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in the screen projection control method described above.

[0044] In a seventh aspect, embodiments of this application also provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations described in embodiments of this application.

[0045] In summary, in this embodiment of the application, the device receiving the projection information sent by the projection device establishes a projection connection with the projection device based on the projection information, displays a user interface for the projection connection, determines the target connection status of the projection connection based on the interface operation for the user interface, and controls the projection display based on the target connection status.

[0046] In this embodiment, the device being projected can complete the projection connection without waiting for user interface operations. This prevents the projecting device from being in a connection timeout state due to rejection, prolonged inactivity, or blocking by the device being projected into. It also avoids adding the device being projected into a blacklist, ensuring that the projecting device can still find the device being projected into the next time it projects, thus improving the convenience of projecting and enhancing the user experience.

[0047] Furthermore, after establishing a screen mirroring connection, the device being mirrored determines the target connection status based on user interface operations and controls the mirrored display accordingly, improving the accuracy and effectiveness of the mirrored display. Additionally, determining the target connection status and controlling the mirrored display through the user interface also enhances the diversity of screen mirroring control methods. Attached Figure Description

[0048] To more clearly illustrate the technical solutions in this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0049] Figure 1 This is a schematic diagram illustrating a scenario where the screen-projection control method is executed by the device being projected, as provided in an embodiment of this application.

[0050] Figure 2 This is a flowchart illustrating the screen projection control method provided in an embodiment of this application;

[0051] Figure 3 This is another schematic flowchart of the screen projection control method provided in the embodiments of this application;

[0052] Figure 4 This is a schematic diagram of the screen projection control device provided in the embodiments of this application;

[0053] Figure 5 This is another structural schematic diagram of the screen projection control device provided in the embodiments of this application;

[0054] Figure 6 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0055] The technical solutions of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0056] This application provides a screen mirroring control method, apparatus, electronic device, and computer-readable storage medium. Specifically, this application provides a screen mirroring control apparatus suitable for electronic devices, which include a device to which the screen is mirrored and a screen mirroring device. The device to which the screen is mirrored and the screen mirroring device include, but are not limited to, devices such as mobile phones, tablets, laptops, smart TVs, projectors, or smart screens.

[0057] For example, please see Figure 1 , Figure 1 This is a schematic diagram illustrating a scenario where the device being projected executes the projection control method, as provided in an embodiment of this application. Specifically, the execution process of the projection control method by the device being projected is as follows:

[0058] The device being projected 101 receives the projection information sent by the projection device 102, establishes a projection connection with the projection device 102 based on the projection information, displays a user interface for the projection connection, determines the target connection status of the projection connection based on the interface operation for the user interface, and controls the projection display based on the target connection status.

[0059] For example, taking a mobile phone as the screen mirroring device and a TV as the device being mirrored to. The mobile phone initiates a screen mirroring request to the TV. The TV establishes a screen mirroring connection with the mobile phone based on the screen mirroring request and displays a user interface for the screen mirroring connection. The TV responds to the user's interface operations on the user interface, determines the target connection status for the screen mirroring connection, and then controls the screen mirroring display based on the target connection status.

[0060] In summary, the device being projected to in this embodiment of the application can complete the projection connection with the projection device without waiting for user interface operations. This prevents the projection device from being in a connection timeout state due to rejection, prolonged inactivity, or blocking by the device being projected to, thus avoiding the situation where the device being projected to is added to the blacklist. It ensures that the projection device can still find the device being projected to the next time it projects, improving the convenience of device projection and enhancing the user experience.

[0061] Furthermore, after establishing a screen mirroring connection, the device being mirrored determines the target connection status based on user interface operations and controls the mirrored display accordingly, improving the accuracy and effectiveness of the mirrored display. Additionally, determining the target connection status and controlling the mirrored display through the user interface also enhances the diversity of screen mirroring control methods.

[0062] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the priority of the embodiments.

[0063] Please see Figure 2 , Figure 2 This is a flowchart illustrating the screen casting control method provided in this application embodiment. Although the flowchart shows a logical order, in some cases, the steps shown or described can be executed in a different order than that shown in the flowchart. Specifically, the executing entity of this screen casting control method includes the device being cast to, and the specific flow of the screen casting control method is as follows:

[0064] 201. Receive screen projection information sent by the screen projection device.

[0065] The devices to be projected include televisions, projectors, or smart screens, while the devices to be projected include mobile phones and tablets.

[0066] The screen casting information includes information related to screen casting, such as the screen casting request. Specifically, this screen casting information includes, but is not limited to, device identifier, device address, and the communication protocol used for screen casting.

[0067] 202. Establish a screen projection connection with the screen projection device based on the screen projection information, and display a user interface for the screen projection connection.

[0068] Specifically, screen mirroring connections include P2P connections, involving processes such as negotiation (nego req reporting), P2P interactive connections, and saving screen mirroring device information.

[0069] The user interface is an interface that users can operate and thus affect the screen mirroring connection result. For example, the user interface includes pop-ups.

[0070] 203. Determine the target connection status of the screen projection connection based on the interface operation for the user interface.

[0071] The target connection status refers to the state of the screen mirroring connection, which includes either a maintained connection or a disconnected connection. This target connection status is determined through user interaction.

[0072] For example, users can confirm the screen mirroring connection by operating the user interface. For instance, there are "Confirm" and "Reject" buttons in the pop-up window. When a user touches the "Confirm" button, the screen mirroring connection is confirmed, which corresponds to maintaining the target connection state. When a user touches the "Reject" button, the screen mirroring connection with the projection device is rejected, which corresponds to disconnecting the target connection state.

[0073] 204. Control the screen projection display according to the target connection status.

[0074] That is, the current screen projection processing task is controlled according to the target connection status.

[0075] In summary, the device being projected to in this embodiment of the application can complete the projection connection with the projection device without waiting for user interface operations. This prevents the projection device from being in a connection timeout state due to rejection, prolonged inactivity, or blocking by the device being projected to, thus avoiding the situation where the device being projected to is added to the blacklist. It ensures that the projection device can still find the device being projected to the next time it projects, improving the convenience of device projection and enhancing the user experience.

[0076] Furthermore, after establishing a screen mirroring connection, the device being mirrored determines the target connection status based on user interface operations and controls the mirrored display accordingly, improving the accuracy and effectiveness of the mirrored display. Additionally, determining the target connection status and controlling the mirrored display through the user interface also enhances the diversity of screen mirroring control methods.

[0077] Specifically, the step "controlling screen projection display according to the target connection status" includes:

[0078] If the target connection status includes maintaining a connection, then the screen projection content sent by the screen projection device is received and displayed.

[0079] If the target connection status includes disconnection, then the screen mirroring connection is disconnected.

[0080] For example, if the target connection status is "keep connected", the screen projection content sent by the screen projection device will be received and displayed based on the screen projection connection; if the target connection status is "disconnected", the screen projection connection established with the screen projection device will be disconnected, the screen projection content sent by the screen projection device will be refused to be received, and a series of operations such as resource release and screen projection device information clearing will be performed to end the connection process (e.g., remove group operation).

[0081] It is understood that user interface operations include agreeing to the connection and disagreeing to the connection / long-term inactivity; that is, prolonged user silence is also interpreted as the user refusing the connection. Agreeing to the connection corresponds to the user touching the "Confirm" button in the pop-up window, and disagreeing to the connection corresponds to the user touching the "Refuse" button in the pop-up window. Specifically, the step "determining the target connection status of the screen mirroring connection based on the interface operations performed on the user interface" includes:

[0082] If the interface operation includes an agreement to connect, then the connection will be maintained as the target connection state.

[0083] If the interface operation includes disagreeing with the connection operation or inactivity for a long time, then disconnection will be set as the target connection state.

[0084] Understandably, the user interface provides a confirmation function for the screen mirroring connection. This confirmation function does not affect prior or concurrent screen mirroring connection processes. Therefore, the screen mirroring device will not remain continuously connected for extended periods, preventing connection timeouts. Furthermore, even if a screen mirroring connection has already been established, if the user indicates a connection rejection via the user interface, the connection to the screen mirroring device will be disconnected based on the rejection action, preventing the display of content from the screen mirroring device.

[0085] In other words, the embodiments of this application do not affect the establishment process of the screen mirroring connection, and will not cause the screen mirroring device to be in a connection timeout state based on the confirmation result of the pop-up confirmation. Therefore, the screen mirroring device will not add the screen mirroring device to the blacklist, and thus, when the screen mirroring device generates a screen mirroring request again, it can also find the screen mirroring device through device discovery. For example, during a rapid reconnection within a short period of time, the screen mirroring device not on the blacklist can also be found.

[0086] Optionally, in embodiments of this application, if the screen-casting device has already successfully established a connection in a previous historical phase, then confirmation through a user interface is not required; the screen-casting content sent by the screen-casting device can be received and displayed directly after establishing a screen-casting connection with the screen-casting device. That is, optionally, in some embodiments of this application, the method further includes:

[0087] If the screen mirroring device is a device that failed to connect in a previous phase, then the user interface for the screen mirroring connection is displayed;

[0088] If the screen mirroring device is a device that was successfully connected in a previous phase, then the user interface for the screen mirroring connection will not be displayed; determining the target connection state of the screen mirroring connection based on the interface operation for the user interface includes: directly setting the maintained connection as the target connection state.

[0089] Understandably, since the screen mirroring connection has been successfully established in the previous stage, the connection confirmation process can be simplified (i.e., there is no need to display a user interface for user confirmation), maintaining the screen mirroring connection and receiving and displaying the screen mirroring content.

[0090] In this embodiment, whether to display a user interface and whether to directly establish a screen projection connection can be controlled by a state machine. Specifically, in some embodiments of this application, the step "establishing a screen projection connection with the screen projection device based on the screen projection information and displaying a user interface for the screen projection connection" includes:

[0091] The preset connection receiving information is sent to the state machine according to the screen projection information control framework layer;

[0092] The state machine controls the establishment of the screen projection connection based on the connection received information, and displays the user interface for the screen projection connection.

[0093] The framework layer includes FWK, or Framework, which refers to a complete set of basic structures and services provided by the Android operating system, providing developers and applications with a standardized development and runtime environment.

[0094] A state machine is a programming model used to manage complex state transitions and event handling. State machines simplify state management of complex systems by defining a set of states and events, and how these states transition between each other.

[0095] The connection reception information is pre-generated. In this embodiment, the connection reception information is sent to the state machine based on the screen projection information, and then the state machine processes the connection reception information. For example, the connection reception information includes a PEER_CONNECTION_USER_ACCEPT message. The state machine adjusts its state according to the connection reception information, and based on the adjusted state, it indicates or triggers the execution of the screen projection connection process, and controls the display of the user interface. It should be noted that when controlling the display of the user interface, it also determines whether the screen projection device is a device that successfully established a screen projection connection in a previous stage. If so, the user interface does not need to be displayed; otherwise, the user interface is displayed.

[0096] It should be noted that once the user confirms the screen mirroring connection through the user interface or maintains the screen mirroring connection with the screen mirroring device based on the characteristics of successful screen mirroring in the past, the screen mirroring device sends a broadcast of the screen mirroring connection change, which in turn initiates the upper-layer process to control the reception of the screen mirroring content from the screen mirroring device. For example, the upper-layer APP will create a socket connection to receive the screen mirroring content from the screen mirroring device for screen mirroring display.

[0097] User actions on the user interface also generate corresponding status information. For example, if the user presses the "Confirm" button, an "Accept" status is generated; if the user presses the "Reject" button, a "Reject" status is generated. Correspondingly, the status information for prolonged inactivity or when the action is disabled is the same as the status information for when the user presses the "Reject" button.

[0098] In cases of prolonged inactivity, a delay message is generated. This message controls the delay period (e.g., 500ms) before determining if any user interface activity has occurred. Furthermore, if no user interface activity is detected after the timeout limit (e.g., 20s), it is determined that the user has been inactive for an extended period, and a rejection status message is generated.

[0099] In summary, the device being projected to in this embodiment of the application can complete the projection connection with the projection device without waiting for user interface operations. This prevents the projection device from being in a connection timeout state due to rejection, prolonged inactivity, or blocking by the device being projected to, thus avoiding the situation where the device being projected to is added to the blacklist. It ensures that the projection device can still find the device being projected to the next time it projects, improving the convenience of device projection and enhancing the user experience.

[0100] Furthermore, after establishing a screen mirroring connection, the device being mirrored determines the target connection status based on user interface operations and controls the mirrored display accordingly, improving the accuracy and effectiveness of the mirrored display. Additionally, determining the target connection status and controlling the mirrored display through the user interface also enhances the diversity of screen mirroring control methods.

[0101] In addition, to more clearly understand the screen projection control method of this application embodiment, this application embodiment also describes the screen projection control process from the perspective of the screen projection device. For details, please refer to [link / reference]. Figure 3 , Figure 3 This is another flowchart illustrating the screen projection control method provided in this application embodiment, wherein the screen projection control method is executed by a screen projection device. Specifically, the screen projection control method includes:

[0102] 301. Send screen mirroring information to the device being mirrored;

[0103] 302. Establish a screen mirroring connection with the device to which the screen is being mirrored based on the screen mirroring information;

[0104] The device being projected also displays a user interface for the projection connection, determines the target connection status based on the interface operations for the user interface, and controls the projection display based on the target connection status.

[0105] For example, the screen mirroring device generates screen mirroring information in response to the user's screen mirroring operation, and sends the screen mirroring information to the device being mirrored, and then establishes a screen mirroring connection with the device being mirrored based on the screen mirroring information.

[0106] The processing of the device being projected is described above and will not be repeated here.

[0107] It is understood that when the device being projected determines to disconnect based on the user's interface operation, the projecting device also disconnects from the projected device. That is, optionally, in some embodiments of this application, the method further includes:

[0108] Receive the target connection status sent by the device being projected;

[0109] If the target connection status includes maintaining a connection, then send the screen projection content to the screen projection device;

[0110] If the target connection status includes disconnection, then disconnect the screen mirroring connection;

[0111] Specifically, after disconnecting the screen mirroring connection, the device being mirrored to is removed from the blacklist, and the device being mirrored to cannot find the device in the blacklist when reconnecting to the screen mirroring connection.

[0112] In traditional screen mirroring solutions based on interface confirmation, if a user refuses screen mirroring through the interface of the device being mirrored, or fails to make a selection for an extended period, the mirroring device will experience a connection timeout and be added to a blacklist. Consequently, when the mirroring device attempts to generate a new screen mirroring task, it will be unable to find the device being mirrored. However, in this embodiment, since a screen mirroring connection is established with the device being mirrored, even if the device refuses screen mirroring, it only disconnects the previously established connection and does not constitute a connection timeout. Therefore, the device is not added to a blacklist, and the problem of not being able to find the device being mirrored when generating a new screen mirroring task is avoided.

[0113] It should also be noted that devices added to the blacklist are not always in the blacklist. In this embodiment of the application, a timer is used to record the duration of each device in the blacklist, and the device is removed from the blacklist after the set duration is exceeded, so as to ensure that after a period of time, the screen mirroring device can mirror to the device.

[0114] To facilitate better implementation of the screen projection control method of this application, this application also provides a screen projection control device based on the above-described screen projection control method. The meanings of the terms used are the same as in the screen projection control method described above, and specific implementation details can be found in the descriptions of the method embodiments.

[0115] Please see Figure 4 , Figure 4 This is a schematic diagram of the screen projection control device provided in an embodiment of this application. The screen projection control device is applied to the device to which the screen is projected, and can be specifically as follows:

[0116] The receiving module 401 is used to receive screen projection information sent by the screen projection device;

[0117] The processing module 402 is used to establish a screen projection connection with the screen projection device based on the screen projection information, and to display a user interface for the screen projection connection;

[0118] The determining module 403 is used to determine the target connection status of the screen projection connection based on the interface operation for the user interface;

[0119] The control module 404 is used to control the screen projection display according to the target connection status.

[0120] Optionally, in some embodiments of this application, controlling the screen projection display according to the target connection state includes:

[0121] If the target connection status includes maintaining a connection, then the screen projection content sent by the screen projection device is received and displayed.

[0122] If the target connection status includes disconnection, then disconnect the screen mirroring connection;

[0123] Determining the target connection status of the screen projection connection based on interface operations for the user interface includes:

[0124] If the interface operation includes an agreement to connect, then the connection will be maintained as the target connection state.

[0125] If the interface operation includes disagreeing with the connection operation or inactivity for a long time, then disconnection will be set as the target connection state.

[0126] Optionally, in some embodiments of this application, the device further includes:

[0127] If the screen mirroring device is a device that was successfully connected in a previous phase, then the user interface for the screen mirroring connection will not be displayed;

[0128] Determining the target connection status of the screen projection connection based on interface operations for the user interface includes:

[0129] The target connection state is to directly maintain the connection.

[0130] Optionally, in some embodiments of this application, the step of establishing a screen projection connection with the screen projection device based on the screen projection information and displaying a user interface for the screen projection connection includes:

[0131] The preset connection receiving information is sent to the state machine according to the screen projection information control framework layer;

[0132] The state machine controls the establishment of the screen projection connection based on the connection received information, and displays the user interface for the screen projection connection.

[0133] In this embodiment, the receiving module 401 first receives the projection information sent by the projection device, the processing module 402 establishes a projection connection with the projection device based on the projection information, and displays a user interface for the projection connection, the determining module 403 determines the target connection status of the projection connection based on the interface operation for the user interface, and the control module 404 controls the projection display based on the target connection status.

[0134] In this embodiment, the device being projected can complete the projection connection without waiting for user interface operations. This prevents the projecting device from being in a connection timeout state due to rejection, prolonged inactivity, or blocking by the device being projected into. It also avoids adding the device being projected into a blacklist, ensuring that the projecting device can still find the device being projected into the next time it projects, thus improving the convenience of projecting and enhancing the user experience.

[0135] Furthermore, after establishing a screen mirroring connection, the device being mirrored determines the target connection status based on user interface operations and controls the mirrored display accordingly, improving the accuracy and effectiveness of the mirrored display. Additionally, determining the target connection status and controlling the mirrored display through the user interface also enhances the diversity of screen mirroring control methods.

[0136] Please see Figure 5 , Figure 5 This is another structural schematic diagram of the screen projection control device provided in the embodiments of this application, wherein the screen projection control device is applied to a screen projection device, and specifically as follows:

[0137] The sending module 501 is used to send screen projection information to the device being projected.

[0138] Connection module 502 is used to establish a screen projection connection with the screen projection device according to the screen projection information;

[0139] The device being projected also displays a user interface for the projection connection, determines the target connection status based on the interface operations for the user interface, and controls the projection display based on the target connection status.

[0140] Optionally, in some embodiments of this application, the device further includes:

[0141] Receive the target connection status sent by the device being projected;

[0142] If the target connection status includes maintaining a connection, then send the screen projection content to the screen projection device;

[0143] If the target connection status includes disconnection, then disconnect the screen mirroring connection;

[0144] Specifically, after disconnecting the screen mirroring connection, the device being mirrored to is removed from the blacklist, and the device being mirrored to cannot find the device in the blacklist when reconnecting to the screen mirroring connection.

[0145] In this embodiment, the sending module 501 first sends screen projection information to the device to be projected, and the connection module 502 establishes a screen projection connection with the device to be projected based on the screen projection information. The device to be projected also displays a user interface for the screen projection connection, determines the target connection status based on the interface operation for the user interface, and controls the screen projection display based on the target connection status.

[0146] Since a connection is established with the target device during the casting process, it is not a traditional connection timeout situation. Therefore, there is no need to add the target device to the blacklist, ensuring that the target device can still be detected when reconnecting in a short period of time, improving the convenience of device casting and enhancing the user experience.

[0147] In addition, this application also provides an electronic device, such as Figure 6 As shown, it illustrates the structural diagram of the electronic device involved in this application, specifically:

[0148] The electronic device may include components such as a processor 601 with one or more processing cores, a memory 602 with one or more computer-readable storage media, a power supply 603, and an input unit 604. Those skilled in the art will understand that... Figure 6 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:

[0149] The processor 601 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines, and performs various functions and processes data by running or executing software programs and / or modules stored in the memory 602, and by calling data stored in the memory 602, thereby providing overall monitoring of the electronic device. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 601.

[0150] The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.

[0151] The electronic device also includes a power supply 603 that supplies power to the various components. Preferably, the power supply 603 can be logically connected to the processor 601 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 603 may also include one or more DC or AC power supplies, recharging systems, power equipment debugging circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0152] The electronic device may also include an input unit 604, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0153] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 601 in the electronic device loads the executable files corresponding to the processes of one or more applications into the memory 602 according to the following instructions, and the processor 601 runs the applications stored in the memory 602, thereby implementing the steps in any of the screen projection control methods provided in the embodiments of this application.

[0154] In this embodiment of the application, the device being projected receives projection information sent by the projection device, establishes a projection connection with the projection device based on the projection information, displays a user interface for the projection connection, determines the target connection status of the projection connection based on the interface operation for the user interface, and controls the projection display based on the target connection status.

[0155] In this embodiment, the device being projected can complete the projection connection without waiting for user interface operations. This prevents the projecting device from being in a connection timeout state due to rejection, prolonged inactivity, or blocking by the device being projected into. It also avoids adding the device being projected into a blacklist, ensuring that the projecting device can still find the device being projected into the next time it projects, thus improving the convenience of projecting and enhancing the user experience.

[0156] Furthermore, after establishing a screen mirroring connection, the device being mirrored determines the target connection status based on user interface operations and controls the mirrored display accordingly, improving the accuracy and effectiveness of the mirrored display. Additionally, determining the target connection status and controlling the mirrored display through the user interface also enhances the diversity of screen mirroring control methods.

[0157] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0158] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0159] Therefore, this application provides a computer-readable storage medium storing a computer program that can be loaded by a processor to execute the steps of any of the screen projection control methods provided in this application.

[0160] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0161] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0162] Since the instructions stored in the computer-readable storage medium can execute the steps of any of the screen projection control methods provided in this application, the beneficial effects that any of the screen projection control methods provided in this application can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.

[0163] The foregoing has provided a detailed description of the screen projection control method, device, electronic device, and computer-readable storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A screen projection control method, characterized in that, Applied to the device being projected, the method includes: Receive screen mirroring information sent by the screen mirroring device; Establish a screen projection connection with the screen projection device based on the screen projection information, and display a user interface for the screen projection connection; The target connection status of the screen projection connection is determined based on the interface operations performed on the user interface. Control the screen projection display based on the target connection status.

2. The screen projection control method according to claim 1, characterized in that, The step of controlling the screen projection display according to the target connection status includes: If the target connection status includes maintaining a connection, then the screen projection content sent by the screen projection device is received and displayed. If the target connection status includes disconnection, then disconnect the screen mirroring connection; Determining the target connection status of the screen projection connection based on interface operations for the user interface includes: If the interface operation includes an agreement to connect, then the connection will be maintained as the target connection state. If the interface operation includes disagreeing with the connection operation or inactivity for a long time, then disconnection will be set as the target connection state.

3. The screen projection control method according to claim 1, characterized in that, The method further includes: If the screen mirroring device is a device that was successfully connected in a previous phase, then the user interface for the screen mirroring connection will not be displayed; Determining the target connection status of the screen projection connection based on interface operations for the user interface includes: The target connection state is to directly maintain the connection.

4. The screen projection control method according to claim 1, characterized in that, The step of establishing a screen projection connection with the screen projection device based on the screen projection information and displaying a user interface for the screen projection connection includes: The preset connection receiving information is sent to the state machine according to the screen projection information control framework layer; The state machine controls the establishment of the screen projection connection based on the connection received information, and displays the user interface for the screen projection connection.

5. A screen projection control method, characterized in that, Applied to screen projection devices, the method includes: Send screen mirroring information to the device being mirrored; Establish a screen projection connection with the device to which the screen is projected based on the projection information; The device being projected also displays a user interface for the projection connection, determines the target connection status based on the interface operations for the user interface, and controls the projection display based on the target connection status.

6. The screen projection control method according to claim 5, characterized in that, The method further includes: Receive the target connection status sent by the device being projected; If the target connection status includes maintaining a connection, then send the screen projection content to the screen projection device; If the target connection status includes disconnection, then disconnect the screen mirroring connection; Specifically, after disconnecting the screen mirroring connection, the device being mirrored to is removed from the blacklist, and the device being mirrored to cannot find the device in the blacklist when reconnecting to the screen mirroring connection.

7. A screen projection control device, characterized in that, The device, applied to the device being projected, includes: The receiving module is used to receive screen projection information sent by the screen projection device; The processing module is used to establish a screen projection connection with the screen projection device based on the screen projection information, and to display a user interface for the screen projection connection; A determining module is used to determine the target connection status of the screen projection connection based on the interface operations performed on the user interface. The control module is used to control the screen projection display according to the target connection status.

8. A screen projection control device, characterized in that, The device, used in screen projection equipment, includes: The sending module is used to send screen projection information to the device being projected. The connection module is used to establish a screen projection connection with the device being projected to based on the projection information; The device being projected also displays a user interface for the projection connection, determines the target connection status based on the interface operations for the user interface, and controls the projection display based on the target connection status.

9. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps of the screen projection control method as described in any one of claims 1-4, or implements the steps of the screen projection control method as described in any one of claims 5-6.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the screen projection control method as described in any one of claims 1-6.