WO2023115316A1 - Screen mirroring method and apparatus, and storage medium and electronic device - Google Patents

Screen mirroring method and apparatus, and storage medium and electronic device Download PDF

Info

Publication number
WO2023115316A1
WO2023115316A1 PCT/CN2021/139998 CN2021139998W WO2023115316A1 WO 2023115316 A1 WO2023115316 A1 WO 2023115316A1 CN 2021139998 W CN2021139998 W CN 2021139998W WO 2023115316 A1 WO2023115316 A1 WO 2023115316A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
target
receiving end
screen
target application
Prior art date
Application number
PCT/CN2021/139998
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 广州视源电子科技股份有限公司
Priority to PCT/CN2021/139998 priority Critical patent/WO2023115316A1/en
Priority to CN202180007692.0A priority patent/CN117083865A/en
Publication of WO2023115316A1 publication Critical patent/WO2023115316A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • 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/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home

Definitions

  • the present application relates to the communication field, and in particular to a screen projection method, device, storage medium and electronic equipment.
  • the user When performing screen projection, the user generally needs to open the screen projection software on the sending end, then open the application software that needs to be projected, and then enter the screen projection code, in order to finally realize the connection between the device at the sending end and the device at the receiving end, and then realize screen projection .
  • the whole operation process has many steps, and the operation efficiency is low.
  • the embodiments of the present application provide a screen projection method, device, storage medium, and electronic equipment, which can reduce the user's operation steps in the screen projection process, improve operation efficiency, and solve the problem of complicated operations before starting the screen projection. Described technical scheme is as follows:
  • the embodiment of the present application provides a screen projection method, which is applied to the sending end, and the method includes:
  • the application attribute of the target application belongs to the screen-casting application attribute in the screen-casting software, and is currently casting a screen, then send the data of the target application to the target receiving end, so that the target receiving end can The data of the target application is displayed to realize the projection of the target application;
  • a first prompt box is displayed to receive the screen projection instruction input by the user or not to perform the screen projection instruction
  • the data of the target application is sent to the target receiving end, so that the target receiving end displays the data of the target application, and the projection of the target application is realized. Screen.
  • the method also includes:
  • the editing operation includes adding application attributes and deleting application attributes.
  • the method also includes:
  • the method also includes:
  • a second prompt box is displayed to receive the delayed reminder duration information input by the user;
  • the first prompt box pops up.
  • the method also includes:
  • the service information including the identifier of the receiving end and the address of the receiving end;
  • the service information released by the receiving end is searched, the service information released by the receiving end is analyzed to obtain the identifier of the receiving end and the address of the receiving end;
  • the sending the data of the target application to the target receiving end includes:
  • the service information released by the receiving end also includes the password of the receiving end
  • the parsing of the service information released by the receiving end to obtain the identifier of the receiving end and the address of the receiving end includes:
  • the method also includes:
  • parsing the service information released by the receiving end includes:
  • the determining the target receiving end from the receiving end according to the identification of the receiving end includes:
  • the target receiver selection instruction corresponding to one of the identifiers of the plurality of receivers
  • the target receiving end is determined according to the target receiving end selection instruction.
  • the method also includes:
  • the pin code is analyzed to obtain the address of the target receiving end.
  • the embodiment of the present application provides a screen projection method, which is applied to the target receiving end, and the method includes:
  • the data of the target application is that the sending end is opening the target application, detecting the application attribute of the target application, and determining that the application attribute of the target application belongs to the available in the screen projection software The attribute of the screen-casting application, and it is currently being sent when the screen is being cast; or, the data of the target application is that the sending end determines that the application attribute of the target application belongs to the attribute of the screen-casting application in the screen-casting software, and the data of the target application is currently When the screen projection is not in progress, display the first prompt box to receive the screen projection instruction input by the user or not to perform the screen projection instruction, and send it after receiving the screen projection instruction input by the user;
  • the method also includes:
  • Publishing service information including the identification of the target receiving end and the address of the target receiving end;
  • the receiving data of the target application sent by the sending end includes:
  • the data of the target application is the service information released by the receiving end searched by the sending end, and after searching for the service information released by the receiving end, the service information released by the receiving end
  • the service information After analyzing the information, after obtaining the identification of the receiving end and the address of the receiving end, according to the identification of the receiving end, determine the target receiving end from the receiving end, and according to the address of the target receiving end, communicate with the target receiving end It is sent after the connection is established; wherein, the service information includes the identifier of the receiving end and the address of the receiving end.
  • the service information also includes the password of the target receiver
  • the displaying the data of the target application includes:
  • the password is obtained by analyzing the service information released by the receiving end after the sending end searches for the service information released by the receiving end;
  • the password is verified, and the data of the target application is displayed after the verification is passed.
  • the method also includes:
  • a pin code is displayed, and the pin code is used to indicate the address of the target receiver.
  • the embodiment of the present application provides a screen projection device, including:
  • An application opening module configured to open a target application
  • An application attribute detection module configured to detect the application attribute of the target application
  • the data sending module is used to send the data of the target application to the target receiving end when the application attribute of the target application belongs to the attribute of the screen-casting application in the screen-casting software and is currently being screen-casting, so that the The target receiving end displays the data of the target application to realize screen projection of the target application;
  • the screen projection determination module is used to display the first prompt box when the application attribute of the target application belongs to the screen projection application attribute in the screen projection software, and the screen projection is not currently performed, so as to receive the screen projection instruction input by the user Or do not perform screen projection instructions;
  • the data sending module is further configured to send the data of the target application to the target receiving end after receiving the screen projection instruction input by the user, so that the target receiving end can display the data of the target application to realize Screencasting of the target application.
  • the device also includes:
  • the screen-casting application attribute editing module is used to open the setting item function of the screen-casting software, and perform editing operations on the application attributes of the screen-casting application;
  • the editing operation includes adding application attributes and deleting application attributes.
  • the device further includes a screen projection application switching module, which is used for:
  • the device further includes a display module for;
  • a second prompt box is displayed to receive the delayed reminder duration information input by the user;
  • the first prompt box pops up.
  • the device also includes:
  • a service information search module configured to search for service information released by the receiving end, where the service information includes the identifier of the receiving end and the address of the receiving end;
  • a service information parsing module configured to analyze the service information released by the receiving end when searching for the service information released by the receiving end, to obtain the identifier of the receiving end and the address of the receiving end;
  • a target receiver determining module configured to determine a target receiver from among the receivers according to the identifier of the receiver
  • the data sending module sends the data of the target application to the target receiving end, it is specifically used for:
  • the service information released by the receiving end also includes the password of the receiving end
  • the service information parsing module is specifically used for:
  • the data sending module is also used to send the password of the target receiving end to the target receiving end, so that the target receiving end can verify the password, and after the verification is passed, the data of the target application to display.
  • the service information parsing module is specifically used for:
  • the display module is also used to display the identifications of the plurality of receiving terminals
  • the target receiving end determining module determines the target receiving end from the receiving end according to the identification of the receiving end, it is specifically used for:
  • the target receiver selection instruction corresponding to one of the identifiers of the plurality of receivers
  • the target receiving end is determined according to the target receiving end selection instruction.
  • the display module is also used to: display the pin code input interface when the service information released by the target receiving end is not searched;
  • the device further includes: a pin code parsing module for receiving a pin code input by a user, the pin code being used to indicate the address of the target receiving end; analyzing the pin code to obtain the address of the target receiving end.
  • the embodiment of the present application provides a screen projection device, including:
  • the data receiving module is used to receive the data of the target application sent by the sender;
  • the data of the target application is that the sender opens the target application, detects the application attribute of the target application, and determines that the application attribute of the target application belongs to The attribute of the screen-casting application in the screen-casting software, and it is sent when the screen is currently being cast; or, the data of the target application is that the sending end determines that the application attribute of the target application belongs to the screen-casting software.
  • Screen application attributes, and when the screen projection is not currently being performed the first prompt box is displayed to receive the screen projection instruction input by the user or not to perform the screen projection instruction, and send it after receiving the screen projection instruction input by the user;
  • the display module is configured to display the data of the target application, so as to realize the screen projection of the target application.
  • the device also includes:
  • a service information publishing module configured to publish service information, the service information including the identification of the target receiving end and the address of the target receiving end;
  • the data receiving module is specifically used for:
  • the data of the target application is the service information released by the receiving end searched by the sending end, and after searching for the service information released by the receiving end, the service information released by the receiving end
  • the service information After analyzing the information, after obtaining the identification of the receiving end and the address of the receiving end, according to the identification of the receiving end, determine the target receiving end from the receiving end, and according to the address of the target receiving end, communicate with the target receiving end It is sent after the connection is established; wherein, the service information includes the identifier of the receiving end and the address of the receiving end.
  • the service information also includes the password of the target receiver
  • the display module is specifically used for: displaying the password input interface; receiving the password sent by the sending end; the password is the service information issued by the receiving end after the sending end searches, and parsing the service information issued by the receiving end obtained; the password is verified, and the data of the target application is displayed after the verification is passed.
  • the display module is also used for:
  • a pin code is displayed, and the pin code is used to indicate the address of the target receiver.
  • the embodiment of the present application provides a screen projection method, which is applied to the sending end, and the method includes:
  • the application attribute of the target application belongs to the screen-casting application attribute in the screen-casting software, and is currently casting a screen, then send the data of the target application to the target receiving end, so that the target receiving end can The data of the target application is displayed to realize the projection of the target application;
  • the application attribute of the target application does not belong to the application attribute that can be projected in the screen projection software, the data of the target application is not sent to the target receiving end, and the screen projection of the target application is not performed.
  • the method also includes:
  • a first prompt box is displayed to receive the screen-casting instruction input by the user or not to perform the screen-casting instruction
  • the data of the target application is sent to the target receiving end, so that the target receiving end displays the data of the target application, and the projection of the target application is realized. Screen.
  • the method also includes:
  • the editing operation includes adding application attributes and deleting application attributes.
  • the method also includes:
  • the method also includes:
  • a second prompt box is displayed to receive the delayed reminder duration information input by the user;
  • the first prompt box pops up.
  • the method also includes:
  • the service information including the identifier of the receiving end and the address of the receiving end;
  • the service information released by the receiving end is searched, the service information released by the receiving end is analyzed to obtain the identifier of the receiving end and the address of the receiving end;
  • the sending the data of the target application to the target receiving end includes:
  • the service information released by the receiving end also includes the password of the receiving end
  • the parsing of the service information released by the receiving end to obtain the identifier of the receiving end and the address of the receiving end includes:
  • the method also includes:
  • parsing the service information released by the receiving end includes:
  • the determining the target receiving end from the receiving end according to the identification of the receiving end includes:
  • the target receiver selection instruction corresponding to one of the identifiers of the plurality of receivers
  • the target receiving end is determined according to the target receiving end selection instruction.
  • the method also includes:
  • the pin code is analyzed to obtain the address of the target receiving end.
  • the embodiment of the present application provides a screen projection device, including:
  • An application opening module configured to open a target application
  • An application attribute detection module configured to detect the application attribute of the target application
  • the data sending module is used to send the data of the target application to the target receiving end when the application attribute of the target application belongs to the attribute of the screen-casting application in the screen-casting software and is currently being screen-casting, so that the The target receiving end displays the data of the target application to realize the screen projection of the target application; when the application attribute of the target application does not belong to the application attribute of the screen projection software, the target application is not displayed.
  • the data of the application is sent to the target receiving end, and the target application is not projected.
  • the embodiment of the present application provides a screen projection method, which is applied to the sending end, and the method includes:
  • a first prompt box is displayed to receive the screen-casting instruction input by the user or not to perform the screen-casting instruction
  • the data of the target application is sent to the target receiving end, so that the target receiving end displays the data of the target application, and the projection of the target application is realized. Screen.
  • the method also includes:
  • the application attribute of the target application belongs to the screen-casting application attribute in the screen-casting software, and is currently casting a screen, then send the data of the target application to the target receiving end, so that the target receiving end can The data of the target application is displayed, and the screen projection of the target application is realized.
  • the method also includes:
  • the editing operation includes adding application attributes and deleting application attributes.
  • the method also includes:
  • the method also includes:
  • a second prompt box is displayed to receive the delayed reminder duration information input by the user;
  • the first prompt box pops up.
  • the method also includes:
  • the service information including the identifier of the receiving end and the address of the receiving end;
  • the service information issued by the receiving end is searched, the service information issued by the receiving end is analyzed to obtain the identification of the receiving end and the address of the receiving end;
  • the sending the data of the target application to the target receiving end includes:
  • the service information released by the receiving end also includes the password of the receiving end
  • the parsing of the service information released by the receiving end to obtain the identifier of the receiving end and the address of the receiving end includes:
  • the method also includes:
  • parsing the service information released by the receiving end includes:
  • the determining the target receiving end from the receiving end according to the identification of the receiving end includes:
  • the target receiver selection instruction corresponding to one of the identifiers of the plurality of receivers
  • the target receiving end is determined according to the target receiving end selection instruction.
  • the method also includes:
  • the pin code is analyzed to obtain the address of the target receiving end.
  • the embodiment of the present application provides a screen projection device, including:
  • An application opening module configured to open a target application
  • An application attribute detection module configured to detect the application attribute of the target application
  • the screen projection determination module is used to display the first prompt box when the application attribute of the target application belongs to the screen projection application attribute in the screen projection software, and the screen projection is not currently performed, so as to receive the screen projection instruction input by the user Or do not perform screen projection instructions;
  • the data sending module is used to send the data of the target application to the target receiving end after receiving the screen projection instruction input by the user, so that the target receiving end can display the data of the target application to realize the Screencasting of the target application.
  • the embodiment of the present application provides a computer storage medium, the computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded and executed by a processor according to any one of the first aspect or any one of the second aspect. item or any one of the fifth aspect or the method steps of any one of the seventh aspect.
  • an embodiment of the present application provides an electronic device, including: a processor and a memory; wherein, the memory stores a computer program, and the computer program is adapted to be loaded and executed by the processor as described in any of the first aspects.
  • the embodiment of the present application provides a computer program product, including a computer program, which implements any item of the first aspect or any item of the second aspect or any item of the fifth aspect or any item of the fifth aspect when the computer program is executed by a processor.
  • a computer program product including a computer program, which implements any item of the first aspect or any item of the second aspect or any item of the fifth aspect or any item of the fifth aspect when the computer program is executed by a processor.
  • the screen projection method provided by this embodiment is applied to the sending end, including: opening the target application; detecting the application attribute of the target application; if the application attribute of the target application belongs to the application attribute that can be cast in the screen projection software, and the current If the screen is being projected, the data of the target application is sent to the target receiving end, so that the target receiving end displays the data of the target application to realize the screen projection of the target application; if the application attribute of the target application belongs to In the screen casting software, if the screen casting application attribute is available, and the screen is not currently being cast, the first prompt box will be displayed to receive the user input command to perform screen projection or not to perform screen projection; after receiving the user input, perform screen projection After the instruction, the data of the target application is sent to the target receiving end, so that the target receiving end displays the data of the target application and realizes screen projection of the target application.
  • the solution of this application automatically detects the application attributes of the target application after opening the target application, and when the application attributes belong to the application attributes set in the projection software and the projection software is started, the projection process is automatically triggered and the projection starts; Or, when the screen projection software is not opened, after confirming the customer's screen projection intention through the prompt box inquiry, the screen projection process is automatically triggered and the screen projection starts.
  • the user only needs to perform the operation of selecting the target application that needs to be projected, or additionally perform the operation of inputting the projecting command, and the subsequent connection and data transmission process is automatically carried out between devices, without the need for the existing technology. Multiple operations are performed by the user, which greatly simplifies the operation process and improves the efficiency of screen projection.
  • FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application
  • FIG. 2 is a flow chart of a screen projection method disclosed in an embodiment of the present application.
  • Fig. 3a is a schematic interface diagram of a first prompt box disclosed in the embodiment of the present application.
  • Fig. 3b is a schematic interface diagram of a second prompt box disclosed in the embodiment of the present application.
  • FIG. 4 is a flow chart of another screen projection method disclosed in the embodiment of the present application.
  • FIG. 5 is a flow chart of another screen projection method disclosed in the embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a screen projection device disclosed in an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of another screen projection device disclosed in an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
  • FIG. 9 is a flow chart of another screen projection method disclosed in the embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of another screen projection device disclosed in the embodiment of the present application.
  • FIG. 11 is a flow chart of another screen projection method disclosed in the embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of another screen projection device disclosed in an embodiment of the present application.
  • a software (referred to as projection software in this application) will run on the device at the sending end, which is used to capture information such as the screen of the sending end and transmit it to the receiving end, and the receiving end will run the screen projection receiving end software to receive and display these information.
  • projection software a software
  • users need to perform cumbersome steps to start the screen projection process before successful screen projection (transmitting data from the sender to the receiver).
  • the user needs to open the screen-casting software on the sending end; then open the target application that needs to be screen-casted; finally, the user needs to enter the screen-casting code to connect with the device on the receiving end.
  • the order of the first two steps can also be exchanged. In short, it requires the user to perform multiple clicks and input operations, which is relatively cumbersome.
  • the embodiment of the present application intends to propose a screen projection method, device, storage medium, and electronic equipment to provide users with a screen projection method that is easier to operate, which can reduce the user's operation steps when starting the screen projection process, and improve the operation efficiency. Efficiency, in order to solve the problem of complex operation before starting to cast the screen.
  • FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • the device at the sending end is a mobile phone
  • the device at the receiving end is an interactive tablet device.
  • the user only needs to start the target application on the mobile phone to quickly start the screen projection process.
  • the mobile phone communicates with the interactive tablet device. Through the screen projection function, the interface of the target application in the mobile phone will be transmitted and displayed on the interactive tablet device.
  • the device at the sending end may also be other electronic devices such as a personal computer and a smart tablet, and FIG. 1 is only illustrated as an example.
  • the hardware part of the interactive panel is composed of a touch display module, an intelligent processing system (including a controller), etc., which are combined by integral structural parts and supported by a dedicated software system.
  • the group includes a display screen, a touch component and a backlight component.
  • the backlight component is used to provide a backlight source for the display screen.
  • the display screen generally uses a liquid crystal display device for displaying images.
  • the front end of the display screen is used to collect touch operation data of the user, and send the collected touch operation data to an intelligent processing system for processing.
  • the display screen of the interactive tablet displays picture data.
  • a touch object such as a finger or a stylus pen
  • the touch screen of the interactive tablet The control component will collect the touch data, so that the touch component converts the touch data into the coordinate data of the touch point and sends it to the intelligent processing system, or sends it to the intelligent processing system, and the intelligent processing system converts it into the coordinate data of the touch point.
  • Coordinate data after the intelligent processing system obtains the coordinate data of the touch point, it realizes the corresponding control operation according to the preset program, drives the display screen to change the display content, and realizes diversified display and operation effects.
  • Touch components can be divided into five basic types based on technical principles: vector pressure sensing technology touch components, resistive technology touch components, capacitive technology touch components, electromagnetic technology touch screens, infrared technology touch components, and surface acoustic wave technology touch components. According to the working principle of the touch component and the medium for transmitting information, the touch component can be divided into four types: resistive, capacitive induction, electromagnetic induction, infrared and surface acoustic wave.
  • the touch component can collect the data of the touch point and send it to the intelligent processing system, and then implement different functional applications with the built-in software of the intelligent processing system, thereby realizing the control of the intelligent processing system Touch controls.
  • the "screen” and “big screen” mentioned in this application both refer to the display screen of the interactive panel; displaying a certain interface on the interactive panel means that the display screen of the interactive panel displays the interface.
  • the embodiment of the present application discloses a screen projection method, which is applied to a screen projection sending end.
  • FIG. 2 is a flow chart of a screen projection method disclosed in an embodiment of the present application. The method is applied to the sending end, and the method includes the following steps:
  • the sending end may perform an operation of opening the target application.
  • the corresponding command input by the user to open the target application may be a click operation on the icon of the target application, or a touch operation on the position of the icon of the target application through the human-computer interaction interface, or a user-interactive instruction through the human-computer interaction.
  • a preset touch gesture performed on the interface for example, multiple consecutive taps, multi-finger taps, or multi-finger slides.
  • the target application is determined in response to an operation instruction input by the user, and the application that needs to perform screen projection may be any application.
  • Application attributes refer to some specific attributes corresponding to the application.
  • the application attributes may include: application name, type of files supported by the application (such as document type application, audio type application, video type application, etc.) and so on.
  • the application attributes of the target application can be determined by querying the configuration information of the target application.
  • the user Before casting the screen, the user can determine the application (application name) that is allowed to perform the screen projection, or the type of the file to be opened or the application to be used during the screen projection process. Accordingly, the attribute corresponding to the application that allows screen projection can be set in advance as the attribute of the application that can cast the screen in the screen projection software.
  • the data of the target application can be directly sent to the target receiving end.
  • the target receiving end can receive the data of the target application and display it on the display interface.
  • whether the screen is being projected can be determined by detecting the process status of the screen projecting software.
  • the method steps of this application can be registered as a system service process, once a target application is opened, the system service process will be automatically triggered, the application attributes of the target application will be detected, and the projected Compare the properties of the screen application.
  • the properties of the screen-casting application in the screen-casting software can be stored in the disk as a list.
  • the screen projection When the screen projection is not in progress, it may be that the screen projection has not started yet, or the screen projection may be suspended. At this time, even if the application attribute of the open target application belongs to the application attribute of the screen projection software, the user still needs to be asked. , whether to cast the screen of this application.
  • the data of the target application can be sent to the target receiving end only after an instruction for screen projection input by the user is clearly received. In order to avoid casting content that the user does not want to screen, causing privacy leakage.
  • the first prompt box may be displayed on the display interface, and in the prompt box, it is asked in text form whether to perform screen projection, and the user chooses whether to perform screen projection or not, or the user inputs whether to perform screen projection or not. Screen.
  • the first prompt box displays "whether to perform screen mirroring" and provides two options “yes” and “no”. If the user selects "Yes”, it is determined that the user has input an instruction to perform screen projection, and then the data of the target application is sent to the target receiving end; if the user selects "No", it is determined that the user has input an instruction not to perform screen projection, then No further action will be taken.
  • the screen projection method provided by this embodiment is applied to the sending end, including: opening the target application; detecting the application attribute of the target application; if the application attribute of the target application belongs to the application attribute that can be cast in the screen projection software, and the current If the screen is being projected, the data of the target application is sent to the target receiving end, so that the target receiving end displays the data of the target application to realize the screen projection of the target application; if the application attribute of the target application belongs to In the screen casting software, if the screen casting application attribute is available, and the screen is not currently being cast, the first prompt box will be displayed to receive the user input command to perform screen projection or not to perform screen projection; after receiving the user input, perform screen projection After the instruction, the data of the target application is sent to the target receiving end, so that the target receiving end displays the data of the target application and realizes screen projection of the target application.
  • the solution of this application automatically detects the application attributes of the target application after opening the target application, and when the application attributes belong to the application attributes set in the projection software and the projection software is started, the projection process is automatically triggered and the projection starts; Or, when the screen projection software is not opened, after confirming the customer's screen projection intention through the prompt box inquiry, the screen projection process is automatically triggered and the screen projection starts.
  • the user only needs to perform the operation of selecting the target application that needs to be projected, or additionally perform the operation of inputting the projecting command, and the subsequent connection and data transmission process is automatically carried out between devices, without the need for the existing technology. Multiple operations are performed by the user, which greatly simplifies the operation process and improves the efficiency of screen projection.
  • a setting item function in the screen projection software which can set and modify parameters of the screen projection software.
  • the above-mentioned screen projection method may further include: opening the setting item function of the screen projection software, and performing editing operations on the application attributes that can be projected; wherein, the editing operations include adding application attributes and deleting application attributes.
  • the application attributes of the current projection can be added, and the application attributes of the non-screen projection can also be deleted, so as to avoid unnecessary information leakage.
  • all application attributes can be deleted, so as not to mistakenly send the application data when the screen projection is not needed, resulting in information leakage.
  • the above method may further include: after receiving an instruction not to cast the screen input by the user, displaying a second prompt box to receive information on the length of the delay reminder input by the user; After the duration corresponding to the duration information ends, the first prompt box pops up.
  • the user After the user enters the command not to cast the screen, it may not need to cast the screen for a period of time.
  • the user can edit the properties of the screen-casting application in the screen-casting software to clear the properties of the screen-casting application. In this way, it is not convenient to add it again when the user needs to perform screen projection.
  • the second prompt box can be displayed to inquire about the time when the user needs to cast the screen or the length of the delayed reminder, and then before the time when the user needs to cast the screen or the length of the delayed reminder arrives, if another application is opened Do not ask repeatedly whether to cast the screen. Can effectively reduce the interruption to the user.
  • the screen projection method above may further include: searching for service information released by the receiving end, the service information including the identifier of the receiving end and the address of the receiving end; if the service information released by the receiving end is searched, then Analyzing the service information released by the receiving end to obtain the identification of the receiving end and the address of the receiving end; and determining the target receiving end from the receiving end according to the identification of the receiving end.
  • the above-mentioned sending the data of the target application to the target receiving end includes: establishing a connection with the target receiving end according to the address of the target receiving end; sending the data of the target application to the target Receiving end.
  • the receiving end Before data transmission with the target receiver, it is necessary to establish a network connection with the target receiver. Specifically, after the receiving end is turned on, it releases service information through the network, and the service information includes the identification of the receiving end and the address of the receiving end.
  • the identifier of the receiving end refers to the unique information that can characterize the receiving end, which may include the equipment model information of the receiving end; the address of the receiving end refers to the communication address that can realize the communication connection, and may include the IP address and port information of the receiving end.
  • the sending end can determine the identity of the receiving end by searching and analyzing the service information sent by the receiving end.
  • the target receiving end (that is, the receiving end that needs to perform screen projection) can be determined from at least one receiving end. Before sending the data of the target application to the target receiving end, it is also necessary to establish a connection with the target receiving end according to the resolved address of the target receiving end.
  • the receiving end may verify the sending end.
  • the above-mentioned service information released by the receiving end also includes the password of the receiving end.
  • the above-mentioned parsing of the service information released by the receiving end to obtain the identifier of the receiving end and the address of the receiving end includes: parsing the service information released by the receiving end to obtain the identifier of the receiving end, the The address of the receiving end and the password of the receiving end.
  • the above method further includes: sending the password of the target receiving end to the target receiving end, so that the target receiving end can verify the password, and after the verification is passed, the data of the target application to display.
  • Verifying the password on the one hand, can verify the correctness of the password to determine whether there is a fault in the data transmission; on the other hand, adding the verification link before the data transmission can prevent multiple sending devices from directly transmitting data with the receiving device .
  • parsing the service information released by the receiving end may include: if the service information released by multiple receiving ends is found, Then analyze the service information released by the multiple receiving terminals; display the identifications of the multiple receiving terminals; and determine the target receiving terminal from the receiving terminals according to the identifications of the receiving terminals, including: receiving user input A target receiving end selection instruction, the target receiving end selection instruction corresponding to one of the identifications of the plurality of receiving ends; according to the target receiving end selection instruction, the target receiving end is determined.
  • identifications For different receivers, device information or different names can be added to the service information as identifications to distinguish them.
  • identification information After the identification information is obtained through parsing, multiple identifications may be displayed for the user to choose.
  • the displayed content may include, identification and/or historical connection information (for example, last connection time, if never connected, the time may be displayed as "none").
  • the user selects the target receiving end according to the displayed information, and inputs the selection instruction of the target receiving end through the sending end (in the actual process, it may be the user's click operation on the target receiving end).
  • the service information of the target receiver After receiving the target receiver selection instruction, the service information of the target receiver can be determined from multiple service information, and then the address of the target receiver can be obtained.
  • the above screen projection method may further include: displaying a pin code input interface if the service information released by the target receiving end is not searched; receiving a pin code input by the user, and the pin code is used to indicate the The address of the target receiving end; analyzing the pin code to obtain the address of the target receiving end.
  • this method can also be used to obtain the address of the target receiving end.
  • the situation that the service of the target receiving end cannot be found is mostly due to the fact that the target receiving end is not normally connected to the network.
  • the target receiving end itself can monitor and respond to its own network status. For example, when the target receiver detects that it is not connected to the target network, it displays the pin code on the display interface.
  • the sender fails to search for the target receiver (the searched receiver service is not the service of the target receiver or the receiver service is not found)
  • a reminder message and a pin code input interface can be displayed on the display interface, for example, "Search failed, please enter the target device pin code", etc. to prompt the user.
  • the user can input the pin code displayed on the display interface of the target receiver to the sender.
  • the sending end receives the pin code input by the user, and analyzes it to obtain the address of the target receiving end.
  • the user may also perform other operations on the device at the sending end at the same time, that is to say, multiple windows may be opened at the same time.
  • transmitting the data of the target application generally two methods can be selected.
  • One is to perform screen projection only for the window data of the target application (window projection), which may cause a problem that the upper window of the application that pops up on the window of the target application cannot be displayed synchronously because it has not been transmitted.
  • the other is to screen-cast the data of the desktop position corresponding to the window data of the target application, so that all the data corresponding to the desktop position can be displayed on the receiving end synchronously (regional screen projection), but there is also a problem that other applications
  • the window may obscure the window of the target data.
  • the position of the target application window on the desktop can be identified first.
  • window projection is performed on the target application.
  • the target application being screen casting can also be identified.
  • an outer border is added to the icon of the target application to distinguish it from other applications not mirroring the screen; or, an outer border is added to the window of the target application to distinguish it from the windows of other applications not mirroring the screen.
  • the color of the outer frame can be blue, green, red, etc., and the shape can be a rounded rectangle or the like.
  • the display of the outer frame can be canceled.
  • the outer frame can also change in size adaptively following the size of the window of the target application.
  • a toolbar can be displayed on the display interface of the sending end, and function buttons can be displayed in the toolbar, such as pausing screen projection, continuing screen projection, ending screen projection, switching windows, etc.
  • the toolbar can be located anywhere on the display interface, such as the upper edge of the display interface, the lower edge of the display interface, the left edge of the display interface, the right edge of the display interface, and the like.
  • the toolbar can be set to different transparency and different colors.
  • suspending the screen projection function can stop the screen projection process of the target application and stop sending data to the receiving end; continue the screen projection function to resume the screen projection process and continue to send data to the receiving end; end the screen projection function to end the projection screen process, stop sending data to the receiving end, and disconnect the connection with the receiving end.
  • the target application may not be closed temporarily.
  • the above method further includes: after receiving the switch projection application instruction input by the user, displaying the application that meets the attribute of the screen projection application among the currently opened applications as the application to be switched; After receiving the application selection instruction input by the user, determine a new target application from the applications to be switched according to the application selection instruction; stop sending the data of the target application to the target receiving end; The data is sent to the target receiving end, so that the target receiving end displays the data of the new target application, so as to realize screen projection of the new target application.
  • thumbnails can be displayed in the form of single row, single column, multiple rows, and multiple columns. Alternatively, it can also be presented in the form of a nine-square grid. When the number is large, scrolling is allowed. Below each thumbnail can display the app's name. The user can select a certain thumbnail through a click operation (that is, input an instruction to switch the screen projection application), and then determine it as the current screen projection application for switching and projection.
  • the user can also disconnect the connection relationship with the sending end by operating the relevant function button of the receiving end, and then end the screen projection process.
  • FIG. 4 is a flow chart of another screen projection method disclosed in the embodiment of the present application.
  • the method is applied to the target receiving end, and the method includes the following steps:
  • S401 Receive data of a target application sent by a sending end.
  • the data of the target application is that the sender opens the target application, detects the application attributes of the target application, and determines that the application attributes of the target application belong to the application attributes that can be projected in the screen projection software, and are currently or, the data of the target application is displayed when the sending end determines that the application attribute of the target application belongs to the application attribute that can be projected in the screen projection software, and the screen projection is not currently being performed.
  • a prompt box which is used to receive the screen projection command input by the user or not to perform the screen projection command, and is sent after receiving the screen projection command input by the user.
  • the method also includes:
  • Publishing service information including the identification of the target receiving end and the address of the target receiving end;
  • the receiving data of the target application sent by the sending end includes:
  • the data of the target application is the service information released by the receiving end searched by the sending end, and after searching for the service information released by the receiving end, the service information released by the receiving end
  • the service information After analyzing the information, after obtaining the identification of the receiving end and the address of the receiving end, according to the identification of the receiving end, determine the target receiving end from the receiving end, and according to the address of the target receiving end, communicate with the target receiving end It is sent after the connection is established; wherein, the service information includes the identifier of the receiving end and the address of the receiving end.
  • the service information also includes the password of the target receiver
  • the displaying the data of the target application includes:
  • the password is obtained by analyzing the service information released by the receiving end after the sending end searches for the service information released by the receiving end;
  • the password is verified, and the data of the target application is displayed when the verification is passed.
  • the method also includes:
  • a pin code is displayed, and the pin code is used to indicate the address of the target receiver.
  • FIG. 5 is a flow chart of a screen projection method disclosed in an embodiment of the present application. The method is applied to the sending end and the target receiving end, and the method includes the following steps:
  • the target receiver publishes service information.
  • the service information includes the address of the target receiver.
  • the sending end opens the target application.
  • the sending end detects the application attribute of the target application.
  • the target receiving end displays the received data of the target application.
  • FIG. 6 shows a schematic structural diagram of a screen projection device provided by an exemplary embodiment of the present application.
  • the screen projection device 600 is a device corresponding to the sending end, including: an application opening module 601 , an application attribute detection module 602 , and a data sending module 603 .
  • the data sending module 603 is used to send the data of the target application to the target receiving end when the application attribute of the target application belongs to the attribute of the screen-casting application in the screen-casting software and is currently being screen-casting, so that all The target receiving end displays the data of the target application, so as to realize the screen projection of the target application;
  • the screen projection determination module 604 is configured to display a first prompt box when the application attribute of the target application belongs to the application attribute that can be projected in the screen projection software, and the screen projection is not currently performed, so as to receive user input to perform screen projection Instructions or not to perform screencasting instructions;
  • the data sending module 603 is further configured to send the data of the target application to the target receiving end after receiving the screen projection instruction input by the user, so that the target receiving end can display the data of the target application, Realize the screencasting of the target application.
  • the screen projection device 600 also includes:
  • the screen-casting application attribute editing module 605 is configured to open the setting item function of the screen-casting software, and perform editing operations on the application properties of the screen-casting application;
  • the editing operation includes adding application attributes and deleting application attributes.
  • the screen projection device 600 also includes a screen projection application switching module 606, configured to:
  • the screen projection device 600 also includes a display module 607, configured to:
  • the second prompt box After receiving the instruction not to cast the screen input by the user, display the second prompt box to receive the delay reminder duration information input by the user; after the duration corresponding to the delay reminder duration information ends, the first prompt pops up frame.
  • the screen projection device 600 also includes:
  • a service information search module 608, configured to search for service information released by the receiving end, where the service information includes the identifier of the receiving end and the address of the receiving end;
  • the service information parsing module 609 is configured to analyze the service information released by the receiving end when searching for the service information released by the receiving end, and obtain the identifier of the receiving end and the address of the receiving end;
  • a target receiver determining module 610 configured to determine a target receiver from among the receivers according to the identifier of the receiver
  • the data sending module 603 sends the data of the target application to the target receiving end, it is specifically used for:
  • the service information released by the receiving end also includes the password of the receiving end
  • the service information parsing module 609 parses the service information released by the receiving end to obtain the identifier of the receiving end and the address of the receiving end, it is specifically used for:
  • the data sending module 603 is further configured to send the password of the target receiving end to the target receiving end, so that the target receiving end can verify the password, and after the verification is passed, the target application The data is displayed.
  • the service information parsing module 609 is specifically configured to:
  • the display module 607 is also configured to display the identifications of the multiple receiving terminals
  • the target receiving end determination module 607 determines the target receiving end from the receiving end according to the identification of the receiving end, it is specifically used for:
  • the target receiver selection instruction corresponding to one of the identifiers of the plurality of receivers
  • the target receiving end is determined according to the target receiving end selection instruction.
  • the display module 607 is further configured to: display a pin code input interface when no service information released by the target receiving end is found;
  • the device also includes: a pin code parsing module 611, configured to receive a pin code input by a user, the pin code is used to indicate the address of the target receiving end; analyze the pin code to obtain the address of the target receiving end.
  • a pin code parsing module 611 configured to receive a pin code input by a user, the pin code is used to indicate the address of the target receiving end; analyze the pin code to obtain the address of the target receiving end.
  • FIG. 7 shows a schematic structural diagram of a screen projection device provided by an exemplary embodiment of the present application.
  • the screen projection device 700 is a device corresponding to the target receiver device, including:
  • the data receiving module 701 is configured to receive the data of the target application sent by the sender; the data of the target application is that the sender opens the target application, detects the application attributes of the target application, and determines the application attributes of the target application Belongs to the screen-casting application attribute in the screen-casting software, and is currently being sent when the screen is being cast; or, the data of the target application is that the sending end determines that the application attribute of the target application belongs to the screen-casting software.
  • the property of the screencasting application, and when the screencasting is not currently being performed, the first prompt box is displayed to receive the command input by the user to perform screencasting or not to perform screencasting, and send it after receiving the command input by the user to perform screencasting;
  • the display module 702 is configured to display the data of the target application, so as to implement screen projection of the target application.
  • the screen projection device 700 also includes:
  • a service information publishing module 703, configured to publish service information, the service information including the identification of the target receiving end and the address of the target receiving end;
  • the data receiving module 701 is specifically used for:
  • the data of the target application is the service information released by the receiving end searched by the sending end, and after searching for the service information released by the receiving end, the service information released by the receiving end
  • the service information After analyzing the information, after obtaining the identification of the receiving end and the address of the receiving end, according to the identification of the receiving end, determine the target receiving end from the receiving end, and according to the address of the target receiving end, communicate with the target receiving end It is sent after the connection is established; wherein, the service information includes the identifier of the receiving end and the address of the receiving end.
  • the service information also includes the password of the target receiver
  • the display module 702 is specifically used for: displaying the password input interface; receiving the password sent by the sending end; the password is the service information issued by the receiving end after the sending end searches for it, and performs a search on the service information issued by the receiving end. It is obtained by parsing; the password is verified, and the data of the target application is displayed when the verification is passed.
  • the display module 702 is also used for:
  • a pin code is displayed, and the pin code is used to indicate the address of the target receiver.
  • each module in the scheme of this embodiment is reflected in the description of the embodiment corresponding to the method executed by the receiving end device.
  • some electronic devices may serve as sender devices in some scenarios, and as receiver devices in others. These electronic devices may have modules corresponding to the apparatus 600 and the apparatus 700 at the same time, so as to implement the corresponding method.
  • the screen projection device provided in the above embodiment executes the screen projection method, it only uses the division of the above-mentioned functional modules as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional modules according to needs. , which divides the internal structure of the device into different functional modules to complete all or part of the functions described above.
  • the screen projection device provided by the above embodiments and the screen projection method embodiments belong to the same concept, and the implementation process of the embodiment can be found in the method embodiments for details, and will not be repeated here.
  • the embodiment of the present application also provides a computer storage medium.
  • the computer storage medium can store a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps as in the above embodiment.
  • the specific execution process please refer to the details of the above embodiment. description, and will not be repeated here.
  • the device where the storage medium is located may be an electronic device.
  • the embodiment of the present application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method steps of the sending end or the target receiving end are realized.
  • FIG. 8 provides a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • the electronic device in FIG. 8 may be a sending end device or a receiving end device.
  • an electronic device 800 may include: at least one processor 801 , at least one network interface 804 , a user interface 803 , a memory 805 , and at least one communication bus 802 .
  • the communication bus 802 is used to realize connection and communication between these components.
  • the user interface 803 may include a display screen (Display) and a camera (Camera), and the optional user interface 803 may also include a standard wired interface and a wireless interface.
  • Display display screen
  • Camera Camera
  • the optional user interface 803 may also include a standard wired interface and a wireless interface.
  • the network interface 804 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
  • the processor 801 may include one or more processing cores.
  • the processor 801 uses various interfaces and lines to connect various parts of the entire electronic device 800, and executes by running or executing instructions, programs, code sets or instruction sets stored in the memory 805, and calling data stored in the memory 805.
  • Various functions of the electronic device 800 and processing data may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 801 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, and the like.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • the CPU mainly handles the operating system, user interface and application programs, etc.
  • the GPU is used to render and draw the content that needs to be displayed on the display screen
  • the modem is used to handle wireless communication. It can be understood that the foregoing modem may also not be integrated into the processor 801, but implemented by a single chip.
  • the memory 805 may include a random access memory (Random Access Memory, RAM), and may also include a read-only memory (Read-Only Memory).
  • the memory 805 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium).
  • Memory 805 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 805 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), Instructions, etc. used to implement the above method embodiments; the storage data area can store data, etc. involved in the above method embodiments.
  • the memory 805 may also be at least one storage device located away from the aforementioned processor 801 .
  • the memory 805 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an operating application program of the electronic device.
  • the user interface 803 is mainly used to provide the user with an input interface to obtain the data input by the user; and the processor 801 can be used to call the operation application program of the electronic device stored in the memory 805, And specifically implement the operation of the above method.
  • the operating system of the above-mentioned electronic device is an Android system.
  • FIG. 9 is a flow chart of another screen projection method disclosed in the embodiment of the present application. The method is applied to the sending end, and the method includes the following steps:
  • the application attribute of the target application is detected.
  • the screen-casting of the target application will not be enabled. In this way, the user is given the conditions to choose the screen-casting application by himself, which can avoid unintentional privacy leakage.
  • FIG. 10 is a schematic structural diagram of another screen projection device corresponding to the method in FIG. 9 provided by an exemplary embodiment of the present application.
  • the screen projection device 100 is a device corresponding to the sending end, including: an application opening module 101 , an application attribute detection module 102 , and a data sending module 103 .
  • An application opening module 101 configured to open a target application
  • An application attribute detection module 102 configured to detect the application attribute of the target application
  • the data sending module 103 is used to send the data of the target application to the target receiving end when the application attribute of the target application belongs to the attribute of the screen-casting application in the screen-casting software and is currently being screen-casting, so that all The target receiving end displays the data of the target application to realize the screen projection of the target application; when the application attribute of the target application does not belong to the application attribute that can be projected in the screen projection software, the The data of the target application is sent to the target receiving end, and the target application is not projected.
  • FIG. 11 is a flow chart of another screen projection method disclosed in the embodiment of the present application. The method is applied to the sending end, and the method includes the following steps:
  • the application attribute of the target application is detected. After confirming that the target application belongs to the screen-casting application, the user is asked about the screen-casting intention. As long as the user confirms the screen-casting, the screen-casting can start.
  • the screen-casting operation is simple and convenient.
  • FIG. 12 is a schematic structural diagram of another screen projection device corresponding to the method in FIG. 11 provided by an exemplary embodiment of the present application.
  • the screen projection device 120 is a device corresponding to the sending end, including: an application opening module 121 , an application attribute detection module 122 , a screen projection determination module 123 , and a data sending module 124 .
  • An application opening module 121 configured to open a target application
  • An application attribute detection module 122 configured to detect the application attribute of the target application
  • the screen projection determination module 123 is used to display the first prompt box when the application attribute of the target application belongs to the screen projection application attribute in the screen projection software, and the screen projection is not currently performed, so as to receive the input from the user to perform screen projection Instructions or not to perform screencasting instructions;
  • the data sending module 124 is configured to send the data of the target application to the target receiving end after receiving the screen projection instruction input by the user, so that the target receiving end can display the data of the target application, realizing Screencasting of the target application.
  • the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions
  • the device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read only memory (ROM) or flash RAM.
  • RAM random access memory
  • ROM read only memory
  • flash RAM flash random access memory
  • Computer-readable media including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information.
  • Information may be computer readable instructions, data structures, modules of a program, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
  • computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A screen mirroring method and apparatus, and a storage medium and an electronic device. The method is applied to a sending end, and comprises: opening a target application (S201); detecting the application attribute of the target application (S202); if the application attribute of the target application is a screen mirroring-available application attribute in screen-mirroring software and screen mirroring is being performed, sending the data of the target application to a target receiving end, such that the target receiving end displays the data from the target application, thereby realizing screen mirroring of the target application (S203); if the application attribute of the target application is a screen mirroring-available application attribute in the screen-mirroring software and no screen mirroring currently being performed, displaying a first prompt box to receive an instruction of performing screen mirroring or an instruction of not performing screen mirroring, which instruction is input by a user (S204); and after receiving the instruction of performing screen mirroring, which is input by the user, sending the data of the target application to the target receiving end, such that the target receiving end displays the data from the target application, and thereby realizing screen mirroring of the target application (S205). The method does not require a user to perform operations several times, thereby improving the screen mirroring efficiency.

Description

投屏方法、装置、存储介质及电子设备Screen projection method, device, storage medium and electronic equipment 技术领域technical field
本申请涉及通信领域,尤其涉及一种投屏方法、装置、存储介质及电子设备。The present application relates to the communication field, and in particular to a screen projection method, device, storage medium and electronic equipment.
背景技术Background technique
在工作和生活中的很多场景中,需要将某个设备(发送端)的画面投放到另一台设备(接收端)进行显示,以达到放大画面和/或信息共享的目的。例如,将手机中的内容投放到电视屏幕上进行显示等。这时就需要用到设备间的投屏功能。In many scenarios in work and life, it is necessary to project the screen of a certain device (sending end) to another device (receiving end) for display, in order to achieve the purpose of zooming in on the screen and/or sharing information. For example, putting the content in the mobile phone on the TV screen for displaying and so on. At this time, you need to use the screen projection function between devices.
在进行投屏时,一般需要用户在发送端打开投屏软件,再打开需要进行投屏的应用软件,再输入投屏码,才能最终实现发送端的设备与接收端的设备进行连接,进而实现投屏。整个操作过程步骤繁多,操作效率较低。When performing screen projection, the user generally needs to open the screen projection software on the sending end, then open the application software that needs to be projected, and then enter the screen projection code, in order to finally realize the connection between the device at the sending end and the device at the receiving end, and then realize screen projection . The whole operation process has many steps, and the operation efficiency is low.
发明内容Contents of the invention
本申请实施例提供了一种投屏方法、装置、存储介质及电子设备,可以减少投屏过程中用户的操作步骤,提高操作效率,可以解决开始投屏前操作复杂的问题。所述技术方案如下:The embodiments of the present application provide a screen projection method, device, storage medium, and electronic equipment, which can reduce the user's operation steps in the screen projection process, improve operation efficiency, and solve the problem of complicated operations before starting the screen projection. Described technical scheme is as follows:
第一方面,本申请实施例提供了一种投屏方法,应用于发送端,所述方法包括:In the first aspect, the embodiment of the present application provides a screen projection method, which is applied to the sending end, and the method includes:
打开目标应用;Open the target application;
检测所述目标应用的应用属性;Detecting application attributes of the target application;
若所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前正在投屏,则将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对所述目标应用的投屏;If the application attribute of the target application belongs to the screen-casting application attribute in the screen-casting software, and is currently casting a screen, then send the data of the target application to the target receiving end, so that the target receiving end can The data of the target application is displayed to realize the projection of the target application;
若所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前未进行投屏,则显示第一提示框,以接收用户输入的进行投屏指令或不进行 投屏指令;If the application attribute of the target application belongs to the screen projection application attribute in the screen projection software, and the screen projection is not currently performed, a first prompt box is displayed to receive the screen projection instruction input by the user or not to perform the screen projection instruction;
在接收到用户输入的进行投屏指令后,将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对所述目标应用的投屏。After receiving the screen projection instruction input by the user, the data of the target application is sent to the target receiving end, so that the target receiving end displays the data of the target application, and the projection of the target application is realized. Screen.
可选的,所述方法还包括:Optionally, the method also includes:
打开所述投屏软件的设置项功能,对所述可投屏应用的应用属性执行编辑操作;Open the setting item function of the screen projection software, and perform editing operations on the application properties of the screen projection application;
其中,所述编辑操作包括增加应用属性、删除应用属性。Wherein, the editing operation includes adding application attributes and deleting application attributes.
可选的,所述方法还包括:Optionally, the method also includes:
在接收到用户输入的切换投屏应用指令后,显示当前打开的应用中符合可投屏应用属性的应用,作为待切换应用;After receiving the instruction to switch the screen-casting application input by the user, display the application that meets the properties of the screen-casting application among the currently open applications as the application to be switched;
在接收到用户输入的应用选择指令后,根据所述应用选择指令从所述待切换应用中确定新的目标应用;After receiving the application selection instruction input by the user, determine a new target application from the applications to be switched according to the application selection instruction;
停止向目标接收端发送所述目标应用的数据;Stop sending the data of the target application to the target receiving end;
将所述新的目标应用的数据发送到目标接收端,以使所述目标接收端对所述新的目标应用的数据进行显示,实现对所述新的目标应用的投屏。Sending the data of the new target application to the target receiving end, so that the target receiving end displays the data of the new target application, so as to realize screen projection of the new target application.
可选的,所述方法还包括:Optionally, the method also includes:
在接收到用户输入的不进行投屏指令后,显示第二提示框,以接收用户输入的延后提醒时长信息;After receiving the instruction not to cast the screen input by the user, a second prompt box is displayed to receive the delayed reminder duration information input by the user;
在所述延后提醒时长信息对应的时长结束后,弹出所述第一提示框。After the time period corresponding to the delayed reminder time length information ends, the first prompt box pops up.
可选的,所述方法还包括:Optionally, the method also includes:
搜索接收端发布的服务信息,所述服务信息包括所述接收端的标识和所述接收端的地址;Searching for service information published by the receiving end, the service information including the identifier of the receiving end and the address of the receiving end;
若搜索到接收端发布的服务信息,则对所述接收端发布的服务信息进行解析,得到所述接收端的标识和所述接收端的地址;If the service information released by the receiving end is searched, the service information released by the receiving end is analyzed to obtain the identifier of the receiving end and the address of the receiving end;
根据所述接收端的标识,从所述接收端中确定目标接收端;determining a target receiving end from among the receiving ends according to the identifier of the receiving end;
所述将所述目标应用的数据发送到目标接收端,包括:The sending the data of the target application to the target receiving end includes:
根据所述目标接收端的地址,与所述目标接收端建立连接;Establishing a connection with the target receiving end according to the address of the target receiving end;
将所述目标应用的数据发送到所述目标接收端。Send the data of the target application to the target receiving end.
可选的,所述接收端发布的服务信息还包括所述接收端的密码;Optionally, the service information released by the receiving end also includes the password of the receiving end;
所述对所述接收端发布的服务信息进行解析,得到所述接收端的标识和所述接收端的地址,包括:The parsing of the service information released by the receiving end to obtain the identifier of the receiving end and the address of the receiving end includes:
对所述接收端发布的服务信息进行解析,得到所述接收端的标识、所述接收端的地址和所述接收端的密码;Analyzing the service information released by the receiving end to obtain the identification of the receiving end, the address of the receiving end and the password of the receiving end;
所述方法还包括:The method also includes:
将所述目标接收端的密码发送到所述目标接收端,以使所述目标接收端对所述密码进行验证,并在验证通过后对所述目标应用的数据进行显示。Sending the password of the target receiving end to the target receiving end, so that the target receiving end verifies the password, and displays the data of the target application after the verification is passed.
可选的,所述若搜索到接收端发布的服务信息,则对所述接收端发布的服务信息进行解析,包括:Optionally, if the service information released by the receiving end is found in the search, then parsing the service information released by the receiving end includes:
若搜索到多个接收端发布的服务信息,则对所述多个接收端发布的服务信息进行解析;If the service information released by multiple receiving ends is found, then analyze the service information released by the multiple receiving ends;
显示所述多个接收端的标识;displaying identities of the plurality of receivers;
所述根据所述接收端的标识,从所述接收端中确定目标接收端,包括:The determining the target receiving end from the receiving end according to the identification of the receiving end includes:
接收用户输入的目标接收端选择指令,所述目标接收端选择指令对应所述多个接收端的标识中的一个;receiving a target receiver selection instruction input by a user, the target receiver selection instruction corresponding to one of the identifiers of the plurality of receivers;
根据所述目标接收端选择指令,确定目标接收端。The target receiving end is determined according to the target receiving end selection instruction.
可选的,所述方法还包括:Optionally, the method also includes:
若未搜索到目标接收端发布的服务信息,则显示pin码输入界面;If the service information published by the target receiver is not found, the pin code input interface will be displayed;
接收用户输入的pin码,所述pin码用于指示所述目标接收端的地址;receiving a pin code input by a user, where the pin code is used to indicate the address of the target receiving end;
对pin码进行解析,得到所述目标接收端的地址。The pin code is analyzed to obtain the address of the target receiving end.
第二方面,本申请实施例提供了一种投屏方法,应用于目标接收端,所述方法包括:In the second aspect, the embodiment of the present application provides a screen projection method, which is applied to the target receiving end, and the method includes:
接收发送端发送的目标应用的数据;所述目标应用的数据是所述发送端在打开目标应用,检测所述目标应用的应用属性,确定所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前正在投屏时发送的;或者,所述目标应用的数据是所述发送端在确定所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前未进行投屏时,显示第一提示框,以接收用户输入的进行投屏指令或不进行投屏指令,并在接收到用户输入的进行投屏指令后发送的;Receiving the data of the target application sent by the sending end; the data of the target application is that the sending end is opening the target application, detecting the application attribute of the target application, and determining that the application attribute of the target application belongs to the available in the screen projection software The attribute of the screen-casting application, and it is currently being sent when the screen is being cast; or, the data of the target application is that the sending end determines that the application attribute of the target application belongs to the attribute of the screen-casting application in the screen-casting software, and the data of the target application is currently When the screen projection is not in progress, display the first prompt box to receive the screen projection instruction input by the user or not to perform the screen projection instruction, and send it after receiving the screen projection instruction input by the user;
显示所述目标应用的数据,实现对所述目标应用的投屏。Displaying the data of the target application to implement screen projection of the target application.
可选的,所述方法还包括:Optionally, the method also includes:
发布服务信息,所述服务信息包括所述目标接收端的标识和所述目标接收端的地址;Publishing service information, the service information including the identification of the target receiving end and the address of the target receiving end;
所述接收发送端发送的目标应用的数据,包括:The receiving data of the target application sent by the sending end includes:
接收发送端发送的目标应用的数据;所述目标应用的数据是所述发送端搜索接收端发布的服务信息,并在搜索到所述接收端发布的服务信息,对所述接收端发布的服务信息进行解析,得到所述接收端的标识和所述接收端的地址后,根据所述接收端的标识,从所述接收端中确定目标接收端,根据所述目标接收端的地址,与所述目标接收端建立连接后发送的;其中,所述服务信息包括所述接收端的标识和所述接收端的地址。Receive the data of the target application sent by the sending end; the data of the target application is the service information released by the receiving end searched by the sending end, and after searching for the service information released by the receiving end, the service information released by the receiving end After analyzing the information, after obtaining the identification of the receiving end and the address of the receiving end, according to the identification of the receiving end, determine the target receiving end from the receiving end, and according to the address of the target receiving end, communicate with the target receiving end It is sent after the connection is established; wherein, the service information includes the identifier of the receiving end and the address of the receiving end.
可选的,所述服务信息还包括所述目标接收端的密码;Optionally, the service information also includes the password of the target receiver;
所述显示所述目标应用的数据,包括:The displaying the data of the target application includes:
显示密码输入界面;Display the password input interface;
接收发送端发送的密码;所述密码是所述发送端在搜索到接收端发布的服务信息,对所述接收端发布的服务信息进行解析得到的;receiving the password sent by the sending end; the password is obtained by analyzing the service information released by the receiving end after the sending end searches for the service information released by the receiving end;
对所述密码进行验证,并在验证通过后显示所述目标应用的数据。The password is verified, and the data of the target application is displayed after the verification is passed.
可选的,所述方法还包括:Optionally, the method also includes:
显示pin码,所述pin码用于指示所述目标接收端的地址。A pin code is displayed, and the pin code is used to indicate the address of the target receiver.
第三方面,本申请实施例提供了一种投屏装置,包括:In a third aspect, the embodiment of the present application provides a screen projection device, including:
应用开启模块,用于打开目标应用;An application opening module, configured to open a target application;
应用属性检测模块,用于检测所述目标应用的应用属性;An application attribute detection module, configured to detect the application attribute of the target application;
数据发送模块,用于在所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前正在投屏时,将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对所述目标应用的投屏;The data sending module is used to send the data of the target application to the target receiving end when the application attribute of the target application belongs to the attribute of the screen-casting application in the screen-casting software and is currently being screen-casting, so that the The target receiving end displays the data of the target application to realize screen projection of the target application;
投屏确定模块,用于在所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前未进行投屏时,显示第一提示框,以接收用户输入的进行投屏指令或不进行投屏指令;The screen projection determination module is used to display the first prompt box when the application attribute of the target application belongs to the screen projection application attribute in the screen projection software, and the screen projection is not currently performed, so as to receive the screen projection instruction input by the user Or do not perform screen projection instructions;
数据发送模块,还用于在接收到用户输入的进行投屏指令后,将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数 据进行显示,实现对所述目标应用的投屏。The data sending module is further configured to send the data of the target application to the target receiving end after receiving the screen projection instruction input by the user, so that the target receiving end can display the data of the target application to realize Screencasting of the target application.
可选的,所述装置还包括:Optionally, the device also includes:
可投屏应用属性编辑模块,用于打开所述投屏软件的设置项功能,对所述可投屏应用的应用属性执行编辑操作;The screen-casting application attribute editing module is used to open the setting item function of the screen-casting software, and perform editing operations on the application attributes of the screen-casting application;
其中,所述编辑操作包括增加应用属性、删除应用属性。Wherein, the editing operation includes adding application attributes and deleting application attributes.
可选的,所述装置还包括投屏应用切换模块,用于:Optionally, the device further includes a screen projection application switching module, which is used for:
在接收到用户输入的切换投屏应用指令后,显示当前打开的应用中符合可投屏应用属性的应用,作为待切换应用;After receiving the instruction to switch the screen-casting application input by the user, display the application that meets the properties of the screen-casting application among the currently open applications as the application to be switched;
在接收到用户输入的应用选择指令后,根据所述应用选择指令从所述待切换应用中确定新的目标应用;After receiving the application selection instruction input by the user, determine a new target application from the applications to be switched according to the application selection instruction;
停止向目标接收端发送所述目标应用的数据;Stop sending the data of the target application to the target receiving end;
将所述新的目标应用的数据发送到目标接收端,以使所述目标接收端对所述新的目标应用的数据进行显示,实现对所述新的目标应用的投屏。Sending the data of the new target application to the target receiving end, so that the target receiving end displays the data of the new target application, so as to realize screen projection of the new target application.
可选的,所述装置还包括显示模块,用于;Optionally, the device further includes a display module for;
在接收到用户输入的不进行投屏指令后,显示第二提示框,以接收用户输入的延后提醒时长信息;After receiving the instruction not to cast the screen input by the user, a second prompt box is displayed to receive the delayed reminder duration information input by the user;
在所述延后提醒时长信息对应的时长结束后,弹出所述第一提示框。After the time period corresponding to the delayed reminder time length information ends, the first prompt box pops up.
可选的,所述装置还包括:Optionally, the device also includes:
服务信息搜索模块,用于搜索接收端发布的服务信息,所述服务信息包括所述接收端的标识和所述接收端的地址;A service information search module, configured to search for service information released by the receiving end, where the service information includes the identifier of the receiving end and the address of the receiving end;
服务信息解析模块,用于在搜索到接收端发布的服务信息时,对所述接收端发布的服务信息进行解析,得到所述接收端的标识和所述接收端的地址;A service information parsing module, configured to analyze the service information released by the receiving end when searching for the service information released by the receiving end, to obtain the identifier of the receiving end and the address of the receiving end;
目标接收端确定模块,用于根据所述接收端的标识,从所述接收端中确定目标接收端;A target receiver determining module, configured to determine a target receiver from among the receivers according to the identifier of the receiver;
所述数据发送模块在将所述目标应用的数据发送到目标接收端时,具体用于:When the data sending module sends the data of the target application to the target receiving end, it is specifically used for:
根据所述目标接收端的地址,与所述目标接收端建立连接;Establishing a connection with the target receiving end according to the address of the target receiving end;
将所述目标应用的数据发送到所述目标接收端。Send the data of the target application to the target receiving end.
可选的,所述接收端发布的服务信息还包括所述接收端的密码;Optionally, the service information released by the receiving end also includes the password of the receiving end;
所述服务信息解析模块在对所述接收端发布的服务信息进行解析,得到 所述接收端的标识和所述接收端的地址时,具体用于:The service information parsing module is specifically used for:
对所述接收端发布的服务信息进行解析,得到所述接收端的标识、所述接收端的地址和所述接收端的密码;Analyzing the service information released by the receiving end to obtain the identification of the receiving end, the address of the receiving end and the password of the receiving end;
所述数据发送模块,还用于将所述目标接收端的密码发送到所述目标接收端,以使所述目标接收端对所述密码进行验证,并在验证通过后对所述目标应用的数据进行显示。The data sending module is also used to send the password of the target receiving end to the target receiving end, so that the target receiving end can verify the password, and after the verification is passed, the data of the target application to display.
可选的,所述服务信息解析模块具体用于:Optionally, the service information parsing module is specifically used for:
若搜索到多个接收端发布的服务信息,则对所述多个接收端发布的服务信息进行解析;If the service information released by multiple receiving ends is found, then analyze the service information released by the multiple receiving ends;
所述显示模块,还用于显示所述多个接收端的标识;The display module is also used to display the identifications of the plurality of receiving terminals;
所述目标接收端确定模块在根据所述接收端的标识,从所述接收端中确定目标接收端时,具体用于:When the target receiving end determining module determines the target receiving end from the receiving end according to the identification of the receiving end, it is specifically used for:
接收用户输入的目标接收端选择指令,所述目标接收端选择指令对应所述多个接收端的标识中的一个;receiving a target receiver selection instruction input by a user, the target receiver selection instruction corresponding to one of the identifiers of the plurality of receivers;
根据所述目标接收端选择指令,确定目标接收端。The target receiving end is determined according to the target receiving end selection instruction.
可选的,所述显示模块还用于:在未搜索到目标接收端发布的服务信息时,显示pin码输入界面;Optionally, the display module is also used to: display the pin code input interface when the service information released by the target receiving end is not searched;
所述装置还包括:pin码解析模块,用于接收用户输入的pin码,所述pin码用于指示所述目标接收端的地址;对pin码进行解析,得到所述目标接收端的地址。The device further includes: a pin code parsing module for receiving a pin code input by a user, the pin code being used to indicate the address of the target receiving end; analyzing the pin code to obtain the address of the target receiving end.
第四方面,本申请实施例提供了一种投屏装置,包括:In a fourth aspect, the embodiment of the present application provides a screen projection device, including:
数据接收模块,用于接收发送端发送的目标应用的数据;所述目标应用的数据是所述发送端在打开目标应用,检测所述目标应用的应用属性,确定所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前正在投屏时发送的;或者,所述目标应用的数据是所述发送端在确定所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前未进行投屏时,显示第一提示框,以接收用户输入的进行投屏指令或不进行投屏指令,并在接收到用户输入的进行投屏指令后发送的;The data receiving module is used to receive the data of the target application sent by the sender; the data of the target application is that the sender opens the target application, detects the application attribute of the target application, and determines that the application attribute of the target application belongs to The attribute of the screen-casting application in the screen-casting software, and it is sent when the screen is currently being cast; or, the data of the target application is that the sending end determines that the application attribute of the target application belongs to the screen-casting software. Screen application attributes, and when the screen projection is not currently being performed, the first prompt box is displayed to receive the screen projection instruction input by the user or not to perform the screen projection instruction, and send it after receiving the screen projection instruction input by the user;
显示模块,用于显示所述目标应用的数据,实现对所述目标应用的投屏。The display module is configured to display the data of the target application, so as to realize the screen projection of the target application.
可选的,所述装置还包括:Optionally, the device also includes:
服务信息发布模块,用于发布服务信息,所述服务信息包括所述目标接收端的标识和所述目标接收端的地址;A service information publishing module, configured to publish service information, the service information including the identification of the target receiving end and the address of the target receiving end;
所述数据接收模块,具体用于:The data receiving module is specifically used for:
接收发送端发送的目标应用的数据;所述目标应用的数据是所述发送端搜索接收端发布的服务信息,并在搜索到所述接收端发布的服务信息,对所述接收端发布的服务信息进行解析,得到所述接收端的标识和所述接收端的地址后,根据所述接收端的标识,从所述接收端中确定目标接收端,根据所述目标接收端的地址,与所述目标接收端建立连接后发送的;其中,所述服务信息包括所述接收端的标识和所述接收端的地址。Receive the data of the target application sent by the sending end; the data of the target application is the service information released by the receiving end searched by the sending end, and after searching for the service information released by the receiving end, the service information released by the receiving end After analyzing the information, after obtaining the identification of the receiving end and the address of the receiving end, according to the identification of the receiving end, determine the target receiving end from the receiving end, and according to the address of the target receiving end, communicate with the target receiving end It is sent after the connection is established; wherein, the service information includes the identifier of the receiving end and the address of the receiving end.
可选的,所述服务信息还包括所述目标接收端的密码;Optionally, the service information also includes the password of the target receiver;
所述显示模块,具体用于:显示密码输入界面;接收发送端发送的密码;所述密码是所述发送端在搜索到接收端发布的服务信息,对所述接收端发布的服务信息进行解析得到的;对所述密码进行验证,并在验证通过后显示所述目标应用的数据。The display module is specifically used for: displaying the password input interface; receiving the password sent by the sending end; the password is the service information issued by the receiving end after the sending end searches, and parsing the service information issued by the receiving end obtained; the password is verified, and the data of the target application is displayed after the verification is passed.
可选的,所述显示模块还用于:Optionally, the display module is also used for:
显示pin码,所述pin码用于指示所述目标接收端的地址。A pin code is displayed, and the pin code is used to indicate the address of the target receiver.
第五方面,本申请实施例提供一种投屏方法,应用于发送端,所述方法包括:In the fifth aspect, the embodiment of the present application provides a screen projection method, which is applied to the sending end, and the method includes:
打开目标应用;Open the target application;
检测所述目标应用的应用属性;Detecting application attributes of the target application;
若所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前正在投屏,则将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对所述目标应用的投屏;If the application attribute of the target application belongs to the screen-casting application attribute in the screen-casting software, and is currently casting a screen, then send the data of the target application to the target receiving end, so that the target receiving end can The data of the target application is displayed to realize the projection of the target application;
若所述目标应用的应用属性不属于投屏软件中的可投屏应用属性,则不将所述目标应用的数据发送到目标接收端,不对所述目标应用进行投屏。If the application attribute of the target application does not belong to the application attribute that can be projected in the screen projection software, the data of the target application is not sent to the target receiving end, and the screen projection of the target application is not performed.
可选的,所述方法还包括:Optionally, the method also includes:
若所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前未进行投屏,则显示第一提示框,以接收用户输入的进行投屏指令或不进行投屏指令;If the application attribute of the target application belongs to the screen-casting application attribute in the screen-casting software, and the screen-casting is not currently being performed, a first prompt box is displayed to receive the screen-casting instruction input by the user or not to perform the screen-casting instruction;
在接收到用户输入的进行投屏指令后,将所述目标应用的数据发送到目 标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对所述目标应用的投屏。After receiving the screen projection instruction input by the user, the data of the target application is sent to the target receiving end, so that the target receiving end displays the data of the target application, and the projection of the target application is realized. Screen.
可选的,所述方法还包括:Optionally, the method also includes:
打开所述投屏软件的设置项功能,对所述可投屏应用的应用属性执行编辑操作;Open the setting item function of the screen projection software, and perform editing operations on the application properties of the screen projection application;
其中,所述编辑操作包括增加应用属性、删除应用属性。Wherein, the editing operation includes adding application attributes and deleting application attributes.
可选的,所述方法还包括:Optionally, the method also includes:
在接收到用户输入的切换投屏应用指令后,显示当前打开的应用中符合可投屏应用属性的应用,作为待切换应用;After receiving the instruction to switch the screen-casting application input by the user, display the application that meets the properties of the screen-casting application among the currently open applications as the application to be switched;
在接收到用户输入的应用选择指令后,根据所述应用选择指令从所述待切换应用中确定新的目标应用;After receiving the application selection instruction input by the user, determine a new target application from the applications to be switched according to the application selection instruction;
停止向目标接收端发送所述目标应用的数据;Stop sending the data of the target application to the target receiving end;
将所述新的目标应用的数据发送到目标接收端,以使所述目标接收端对所述新的目标应用的数据进行显示,实现对所述新的目标应用的投屏。Sending the data of the new target application to the target receiving end, so that the target receiving end displays the data of the new target application, so as to realize screen projection of the new target application.
可选的,所述方法还包括:Optionally, the method also includes:
在接收到用户输入的不进行投屏指令后,显示第二提示框,以接收用户输入的延后提醒时长信息;After receiving the instruction not to cast the screen input by the user, a second prompt box is displayed to receive the delayed reminder duration information input by the user;
在所述延后提醒时长信息对应的时长结束后,弹出所述第一提示框。After the time period corresponding to the delayed reminder time length information ends, the first prompt box pops up.
可选的,所述方法还包括:Optionally, the method also includes:
搜索接收端发布的服务信息,所述服务信息包括所述接收端的标识和所述接收端的地址;Searching for service information published by the receiving end, the service information including the identifier of the receiving end and the address of the receiving end;
若搜索到接收端发布的服务信息,则对所述接收端发布的服务信息进行解析,得到所述接收端的标识和所述接收端的地址;If the service information released by the receiving end is searched, the service information released by the receiving end is analyzed to obtain the identifier of the receiving end and the address of the receiving end;
根据所述接收端的标识,从所述接收端中确定目标接收端;determining a target receiving end from among the receiving ends according to the identifier of the receiving end;
所述将所述目标应用的数据发送到目标接收端,包括:The sending the data of the target application to the target receiving end includes:
根据所述目标接收端的地址,与所述目标接收端建立连接;Establishing a connection with the target receiving end according to the address of the target receiving end;
将所述目标应用的数据发送到所述目标接收端。Send the data of the target application to the target receiving end.
可选的,所述接收端发布的服务信息还包括所述接收端的密码;Optionally, the service information released by the receiving end also includes the password of the receiving end;
所述对所述接收端发布的服务信息进行解析,得到所述接收端的标识和所述接收端的地址,包括:The parsing of the service information released by the receiving end to obtain the identifier of the receiving end and the address of the receiving end includes:
对所述接收端发布的服务信息进行解析,得到所述接收端的标识、所述接收端的地址和所述接收端的密码;Analyzing the service information released by the receiving end to obtain the identification of the receiving end, the address of the receiving end and the password of the receiving end;
所述方法还包括:The method also includes:
将所述目标接收端的密码发送到所述目标接收端,以使所述目标接收端对所述密码进行验证,并在验证通过后对所述目标应用的数据进行显示。Sending the password of the target receiving end to the target receiving end, so that the target receiving end verifies the password, and displays the data of the target application after the verification is passed.
可选的,所述若搜索到接收端发布的服务信息,则对所述接收端发布的服务信息进行解析,包括:Optionally, if the service information released by the receiving end is found in the search, then parsing the service information released by the receiving end includes:
若搜索到多个接收端发布的服务信息,则对所述多个接收端发布的服务信息进行解析;If the service information released by multiple receiving ends is found, then analyze the service information released by the multiple receiving ends;
显示所述多个接收端的标识;displaying identities of the plurality of receivers;
所述根据所述接收端的标识,从所述接收端中确定目标接收端,包括:The determining the target receiving end from the receiving end according to the identification of the receiving end includes:
接收用户输入的目标接收端选择指令,所述目标接收端选择指令对应所述多个接收端的标识中的一个;receiving a target receiver selection instruction input by a user, the target receiver selection instruction corresponding to one of the identifiers of the plurality of receivers;
根据所述目标接收端选择指令,确定目标接收端。The target receiving end is determined according to the target receiving end selection instruction.
可选的,所述方法还包括:Optionally, the method also includes:
若未搜索到目标接收端发布的服务信息,则显示pin码输入界面;If the service information published by the target receiver is not found, the pin code input interface will be displayed;
接收用户输入的pin码,所述pin码用于指示所述目标接收端的地址;receiving a pin code input by a user, where the pin code is used to indicate the address of the target receiving end;
对pin码进行解析,得到所述目标接收端的地址。The pin code is analyzed to obtain the address of the target receiving end.
第六方面,本申请实施例提供一种投屏装置,包括:In a sixth aspect, the embodiment of the present application provides a screen projection device, including:
应用开启模块,用于打开目标应用;An application opening module, configured to open a target application;
应用属性检测模块,用于检测所述目标应用的应用属性;An application attribute detection module, configured to detect the application attribute of the target application;
数据发送模块,用于在所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前正在投屏时,将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对所述目标应用的投屏;在所述目标应用的应用属性不属于投屏软件中的可投屏应用属性时,不将所述目标应用的数据发送到目标接收端,不对所述目标应用进行投屏。The data sending module is used to send the data of the target application to the target receiving end when the application attribute of the target application belongs to the attribute of the screen-casting application in the screen-casting software and is currently being screen-casting, so that the The target receiving end displays the data of the target application to realize the screen projection of the target application; when the application attribute of the target application does not belong to the application attribute of the screen projection software, the target application is not displayed. The data of the application is sent to the target receiving end, and the target application is not projected.
第七方面,本申请实施例提供一种投屏方法,应用于发送端,所述方法包括:In the seventh aspect, the embodiment of the present application provides a screen projection method, which is applied to the sending end, and the method includes:
打开目标应用;Open the target application;
检测所述目标应用的应用属性;Detecting application attributes of the target application;
若所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前未进行投屏,则显示第一提示框,以接收用户输入的进行投屏指令或不进行投屏指令;If the application attribute of the target application belongs to the screen-casting application attribute in the screen-casting software, and the screen-casting is not currently being performed, a first prompt box is displayed to receive the screen-casting instruction input by the user or not to perform the screen-casting instruction;
在接收到用户输入的进行投屏指令后,将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对所述目标应用的投屏。After receiving the screen projection instruction input by the user, the data of the target application is sent to the target receiving end, so that the target receiving end displays the data of the target application, and the projection of the target application is realized. Screen.
可选的,所述方法还包括:Optionally, the method also includes:
若所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前正在投屏,则将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对所述目标应用的投屏。If the application attribute of the target application belongs to the screen-casting application attribute in the screen-casting software, and is currently casting a screen, then send the data of the target application to the target receiving end, so that the target receiving end can The data of the target application is displayed, and the screen projection of the target application is realized.
可选的,所述方法还包括:Optionally, the method also includes:
打开所述投屏软件的设置项功能,对所述可投屏应用的应用属性执行编辑操作;Open the setting item function of the screen projection software, and perform editing operations on the application properties of the screen projection application;
其中,所述编辑操作包括增加应用属性、删除应用属性。Wherein, the editing operation includes adding application attributes and deleting application attributes.
可选的,所述方法还包括:Optionally, the method also includes:
在接收到用户输入的切换投屏应用指令后,显示当前打开的应用中符合可投屏应用属性的应用,作为待切换应用;After receiving the instruction to switch the screen-casting application input by the user, display the application that meets the properties of the screen-casting application among the currently open applications as the application to be switched;
在接收到用户输入的应用选择指令后,根据所述应用选择指令从所述待切换应用中确定新的目标应用;After receiving the application selection instruction input by the user, determine a new target application from the applications to be switched according to the application selection instruction;
停止向目标接收端发送所述目标应用的数据;Stop sending the data of the target application to the target receiving end;
将所述新的目标应用的数据发送到目标接收端,以使所述目标接收端对所述新的目标应用的数据进行显示,实现对所述新的目标应用的投屏。Sending the data of the new target application to the target receiving end, so that the target receiving end displays the data of the new target application, so as to realize screen projection of the new target application.
可选的,所述方法还包括:Optionally, the method also includes:
在接收到用户输入的不进行投屏指令后,显示第二提示框,以接收用户输入的延后提醒时长信息;After receiving the instruction not to cast the screen input by the user, a second prompt box is displayed to receive the delayed reminder duration information input by the user;
在所述延后提醒时长信息对应的时长结束后,弹出所述第一提示框。After the time period corresponding to the delayed reminder time length information ends, the first prompt box pops up.
可选的,所述方法还包括:Optionally, the method also includes:
搜索接收端发布的服务信息,所述服务信息包括所述接收端的标识和所述接收端的地址;Searching for service information published by the receiving end, the service information including the identifier of the receiving end and the address of the receiving end;
若搜索到接收端发布的服务信息,则对所述接收端发布的服务信息进行 解析,得到所述接收端的标识和所述接收端的地址;If the service information issued by the receiving end is searched, the service information issued by the receiving end is analyzed to obtain the identification of the receiving end and the address of the receiving end;
根据所述接收端的标识,从所述接收端中确定目标接收端;determining a target receiving end from among the receiving ends according to the identifier of the receiving end;
所述将所述目标应用的数据发送到目标接收端,包括:The sending the data of the target application to the target receiving end includes:
根据所述目标接收端的地址,与所述目标接收端建立连接;Establishing a connection with the target receiving end according to the address of the target receiving end;
将所述目标应用的数据发送到所述目标接收端。Send the data of the target application to the target receiving end.
可选的,所述接收端发布的服务信息还包括所述接收端的密码;Optionally, the service information released by the receiving end also includes the password of the receiving end;
所述对所述接收端发布的服务信息进行解析,得到所述接收端的标识和所述接收端的地址,包括:The parsing of the service information released by the receiving end to obtain the identifier of the receiving end and the address of the receiving end includes:
对所述接收端发布的服务信息进行解析,得到所述接收端的标识、所述接收端的地址和所述接收端的密码;Analyzing the service information released by the receiving end to obtain the identification of the receiving end, the address of the receiving end and the password of the receiving end;
所述方法还包括:The method also includes:
将所述目标接收端的密码发送到所述目标接收端,以使所述目标接收端对所述密码进行验证,并在验证通过后对所述目标应用的数据进行显示。Sending the password of the target receiving end to the target receiving end, so that the target receiving end verifies the password, and displays the data of the target application after the verification is passed.
可选的,所述若搜索到接收端发布的服务信息,则对所述接收端发布的服务信息进行解析,包括:Optionally, if the service information released by the receiving end is found in the search, then parsing the service information released by the receiving end includes:
若搜索到多个接收端发布的服务信息,则对所述多个接收端发布的服务信息进行解析;If the service information released by multiple receiving ends is found, then analyze the service information released by the multiple receiving ends;
显示所述多个接收端的标识;displaying identities of the plurality of receivers;
所述根据所述接收端的标识,从所述接收端中确定目标接收端,包括:The determining the target receiving end from the receiving end according to the identification of the receiving end includes:
接收用户输入的目标接收端选择指令,所述目标接收端选择指令对应所述多个接收端的标识中的一个;receiving a target receiver selection instruction input by a user, the target receiver selection instruction corresponding to one of the identifiers of the plurality of receivers;
根据所述目标接收端选择指令,确定目标接收端。The target receiving end is determined according to the target receiving end selection instruction.
可选的,所述方法还包括:Optionally, the method also includes:
若未搜索到目标接收端发布的服务信息,则显示pin码输入界面;If the service information published by the target receiver is not found, the pin code input interface will be displayed;
接收用户输入的pin码,所述pin码用于指示所述目标接收端的地址;receiving a pin code input by a user, where the pin code is used to indicate the address of the target receiving end;
对pin码进行解析,得到所述目标接收端的地址。The pin code is analyzed to obtain the address of the target receiving end.
第八方面,本申请实施例提供一种投屏装置,包括:In an eighth aspect, the embodiment of the present application provides a screen projection device, including:
应用开启模块,用于打开目标应用;An application opening module, configured to open a target application;
应用属性检测模块,用于检测所述目标应用的应用属性;An application attribute detection module, configured to detect the application attribute of the target application;
投屏确定模块,用于在所述目标应用的应用属性属于投屏软件中的可投 屏应用属性,且当前未进行投屏时,显示第一提示框,以接收用户输入的进行投屏指令或不进行投屏指令;The screen projection determination module is used to display the first prompt box when the application attribute of the target application belongs to the screen projection application attribute in the screen projection software, and the screen projection is not currently performed, so as to receive the screen projection instruction input by the user Or do not perform screen projection instructions;
数据发送模块,用于在接收到用户输入的进行投屏指令后,将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对所述目标应用的投屏。The data sending module is used to send the data of the target application to the target receiving end after receiving the screen projection instruction input by the user, so that the target receiving end can display the data of the target application to realize the Screencasting of the target application.
第九方面,本申请实施例提供一种计算机存储介质,所述计算机存储介质存储有多条指令,所述指令适于由处理器加载并执行如第一方面任意一项或第二方面任意一项或第五方面任意一项或第七方面任意一项的方法步骤。In the ninth aspect, the embodiment of the present application provides a computer storage medium, the computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded and executed by a processor according to any one of the first aspect or any one of the second aspect. item or any one of the fifth aspect or the method steps of any one of the seventh aspect.
第十方面,本申请实施例提供一种电子设备,包括:处理器和存储器;其中,所述存储器存储有计算机程序,所述计算机程序适于由所述处理器加载并执行如第一方面任意一项或第二方面任意一项或第五方面任意一项或第七方面任意一项的方法步骤。In a tenth aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory; wherein, the memory stores a computer program, and the computer program is adapted to be loaded and executed by the processor as described in any of the first aspects. The method steps of one or any one of the second aspect or any one of the fifth aspect or any one of the seventh aspect.
第十一方面,本申请实施例提供一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现第一方面任意一项或第二方面任意一项或第五方面任意一项或第七方面任意一项所述的方法步骤。In the eleventh aspect, the embodiment of the present application provides a computer program product, including a computer program, which implements any item of the first aspect or any item of the second aspect or any item of the fifth aspect or any item of the fifth aspect when the computer program is executed by a processor. The method steps described in any one of the seventh aspect.
本实施例提供的投屏方法应用于发送端,包括:打开目标应用;检测所述目标应用的应用属性;若所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前正在投屏,则将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对目标应用的投屏;若目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前未进行投屏,则显示第一提示框,以接收用户输入的进行投屏指令或不进行投屏指令;在接收到用户输入的进行投屏指令后,将目标应用的数据发送到目标接收端,以使目标接收端对目标应用的数据进行显示,实现对目标应用的投屏。本申请的方案通过打开目标应用后自动检测目标应用的应用属性,并在应用属性属于投屏软件中设置的可投屏应用属性并且投屏软件开启时,自动触发投屏过程,开始投屏;或者,在投屏软件未开启时,在通过提示框询问的方式确定客户投屏意向后,自动触发投屏过程,开始投屏。整个过程中只需要用户执行选择需要进行投屏的目标应用的操作,或者另外执行输入投屏指令的操作即可,后续的连接和数据传输过程都是设备间自动进行的,无需像现有技术中由用户进行多次操作,极大简化操作流程,提高投屏效率。The screen projection method provided by this embodiment is applied to the sending end, including: opening the target application; detecting the application attribute of the target application; if the application attribute of the target application belongs to the application attribute that can be cast in the screen projection software, and the current If the screen is being projected, the data of the target application is sent to the target receiving end, so that the target receiving end displays the data of the target application to realize the screen projection of the target application; if the application attribute of the target application belongs to In the screen casting software, if the screen casting application attribute is available, and the screen is not currently being cast, the first prompt box will be displayed to receive the user input command to perform screen projection or not to perform screen projection; after receiving the user input, perform screen projection After the instruction, the data of the target application is sent to the target receiving end, so that the target receiving end displays the data of the target application and realizes screen projection of the target application. The solution of this application automatically detects the application attributes of the target application after opening the target application, and when the application attributes belong to the application attributes set in the projection software and the projection software is started, the projection process is automatically triggered and the projection starts; Or, when the screen projection software is not opened, after confirming the customer's screen projection intention through the prompt box inquiry, the screen projection process is automatically triggered and the screen projection starts. During the whole process, the user only needs to perform the operation of selecting the target application that needs to be projected, or additionally perform the operation of inputting the projecting command, and the subsequent connection and data transmission process is automatically carried out between devices, without the need for the existing technology. Multiple operations are performed by the user, which greatly simplifies the operation process and improves the efficiency of screen projection.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本申请实施例提供的一种应用场景示意图;FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application;
图2为本申请实施例公开的一种投屏方法的流程图;FIG. 2 is a flow chart of a screen projection method disclosed in an embodiment of the present application;
图3a为本申请实施例公开的一种第一提示框的界面示意图;Fig. 3a is a schematic interface diagram of a first prompt box disclosed in the embodiment of the present application;
图3b为本申请实施例公开的一种第二提示框的界面示意图;Fig. 3b is a schematic interface diagram of a second prompt box disclosed in the embodiment of the present application;
图4为本申请实施例公开的另一种投屏方法的流程图;FIG. 4 is a flow chart of another screen projection method disclosed in the embodiment of the present application;
图5为本申请实施例公开的又一种投屏方法的流程图;FIG. 5 is a flow chart of another screen projection method disclosed in the embodiment of the present application;
图6为本申请实施例公开的一种投屏装置的结构示意图;FIG. 6 is a schematic structural diagram of a screen projection device disclosed in an embodiment of the present application;
图7为本申请实施例公开的另一种投屏装置的结构示意图;FIG. 7 is a schematic structural diagram of another screen projection device disclosed in an embodiment of the present application;
图8为本申请实施例公开的一种电子设备的结构示意图;FIG. 8 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application;
图9为本申请实施例公开的另一种投屏方法的流程图;FIG. 9 is a flow chart of another screen projection method disclosed in the embodiment of the present application;
图10为本申请实施例公开的另一种投屏装置的结构示意图;FIG. 10 is a schematic structural diagram of another screen projection device disclosed in the embodiment of the present application;
图11为本申请实施例公开的另一种投屏方法的流程图;FIG. 11 is a flow chart of another screen projection method disclosed in the embodiment of the present application;
图12为本申请实施例公开的另一种投屏装置的结构示意图。FIG. 12 is a schematic structural diagram of another screen projection device disclosed in an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施例方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present application clearer, the embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings.
应当明确,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。It should be clear that the described embodiments are only some of the embodiments of the present application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.
在本申请的描述中,需要理解的是,术语“第一”、“第二”、“第三”等仅用于区别类似的对象,而不必用于描述特定的顺序或先后次序,也不能理解为指示或暗示相对重要性。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本申请中的具体含义。此外,在本申请的描述中,除非另有说明,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, nor can they be Read as indicating or implying relative importance. Those of ordinary skill in the art can understand the specific meanings of the above terms in this application according to specific situations. In addition, in the description of the present application, unless otherwise specified, "plurality" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. The character "/" generally indicates that the contextual objects are an "or" relationship.
发送端设备上一般会运行一个软件(本申请中称为投屏软件),用于捕获发送端的画面等信息并传输给接收端,接收端则会运行投屏接收端软件用于接收并显示这些信息。基于投屏的软硬件基础,在成功投屏(发送端传输数据到接收端)之前,用户需要执行繁琐的步骤开启投屏过程。首先,用户需要打开发送端的投屏软件;再打开需要进行投屏的目标应用;最后,需要输入投屏码才能与接收端的设备进行连接。当然,前两步的顺序也可以交换。总之,需要用户做多次点击、输入的操作,较为繁琐。Generally, a software (referred to as projection software in this application) will run on the device at the sending end, which is used to capture information such as the screen of the sending end and transmit it to the receiving end, and the receiving end will run the screen projection receiving end software to receive and display these information. Based on the hardware and software foundation of screen projection, users need to perform cumbersome steps to start the screen projection process before successful screen projection (transmitting data from the sender to the receiver). First, the user needs to open the screen-casting software on the sending end; then open the target application that needs to be screen-casted; finally, the user needs to enter the screen-casting code to connect with the device on the receiving end. Of course, the order of the first two steps can also be exchanged. In short, it requires the user to perform multiple clicks and input operations, which is relatively cumbersome.
因此,本申请实施例欲提出一种投屏方法、装置、存储介质及电子设备,为用户提供一种操作更为简便的投屏方法,可以减少开启投屏过程时用户的操作步骤,提高操作效率,以解决开始投屏前操作复杂的问题。Therefore, the embodiment of the present application intends to propose a screen projection method, device, storage medium, and electronic equipment to provide users with a screen projection method that is easier to operate, which can reduce the user's operation steps when starting the screen projection process, and improve the operation efficiency. Efficiency, in order to solve the problem of complex operation before starting to cast the screen.
图1为本申请实施例提供的一种应用场景示意图。如图1所示的,发送端的设备为手机,接收端的设备为交互平板设备。基于本申请的方法,用户只需在手机上开启目标应用,即可快速开启投屏过程。投屏过程开启后,手机与交互平板设备通信连接,通过投屏功能,手机中目标应用的界面会被传输并显示在交互平板设备上。FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application. As shown in Figure 1, the device at the sending end is a mobile phone, and the device at the receiving end is an interactive tablet device. Based on the method of the present application, the user only needs to start the target application on the mobile phone to quickly start the screen projection process. After the screen projection process is started, the mobile phone communicates with the interactive tablet device. Through the screen projection function, the interface of the target application in the mobile phone will be transmitted and displayed on the interactive tablet device.
当然,发送端的设备也可以为个人电脑、智能平板等其它电子设备,图1中仅做举例说明。Certainly, the device at the sending end may also be other electronic devices such as a personal computer and a smart tablet, and FIG. 1 is only illustrated as an example.
其中,交互平板的硬件部分由触控显示模组、智能处理***(包括控制器)等部分所构成,由整体结构件结合到一起,同时也由专用的软件***作为支撑,其中触控显示模组包括显示屏、触控组件和背光灯组件,背光灯组件用于为显示屏提供背光光源,显示屏一般采用液晶显示装置,用于进行画面展示,触控组件设置在显示屏上或者设置在显示屏前端,用于采集用户的 触控操作数据,并将采集的触控操作数据发送到智能处理***进行处理。Among them, the hardware part of the interactive panel is composed of a touch display module, an intelligent processing system (including a controller), etc., which are combined by integral structural parts and supported by a dedicated software system. The group includes a display screen, a touch component and a backlight component. The backlight component is used to provide a backlight source for the display screen. The display screen generally uses a liquid crystal display device for displaying images. The front end of the display screen is used to collect touch operation data of the user, and send the collected touch operation data to an intelligent processing system for processing.
在实际使用中,交互平板的显示屏上显示画面数据,当用户通过手指或者触控笔等触控物体点击显示屏上显示的内容,例如点击显示屏上显示的图形按钮时,交互平板的触控组件将采集到触控数据,从而触控组件将该触控数据转换为触控点的坐标数据后发送到智能处理***,或者发送到智能处理***处由智能处理***转换为触控点的坐标数据,智能处理***获得触控点的坐标数据后,根据预先设定的程序实现相应的控制操作,驱动显示屏显示内容发生变化,实现多样化的显示、操作效果。In actual use, the display screen of the interactive tablet displays picture data. When the user clicks the content displayed on the display screen with a touch object such as a finger or a stylus pen, for example, when clicking a graphic button displayed on the display screen, the touch screen of the interactive tablet The control component will collect the touch data, so that the touch component converts the touch data into the coordinate data of the touch point and sends it to the intelligent processing system, or sends it to the intelligent processing system, and the intelligent processing system converts it into the coordinate data of the touch point. Coordinate data, after the intelligent processing system obtains the coordinate data of the touch point, it realizes the corresponding control operation according to the preset program, drives the display screen to change the display content, and realizes diversified display and operation effects.
从技术原理来区别触摸组件,可以分为五个基本种类;矢量压力传感技术触摸组件、电阻技术触摸组件、电容技术触摸组件、电磁技术触摸屏、红外线技术触摸组件、表面声波技术触摸组件。按照触摸组件的工作原理和传输信息的介质,可以把触摸组件分为四个种类:电阻式、电容感应式、电磁感应式、红外线式以及表面声波式。Touch components can be divided into five basic types based on technical principles: vector pressure sensing technology touch components, resistive technology touch components, capacitive technology touch components, electromagnetic technology touch screens, infrared technology touch components, and surface acoustic wave technology touch components. According to the working principle of the touch component and the medium for transmitting information, the touch component can be divided into four types: resistive, capacitive induction, electromagnetic induction, infrared and surface acoustic wave.
当用户用手指或笔触摸显示屏时,触摸组件可以采集触控点的数据并发送到智能处理***,然后随着智能处理***内置的软件来实现不同的功能应用,从而实现对智能处理***的触控控制。When the user touches the display screen with a finger or a pen, the touch component can collect the data of the touch point and send it to the intelligent processing system, and then implement different functional applications with the built-in software of the intelligent processing system, thereby realizing the control of the intelligent processing system Touch controls.
在本申请中所提到的“屏幕”、“大屏”均指交互平板的显示屏;交互平板显示某个界面是指交互平板的显示屏显示该界面。The "screen" and "big screen" mentioned in this application both refer to the display screen of the interactive panel; displaying a certain interface on the interactive panel means that the display screen of the interactive panel displays the interface.
以下将对本申请实施例的实现方式进行说明。需要注意的是,由于篇幅所限,本申请说明书没有穷举所有可选的实施方式,本领域技术人员在阅读本申请说明书后,应该能够想到,只要技术特征不互相矛盾,那么技术特征的任意组合均可以构成可选的实施方式。记载在不同实施例中的不互相矛盾的技术特征也可以任意组合,构成可选的实施方式。The implementation manner of the embodiment of the present application will be described below. It should be noted that due to space limitations, this application description does not list all optional implementation modes. After reading this application description, those skilled in the art should be able to imagine that as long as the technical features do not contradict each other, then any of the technical features Any combination can constitute an optional embodiment. Non-contradictory technical features recorded in different embodiments can also be combined arbitrarily to form optional implementation modes.
本申请实施例公开了投屏方法,该方法应用于投屏的发送端。The embodiment of the present application discloses a screen projection method, which is applied to a screen projection sending end.
请参见图2,为本申请实施例公开的一种投屏方法的流程图。该方法应用于发送端,该方法包括以下步骤:Please refer to FIG. 2 , which is a flow chart of a screen projection method disclosed in an embodiment of the present application. The method is applied to the sending end, and the method includes the following steps:
S201,打开目标应用。S201, open a target application.
发送端在接收到用户输入的打开目标应用的相应指令后,可以执行打开目标应用的操作。After receiving a corresponding instruction input by the user to open the target application, the sending end may perform an operation of opening the target application.
具体的,用户输入的打开目标应用的相应指令,可以为对目标应用图标 进行的点击操作,也可以为通过人机交互界面对目标应用图标所在位置进行的触摸操作,还可以为通过人机交互界面执行的预先设定的某种触摸手势,例如,连续点击多下,或多指点击,或多指滑动等。Specifically, the corresponding command input by the user to open the target application may be a click operation on the icon of the target application, or a touch operation on the position of the icon of the target application through the human-computer interaction interface, or a user-interactive instruction through the human-computer interaction. A preset touch gesture performed on the interface, for example, multiple consecutive taps, multi-finger taps, or multi-finger slides.
其中,目标应用是响应于用户输入的操作指令确定的,需要进行投屏的应用,可以为任一应用。Wherein, the target application is determined in response to an operation instruction input by the user, and the application that needs to perform screen projection may be any application.
S202,检测目标应用的应用属性。S202. Detect application attributes of the target application.
应用属性指应用对应的一些特定属性。应用属性可以包括:应用名称、应用支持的文件的类型(例如文档类应用、音频类应用、视频类应用等)等。Application attributes refer to some specific attributes corresponding to the application. The application attributes may include: application name, type of files supported by the application (such as document type application, audio type application, video type application, etc.) and so on.
通过对目标应用的配置信息进行查询,即可确定目标应用的应用属性。The application attributes of the target application can be determined by querying the configuration information of the target application.
S203,若目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前正在投屏,则将目标应用的数据发送到目标接收端,以使目标接收端对目标应用的数据进行显示,实现对目标应用的投屏。S203, if the application attribute of the target application belongs to the application attribute of the screen projection software, and the screen is currently being projected, send the data of the target application to the target receiving end, so that the target receiving end can display the data of the target application , to realize the screencasting of the target application.
用户在进行投屏之前,即可以确定允许进行投屏的应用(应用名称),或本次投屏过程中需要打开的文件的类型或需要使用到的应用。据此,可以预先将允许进行投屏的应用对应的属性设置为投屏软件中的可投屏应用属性。Before casting the screen, the user can determine the application (application name) that is allowed to perform the screen projection, or the type of the file to be opened or the application to be used during the screen projection process. Accordingly, the attribute corresponding to the application that allows screen projection can be set in advance as the attribute of the application that can cast the screen in the screen projection software.
在应用投屏的过程中,当检测到目标应用的应用属性属于设定的可投屏应用属性,即可直接将目标应用的数据发送到目标接收端。During the screen mirroring process of the application, when it is detected that the application attribute of the target application belongs to the set screen mirroring application attribute, the data of the target application can be directly sent to the target receiving end.
相对应的,目标接收端则可以接收目标应用的数据,并在显示界面上进行显示。Correspondingly, the target receiving end can receive the data of the target application and display it on the display interface.
其中,是否正在投屏可以通过检测投屏软件的进程状态来确定。Wherein, whether the screen is being projected can be determined by detecting the process status of the screen projecting software.
在实际应用过程中,可以将本申请的方法步骤注册为一个***服务进程,一旦有目标应用被打开,则自动触发***服务进程,检测目标应用的应用属性,并与投屏软件中的可投屏应用属性进行比对。In the actual application process, the method steps of this application can be registered as a system service process, once a target application is opened, the system service process will be automatically triggered, the application attributes of the target application will be detected, and the projected Compare the properties of the screen application.
其中,投屏软件中的可投屏应用属性,可以作为一个列表存储在磁盘中。Wherein, the properties of the screen-casting application in the screen-casting software can be stored in the disk as a list.
S204,若目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前未进行投屏,则显示第一提示框,以接收用户输入的进行投屏指令或不进行投屏指令。S204. If the application attribute of the target application belongs to the application attribute of the screen projection software, and the screen projection is not currently performed, display a first prompt box to receive an instruction input by the user to perform screen projection or not to perform screen projection.
S205,在接收到用户输入的进行投屏指令后,将目标应用的数据发送到目标接收端,以使目标接收端对目标应用的数据进行显示,实现对目标应用的投屏。S205. After receiving the screen projection instruction input by the user, send the data of the target application to the target receiving end, so that the target receiving end displays the data of the target application, and realizes screen projection of the target application.
在未进行投屏时,可能是投屏尚未开始,也可能是投屏被中止,此时打开的目标应用的应用属性即使属于投屏软件中的可投屏应用属性,仍需对用户进行询问,是否需要对此应用进行投屏。只有在明确接收到用户输入的进行投屏的指令后,才可以发送目标应用的数据到目标接收端。以免对用户不希望投屏的内容进行投屏,造成隐私泄露。When the screen projection is not in progress, it may be that the screen projection has not started yet, or the screen projection may be suspended. At this time, even if the application attribute of the open target application belongs to the application attribute of the screen projection software, the user still needs to be asked. , whether to cast the screen of this application. The data of the target application can be sent to the target receiving end only after an instruction for screen projection input by the user is clearly received. In order to avoid casting content that the user does not want to screen, causing privacy leakage.
具体的,可以在显示界面上显示第一提示框,在提示框中以文字形式询问是否进行投屏,由用户选择进行投屏或不进行投屏,或者由用户输入进行投屏或不进行投屏。Specifically, the first prompt box may be displayed on the display interface, and in the prompt box, it is asked in text form whether to perform screen projection, and the user chooses whether to perform screen projection or not, or the user inputs whether to perform screen projection or not. Screen.
参考图3a,通过第一提示框显示“是否进行投屏”,并提供两个选项“是”和“否”。若用户选“是”,则确定用户输入了进行投屏指令,则将所述目标应用的数据发送到目标接收端;若用户选“否”,则确定用户输入了不进行投屏指令,则不进行后续操作。Referring to FIG. 3a, the first prompt box displays "whether to perform screen mirroring" and provides two options "yes" and "no". If the user selects "Yes", it is determined that the user has input an instruction to perform screen projection, and then the data of the target application is sent to the target receiving end; if the user selects "No", it is determined that the user has input an instruction not to perform screen projection, then No further action will be taken.
本实施例提供的投屏方法应用于发送端,包括:打开目标应用;检测所述目标应用的应用属性;若所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前正在投屏,则将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对目标应用的投屏;若目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前未进行投屏,则显示第一提示框,以接收用户输入的进行投屏指令或不进行投屏指令;在接收到用户输入的进行投屏指令后,将目标应用的数据发送到目标接收端,以使目标接收端对目标应用的数据进行显示,实现对目标应用的投屏。本申请的方案通过打开目标应用后自动检测目标应用的应用属性,并在应用属性属于投屏软件中设置的可投屏应用属性并且投屏软件开启时,自动触发投屏过程,开始投屏;或者,在投屏软件未开启时,在通过提示框询问的方式确定客户投屏意向后,自动触发投屏过程,开始投屏。整个过程中只需要用户执行选择需要进行投屏的目标应用的操作,或者另外执行输入投屏指令的操作即可,后续的连接和数据传输过程都是设备间自动进行的,无需像现有技术中由用户进行多次操作,极大简化操作流程,提高投屏效率。The screen projection method provided by this embodiment is applied to the sending end, including: opening the target application; detecting the application attribute of the target application; if the application attribute of the target application belongs to the application attribute that can be cast in the screen projection software, and the current If the screen is being projected, the data of the target application is sent to the target receiving end, so that the target receiving end displays the data of the target application to realize the screen projection of the target application; if the application attribute of the target application belongs to In the screen casting software, if the screen casting application attribute is available, and the screen is not currently being cast, the first prompt box will be displayed to receive the user input command to perform screen projection or not to perform screen projection; after receiving the user input, perform screen projection After the instruction, the data of the target application is sent to the target receiving end, so that the target receiving end displays the data of the target application and realizes screen projection of the target application. The solution of this application automatically detects the application attributes of the target application after opening the target application, and when the application attributes belong to the application attributes set in the projection software and the projection software is started, the projection process is automatically triggered and the projection starts; Or, when the screen projection software is not opened, after confirming the customer's screen projection intention through the prompt box inquiry, the screen projection process is automatically triggered and the screen projection starts. During the whole process, the user only needs to perform the operation of selecting the target application that needs to be projected, or additionally perform the operation of inputting the projecting command, and the subsequent connection and data transmission process is automatically carried out between devices, without the need for the existing technology. Multiple operations are performed by the user, which greatly simplifies the operation process and improves the efficiency of screen projection.
在一些实施例中,在投屏软件中具有设置项功能,可以对投屏软件进行参数的设置和修改等。上述的投屏方法还可以包括:打开所述投屏软件的设置项功能,对所述可投屏应用属性执行编辑操作;其中,所述编辑操作包括 增加应用属性、删除应用属性。In some embodiments, there is a setting item function in the screen projection software, which can set and modify parameters of the screen projection software. The above-mentioned screen projection method may further include: opening the setting item function of the screen projection software, and performing editing operations on the application attributes that can be projected; wherein, the editing operations include adding application attributes and deleting application attributes.
在进行投屏之前,或在投屏过程中,或在投屏结束后,都可以对投屏软件中的可投屏应用属性执行编辑操作,以调整投屏情况。Before, during, or after screen casting, you can edit the properties of the screen-casting application in the screen-casting software to adjust the screen-casting situation.
具体的,在投屏之前,可以增加本次投屏的应用属性,也可以删除本次不进行投屏的应用属性,以免造成不必要的信息泄露。在投屏过程中,可以增加临时需要进行投屏的应用属性,也可以删除后续不再进行投屏的应用属性。在投屏结束后,可以删除所有应用属性,以免在不需要投屏时误将应用数据发送出去,造成信息泄露。Specifically, before the screen projection, the application attributes of the current projection can be added, and the application attributes of the non-screen projection can also be deleted, so as to avoid unnecessary information leakage. During the screen projection process, you can add the application attributes that need to be projected temporarily, or delete the application attributes that will not be projected in the future. After the screen projection is complete, all application attributes can be deleted, so as not to mistakenly send the application data when the screen projection is not needed, resulting in information leakage.
在另一些实施例中,上述的方法还可以包括:在接收到用户输入的不进行投屏指令后,显示第二提示框,以接收用户输入的延后提醒时长信息;在所述延后提醒时长信息对应的时长结束后,弹出所述第一提示框。In some other embodiments, the above method may further include: after receiving an instruction not to cast the screen input by the user, displaying a second prompt box to receive information on the length of the delay reminder input by the user; After the duration corresponding to the duration information ends, the first prompt box pops up.
用户输入不进行投屏指令后,可能在一段时间内都不需要进行投屏。此时用户可以对投屏软件中的可投屏应用属性执行编辑操作,清空可投屏应用属性。这样,在用户需要进行投屏时还需要重新添加,不太方便。这时就可以显示第二提示框,对用户需要投屏的时间或需要延后提醒的时长进行询问,然后在用户需要投屏的时间或延后提醒的时长到达前,若再有应用打开便不再重复询问是否投屏。可以有效减少对用户的打扰。After the user enters the command not to cast the screen, it may not need to cast the screen for a period of time. At this point, the user can edit the properties of the screen-casting application in the screen-casting software to clear the properties of the screen-casting application. In this way, it is not convenient to add it again when the user needs to perform screen projection. At this time, the second prompt box can be displayed to inquire about the time when the user needs to cast the screen or the length of the delayed reminder, and then before the time when the user needs to cast the screen or the length of the delayed reminder arrives, if another application is opened Do not ask repeatedly whether to cast the screen. Can effectively reduce the interruption to the user.
例如在图3a中用户选择“否”,则转到图3b,通过第二提示框显示“在____后询问”。用户可以点击下拉按钮选择一个合适的时长,若没有合适的时长,还可以直接在空格处自行填写合适的时长。那么,在此时长之中,若再有应用打开,将不再弹出第一提示框对用户进行询问。For example, if the user selects "No" in Figure 3a, then turn to Figure 3b, and display "Ask after ____" through the second prompt box. Users can click the drop-down button to select an appropriate duration. If there is no appropriate duration, they can also directly fill in the appropriate duration in the blank. Then, during this period of time, if any application is opened again, the first prompt box will no longer pop up to ask the user.
在一些实施例中,上述投屏方法还可以包括:搜索接收端发布的服务信息,所述服务信息包括所述接收端的标识和所述接收端的地址;若搜索到接收端发布的服务信息,则对所述接收端发布的服务信息进行解析,得到所述接收端的标识和所述接收端的地址;根据所述接收端的标识,从所述接收端中确定目标接收端。相对应的,上述的将所述目标应用的数据发送到目标接收端,包括:根据所述目标接收端的地址,与所述目标接收端建立连接;将所述目标应用的数据发送到所述目标接收端。In some embodiments, the screen projection method above may further include: searching for service information released by the receiving end, the service information including the identifier of the receiving end and the address of the receiving end; if the service information released by the receiving end is searched, then Analyzing the service information released by the receiving end to obtain the identification of the receiving end and the address of the receiving end; and determining the target receiving end from the receiving end according to the identification of the receiving end. Correspondingly, the above-mentioned sending the data of the target application to the target receiving end includes: establishing a connection with the target receiving end according to the address of the target receiving end; sending the data of the target application to the target Receiving end.
在与目标接收端进行数据传输之前,需要先与目标接收端建立网络连接。具体的,接收端在开启后即通过网络向外发布服务信息,服务信息中包括有 接收端的标识和接收端的地址。其中,接收端的标识指唯一的可表征接收端的信息,可以包括接收端的设备型号信息;接收端的地址指可以实现通信连接的通信地址,可以包括接收端的IP地址和端口信息。发送端通过搜索和解析接收端发送的服务信息,可以确定接收端的标识,根据接收端的标识,可以从至少一个接收端中确定出目标接收端(即需要进行投屏的接收端)。在将目标应用的数据发送到目标接收端之前,还需要根据解析出的目标接收端的地址与目标接收端建立连接。Before data transmission with the target receiver, it is necessary to establish a network connection with the target receiver. Specifically, after the receiving end is turned on, it releases service information through the network, and the service information includes the identification of the receiving end and the address of the receiving end. Among them, the identifier of the receiving end refers to the unique information that can characterize the receiving end, which may include the equipment model information of the receiving end; the address of the receiving end refers to the communication address that can realize the communication connection, and may include the IP address and port information of the receiving end. The sending end can determine the identity of the receiving end by searching and analyzing the service information sent by the receiving end. According to the identity of the receiving end, the target receiving end (that is, the receiving end that needs to perform screen projection) can be determined from at least one receiving end. Before sending the data of the target application to the target receiving end, it is also necessary to establish a connection with the target receiving end according to the resolved address of the target receiving end.
在一些实施例中,为避免多个发送端的设备与同一接收端的设备进行连接,导致数据传输错误,可以由接收端对发送端进行校验。具体的,上述的接收端发布的服务信息还包括所述接收端的密码。相应的,上述的对接收端发布的服务信息进行解析,得到所述接收端的标识和所述接收端的地址,包括:对所述接收端发布的服务信息进行解析,得到所述接收端的标识、所述接收端的地址和所述接收端的密码。相应的,上述的方法还包括:将所述目标接收端的密码发送到所述目标接收端,以使所述目标接收端对所述密码进行验证,并在验证通过后对所述目标应用的数据进行显示。In some embodiments, in order to prevent multiple devices at the sending end from being connected to a device at the same receiving end, resulting in data transmission errors, the receiving end may verify the sending end. Specifically, the above-mentioned service information released by the receiving end also includes the password of the receiving end. Correspondingly, the above-mentioned parsing of the service information released by the receiving end to obtain the identifier of the receiving end and the address of the receiving end includes: parsing the service information released by the receiving end to obtain the identifier of the receiving end, the The address of the receiving end and the password of the receiving end. Correspondingly, the above method further includes: sending the password of the target receiving end to the target receiving end, so that the target receiving end can verify the password, and after the verification is passed, the data of the target application to display.
对密码进行验证,一方面可以验证密码的正确性,以确定数据传输是否有故障;另一方面,在数据数据传输之前加入验证环节,可以避免多个发送端设备直接与接收端设备进行数据传输。Verifying the password, on the one hand, can verify the correctness of the password to determine whether there is a fault in the data transmission; on the other hand, adding the verification link before the data transmission can prevent multiple sending devices from directly transmitting data with the receiving device .
共同接入同一网络的接收端可能有一个或多个,发送端搜索到的服务也可能有一个或多个。当发送端只搜索到一个服务时,则可以默认此服务为目标接收端发布的服务。当发送端搜索到多个服务时,上述的若搜索到接收端发布的服务信息,则对所述接收端发布的服务信息进行解析,可以包括:若搜索到多个接收端发布的服务信息,则对所述多个接收端发布的服务信息进行解析;显示所述多个接收端的标识;所述根据所述接收端的标识,从所述接收端中确定目标接收端,包括:接收用户输入的目标接收端选择指令,所述目标接收端选择指令对应所述多个接收端的标识中的一个;根据所述目标接收端选择指令,确定目标接收端。There may be one or more receivers that share the same network, and there may be one or more services searched by the sender. When the sender finds only one service, it can default to the service published by the target receiver. When the sending end searches for multiple services, if the above-mentioned service information released by the receiving end is found, parsing the service information released by the receiving end may include: if the service information released by multiple receiving ends is found, Then analyze the service information released by the multiple receiving terminals; display the identifications of the multiple receiving terminals; and determine the target receiving terminal from the receiving terminals according to the identifications of the receiving terminals, including: receiving user input A target receiving end selection instruction, the target receiving end selection instruction corresponding to one of the identifications of the plurality of receiving ends; according to the target receiving end selection instruction, the target receiving end is determined.
对于不同接收端,可以在服务信息中添加设备信息或不同的名称作为标识加以区分。在解析得到标识信息后,可以对多个标识进行显示,以供用户进行选择。显示的内容可以包括,标识和/或历史的连接信息(例如,上次连 接时间,若从未连接过,时间可以显示为“无”)。用户根据显示的信息,选择目标接收端,并通过发送端输入目标接收端的选择指令(在实际过程中,可能为用户针对目标接收端的点击操作)。在接收到目标接收端选择指令后,即可从多个服务信息中确定目标接收端的服务信息,进而获取目标接收端的地址。For different receivers, device information or different names can be added to the service information as identifications to distinguish them. After the identification information is obtained through parsing, multiple identifications may be displayed for the user to choose. The displayed content may include, identification and/or historical connection information (for example, last connection time, if never connected, the time may be displayed as "none"). The user selects the target receiving end according to the displayed information, and inputs the selection instruction of the target receiving end through the sending end (in the actual process, it may be the user's click operation on the target receiving end). After receiving the target receiver selection instruction, the service information of the target receiver can be determined from multiple service information, and then the address of the target receiver can be obtained.
在一些实施例中,上述的投屏方法还可以包括:若未搜索到目标接收端发布的服务信息,则显示pin码输入界面;接收用户输入的pin码,所述pin码用于指示所述目标接收端的地址;对pin码进行解析,得到所述目标接收端的地址。In some embodiments, the above screen projection method may further include: displaying a pin code input interface if the service information released by the target receiving end is not searched; receiving a pin code input by the user, and the pin code is used to indicate the The address of the target receiving end; analyzing the pin code to obtain the address of the target receiving end.
对于未搜索到目标接收端的服务的情况,还可以采用这种方式去获取目标接收端的地址。未搜索到目标接收端的服务的情况的产生,多是由于目标接收端未正常连接到网络,此时,目标接收端本身可以对自身的网络状态进行监控和反应。例如,目标接收端检测到未接入目标网络时,在显示界面显示pin码。发送端搜索目标接收端失败时(搜索到的接收端服务非目标接收端的服务或未搜索到接收端服务),可以在显示界面显示提醒消息及pin码输入界面,例如“搜索失败,请输入目标设备pin码”等,以提示用户。用户在确认搜索目标接收端失败后,可以将目标接收端显示界面显示的pin码输入发送端。发送端接收用户输入的pin码,并对其进行解析,得到目标接收端的地址。For the case where the service of the target receiving end is not found, this method can also be used to obtain the address of the target receiving end. The situation that the service of the target receiving end cannot be found is mostly due to the fact that the target receiving end is not normally connected to the network. At this time, the target receiving end itself can monitor and respond to its own network status. For example, when the target receiver detects that it is not connected to the target network, it displays the pin code on the display interface. When the sender fails to search for the target receiver (the searched receiver service is not the service of the target receiver or the receiver service is not found), a reminder message and a pin code input interface can be displayed on the display interface, for example, "Search failed, please enter the target device pin code", etc. to prompt the user. After confirming that the search for the target receiver fails, the user can input the pin code displayed on the display interface of the target receiver to the sender. The sending end receives the pin code input by the user, and analyzes it to obtain the address of the target receiving end.
在实际场景中,在对某个目标应用进行投屏的过程中,用户还可能同时对发送端的设备进行其他的操作,也就是说可能同时开启多个窗口。在对目标应用的数据进行传输时,一般可选两种方式。一种是只针对目标应用的窗口数据进行投屏显示(窗体投屏),这样可能导致的问题是,在目标应用的窗口上弹出的本应用的上层窗口因为未被传输而无法同步显示。In actual scenarios, during the process of casting a target application, the user may also perform other operations on the device at the sending end at the same time, that is to say, multiple windows may be opened at the same time. When transmitting the data of the target application, generally two methods can be selected. One is to perform screen projection only for the window data of the target application (window projection), which may cause a problem that the upper window of the application that pops up on the window of the target application cannot be displayed synchronously because it has not been transmitted.
另一种是针对目标应用的窗口数据所对应的桌面位置的数据进行投屏显示,这样可以将对应桌面位置的全部数据同步显示在接收端(区域投屏),但也有一个问题是其它应用的窗口可能对目标数据的窗口造成遮挡。The other is to screen-cast the data of the desktop position corresponding to the window data of the target application, so that all the data corresponding to the desktop position can be displayed on the receiving end synchronously (regional screen projection), but there is also a problem that other applications The window may obscure the window of the target data.
因此,可以先识别目标应用窗口在桌面的位置。默认对目标应用进行窗体投屏,当检测到目标应用对应的窗口在当前桌面的最顶层时,转为区域投屏。Therefore, the position of the target application window on the desktop can be identified first. By default, window projection is performed on the target application. When it is detected that the window corresponding to the target application is at the top of the current desktop, it will switch to area projection.
在一些实施例中,在投屏过程中,还可以对正在投屏的目标应用进行标识。例如为目标应用的图标添加外边框,以区别于其它未投屏的应用;或者,为目标应用的窗口添加外边框,以区别于其它未投屏的应用的窗口。外边框的颜色可以为蓝色、绿色、红色等颜色,形状可以为圆角矩形等。在投屏中止时,可以取消外边框的显示。在目标应用的窗体大小发生变化时,外边框还可以跟随目标应用的窗体大小自适应变化大小。In some embodiments, during the screen casting process, the target application being screen casting can also be identified. For example, an outer border is added to the icon of the target application to distinguish it from other applications not mirroring the screen; or, an outer border is added to the window of the target application to distinguish it from the windows of other applications not mirroring the screen. The color of the outer frame can be blue, green, red, etc., and the shape can be a rounded rectangle or the like. When the screen projection is suspended, the display of the outer frame can be canceled. When the size of the window of the target application changes, the outer frame can also change in size adaptively following the size of the window of the target application.
另外,可以在发送端的显示界面显示工具栏,在工具栏中显示功能按键,例如暂停投屏、继续投屏、结束投屏、切换窗体等。工具栏的位置可以在显示界面的任何位置,例如显示界面上边缘、显示界面下边缘、显示界面左边缘、显示界面右边缘等。工具栏可以设置不同透明度和不同颜色。In addition, a toolbar can be displayed on the display interface of the sending end, and function buttons can be displayed in the toolbar, such as pausing screen projection, continuing screen projection, ending screen projection, switching windows, etc. The toolbar can be located anywhere on the display interface, such as the upper edge of the display interface, the lower edge of the display interface, the left edge of the display interface, the right edge of the display interface, and the like. The toolbar can be set to different transparency and different colors.
其中,暂停投屏功能,可以中止目标应用的投屏过程,停止向接收端发送数据;继续投屏功能,则可以恢复投屏过程,继续向接收端发送数据;结束投屏功能,可以结束投屏过程,停止向接收端发送数据,并断开与接收端之间的连接。在一些实施例中,通过结束投屏功能结束投屏过程之后,目标应用可以暂不关闭。Among them, suspending the screen projection function can stop the screen projection process of the target application and stop sending data to the receiving end; continue the screen projection function to resume the screen projection process and continue to send data to the receiving end; end the screen projection function to end the projection screen process, stop sending data to the receiving end, and disconnect the connection with the receiving end. In some embodiments, after the screen casting process is ended by ending the screen casting function, the target application may not be closed temporarily.
当需要对投屏应用进行切换时,上述的方法还包括:在接收到用户输入的切换投屏应用指令后,显示当前打开的应用中符合可投屏应用属性的应用,作为待切换应用;在接收到用户输入的应用选择指令后,根据所述应用选择指令从所述待切换应用中确定新的目标应用;停止向目标接收端发送所述目标应用的数据;将所述新的目标应用的数据发送到目标接收端,以使所述目标接收端对所述新的目标应用的数据进行显示,实现对所述新的目标应用的投屏。When it is necessary to switch the screen projection application, the above method further includes: after receiving the switch projection application instruction input by the user, displaying the application that meets the attribute of the screen projection application among the currently opened applications as the application to be switched; After receiving the application selection instruction input by the user, determine a new target application from the applications to be switched according to the application selection instruction; stop sending the data of the target application to the target receiving end; The data is sent to the target receiving end, so that the target receiving end displays the data of the new target application, so as to realize screen projection of the new target application.
具体的,选择切换窗体功能后,可以以缩略图的方式显示所有当前已打开的符合投屏软件中的可投屏应用属性的应用的窗口。缩略图可以以单行、单列、多行、多列的形式展现。或者,也可以呈现为九宫格的形式。数量较多时,允许滚动展现。在每个缩略图下方可以显示该应用的名称。用户可以通过点击操作选中某缩略图(即输入切换投屏应用指令),则将其确定为当前投屏的应用进行切换投屏。Specifically, after the window switching function is selected, all currently opened windows of applications that meet the properties of the screen-casting application in the screen-casting software can be displayed in the form of thumbnails. Thumbnails can be displayed in the form of single row, single column, multiple rows, and multiple columns. Alternatively, it can also be presented in the form of a nine-square grid. When the number is large, scrolling is allowed. Below each thumbnail can display the app's name. The user can select a certain thumbnail through a click operation (that is, input an instruction to switch the screen projection application), and then determine it as the current screen projection application for switching and projection.
在一些实施例中,用户也可以通过操作接收端的相关功能按键断开与发送端的连接关系,进而结束投屏过程。In some embodiments, the user can also disconnect the connection relationship with the sending end by operating the relevant function button of the receiving end, and then end the screen projection process.
请参见图4,为本申请实施例公开的另一种投屏方法的流程图。该方法应用于目标接收端,该方法包括以下步骤:Please refer to FIG. 4 , which is a flow chart of another screen projection method disclosed in the embodiment of the present application. The method is applied to the target receiving end, and the method includes the following steps:
S401,接收发送端发送的目标应用的数据。S401. Receive data of a target application sent by a sending end.
其中,所述目标应用的数据是所述发送端在打开目标应用,检测所述目标应用的应用属性,确定所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前正在投屏时发送的;或者,所述目标应用的数据是所述发送端在确定所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前未进行投屏时,显示第一提示框,以接收用户输入的进行投屏指令或不进行投屏指令,并在接收到用户输入的进行投屏指令后发送的。Wherein, the data of the target application is that the sender opens the target application, detects the application attributes of the target application, and determines that the application attributes of the target application belong to the application attributes that can be projected in the screen projection software, and are currently or, the data of the target application is displayed when the sending end determines that the application attribute of the target application belongs to the application attribute that can be projected in the screen projection software, and the screen projection is not currently being performed. A prompt box, which is used to receive the screen projection command input by the user or not to perform the screen projection command, and is sent after receiving the screen projection command input by the user.
S402,显示所述目标应用的数据。S402. Display data of the target application.
可选的,所述方法还包括:Optionally, the method also includes:
发布服务信息,所述服务信息包括所述目标接收端的标识和所述目标接收端的地址;Publishing service information, the service information including the identification of the target receiving end and the address of the target receiving end;
所述接收发送端发送的目标应用的数据,包括:The receiving data of the target application sent by the sending end includes:
接收发送端发送的目标应用的数据;所述目标应用的数据是所述发送端搜索接收端发布的服务信息,并在搜索到所述接收端发布的服务信息,对所述接收端发布的服务信息进行解析,得到所述接收端的标识和所述接收端的地址后,根据所述接收端的标识,从所述接收端中确定目标接收端,根据所述目标接收端的地址,与所述目标接收端建立连接后发送的;其中,所述服务信息包括所述接收端的标识和所述接收端的地址。Receive the data of the target application sent by the sending end; the data of the target application is the service information released by the receiving end searched by the sending end, and after searching for the service information released by the receiving end, the service information released by the receiving end After analyzing the information, after obtaining the identification of the receiving end and the address of the receiving end, according to the identification of the receiving end, determine the target receiving end from the receiving end, and according to the address of the target receiving end, communicate with the target receiving end It is sent after the connection is established; wherein, the service information includes the identifier of the receiving end and the address of the receiving end.
可选的,所述服务信息还包括所述目标接收端的密码;Optionally, the service information also includes the password of the target receiver;
所述显示所述目标应用的数据,包括:The displaying the data of the target application includes:
显示密码输入界面;Display the password input interface;
接收发送端发送的密码;所述密码是所述发送端在搜索到接收端发布的服务信息,对所述接收端发布的服务信息进行解析得到的;receiving the password sent by the sending end; the password is obtained by analyzing the service information released by the receiving end after the sending end searches for the service information released by the receiving end;
对所述密码进行验证,并在验证通过显示所述目标应用的数据。The password is verified, and the data of the target application is displayed when the verification is passed.
可选的,所述方法还包括:Optionally, the method also includes:
显示pin码,所述pin码用于指示所述目标接收端的地址。A pin code is displayed, and the pin code is used to indicate the address of the target receiver.
本实施例的方案中的各步骤,在发送端执行的方法对应的实施例的描述中均有所体现,其具体实现方式和有益效果可以参考上述实施例,此处不再 赘述。Each step in the solution of this embodiment is reflected in the description of the embodiment corresponding to the method executed by the sending end. For its specific implementation and beneficial effects, reference can be made to the above embodiment, and details will not be repeated here.
请参见图5,为本申请实施例公开的一种投屏方法的流程图。该方法应用于发送端和目标接收端,该方法包括以下步骤:Please refer to FIG. 5 , which is a flow chart of a screen projection method disclosed in an embodiment of the present application. The method is applied to the sending end and the target receiving end, and the method includes the following steps:
S501、目标接收端发布服务信息。S501. The target receiver publishes service information.
其中,服务信息包括目标接收端的地址。Wherein, the service information includes the address of the target receiver.
S502、发送端打开目标应用。S502. The sending end opens the target application.
S503、发送端检测目标应用的应用属性。S503. The sending end detects the application attribute of the target application.
S504、若所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前正在投屏,则将所述目标应用的数据发送到目标接收端。S504. If the application attribute of the target application belongs to the application attribute that can be projected in the screen projection software, and the screen is currently being projected, send the data of the target application to the target receiving end.
S505、目标接收端对接收到的目标应用的数据进行显示。S505. The target receiving end displays the received data of the target application.
本实施例的方案中的各步骤,在发送端设备执行的方法对应的实施例的描述中均有所体现,其具体实现方式和有益效果可以参考上述实施例,此处不再赘述。Each step in the solution of this embodiment is reflected in the description of the embodiment corresponding to the method executed by the sending end device. For the specific implementation and beneficial effects, reference may be made to the above embodiment, and details will not be repeated here.
请参见图6,其示出了本申请一个示例性实施例提供的投屏装置的结构示意图。该投屏装置600为发送端对应的装置,包括:应用开启模块601、应用属性检测模块602、数据发送模块603。Please refer to FIG. 6 , which shows a schematic structural diagram of a screen projection device provided by an exemplary embodiment of the present application. The screen projection device 600 is a device corresponding to the sending end, including: an application opening module 601 , an application attribute detection module 602 , and a data sending module 603 .
应用开启模块601,用于打开目标应用;An application opening module 601, configured to open a target application;
应用属性检测模块602,用于检测所述目标应用的应用属性;An application attribute detection module 602, configured to detect the application attribute of the target application;
数据发送模块603,用于在所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前正在投屏时,将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对所述目标应用的投屏;The data sending module 603 is used to send the data of the target application to the target receiving end when the application attribute of the target application belongs to the attribute of the screen-casting application in the screen-casting software and is currently being screen-casting, so that all The target receiving end displays the data of the target application, so as to realize the screen projection of the target application;
投屏确定模块604,用于在所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前未进行投屏时,显示第一提示框,以接收用户输入的进行投屏指令或不进行投屏指令;The screen projection determination module 604 is configured to display a first prompt box when the application attribute of the target application belongs to the application attribute that can be projected in the screen projection software, and the screen projection is not currently performed, so as to receive user input to perform screen projection Instructions or not to perform screencasting instructions;
数据发送模块603,还用于在接收到用户输入的进行投屏指令后,将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对所述目标应用的投屏。The data sending module 603 is further configured to send the data of the target application to the target receiving end after receiving the screen projection instruction input by the user, so that the target receiving end can display the data of the target application, Realize the screencasting of the target application.
可选的,投屏装置600还包括:Optionally, the screen projection device 600 also includes:
可投屏应用属性编辑模块605,用于打开所述投屏软件的设置项功能, 对所述可投屏应用的应用属性执行编辑操作;The screen-casting application attribute editing module 605 is configured to open the setting item function of the screen-casting software, and perform editing operations on the application properties of the screen-casting application;
其中,所述编辑操作包括增加应用属性、删除应用属性。Wherein, the editing operation includes adding application attributes and deleting application attributes.
可选的,投屏装置600还包括投屏应用切换模块606,用于:Optionally, the screen projection device 600 also includes a screen projection application switching module 606, configured to:
在接收到用户输入的切换投屏应用指令后,显示当前打开的应用中符合可投屏应用属性的应用,作为待切换应用;After receiving the instruction to switch the screen-casting application input by the user, display the application that meets the properties of the screen-casting application among the currently open applications as the application to be switched;
在接收到用户输入的应用选择指令后,根据所述应用选择指令从所述待切换应用中确定新的目标应用;After receiving the application selection instruction input by the user, determine a new target application from the applications to be switched according to the application selection instruction;
停止向目标接收端发送所述目标应用的数据;Stop sending the data of the target application to the target receiving end;
将所述新的目标应用的数据发送到目标接收端,以使所述目标接收端对所述新的目标应用的数据进行显示,实现对所述新的目标应用的投屏。Sending the data of the new target application to the target receiving end, so that the target receiving end displays the data of the new target application, so as to realize screen projection of the new target application.
可选的,投屏装置600还包括显示模块607,用于:Optionally, the screen projection device 600 also includes a display module 607, configured to:
在接收到用户输入的不进行投屏指令后,显示第二提示框,以接收用户输入的延后提醒时长信息;在所述延后提醒时长信息对应的时长结束后,弹出所述第一提示框。After receiving the instruction not to cast the screen input by the user, display the second prompt box to receive the delay reminder duration information input by the user; after the duration corresponding to the delay reminder duration information ends, the first prompt pops up frame.
可选的,投屏装置600还包括:Optionally, the screen projection device 600 also includes:
服务信息搜索模块608,用于搜索接收端发布的服务信息,所述服务信息包括所述接收端的标识和所述接收端的地址;A service information search module 608, configured to search for service information released by the receiving end, where the service information includes the identifier of the receiving end and the address of the receiving end;
服务信息解析模块609,用于在搜索到接收端发布的服务信息时,对所述接收端发布的服务信息进行解析,得到所述接收端的标识和所述接收端的地址;The service information parsing module 609 is configured to analyze the service information released by the receiving end when searching for the service information released by the receiving end, and obtain the identifier of the receiving end and the address of the receiving end;
目标接收端确定模块610,用于根据所述接收端的标识,从所述接收端中确定目标接收端;A target receiver determining module 610, configured to determine a target receiver from among the receivers according to the identifier of the receiver;
所述数据发送模块603在将所述目标应用的数据发送到目标接收端时,具体用于:When the data sending module 603 sends the data of the target application to the target receiving end, it is specifically used for:
根据所述目标接收端的地址,与所述目标接收端建立连接;Establishing a connection with the target receiving end according to the address of the target receiving end;
将所述目标应用的数据发送到所述目标接收端。Send the data of the target application to the target receiving end.
可选的,所述接收端发布的服务信息还包括所述接收端的密码;Optionally, the service information released by the receiving end also includes the password of the receiving end;
所述服务信息解析模块609在对所述接收端发布的服务信息进行解析,得到所述接收端的标识和所述接收端的地址时,具体用于:When the service information parsing module 609 parses the service information released by the receiving end to obtain the identifier of the receiving end and the address of the receiving end, it is specifically used for:
对所述接收端发布的服务信息进行解析,得到所述接收端的标识、所述 接收端的地址和所述接收端的密码;Analyzing the service information issued by the receiving end to obtain the identification of the receiving end, the address of the receiving end and the password of the receiving end;
所述数据发送模块603,还用于将所述目标接收端的密码发送到所述目标接收端,以使所述目标接收端对所述密码进行验证,并在验证通过后对所述目标应用的数据进行显示。The data sending module 603 is further configured to send the password of the target receiving end to the target receiving end, so that the target receiving end can verify the password, and after the verification is passed, the target application The data is displayed.
可选的,所述服务信息解析模块609具体用于:Optionally, the service information parsing module 609 is specifically configured to:
若搜索到多个接收端发布的服务信息,则对所述多个接收端发布的服务信息进行解析;If the service information released by multiple receiving ends is found, then analyze the service information released by the multiple receiving ends;
所述显示模块607,还用于显示所述多个接收端的标识;The display module 607 is also configured to display the identifications of the multiple receiving terminals;
所述目标接收端确定模块607在根据所述接收端的标识,从所述接收端中确定目标接收端时,具体用于:When the target receiving end determination module 607 determines the target receiving end from the receiving end according to the identification of the receiving end, it is specifically used for:
接收用户输入的目标接收端选择指令,所述目标接收端选择指令对应所述多个接收端的标识中的一个;receiving a target receiver selection instruction input by a user, the target receiver selection instruction corresponding to one of the identifiers of the plurality of receivers;
根据所述目标接收端选择指令,确定目标接收端。The target receiving end is determined according to the target receiving end selection instruction.
可选的,所述显示模块607还用于:在未搜索到目标接收端发布的服务信息时,显示pin码输入界面;Optionally, the display module 607 is further configured to: display a pin code input interface when no service information released by the target receiving end is found;
所述装置还包括:pin码解析模块611,用于接收用户输入的pin码,所述pin码用于指示所述目标接收端的地址;对pin码进行解析,得到所述目标接收端的地址。The device also includes: a pin code parsing module 611, configured to receive a pin code input by a user, the pin code is used to indicate the address of the target receiving end; analyze the pin code to obtain the address of the target receiving end.
本实施例的方案中的各模块所实现的方法,在发送端设备执行的方法对应的实施例的描述中均有所体现,其具体实现方式和有益效果可以参考上述实施例,此处不再赘述。The methods implemented by each module in the solution of this embodiment are reflected in the description of the embodiment corresponding to the method executed by the sending end device. The specific implementation and beneficial effects can refer to the above embodiments, and will not be repeated here repeat.
请参见图7,其示出了本申请一个示例性实施例提供的投屏装置的结构示意图。该投屏装置700为目标接收端设备对应的装置,包括:Please refer to FIG. 7 , which shows a schematic structural diagram of a screen projection device provided by an exemplary embodiment of the present application. The screen projection device 700 is a device corresponding to the target receiver device, including:
数据接收模块701,用于接收发送端发送的目标应用的数据;所述目标应用的数据是所述发送端在打开目标应用,检测所述目标应用的应用属性,确定所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前正在投屏时发送的;或者,所述目标应用的数据是所述发送端在确定所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前未进行投屏时,显示第一提示框,以接收用户输入的进行投屏指令或不进行投屏指令,并在接收到用户输入的进行投屏指令后发送的;The data receiving module 701 is configured to receive the data of the target application sent by the sender; the data of the target application is that the sender opens the target application, detects the application attributes of the target application, and determines the application attributes of the target application Belongs to the screen-casting application attribute in the screen-casting software, and is currently being sent when the screen is being cast; or, the data of the target application is that the sending end determines that the application attribute of the target application belongs to the screen-casting software. The property of the screencasting application, and when the screencasting is not currently being performed, the first prompt box is displayed to receive the command input by the user to perform screencasting or not to perform screencasting, and send it after receiving the command input by the user to perform screencasting;
显示模块702,用于显示所述目标应用的数据,实现对所述目标应用的投屏。The display module 702 is configured to display the data of the target application, so as to implement screen projection of the target application.
可选的,投屏装置700还包括:Optionally, the screen projection device 700 also includes:
服务信息发布模块703,用于发布服务信息,所述服务信息包括所述目标接收端的标识和所述目标接收端的地址;A service information publishing module 703, configured to publish service information, the service information including the identification of the target receiving end and the address of the target receiving end;
所述数据接收模块701,具体用于:The data receiving module 701 is specifically used for:
接收发送端发送的目标应用的数据;所述目标应用的数据是所述发送端搜索接收端发布的服务信息,并在搜索到所述接收端发布的服务信息,对所述接收端发布的服务信息进行解析,得到所述接收端的标识和所述接收端的地址后,根据所述接收端的标识,从所述接收端中确定目标接收端,根据所述目标接收端的地址,与所述目标接收端建立连接后发送的;其中,所述服务信息包括所述接收端的标识和所述接收端的地址。Receive the data of the target application sent by the sending end; the data of the target application is the service information released by the receiving end searched by the sending end, and after searching for the service information released by the receiving end, the service information released by the receiving end After analyzing the information, after obtaining the identification of the receiving end and the address of the receiving end, according to the identification of the receiving end, determine the target receiving end from the receiving end, and according to the address of the target receiving end, communicate with the target receiving end It is sent after the connection is established; wherein, the service information includes the identifier of the receiving end and the address of the receiving end.
可选的,所述服务信息还包括所述目标接收端的密码;Optionally, the service information also includes the password of the target receiver;
所述显示模块702,具体用于:显示密码输入界面;接收发送端发送的密码;所述密码是所述发送端在搜索到接收端发布的服务信息,对所述接收端发布的服务信息进行解析得到的;对所述密码进行验证,并在验证通过显示所述目标应用的数据。The display module 702 is specifically used for: displaying the password input interface; receiving the password sent by the sending end; the password is the service information issued by the receiving end after the sending end searches for it, and performs a search on the service information issued by the receiving end. It is obtained by parsing; the password is verified, and the data of the target application is displayed when the verification is passed.
可选的,所述显示模块702还用于:Optionally, the display module 702 is also used for:
显示pin码,所述pin码用于指示所述目标接收端的地址。A pin code is displayed, and the pin code is used to indicate the address of the target receiver.
本实施例的方案中的各模块所实现的方法,在接收端设备执行的方法对应的实施例的描述中均有所体现,其具体实现方式和有益效果可以参考上述实施例,此处不再赘述。The methods implemented by each module in the scheme of this embodiment are reflected in the description of the embodiment corresponding to the method executed by the receiving end device. For its specific implementation and beneficial effects, reference can be made to the above-mentioned embodiments, which will not be repeated here repeat.
在另一些实施例中,一些电子设备可能在一些场景中作为发送端设备,在另一些中作为接收端设备。这些电子设备可以同时具有装置600和装置700对应的模块,以实现对应的方法。In some other embodiments, some electronic devices may serve as sender devices in some scenarios, and as receiver devices in others. These electronic devices may have modules corresponding to the apparatus 600 and the apparatus 700 at the same time, so as to implement the corresponding method.
需要说明的是,上述实施例提供的投屏装置在执行投屏方法时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的投屏装置与投屏方法实施例属于同一构思,其体现实现过程详见方法实施例,这里不再 赘述。It should be noted that when the screen projection device provided in the above embodiment executes the screen projection method, it only uses the division of the above-mentioned functional modules as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional modules according to needs. , which divides the internal structure of the device into different functional modules to complete all or part of the functions described above. In addition, the screen projection device provided by the above embodiments and the screen projection method embodiments belong to the same concept, and the implementation process of the embodiment can be found in the method embodiments for details, and will not be repeated here.
本申请实施例还提供了一种计算机存储介质,计算机存储介质可以存储有多条指令,指令适于由处理器加载并执行如上述实施例的方法步骤,具体执行过程可以参见上述实施例的具体说明,在此不进行赘述。The embodiment of the present application also provides a computer storage medium. The computer storage medium can store a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps as in the above embodiment. For the specific execution process, please refer to the details of the above embodiment. description, and will not be repeated here.
存储介质所在设备可以是电子设备。The device where the storage medium is located may be an electronic device.
本申请实施例还提供一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现发送端或目标接收端的方法步骤。The embodiment of the present application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method steps of the sending end or the target receiving end are realized.
请参见图8,为本申请实施例提供了一种电子设备的结构示意图。图8的电子设备可以为发送端设备或接收端设备。如图8所示,电子设备800可以包括:至少一个处理器801,至少一个网络接口804,用户接口803,存储器805,至少一个通信总线802。Please refer to FIG. 8 , which provides a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device in FIG. 8 may be a sending end device or a receiving end device. As shown in FIG. 8 , an electronic device 800 may include: at least one processor 801 , at least one network interface 804 , a user interface 803 , a memory 805 , and at least one communication bus 802 .
其中,通信总线802用于实现这些组件之间的连接通信。Wherein, the communication bus 802 is used to realize connection and communication between these components.
其中,用户接口803可以包括显示屏(Display)、摄像头(Camera),可选用户接口803还可以包括标准的有线接口、无线接口。Wherein, the user interface 803 may include a display screen (Display) and a camera (Camera), and the optional user interface 803 may also include a standard wired interface and a wireless interface.
其中,网络接口804可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。Wherein, the network interface 804 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
其中,处理器801可以包括一个或者多个处理核心。处理器801利用各种接口和线路连接整个电子设备800内的各个部分,通过运行或执行存储在存储器805内的指令、程序、代码集或指令集,以及调用存储在存储器805内的数据,执行电子设备800的各种功能和处理数据。可选的,处理器801可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器801可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作***、用户界面和应用程序等;GPU用于负责显示屏所需要显示的内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器801中,单独通过一块芯片进行实现。Wherein, the processor 801 may include one or more processing cores. The processor 801 uses various interfaces and lines to connect various parts of the entire electronic device 800, and executes by running or executing instructions, programs, code sets or instruction sets stored in the memory 805, and calling data stored in the memory 805. Various functions of the electronic device 800 and processing data. Optionally, the processor 801 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware. The processor 801 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used to render and draw the content that needs to be displayed on the display screen; the modem is used to handle wireless communication. It can be understood that the foregoing modem may also not be integrated into the processor 801, but implemented by a single chip.
其中,存储器805可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。可选的,该存储器805包括 非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器805可用于存储指令、程序、代码、代码集或指令集。存储器805可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作***的指令、用于至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等;存储数据区可存储上面各个方法实施例中涉及到的数据等。存储器805可选的还可以是至少一个位于远离前述处理器801的存储装置。如图8所示,作为一种计算机存储介质的存储器805中可以包括操作***、网络通信模块、用户接口模块以及电子设备的操作应用程序。Wherein, the memory 805 may include a random access memory (Random Access Memory, RAM), and may also include a read-only memory (Read-Only Memory). Optionally, the memory 805 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium). Memory 805 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 805 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), Instructions, etc. used to implement the above method embodiments; the storage data area can store data, etc. involved in the above method embodiments. Optionally, the memory 805 may also be at least one storage device located away from the aforementioned processor 801 . As shown in FIG. 8 , the memory 805 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an operating application program of the electronic device.
在图8所示的电子设备800中,用户接口803主要用于为用户提供输入的接口,获取用户输入的数据;而处理器801可以用于调用存储器805中存储的电子设备的操作应用程序,并具体执行上述方法的操作。In the electronic device 800 shown in FIG. 8 , the user interface 803 is mainly used to provide the user with an input interface to obtain the data input by the user; and the processor 801 can be used to call the operation application program of the electronic device stored in the memory 805, And specifically implement the operation of the above method.
在一个实施例中,上述电子设备的操作***为安卓***。In one embodiment, the operating system of the above-mentioned electronic device is an Android system.
图9为本申请实施例公开的另一种投屏方法的流程图。该方法应用于发送端,该方法包括以下步骤:FIG. 9 is a flow chart of another screen projection method disclosed in the embodiment of the present application. The method is applied to the sending end, and the method includes the following steps:
S901,打开目标应用。S901, open a target application.
S902,检测所述目标应用的应用属性。S902. Detect application attributes of the target application.
S903,若所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前正在投屏,则将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对所述目标应用的投屏;S903, if the application attribute of the target application belongs to the application attribute that can be projected in the screen projection software, and the screen is currently being projected, then send the data of the target application to the target receiving end, so that the target receiving end can The data of the target application is displayed to realize the projection of the target application;
S904,若所述目标应用的应用属性不属于投屏软件中的可投屏应用属性,则不将所述目标应用的数据发送到目标接收端,不对所述目标应用进行投屏。S904. If the application attribute of the target application does not belong to the application attribute that can be projected in the screen projection software, do not send the data of the target application to the target receiving end, and do not project the screen of the target application.
在本实施例中,在根据用户指令打开目标应用后,即检测目标应用的应用属性。当检测到目标应用的属性不属于投屏软件中的可投屏应用属性时,无论当前是否在投屏,都不会开启对目标应用的投屏。这样就给了用户自行选择可投屏应用的条件,可以避免无意间的隐私泄露。In this embodiment, after the target application is opened according to the user instruction, the application attribute of the target application is detected. When it is detected that the properties of the target application do not belong to the properties of the screen-casting application in the screen-casting software, regardless of whether the screen is currently being cast, the screen-casting of the target application will not be enabled. In this way, the user is given the conditions to choose the screen-casting application by himself, which can avoid unintentional privacy leakage.
图10为本申请一个示例性实施例提供的另一种与图9方法对应的投屏装置的结构示意图。该投屏装置100为发送端对应的装置,包括:应用开启模块101、应用属性检测模块102、数据发送模块103。FIG. 10 is a schematic structural diagram of another screen projection device corresponding to the method in FIG. 9 provided by an exemplary embodiment of the present application. The screen projection device 100 is a device corresponding to the sending end, including: an application opening module 101 , an application attribute detection module 102 , and a data sending module 103 .
应用开启模块101,用于打开目标应用;An application opening module 101, configured to open a target application;
应用属性检测模块102,用于检测所述目标应用的应用属性;An application attribute detection module 102, configured to detect the application attribute of the target application;
数据发送模块103,用于在所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前正在投屏时,将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对所述目标应用的投屏;在所述目标应用的应用属性不属于投屏软件中的可投屏应用属性时,不将所述目标应用的数据发送到目标接收端,不对所述目标应用进行投屏。The data sending module 103 is used to send the data of the target application to the target receiving end when the application attribute of the target application belongs to the attribute of the screen-casting application in the screen-casting software and is currently being screen-casting, so that all The target receiving end displays the data of the target application to realize the screen projection of the target application; when the application attribute of the target application does not belong to the application attribute that can be projected in the screen projection software, the The data of the target application is sent to the target receiving end, and the target application is not projected.
本实施例的方案中的各模块所实现的方法,在发送端设备执行的方法对应的实施例的描述中均有所体现,其具体实现方式和有益效果可以参考上述实施例,此处不再赘述。The methods implemented by each module in the solution of this embodiment are reflected in the description of the embodiment corresponding to the method executed by the sending end device. The specific implementation and beneficial effects can refer to the above embodiments, and will not be repeated here repeat.
图11为本申请实施例公开的另一种投屏方法的流程图。该方法应用于发送端,该方法包括以下步骤:FIG. 11 is a flow chart of another screen projection method disclosed in the embodiment of the present application. The method is applied to the sending end, and the method includes the following steps:
S111、打开目标应用;S111, open the target application;
S112、检测所述目标应用的应用属性;S112. Detect application attributes of the target application;
S113、若所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前未进行投屏,则显示第一提示框,以接收用户输入的进行投屏指令或不进行投屏指令;S113. If the application attribute of the target application belongs to the application attribute of the screen projection software, and the screen projection is not currently performed, display the first prompt box to receive the screen projection instruction input by the user or not to perform the screen projection instruction;
S114、在接收到用户输入的进行投屏指令后,将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对所述目标应用的投屏。S114. After receiving the screen projection instruction input by the user, send the data of the target application to the target receiving end, so that the target receiving end can display the data of the target application, so as to implement the target application screencasting.
本实施例的方案,在根据用户指令打开目标应用后,即检测目标应用的应用属性。在确定目标应用属于可投屏应用后,询问用户投屏意向,只要用户确定投屏即可开始投屏,投屏操作简单便捷。In the solution of this embodiment, after the target application is opened according to the user instruction, the application attribute of the target application is detected. After confirming that the target application belongs to the screen-casting application, the user is asked about the screen-casting intention. As long as the user confirms the screen-casting, the screen-casting can start. The screen-casting operation is simple and convenient.
图12为本申请一个示例性实施例提供的另一种与图11方法对应的投屏装置的结构示意图。该投屏装置120为发送端对应的装置,包括:应用开启模块121、应用属性检测模块122、投屏确定模块123、数据发送模块124。FIG. 12 is a schematic structural diagram of another screen projection device corresponding to the method in FIG. 11 provided by an exemplary embodiment of the present application. The screen projection device 120 is a device corresponding to the sending end, including: an application opening module 121 , an application attribute detection module 122 , a screen projection determination module 123 , and a data sending module 124 .
应用开启模块121,用于打开目标应用;An application opening module 121, configured to open a target application;
应用属性检测模块122,用于检测所述目标应用的应用属性;An application attribute detection module 122, configured to detect the application attribute of the target application;
投屏确定模块123,用于在所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前未进行投屏时,显示第一提示框,以接收用户输入 的进行投屏指令或不进行投屏指令;The screen projection determination module 123 is used to display the first prompt box when the application attribute of the target application belongs to the screen projection application attribute in the screen projection software, and the screen projection is not currently performed, so as to receive the input from the user to perform screen projection Instructions or not to perform screencasting instructions;
数据发送模块124,用于在接收到用户输入的进行投屏指令后,将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对所述目标应用的投屏。The data sending module 124 is configured to send the data of the target application to the target receiving end after receiving the screen projection instruction input by the user, so that the target receiving end can display the data of the target application, realizing Screencasting of the target application.
本实施例的方案中的各模块所实现的方法,在发送端设备执行的方法对应的实施例的描述中均有所体现,其具体实现方式和有益效果可以参考上述实施例,此处不再赘述。The methods implemented by each module in the solution of this embodiment are reflected in the description of the embodiment corresponding to the method executed by the sending end device. The specific implementation and beneficial effects can refer to the above embodiments, and will not be repeated here repeat.
本领域内的技术人员应明白,本申请的实施例可提供为方法、***、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请实施例的方法、设备(***)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowcharts and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。存储器是计算机可读介质的示例。Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read only memory (ROM) or flash RAM. The memory is an example of a computer readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes Other elements not expressly listed, or elements inherent in the process, method, commodity, or apparatus are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
以上仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above are only examples of the present application, and are not intended to limit the present application. For those skilled in the art, various modifications and changes may occur in this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.

Claims (16)

  1. 一种投屏方法,其特征在于,应用于发送端,所述方法包括:A screen projection method, characterized in that it is applied to a sending end, and the method includes:
    打开目标应用;Open the target application;
    检测所述目标应用的应用属性;Detecting application attributes of the target application;
    若所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前正在投屏,则将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对所述目标应用的投屏;If the application attribute of the target application belongs to the screen-casting application attribute in the screen-casting software, and is currently casting a screen, then send the data of the target application to the target receiving end, so that the target receiving end can The data of the target application is displayed to realize the projection of the target application;
    若所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前未进行投屏,则显示第一提示框,以接收用户输入的进行投屏指令或不进行投屏指令;If the application attribute of the target application belongs to the screen-casting application attribute in the screen-casting software, and the screen-casting is not currently being performed, a first prompt box is displayed to receive the screen-casting instruction input by the user or not to perform the screen-casting instruction;
    在接收到用户输入的进行投屏指令后,将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对所述目标应用的投屏。After receiving the screen projection instruction input by the user, the data of the target application is sent to the target receiving end, so that the target receiving end displays the data of the target application, and the projection of the target application is realized. Screen.
  2. 根据权利要求1所述的方法,其特征在于,还包括:The method according to claim 1, further comprising:
    打开所述投屏软件的设置项功能,对所述可投屏应用的应用属性执行编辑操作;Open the setting item function of the screen projection software, and perform editing operations on the application properties of the screen projection application;
    其中,所述编辑操作包括增加应用属性、删除应用属性。Wherein, the editing operation includes adding application attributes and deleting application attributes.
  3. 根据权利要求1或2所述的方法,其特征在于,还包括:The method according to claim 1 or 2, further comprising:
    在接收到用户输入的切换投屏应用指令后,显示当前打开的应用中符合可投屏应用属性的应用,作为待切换应用;After receiving the instruction to switch the screen-casting application input by the user, display the application that meets the properties of the screen-casting application among the currently open applications as the application to be switched;
    在接收到用户输入的应用选择指令后,根据所述应用选择指令从所述待切换应用中确定新的目标应用;After receiving the application selection instruction input by the user, determine a new target application from the applications to be switched according to the application selection instruction;
    停止向目标接收端发送所述目标应用的数据;Stop sending the data of the target application to the target receiving end;
    将所述新的目标应用的数据发送到目标接收端,以使所述目标接收端对所述新的目标应用的数据进行显示,实现对所述新的目标应用的投屏。Sending the data of the new target application to the target receiving end, so that the target receiving end displays the data of the new target application, so as to realize screen projection of the new target application.
  4. 根据权利要求3所述的方法,其特征在于,还包括:The method according to claim 3, further comprising:
    在接收到用户输入的不进行投屏指令后,显示第二提示框,以接收用户输入的延后提醒时长信息;After receiving the instruction not to cast the screen input by the user, a second prompt box is displayed to receive the delayed reminder duration information input by the user;
    在所述延后提醒时长信息对应的时长结束后,弹出所述第一提示框。After the time period corresponding to the delayed reminder time length information ends, the first prompt box pops up.
  5. 根据权利要求1或2所述的方法,其特征在于,还包括:The method according to claim 1 or 2, further comprising:
    搜索接收端发布的服务信息,所述服务信息包括所述接收端的标识和所述接收端的地址;Searching for service information published by the receiving end, the service information including the identifier of the receiving end and the address of the receiving end;
    若搜索到接收端发布的服务信息,则对所述接收端发布的服务信息进行解析,得到所述接收端的标识和所述接收端的地址;If the service information released by the receiving end is searched, the service information released by the receiving end is analyzed to obtain the identifier of the receiving end and the address of the receiving end;
    根据所述接收端的标识,从所述接收端中确定目标接收端;determining a target receiving end from among the receiving ends according to the identifier of the receiving end;
    所述将所述目标应用的数据发送到目标接收端,包括:The sending the data of the target application to the target receiving end includes:
    根据所述目标接收端的地址,与所述目标接收端建立连接;Establishing a connection with the target receiving end according to the address of the target receiving end;
    将所述目标应用的数据发送到所述目标接收端。Send the data of the target application to the target receiving end.
  6. 根据权利要求5所述的方法,其特征在于,所述接收端发布的服务信息还包括所述接收端的密码;The method according to claim 5, wherein the service information released by the receiving end further includes the password of the receiving end;
    所述对所述接收端发布的服务信息进行解析,得到所述接收端的标识和所述接收端的地址,包括:The parsing of the service information released by the receiving end to obtain the identifier of the receiving end and the address of the receiving end includes:
    对所述接收端发布的服务信息进行解析,得到所述接收端的标识、所述接收端的地址和所述接收端的密码;Analyzing the service information released by the receiving end to obtain the identification of the receiving end, the address of the receiving end and the password of the receiving end;
    所述方法还包括:The method also includes:
    将所述目标接收端的密码发送到所述目标接收端,以使所述目标接收端对所述密码进行验证,并在验证通过后对所述目标应用的数据进行显示。Sending the password of the target receiving end to the target receiving end, so that the target receiving end verifies the password, and displays the data of the target application after the verification is passed.
  7. 根据权利要求5所述的方法,其特征在于,所述若搜索到接收端发布的服务信息,则对所述接收端发布的服务信息进行解析,包括:The method according to claim 5, wherein if the service information released by the receiving end is found in the search, parsing the service information released by the receiving end includes:
    若搜索到多个接收端发布的服务信息,则对所述多个接收端发布的服务信息进行解析;If the service information released by multiple receiving ends is found, then analyze the service information released by the multiple receiving ends;
    显示所述多个接收端的标识;displaying identities of the plurality of receivers;
    所述根据所述接收端的标识,从所述接收端中确定目标接收端,包括:The determining the target receiving end from the receiving end according to the identification of the receiving end includes:
    接收用户输入的目标接收端选择指令,所述目标接收端选择指令对应所述多个接收端的标识中的一个;receiving a target receiver selection instruction input by a user, the target receiver selection instruction corresponding to one of the identifiers of the plurality of receivers;
    根据所述目标接收端选择指令,确定目标接收端。The target receiving end is determined according to the target receiving end selection instruction.
  8. 根据权利要求5所述的方法,其特征在于,还包括:The method according to claim 5, further comprising:
    若未搜索到目标接收端发布的服务信息,则显示pin码输入界面;If the service information published by the target receiver is not found, the pin code input interface will be displayed;
    接收用户输入的pin码,所述pin码用于指示所述目标接收端的地址;receiving a pin code input by a user, where the pin code is used to indicate the address of the target receiving end;
    对pin码进行解析,得到所述目标接收端的地址。The pin code is analyzed to obtain the address of the target receiving end.
  9. 一种投屏方法,其特征在于,应用于发送端,所述方法包括:A screen projection method, characterized in that it is applied to a sending end, and the method includes:
    打开目标应用;Open the target application;
    检测所述目标应用的应用属性;Detecting application attributes of the target application;
    若所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前正在投屏,则将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对所述目标应用的投屏;If the application attribute of the target application belongs to the screen-casting application attribute in the screen-casting software, and is currently casting a screen, then send the data of the target application to the target receiving end, so that the target receiving end can The data of the target application is displayed to realize the projection of the target application;
    若所述目标应用的应用属性不属于投屏软件中的可投屏应用属性,则不将所述目标应用的数据发送到目标接收端,不对所述目标应用进行投屏。If the application attribute of the target application does not belong to the application attribute that can be projected in the screen projection software, the data of the target application is not sent to the target receiving end, and the screen projection of the target application is not performed.
  10. 一种投屏方法,其特征在于,应用于发送端,所述方法包括:A screen projection method, characterized in that it is applied to a sending end, and the method includes:
    打开目标应用;Open the target application;
    检测所述目标应用的应用属性;Detecting application attributes of the target application;
    若所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前未进行投屏,则显示第一提示框,以接收用户输入的进行投屏指令或不进行投屏指令;If the application attribute of the target application belongs to the screen-casting application attribute in the screen-casting software, and the screen-casting is not currently being performed, a first prompt box is displayed to receive the screen-casting instruction input by the user or not to perform the screen-casting instruction;
    在接收到用户输入的进行投屏指令后,将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对所述目标应用的投屏。After receiving the screen projection instruction input by the user, the data of the target application is sent to the target receiving end, so that the target receiving end displays the data of the target application, and the projection of the target application is realized. Screen.
  11. 一种投屏装置,其特征在于,包括:A screen projection device, characterized in that it comprises:
    应用开启模块,用于打开目标应用;An application opening module, configured to open a target application;
    应用属性检测模块,用于检测所述目标应用的应用属性;An application attribute detection module, configured to detect the application attribute of the target application;
    数据发送模块,用于在所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前正在投屏时,将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对所述目标应用的投屏;The data sending module is used to send the data of the target application to the target receiving end when the application attribute of the target application belongs to the attribute of the screen-casting application in the screen-casting software and is currently being screen-casting, so that the The target receiving end displays the data of the target application to realize screen projection of the target application;
    投屏确定模块,用于在所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前未进行投屏时,显示第一提示框,以接收用户输入的进行投屏指令或不进行投屏指令;The screen projection determination module is used to display the first prompt box when the application attribute of the target application belongs to the screen projection application attribute in the screen projection software, and the screen projection is not currently performed, so as to receive the screen projection instruction input by the user Or do not perform screen projection instructions;
    数据发送模块,还用于在接收到用户输入的进行投屏指令后,将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对所述目标应用的投屏。The data sending module is further configured to send the data of the target application to the target receiving end after receiving the screen projection instruction input by the user, so that the target receiving end can display the data of the target application to realize Screencasting of the target application.
  12. 一种投屏装置,其特征在于,包括:A screen projection device, characterized in that it comprises:
    应用开启模块,用于打开目标应用;An application opening module, configured to open a target application;
    应用属性检测模块,用于检测所述目标应用的应用属性;An application attribute detection module, configured to detect the application attribute of the target application;
    数据发送模块,用于在所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前正在投屏时,将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对所述目标应用的投屏;在所述目标应用的应用属性不属于投屏软件中的可投屏应用属性时,不将所述目标应用的数据发送到目标接收端,不对所述目标应用进行投屏。The data sending module is used to send the data of the target application to the target receiving end when the application attribute of the target application belongs to the attribute of the screen-casting application in the screen-casting software and is currently being screen-casting, so that the The target receiving end displays the data of the target application to realize the screen projection of the target application; when the application attribute of the target application does not belong to the application attribute of the screen projection software, the target application is not displayed. The data of the application is sent to the target receiving end, and the target application is not projected.
  13. 一种投屏装置,其特征在于,包括:A screen projection device, characterized in that it comprises:
    应用开启模块,用于打开目标应用;An application opening module, configured to open a target application;
    应用属性检测模块,用于检测所述目标应用的应用属性;An application attribute detection module, configured to detect the application attribute of the target application;
    投屏确定模块,用于在所述目标应用的应用属性属于投屏软件中的可投屏应用属性,且当前未进行投屏时,显示第一提示框,以接收用户输入的进行投屏指令或不进行投屏指令;The screen projection determination module is used to display the first prompt box when the application attribute of the target application belongs to the screen projection application attribute in the screen projection software, and the screen projection is not currently performed, so as to receive the screen projection instruction input by the user Or do not perform screen projection instructions;
    数据发送模块,用于在接收到用户输入的进行投屏指令后,将所述目标应用的数据发送到目标接收端,以使所述目标接收端对所述目标应用的数据进行显示,实现对所述目标应用的投屏。The data sending module is used to send the data of the target application to the target receiving end after receiving the screen projection instruction input by the user, so that the target receiving end can display the data of the target application to realize the Screencasting of the target application.
  14. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有多条指令,所述指令适于由处理器加载并执行如权利要求1-13任意一项的方法步骤。A computer storage medium, characterized in that the computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps according to any one of claims 1-13.
  15. 一种电子设备,其特征在于,包括:处理器和存储器;其中,所述存储器存储有计算机程序,所述计算机程序适于由所述处理器加载并执行如权利要求1-13任意一项的方法步骤。An electronic device, characterized by comprising: a processor and a memory; wherein, the memory stores a computer program, and the computer program is adapted to be loaded by the processor and execute the method according to any one of claims 1-13 Method steps.
  16. 一种计算机程序产品,包括计算机程序,其特征在于,该计算机程序被处理器执行时实现权利要求1-13任意一项的方法步骤。A computer program product, comprising a computer program, characterized in that, when the computer program is executed by a processor, the method steps of any one of claims 1-13 are implemented.
PCT/CN2021/139998 2021-12-21 2021-12-21 Screen mirroring method and apparatus, and storage medium and electronic device WO2023115316A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2021/139998 WO2023115316A1 (en) 2021-12-21 2021-12-21 Screen mirroring method and apparatus, and storage medium and electronic device
CN202180007692.0A CN117083865A (en) 2021-12-21 2021-12-21 Screen projection method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/139998 WO2023115316A1 (en) 2021-12-21 2021-12-21 Screen mirroring method and apparatus, and storage medium and electronic device

Publications (1)

Publication Number Publication Date
WO2023115316A1 true WO2023115316A1 (en) 2023-06-29

Family

ID=86900809

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/139998 WO2023115316A1 (en) 2021-12-21 2021-12-21 Screen mirroring method and apparatus, and storage medium and electronic device

Country Status (2)

Country Link
CN (1) CN117083865A (en)
WO (1) WO2023115316A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111787392A (en) * 2020-08-06 2020-10-16 北京字节跳动网络技术有限公司 Video screen projection method and device, electronic equipment and storage medium
CN112149194A (en) * 2020-09-18 2020-12-29 珠海格力电器股份有限公司 Method and device for projecting screen of equipment, storage medium and electronic device
CN112218133A (en) * 2020-09-15 2021-01-12 深圳市飞图视讯有限公司 Screen projection code generation method and device and terminal equipment
US20210064323A1 (en) * 2019-08-28 2021-03-04 Beijing Xiaomi Mobile Software Co., Ltd. Method and device for screen projection, terminal and storage medium
CN113259757A (en) * 2021-04-08 2021-08-13 读书郎教育科技有限公司 Method for video screen projection by being convenient and fast to be compatible with multiple applications
CN113316128A (en) * 2020-02-26 2021-08-27 杭州海康威视数字技术股份有限公司 Screen projection method, receiving terminal equipment and sending terminal equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210064323A1 (en) * 2019-08-28 2021-03-04 Beijing Xiaomi Mobile Software Co., Ltd. Method and device for screen projection, terminal and storage medium
CN113316128A (en) * 2020-02-26 2021-08-27 杭州海康威视数字技术股份有限公司 Screen projection method, receiving terminal equipment and sending terminal equipment
CN111787392A (en) * 2020-08-06 2020-10-16 北京字节跳动网络技术有限公司 Video screen projection method and device, electronic equipment and storage medium
CN112218133A (en) * 2020-09-15 2021-01-12 深圳市飞图视讯有限公司 Screen projection code generation method and device and terminal equipment
CN112149194A (en) * 2020-09-18 2020-12-29 珠海格力电器股份有限公司 Method and device for projecting screen of equipment, storage medium and electronic device
CN113259757A (en) * 2021-04-08 2021-08-13 读书郎教育科技有限公司 Method for video screen projection by being convenient and fast to be compatible with multiple applications

Also Published As

Publication number Publication date
CN117083865A (en) 2023-11-17

Similar Documents

Publication Publication Date Title
CN110703966B (en) File sharing method, device and system, corresponding equipment and storage medium
WO2020147665A1 (en) File processing method and device, terminal, and storage medium
CN110750197B (en) File sharing method, device and system, corresponding equipment and storage medium
US10554805B2 (en) Information processing method, terminal, and computer-readable storage medium
TW201923528A (en) Methods of direct manipulation of multi-layered user interfaces
WO2017097097A1 (en) Touch control method, user equipment, input processing method, mobile terminal and intelligent terminal
WO2022089330A1 (en) Method for taking screenshot, apparatus, electronic device, and readable storage medium
WO2021258821A1 (en) Video editing method and device, terminal, and storage medium
EP2744216A2 (en) Content playing apparatus, method for providing UI of content playing apparatus, network server, and method for controlling by network server
WO2020249044A1 (en) Method for window-level switching, device, equipment, and storage medium
CN104125508A (en) Video sharing method and terminal
WO2015106510A1 (en) Screen splitting method and device for applications, intelligent terminal and storage medium
WO2020156199A1 (en) Application login method and device, terminal and storage medium
WO2017063443A1 (en) Message display method and apparatus
WO2020147677A1 (en) Method and apparatus for displaying content, and terminal and storage medium
WO2018184443A1 (en) Terminal screen display processing method and apparatus and storage medium
WO2018184442A1 (en) Terminal control method and device
CN107408004B (en) Method for presenting information on screen locking interface, information processing device, portable electronic equipment and graphical user interface on portable electronic equipment
WO2024045985A1 (en) Screen control method, screen control apparatus, electronic device, program, and medium
WO2022222672A1 (en) Multi-content parallel display method and apparatus, terminal, medium, and program product
CN115437542A (en) Display device and screen projection inverse control method
WO2016173307A1 (en) Message copying method and device, and smart terminal
CN110688190A (en) Control method and device of intelligent interactive panel
US10779148B2 (en) Data transmission method and first electronic device
US11334240B2 (en) Method, device, electronic device, and storage medium for sending and receiving message

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 202180007692.0

Country of ref document: CN

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

Ref document number: 21968469

Country of ref document: EP

Kind code of ref document: A1