WO2018126941A1 - Screen projection method, device and terminal - Google Patents

Screen projection method, device and terminal Download PDF

Info

Publication number
WO2018126941A1
WO2018126941A1 PCT/CN2017/118515 CN2017118515W WO2018126941A1 WO 2018126941 A1 WO2018126941 A1 WO 2018126941A1 CN 2017118515 W CN2017118515 W CN 2017118515W WO 2018126941 A1 WO2018126941 A1 WO 2018126941A1
Authority
WO
WIPO (PCT)
Prior art keywords
display device
terminal
screen
control instruction
preset
Prior art date
Application number
PCT/CN2017/118515
Other languages
French (fr)
Chinese (zh)
Inventor
宋晓霞
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018126941A1 publication Critical patent/WO2018126941A1/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
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • 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

Definitions

  • the present disclosure relates to the field of communications, and in particular to a screen projection method, apparatus, and terminal.
  • Miracast forms a connection via Wi-Fi CERTIFIED Wi-Fi Direct, without the need to access any Wi-Fi network, enabling Miracast wireless display sharing to project the screen on the mobile device directly onto the display device.
  • the user operates on the mobile device, and the display device synchronously displays the screen content on the mobile device, and the display device only mirrors the current screen of the mobile device.
  • the screen projection technology based on Miracast technology is that after the terminal turns on the screen projection function, the content on the terminal is mirrored and displayed on the display terminal, and the screen projection function starts to transmit the image of the terminal screen at the same time that the terminal and the display device are successfully connected. To the display device.
  • a screen projection method, device and terminal are provided in the embodiments of the present disclosure.
  • a screen projection method including: determining that a screen projection channel is established between a terminal and a display device; and triggering to send a control instruction to the display device according to a preset trigger condition, where The control instruction is configured to control the screen content of the terminal to be projected onto the display device, and the control instruction is sent through the established screen projection channel.
  • triggering the sending the control instruction to the display device according to the preset triggering condition includes: monitoring an operation action generated by the terminal; determining whether the monitored operation action and the preset action are Matching; if the result of the determination is a match, sending a control instruction corresponding to the operation action to the display device, wherein the control instruction is used to indicate that the screen content of the terminal is started to be projected or stopped to be projected On the display device.
  • monitoring an operation action generated by the terminal includes: monitoring an operation action generated by at least one of the following: the component, an application control, and an operation key.
  • triggering the sending of the control instruction to the display device according to the preset triggering condition includes: determining whether the current time meets a preset time condition for controlling a screen projection time; and determining that the preset is satisfied In the case of a time condition, the control command is sent to the display device, wherein the control command is used to indicate that the screen content of the terminal is started or stopped being projected onto the display device.
  • the method further includes: sending, by the data transmission instruction, a mirror image of the screen content of the terminal to the display device.
  • the method further includes: determining display content of the preset area for projecting to the display device on the screen of the terminal; and transmitting the determined display content of the preset area to the display The device is casting.
  • a screen projection apparatus includes: a determining module configured to determine that a screen projection channel is established between the terminal and the display device; and a triggering module configured to trigger the trigger according to the preset trigger condition
  • the display device sends a control instruction, wherein the control instruction is used to control screen content of the terminal to be projected to the display device, and the control instruction is sent through the established screen projection channel.
  • the triggering module includes: a monitoring unit configured to monitor an operation action generated by the terminal; and a first determining unit configured to determine whether the monitored operation action matches a preset action; a sending unit configured to send, to the display device, a control instruction corresponding to the operation action, where the determination result of the first determining unit is a match, wherein the control instruction is used to indicate a start or Stop projecting the screen content of the terminal onto the display device.
  • the monitoring unit is further configured to monitor an operation action generated by at least one of the following: the component, the application control, and the operation key.
  • the triggering module includes: a second determining unit configured to determine whether a current time meets a preset time condition for controlling a screen projection time; and a second sending unit configured to be in the second determining When the judgment result of the unit is a match, the control instruction is sent to the display device, wherein the control instruction is used to indicate that the screen content of the terminal is started or stopped being projected onto the display device.
  • the apparatus further includes: a first transmitting module configured to transmit data by using the control instruction to instruct to start projecting screen content of the terminal onto the display device An instruction to send a mirror image of the screen content of the terminal to the display device.
  • the apparatus further includes: a second sending module, wherein the determining module is further configured to: at the control instruction, to indicate that screen content of the terminal is started to be projected to the display device In the above case, determining display content of a preset area for projecting to the display device on a screen of the terminal; the second sending module configured to determine the display of the preset area Content is sent to the display device for projection.
  • a storage medium is also provided.
  • the storage medium is configured to store program code for performing the steps of: determining that a screen projection channel is established between the terminal and the display device; and triggering to send a control instruction to the display device according to a preset trigger condition, wherein the control instruction The screen content for controlling the terminal is projected onto the display device, and the control instruction is sent through the established screen projection channel.
  • the storage medium is further configured to store program code for performing the step of: triggering the transmitting the control instruction to the display device according to the preset trigger condition comprises: monitoring an operation generated by the terminal An operation of determining whether the monitored operation action matches the preset action; and if the determination result is a match, transmitting a control instruction corresponding to the operation action to the display device, where the control instruction is used Instructing to start projecting or stop projecting the screen content of the terminal onto the display device.
  • the storage medium is further configured to store program code for performing the following steps: monitoring an operation action generated by the terminal includes: monitoring an operation action generated by at least one of the following: the component, the application control , operation keys.
  • the storage medium is further configured to store program code for performing the step of: triggering the sending of the control instruction to the display device according to the preset trigger condition comprises: determining whether the current time is satisfied for controlling the screen projection time a preset time condition; the control instruction is sent to the display device if the result of the determination is that the preset time condition is met, wherein the control instruction is used to indicate that the screen content of the terminal is started or Stop casting onto the display device.
  • the storage medium is further configured to store program code for performing the step of: in the case where the control instruction is used to indicate that screen content of the terminal is initially projected onto the display device, After the triggering the sending of the control instruction to the display device, the method further includes: sending, by using a data transmission instruction, a mirror image of the screen content of the terminal to the display device.
  • the storage medium is further configured to store program code for performing the step of: in the case where the control instruction is used to indicate that screen content of the terminal is initially projected onto the display device, After the triggering the sending of the control instruction to the display device, the method further includes: determining a display content of the preset area for projecting to the display device on the screen of the terminal; The display content of the preset area is sent to the display device for projection.
  • the control command is sent to the display device according to the preset trigger condition, and the screen trigger control can be flexibly set by setting the preset trigger condition, so that the solution can be solved.
  • the existing screen projection method has the problem of poor flexibility, and the effect of improving the projection flexibility of the screen is achieved.
  • FIG. 1 is a block diagram showing the hardware structure of a mobile terminal of a screen projection method according to an embodiment of the present disclosure
  • FIG. 2 is a flow chart of a screen projection method in accordance with an embodiment of the present disclosure
  • FIG. 3 is a flowchart 1 of a screen projection method according to an exemplary embodiment of the present disclosure
  • FIG. 4 is a flowchart 2 of a screen projection method according to an exemplary embodiment of the present disclosure
  • FIG. 5 is a structural block diagram 1 of a screen projection apparatus according to an embodiment of the present disclosure.
  • FIG. 6 is a structural block diagram 1 of a trigger module 54 of a screen projection apparatus according to an embodiment of the present disclosure
  • FIG. 7 is a structural block diagram 2 of a trigger module 54 of a screen projection apparatus according to an embodiment of the present disclosure
  • FIG. 8 is a structural block diagram 2 of a screen projection apparatus according to an embodiment of the present disclosure.
  • FIG. 9 is a block diagram 3 of a structure of a screen projection apparatus according to an embodiment of the present disclosure.
  • the screen projection function For the screen projection mode, if the user wants to display the content of a certain time period on the display device, then the screen projection function is turned on at the start time of the time period and the screen projection connection between the terminal and the display device is established, The end time of the time period turns off the screen projection function and disconnects the screen projection connection between the terminal and the display device, and then connects when the user wants to perform the screen projection function.
  • the above screen projection method has the following problems: 1) When the display is not displayed and is not controlled by the user, as long as the screen projection of the terminal is turned on and the connection with the display device is successful, the content displayed on the screen on the terminal is displayed on the display device at all times, and is turned off. When the screen projection function is used, the connection between the terminal and the display device is also disconnected. If the screen projection is to be performed, it is necessary to reconnect; 2) which content is displayed and which is not displayed or controlled by the user, as long as the user opens the privacy part on the terminal. In the interface, the display terminal will display, unless the screen projection function is turned off, the user's privacy is not well protected during the screen projection process. Therefore, the existing screen projection method has a problem of poor flexibility.
  • FIG. 1 is a hardware structural block diagram of a mobile terminal of a screen projection method according to an embodiment of the present disclosure.
  • the mobile terminal 10 may include one or more (only one shown) processor 12 (the processor 12 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA).
  • a memory 14 for storing data, and a transmission device 16 for communication functions may be understood by those skilled in the art that the structure shown in FIG. 1 is merely illustrative and does not limit the structure of the above electronic device.
  • the mobile terminal 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration than that shown in FIG.
  • the memory 14 can be used to store software programs and modules of application software, such as program instructions/modules corresponding to the screen projection method in the embodiment of the present disclosure, and the processor 12 executes various kinds by executing software programs and modules stored in the memory 14. Functional application and data processing, that is, the above method is implemented.
  • Memory 14 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 14 may further include memory remotely located relative to processor 12, which may be connected to mobile terminal 10 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Transmission device 16 is for receiving or transmitting data via a network.
  • the above-described network specific example may include a wireless network provided by a communication provider of the mobile terminal 10.
  • transmission device 16 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet.
  • NIC Network Interface Controller
  • the transmission device 16 can be a Radio Frequency (RF) module for communicating wirelessly with the Internet.
  • RF Radio Frequency
  • FIG. 2 is a flowchart of a screen projection method according to an embodiment of the present disclosure. As shown in FIG. 2, the flow includes the following steps:
  • Step S202 determining that a screen projection channel is established between the terminal and the display device
  • Step S204 triggering a control command to be sent to the display device according to the preset trigger condition, wherein the control command is used to control the screen content of the terminal to be projected onto the display device, and the control command is sent through the established screen projection channel.
  • the triggering is sent to the display device according to the preset trigger condition, which solves the problem that the existing screen projection mode has poor flexibility and improves the screen projection. flexibility.
  • step S204 can trigger the sending of a control command to the display device in a plurality of manners. For example, whether the monitored operation of the terminal screen matches the preset operation action to control the projection of the screen content of the terminal to the display device: monitoring the operation action generated by the terminal; determining whether the monitored operation action matches the preset action; When the result of the determination is a match, a control command corresponding to the operation action is sent to the display device, wherein the control command is used to instruct to start or stop projecting the screen content of the terminal onto the display device.
  • the operation action generated by the monitoring terminal may include: monitoring an operation action generated by at least one of the following: a component, an application control, and an operation key.
  • the operation action here may be that the preset button in the terminal display screen is pressed, or the user is detected to perform the preset action, where the detection may be performed through the screen of the terminal, or may be performed by sensing the motion of the human body. Parts are tested.
  • a preset time condition for controlling the screen projection time may be set in advance, and when the current time meets the preset time condition, a control command is transmitted to the display device.
  • the preset time condition here may be: a time at which the screen projection is started, a time at which the screen projection is stopped, and a time period during which the screen is projected.
  • the time or time period referred to here may be an absolute time (for example, 13:15:00), or may be a relative time determined by a timer or the like.
  • the projection may be started for 5 minutes, 5 minutes after the reference time, or the projection may be stopped after 5 minutes after the reference time, and the reference time may be an absolute time or a specified time (for example, a certain time is detected). The moment of an operation action).
  • the preset time condition can be set as needed, and is not specifically limited.
  • triggering a control command to the display device may also be triggered by other trigger conditions (eg, a certain video is played to a predetermined time, a presentation is played or played to a certain page, a certain picture is opened, etc.) .
  • other trigger conditions eg, a certain video is played to a predetermined time, a presentation is played or played to a certain page, a certain picture is opened, etc.
  • the preset trigger condition can be set as needed, and is not specifically limited.
  • the screen projection control is controlled by whether the monitored operation action matches the preset action, the implementation scheme is simple, the occupation of the terminal memory is reduced, and the practicability of the screen projection scheme is improved; Screen projection control can improve the flexibility of screen projection, meet the different needs of users, and improve user experience.
  • the control instruction in the case that the control instruction is used to indicate that the screen content of the terminal is started to be projected onto the display device, after the control instruction is sent to the display device, the image of the screen content of the terminal may also be sent through the data transmission instruction. Give the display device.
  • the entire screen content of the terminal may be projected onto the display device, or a portion of the screen content of the terminal may be projected onto the display device.
  • the display content of the preset area for projecting to the display device on the screen of the terminal may be determined, and the determined display content of the preset area is sent to the display device for projection.
  • the preset area may be any shape.
  • the setting of the preset area may be before the screen projection channel is established between the terminal and the display device, or after the screen projection channel is established between the terminal and the display device. , or in the process of screen projection, this is not specifically limited.
  • a screen projection method is provided, which may be applied to a mobile terminal, a computer terminal or other display device The device that interacts.
  • the screen projection method will be described below.
  • the terminal opens the Miracast-based screen projection function, and after the screen projection channel is established between the terminal and the display device, the content of the terminal screen is projected onto the display device when the start projection condition is satisfied; likewise, the terminal is stopped when the end projection condition is satisfied.
  • the content on the projected device is projected.
  • Method 1 The terminal intelligently turns on and off the screen projection function, presets the conditions for turning on and off the screen projection in the terminal, and automatically turns on or off the screen projection function when the condition is met.
  • the condition for turning on the screen projection function may be: the property of the control clicked by the user is a play control attribute such as “play”
  • the condition for turning off the screen projection function may be: the end of the video being played.
  • the terminal monitoring module starts monitoring the action of each operation of the user on the terminal interface, if the action and the preset action of turning on and off the screen are monitored.
  • the instruction to turn on or off the screen projection is sent to the display device through the channel projected by the screen, and the display device analyzes whether the received content is a control instruction or a data transmission instruction after receiving, and if it is a control instruction, the control instruction Responding to the response, sending the response result to the terminal, and after the terminal receives the response, performing an action of opening (transferring the terminal interface content to the display device) or closing (stopping the transmission of the terminal interface content to the display device) screen; if displayed
  • the content received by the device is the content of the interface image transmission, and the display terminal directly displays the content; if the action of the user monitored by the terminal is inconsistent with the preset action of turning on or off the screen projection, the terminal monitoring module does not perform any operation.
  • Method 2 The terminal turns on the screen projection function to establish a screen projection connection channel between the terminal and the display device.
  • On the terminal interface there is an icon projected by the screen.
  • the user clicks the icon the content starting from the current interface can be projected onto the display device, and the content starting from the current interface cannot be projected onto the display device.
  • the terminal monitors whether the user clicks the screen projection icon, and if the user clicks the action in the terminal, the screen projection operation is turned on.
  • the terminal sends a control instruction through a screen projection channel established between the terminal and the display device, and also displays a type of content sent by the device monitoring terminal, and after receiving the instruction, analyzes whether the control instruction or the content of the transmission data, if it is a control instruction, The control command responds, and the result of the response is sent to the terminal, and the terminal starts to mirror the transmission interface content after receiving the message; if the "click" action is to turn off the screen projection operation, the display device responds after receiving, and stops the terminal interface from being displayed. Displayed on the device.
  • the modules involved in the method 1 mainly include the following modules: a monitoring module on the terminal, a screen layout extraction module, a screen projection on-and-off condition preset module on the terminal (a conditional preset module), and a comparison module on the terminal, which are combined below.
  • the module describes Method 1.
  • the monitoring module on the terminal set to monitor the operation actions and operation objects of the interface where the current user is located, and the monitoring format may be (action: operation object), and the monitoring module further includes an action monitoring sub-module and an operation object generating sub-module.
  • the action monitoring is responsible for monitoring the current operation actions of the user, including clicking, double-clicking, sliding, etc.; the operation object generation sub-module determines the operation object according to the attributes of the control operated by the user.
  • the operation object refers to the user-operated control, which is unique on the current interface. It is obtained by using the control property in the screen layout file. Why not use the "action: control property" directly because the control property is not single. On a screen of the terminal, a control is unique, but the properties of the control in the screen layout file are not necessarily unique. Sometimes, multiple attributes are used to comprehensively determine the control object, as in the following example 1. .
  • Example 1 The terminal monitoring module monitors the user's operation on the interface as: "Click: com.android.gallery3d: id/gl_root_view (the resource ID attribute value of the video play control)", the attribute value of the control may be the resource ID, Description and text attribute, according to the property value of the control (com.android.gallery3d: id/gl_root_view) to get the object of the control (video play control), the corresponding action (action: operation object) is: “Click: Video Play control”.
  • Example 2 illustrates how to get the object of the control based on the property value of the control.
  • Screen layout extraction module The layout file corresponding to the screen describes some information of the control in the screen, including the class name, package name, coordinates, resource ID, text attribute, description and other information corresponding to the control.
  • the layout file extraction module completes the extraction of the layout file of the cloth screen.
  • the extraction of layout files can be obtained using uiautomatorviewer.bat in the android SDK.
  • the establishment of the preset condition may display some scenes to the user after the user establishes the screen projection channel, and the user operates in the scene, and the “action: operation object” of the operation will be recorded as a preset condition.
  • the displayed scene can be started for playing in the video player, prompting the user to set the click play button as a preset condition.
  • the conditional preset module can also be dynamically added during the projection of the screen, and the user can mark the action as a preset condition after operating on a control object.
  • a set of preset conditions are grouped, including open and close conditions, meaning that if the user's current operation meets the open screen projection condition in a certain set of preset conditions, then the condition of the end screen is also in the set of conditions. in.
  • a new set of screen projection presets can only be opened after the current group's presets are turned on and off. For example, if the screen projection is turned on by the open screen projection condition in a certain group (for example, group A) preset conditions, the end screen projection can be turned off only by the group A screen closing condition of group A.
  • the screen projection control has an unstable problem.
  • the specific method of screen projection control can be set according to actual needs.
  • the preset conditions for the aforementioned screen projections can be as shown in Table 1.
  • the following opening and closing refers to the opening and closing of the screen projection.
  • Comparison module on the terminal Each step of the user on the terminal interface, the monitoring module 2 on the terminal compares the monitored user's operation (action: operation object) with the content in the preset module. For example, the user clicks a control to extract the control attribute in the layout file, and compares the action and the control attribute in the preset condition. If they are consistent, the corresponding open screen projection operation in the preset condition is executed, and the group preset is extracted at this time. The condition corresponding to the condition of closing the screen projection, if the value of the monitored control attribute is consistent with the value of the preset closed screen projection space, the screen off function is performed.
  • action operation object
  • the module involved in the method 2 mainly has the following modules: a monitoring module on the terminal, an instruction sending module of the terminal, a mirror data sending module of the terminal, and a monitoring module on the display device, and the method 1 is described below in combination with each module.
  • the monitoring module on the terminal used to monitor whether the user clicks the screen projection icon to turn on or off the screen projection function, and if the user clicks the icon, the terminal instruction sending module is called.
  • the terminal's instruction sending module monitors the monitoring module to send the content to the display device. An identification bit is added to each frame of data to indicate that the content of the frame transmission is a control instruction.
  • Miracast-based transmission uses the RTP protocol to transmit data in the form of "frames", set the padding position to "1", fill an octet at the end of the message, and use this 8 group to represent the transmission.
  • the type of control instruction and the content of the control instruction the first bit is set to "0" to indicate that it is a control instruction, and the next 7 bits represent the content of the control instruction.
  • the contents of the instruction include turning on the screen projection and turning off the screen projection, and also comparing Easy to use with 7-bit binary numbers.
  • the mirror data sending module of the terminal sends the mirrored content of the terminal device interface to the display device.
  • the Miracast-based transmission uses the RTP protocol to transmit data in the form of "frames", setting the padding position to “0” or the content of the padding bit to “1” but the first bit of the 8-bit header at the end of the message is “1". ", indicating that the content of the frame is mirrored data content.
  • the monitoring module on the display device monitors the content sent by the terminal, extracts the content of the padding bit, and if it is "1", extracts the 8-bit content at the end of the message. If the first bit is "0", it indicates that it is a control command.
  • FIG. 3 is a flowchart 1 of a screen projection method according to an exemplary embodiment of the present disclosure, and the flowchart illustrated in FIG. 3 may be summarized as the following steps:
  • Step 1 The terminal and the display device establish a Miracast connection through the WiFi Direct. After the connection is established, the screen projection is started, the terminal starts the terminal monitoring module, and the display device starts the monitoring module of the display device.
  • Step 2 Establish a preset database; the preset database may be established before the channel is established, or concurrently with the channel establishment. If established before the channel is established, the preset database can be sent to the display device through the setup channel after the channel is established. While the screen projection channel is established, the user displays some scenes in which the user operates, and the "action: operation object" of the operation will be recorded as a preset condition.
  • Step 3 The user operates on the terminal interface, and the terminal monitoring device monitors the control attribute of the current user operation, and uses the operation object generation module to generate the control object by using the control attribute, and compares with the control object in the preset condition, and if the control object is consistent, check again. Whether the operation actions are consistent, if they are consistent, the corresponding open screen operation in the preset condition table is started; at the same time, the condition for closing the screen projection in the set of preset conditions is extracted, and the attribute and attribute values of the control object are extracted, and the monitoring module is extracted. Once the properties and attribute values of the controls in the current screen are monitored and the preset values are always on, the screen operation is closed, and step 4 is performed;
  • Step 4 After the monitoring module on the terminal monitors, send a control command to the display device, and after the display device receives the response, send the response to the terminal; if the user's operation is to turn on the screen projection, step 5 is performed; if the user operation is closed Screen projection, then perform step 6;
  • Step 5 The terminal transmits the screen interface image to the display device, and the display device receives and displays;
  • step 6 the terminal stops the screen interface image transmission to the display device, and the display device stops receiving.
  • FIG. 4 is a flowchart 2 of a screen projection method according to an exemplary embodiment of the present disclosure, and the flowchart illustrated in FIG. 4 may be summarized as the following steps:
  • Step 1 The terminal and the display device establish a Miracast connection through the WiFi Direct, the terminal starts the monitoring module, and the display device starts the monitoring module;
  • Step 2 The user operates on the terminal interface.
  • the user wants to display the content after the interface starts on the display device or does not display on the display device then click the open screen projection icon on the current interface or close. Screen projection icon, go to step 3;
  • Step 3 After the monitoring module on the terminal monitors, send a control command to the display device, and after the display device receives the response, send the response to the terminal; if the user's operation is to turn on the screen projection, step 4 is performed; if the user operation is closed Screen projection, then perform step 5;
  • Step 4 The terminal transmits the screen interface image to the display device, and the display device receives and displays;
  • step 5 the terminal stops the screen interface image transmission to the display device, and the display device stops receiving.
  • the terminal screen projection can be flexibly controlled to meet different operation requirements of the user, and the user experience is improved.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is The often used implementation.
  • the solution of the present disclosure may be embodied in the form of a software product stored in a storage medium (such as a ROM/RAM, a magnetic disk, an optical disk), and includes a plurality of instructions for making one
  • the terminal device (which may be a cell phone, computer, server, or network device, etc.) performs the methods described in various embodiments of the present disclosure.
  • a screen projection device is also provided in the embodiment of the present disclosure, which is used to implement the above-described embodiments and exemplary embodiments, and details are not described herein.
  • the term “module” may implement a combination of software and/or hardware of a predetermined function.
  • the devices described in the following embodiments are typically implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 5 is a structural block diagram 1 of a screen projection apparatus according to an embodiment of the present disclosure. As shown in FIG. 5, the apparatus includes:
  • the determining module 52 is configured to determine that a screen projection channel is established between the terminal and the display device;
  • the triggering module 54 is connected to the determining module 52, and configured to send a control command to the display device according to the preset triggering condition, wherein the control command is used to control the screen content of the terminal to be projected onto the display device, and the control command is established by The screen cast channel is sent.
  • FIG. 6 is a structural block diagram of a triggering module 54 of a screen projection apparatus according to an embodiment of the present disclosure. As shown in FIG. 6, the triggering module 54 includes:
  • the monitoring unit 62 is configured to monitor an operation action generated by the terminal
  • the first determining unit 64 is connected to the monitoring unit 62, and configured to determine whether the monitored operation action matches the preset action;
  • the first sending unit 66 is connected to the first determining unit 64, and configured to send a control command corresponding to the operation action to the display device when the determination result of the first determining unit 64 is matched, wherein the control command is used by the control device. Instructing to start or stop projecting the screen content of the terminal onto the display device.
  • the monitoring unit 62 is further configured to monitor an operation action generated by at least one of the following components: a component, an application control, and an operation key.
  • FIG. 7 is a structural block diagram 2 of a triggering module 54 of a screen projection apparatus according to an embodiment of the present disclosure.
  • the triggering module 54 includes:
  • the second determining unit 72 is configured to determine whether the current time meets a preset time condition for controlling the screen projection time
  • the second sending unit 74 is connected to the second determining unit 72, and configured to send a control command to the display device when the determination result of the second determining unit 72 is matched, wherein the control command is used to indicate the screen of the terminal.
  • the content starts or stops being projected onto the display device.
  • FIG. 8 is a structural block diagram 2 of a screen projection apparatus according to an embodiment of the present disclosure. As shown in FIG. 8 , the apparatus includes: in addition to all the modules shown in FIG. 5 , the apparatus includes:
  • the first sending module 82 is configured to, when the control command is used to indicate that the screen content of the terminal is started to be projected onto the display device, send a mirror image of the screen content of the terminal to the display device by using a data transmission instruction.
  • FIG. 9 is a structural block diagram 3 of a screen projection apparatus according to an embodiment of the present disclosure. As shown in FIG. 9, the apparatus includes: a second sending module 92, in addition to all the modules shown in FIG.
  • the determining module 52 is further configured to: when the control instruction is used to indicate that the screen content of the terminal is started to be projected onto the display device, determine the display content of the preset area on the screen of the terminal for projecting to the display device;
  • the second sending module 92 is configured to send the determined display content of the preset area to the display device for projection.
  • a terminal is also provided in an embodiment of the present disclosure, the terminal comprising the screen projection device of any of the above embodiments.
  • the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the above modules are all located in the same processor; or, the above modules are respectively located in different combinations. In the processor.
  • a storage medium is provided in an embodiment of the present disclosure.
  • the above storage medium may be configured to store program code for performing the following steps:
  • control instruction is used to control the screen content of the terminal to be projected onto the display device, and the control command is sent through the established screen projection channel.
  • the storage medium may also be arranged to store program code for performing the following steps:
  • triggering the sending of the control instruction to the display device includes:
  • the storage medium may be further configured to store program code for performing the following steps: monitoring the operation action generated by the terminal comprises: monitoring an operation action generated by at least one of the following: the component, the application control, the operation key .
  • the storage medium may also be arranged to store program code for performing the following steps:
  • triggering the sending of the control instruction to the display device includes:
  • control instruction is sent to the display device, where the control instruction is used to indicate that the screen content of the terminal is started or stopped being projected onto the display device.
  • the storage medium may be further configured to store program code for performing the following steps: in the case where the control instruction is used to indicate that the screen content of the terminal is started to be projected onto the display device, in accordance with the preset trigger condition After triggering the sending of the control instruction to the display device, the method further includes: sending, by using the data transmission instruction, the image of the screen content of the terminal to the display device.
  • the storage medium may also be arranged to store program code for performing the following steps:
  • the method further includes:
  • S2 Send the determined display content of the preset area to the display device for projection.
  • the storage medium may be further configured to store program code for performing the following steps: monitoring the operation action generated by the terminal comprises: monitoring an operation action generated by at least one of the following: the component, the application control, the operation key .
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • mobile hard disk a magnetic disk
  • optical disk a variety of media that can store program code.
  • the processor may be configured to: according to the stored program code in the storage medium, determine that a screen projection channel is established between the terminal and the display device; and trigger a control instruction to send to the display device according to the preset trigger condition, where the control The instruction is used to control the screen content of the terminal to be projected onto the display device, and the control command is sent through the established screen projection channel.
  • the processor may be executed according to the stored program code in the storage medium: triggering the sending of the control instruction to the display device according to the preset trigger condition includes: monitoring an operation action generated by the terminal; determining the monitored operation action and the pre-operation If the result of the determination is a match, the control command corresponding to the operation action is sent to the display device, wherein the control command is used to indicate that the screen content of the terminal is started to be projected or stopped to be projected onto the display device.
  • the processor may be executed according to the stored program code in the storage medium: the operation action generated by the monitoring terminal includes: monitoring an operation action generated by at least one of the following: the component, the application control, and the operation key.
  • the processor may execute according to the stored program code in the storage medium: triggering the sending of the control instruction to the display device according to the preset trigger condition includes: determining whether the current time meets a preset time for controlling the screen projection time Condition; if the result of the determination is that the preset time condition is met, the control instruction is sent to the display device, wherein the control instruction is used to indicate that the screen content of the terminal is started or stopped being projected onto the display device.
  • the processor may execute according to the stored program code in the storage medium: in the case that the control instruction is used to indicate that the screen content of the terminal is started to be projected onto the display device, triggering according to the preset trigger condition After the display device sends the control instruction, the method further includes: sending, by using the data transmission instruction, the image of the screen content of the terminal to the display device.
  • the processor may execute according to the stored program code in the storage medium: in the case that the control instruction is used to indicate that the screen content of the terminal is started to be projected onto the display device, triggering according to the preset trigger condition After the display device sends the control instruction, the method further includes: determining display content of the preset area for projecting to the display device on the screen of the terminal; and transmitting the determined display content of the preset area to the display device for projection.
  • computer storage medium includes volatile and nonvolatile, implemented in any method or technology for storing information, such as computer readable instructions, data structures, program modules or other data. Sex, removable and non-removable media.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridge, magnetic tape, magnetic disk storage or other magnetic storage device, or may Any other medium used to store the desired information and that can be accessed by the computer.
  • communication media typically includes computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information delivery media. .
  • the control command is sent to the display device according to the preset trigger condition, and the screen trigger control can be flexibly set by setting the preset trigger condition, so that the solution can be solved.
  • the existing screen projection method has the problem of poor flexibility, and the effect of improving the projection flexibility of the screen is achieved.

Abstract

Disclosed are screen projection method, device and terminal, wherein the method comprises determining that a screen projection passage is established between a terminal and a display device; and triggering, according to a pre-set trigger condition, the sending of a control instruction to the display device, wherein the control instruction is used to control the screen content of the terminal to be projected onto the display device, and the control instruction is sent by means of the established screen projection passage.

Description

屏幕投射方法、装置及终端Screen projection method, device and terminal 技术领域Technical field
本公开涉及通信领域,具体而言,涉及一种屏幕投射方法、装置及终端。The present disclosure relates to the field of communications, and in particular to a screen projection method, apparatus, and terminal.
背景技术Background technique
Miracast通过Wi-Fi CERTIFIED Wi-Fi Direct形成连接,无需接入任何Wi-Fi网络,实现Miracast无线显示共享功能,把移动设备上的屏幕直接投射到显示设备上。在测试过程中,将移动设备和显示设备连接成功之后,用户在移动设备上操作,显示设备会同步显示移动设备上的屏幕内容,显示设备上只是镜像显示移动设备的当前屏幕。Miracast forms a connection via Wi-Fi CERTIFIED Wi-Fi Direct, without the need to access any Wi-Fi network, enabling Miracast wireless display sharing to project the screen on the mobile device directly onto the display device. During the test, after the mobile device and the display device are successfully connected, the user operates on the mobile device, and the display device synchronously displays the screen content on the mobile device, and the display device only mirrors the current screen of the mobile device.
这种基于Miracast技术的屏幕投射技术是在终端开启屏幕投射功能之后,终端上的内容就镜像显示在显示终端上,屏幕投射功能是在终端和显示设备连接成功的同时就开始传输终端屏幕的镜像到显示设备。The screen projection technology based on Miracast technology is that after the terminal turns on the screen projection function, the content on the terminal is mirrored and displayed on the display terminal, and the screen projection function starts to transmit the image of the terminal screen at the same time that the terminal and the display device are successfully connected. To the display device.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本公开实施例中提供了一种屏幕投射方法、装置及终端。A screen projection method, device and terminal are provided in the embodiments of the present disclosure.
根据本公开的一个实施例,提供了一种屏幕投射方法,包括:确定终端与显示设备之间建立了屏幕投射通道;根据预设触发条件,触发向所述显示设备发送控制指令,其中,所述控制指令用于控制所述终端的屏幕内容向所述显示设备上进行投射,所述控制指令通过建立的所述屏幕投射通道进行发送。According to an embodiment of the present disclosure, a screen projection method is provided, including: determining that a screen projection channel is established between a terminal and a display device; and triggering to send a control instruction to the display device according to a preset trigger condition, where The control instruction is configured to control the screen content of the terminal to be projected onto the display device, and the control instruction is sent through the established screen projection channel.
在示例性实施例中,根据所述预设触发条件,触发向所述显示设备发送所述控制指令包括:监控所述终端产生的操作动作;判断监控到的所述操作动作与预设动作是否匹配;在判断结果为匹配的情况下,将与所述操作动作对应的控制指令发送给所述显示设备,其中,所述控制指令用于指示将所述 终端的屏幕内容开始投射或者停止投射到所述显示设备上。In an exemplary embodiment, triggering the sending the control instruction to the display device according to the preset triggering condition includes: monitoring an operation action generated by the terminal; determining whether the monitored operation action and the preset action are Matching; if the result of the determination is a match, sending a control instruction corresponding to the operation action to the display device, wherein the control instruction is used to indicate that the screen content of the terminal is started to be projected or stopped to be projected On the display device.
在示例性实施例中,监控所述终端产生的操作动作包括:监控所述终端的以下至少之一产生的操作动作:组件、应用控件、操作键。In an exemplary embodiment, monitoring an operation action generated by the terminal includes: monitoring an operation action generated by at least one of the following: the component, an application control, and an operation key.
在示例性实施例中,根据预设触发条件,触发向所述显示设备发送控制指令包括:判断当前时刻是否满足用于控制屏幕投射时间的预设时间条件;在判断结果为满足所述预设时间条件的情况下,向所述显示设备发送所述控制指令,其中,所述控制指令用于指示将所述终端的屏幕内容开始或者停止投射到所述显示设备上。In an exemplary embodiment, triggering the sending of the control instruction to the display device according to the preset triggering condition includes: determining whether the current time meets a preset time condition for controlling a screen projection time; and determining that the preset is satisfied In the case of a time condition, the control command is sent to the display device, wherein the control command is used to indicate that the screen content of the terminal is started or stopped being projected onto the display device.
在示例性实施例中,在所述控制指令用于指示将所述终端的屏幕内容开始投射到所述显示设备上的情况下,在根据所述预设触发条件,触发向所述显示设备发送所述控制指令之后,还包括:通过数据传输指令,将所述终端的屏幕内容的镜像发送给所述显示设备。In an exemplary embodiment, in a case where the control instruction is used to indicate that screen content of the terminal is started to be projected onto the display device, triggering to send to the display device according to the preset trigger condition After the control instruction, the method further includes: sending, by the data transmission instruction, a mirror image of the screen content of the terminal to the display device.
在示例性实施例中,在所述控制指令用于指示将所述终端的屏幕内容开始投射到所述显示设备上的情况下,在根据所述预设触发条件,触发向所述显示设备发送控制指令之后,还包括:确定所述终端的屏幕上用于向所述显示设备进行投射的预设区域的显示内容;将确定的所述预设区域的所述显示内容,发送到所述显示设备进行投射。In an exemplary embodiment, in a case where the control instruction is used to indicate that screen content of the terminal is started to be projected onto the display device, triggering to send to the display device according to the preset trigger condition After the control instruction, the method further includes: determining display content of the preset area for projecting to the display device on the screen of the terminal; and transmitting the determined display content of the preset area to the display The device is casting.
根据本公开的另一个实施例,提供了一种屏幕投射装置,包括:确定模块,配置为确定终端与显示设备之间建立了屏幕投射通道;触发模块,配置为根据预设触发条件,触发向所述显示设备发送控制指令,其中,所述控制指令用于控制所述终端的屏幕内容向所述显示设备进行投射,所述控制指令通过建立的所述屏幕投射通道进行发送。According to another embodiment of the present disclosure, a screen projection apparatus includes: a determining module configured to determine that a screen projection channel is established between the terminal and the display device; and a triggering module configured to trigger the trigger according to the preset trigger condition The display device sends a control instruction, wherein the control instruction is used to control screen content of the terminal to be projected to the display device, and the control instruction is sent through the established screen projection channel.
在示例性实施例中,所述触发模块包括:监控单元,配置为监控所述终端产生的操作动作;第一判断单元,配置为判断监控到的所述操作动作与预设动作是否匹配;第一发送单元,配置为在所述第一判断单元的判断结果为匹配的情况下,将与所述操作动作对应的控制指令发送给所述显示设备,其中,所述控制指令用于指示开始或者停止将所述终端的屏幕内容投射到所述显示设备上。In an exemplary embodiment, the triggering module includes: a monitoring unit configured to monitor an operation action generated by the terminal; and a first determining unit configured to determine whether the monitored operation action matches a preset action; a sending unit configured to send, to the display device, a control instruction corresponding to the operation action, where the determination result of the first determining unit is a match, wherein the control instruction is used to indicate a start or Stop projecting the screen content of the terminal onto the display device.
在示例性实施例中,所述监控单元,还配置为监控所述终端的以下至少之一产生的操作动作:组件、应用控件、操作键。In an exemplary embodiment, the monitoring unit is further configured to monitor an operation action generated by at least one of the following: the component, the application control, and the operation key.
在示例性实施例中,所述触发模块包括:第二判断单元,配置为判断当前时刻是否满足用于控制屏幕投射时间的预设时间条件;第二发送单元,配置为在所述第二判断单元的判断结果为匹配的情况下,向所述显示设备发送所述控制指令,其中,所述控制指令用于指示将所述终端的屏幕内容开始或者停止投射到所述显示设备上。In an exemplary embodiment, the triggering module includes: a second determining unit configured to determine whether a current time meets a preset time condition for controlling a screen projection time; and a second sending unit configured to be in the second determining When the judgment result of the unit is a match, the control instruction is sent to the display device, wherein the control instruction is used to indicate that the screen content of the terminal is started or stopped being projected onto the display device.
在示例性实施例中,所述装置还包括:第一发送模块,配置为在所述控制指令用于指示将所述终端的屏幕内容开始投射到所述显示设备上的情况下,通过数据传输指令,将所述终端的屏幕内容的镜像发送给所述显示设备。In an exemplary embodiment, the apparatus further includes: a first transmitting module configured to transmit data by using the control instruction to instruct to start projecting screen content of the terminal onto the display device An instruction to send a mirror image of the screen content of the terminal to the display device.
在示例性实施例中,所述装置还包括:第二发送模块,其中,所述确定模块,还配置为在所述控制指令用于指示将所述终端的屏幕内容开始投射到所述显示设备上的情况下,确定所述终端的屏幕上用于向所述显示设备进行投射的预设区域的显示内容;所述第二发送模块,配置为将确定的所述预设区域的所述显示内容,发送到所述显示设备上进行投射。In an exemplary embodiment, the apparatus further includes: a second sending module, wherein the determining module is further configured to: at the control instruction, to indicate that screen content of the terminal is started to be projected to the display device In the above case, determining display content of a preset area for projecting to the display device on a screen of the terminal; the second sending module configured to determine the display of the preset area Content is sent to the display device for projection.
根据本公开的又一个实施例,还提供了一种存储介质。该存储介质设置为存储用于执行以下步骤的程序代码:确定终端与显示设备之间建立了屏幕投射通道;根据预设触发条件,触发向所述显示设备发送控制指令,其中,所述控制指令用于控制所述终端的屏幕内容向所述显示设备上进行投射,所述控制指令通过建立的所述屏幕投射通道进行发送。According to still another embodiment of the present disclosure, a storage medium is also provided. The storage medium is configured to store program code for performing the steps of: determining that a screen projection channel is established between the terminal and the display device; and triggering to send a control instruction to the display device according to a preset trigger condition, wherein the control instruction The screen content for controlling the terminal is projected onto the display device, and the control instruction is sent through the established screen projection channel.
在示例性实施例中,存储介质还设置为存储用于执行以下步骤的程序代码:根据所述预设触发条件,触发向所述显示设备发送所述控制指令包括:监控所述终端产生的操作动作;判断监控到的所述操作动作与预设动作是否匹配;在判断结果为匹配的情况下,将与所述操作动作对应的控制指令发送给所述显示设备,其中,所述控制指令用于指示将所述终端的屏幕内容开始投射或者停止投射到所述显示设备上。In an exemplary embodiment, the storage medium is further configured to store program code for performing the step of: triggering the transmitting the control instruction to the display device according to the preset trigger condition comprises: monitoring an operation generated by the terminal An operation of determining whether the monitored operation action matches the preset action; and if the determination result is a match, transmitting a control instruction corresponding to the operation action to the display device, where the control instruction is used Instructing to start projecting or stop projecting the screen content of the terminal onto the display device.
在示例性实施例中,存储介质还设置为存储用于执行以下步骤的程序代码:监控所述终端产生的操作动作包括:监控所述终端的以下至少之一产生的操作动作:组件、应用控件、操作键。In an exemplary embodiment, the storage medium is further configured to store program code for performing the following steps: monitoring an operation action generated by the terminal includes: monitoring an operation action generated by at least one of the following: the component, the application control , operation keys.
在示例性实施例中,存储介质还设置为存储用于执行以下步骤的程序代码:根据预设触发条件,触发向所述显示设备发送控制指令包括:判断当前时刻是否满足用于控制屏幕投射时间的预设时间条件;在判断结果为满足所述预设时间条件的情况下,向所述显示设备发送所述控制指令,其中,所述控制指令用于指示将所述终端的屏幕内容开始或者停止投射到所述显示设备上。In an exemplary embodiment, the storage medium is further configured to store program code for performing the step of: triggering the sending of the control instruction to the display device according to the preset trigger condition comprises: determining whether the current time is satisfied for controlling the screen projection time a preset time condition; the control instruction is sent to the display device if the result of the determination is that the preset time condition is met, wherein the control instruction is used to indicate that the screen content of the terminal is started or Stop casting onto the display device.
在示例性实施例中,存储介质还设置为存储用于执行以下步骤的程序代码:在所述控制指令用于指示将所述终端的屏幕内容开始投射到所述显示设备上的情况下,在根据所述预设触发条件,触发向所述显示设备发送所述控制指令之后,还包括:通过数据传输指令,将所述终端的屏幕内容的镜像发送给所述显示设备。In an exemplary embodiment, the storage medium is further configured to store program code for performing the step of: in the case where the control instruction is used to indicate that screen content of the terminal is initially projected onto the display device, After the triggering the sending of the control instruction to the display device, the method further includes: sending, by using a data transmission instruction, a mirror image of the screen content of the terminal to the display device.
在示例性实施例中,存储介质还设置为存储用于执行以下步骤的程序代码:在所述控制指令用于指示将所述终端的屏幕内容开始投射到所述显示设备上的情况下,在根据所述预设触发条件,触发向所述显示设备发送控制指令之后,还包括:确定所述终端的屏幕上用于向所述显示设备进行投射的预设区域的显示内容;将确定的所述预设区域的所述显示内容,发送到所述显示设备进行投射。In an exemplary embodiment, the storage medium is further configured to store program code for performing the step of: in the case where the control instruction is used to indicate that screen content of the terminal is initially projected onto the display device, After the triggering the sending of the control instruction to the display device, the method further includes: determining a display content of the preset area for projecting to the display device on the screen of the terminal; The display content of the preset area is sent to the display device for projection.
通过本公开,在终端与显示设备之间建立屏幕投射通道后,根据预设触发条件,触发向显示设备发送控制指令,可以通过设置预设触发条件来进行灵活地屏幕投射控制,因此,可以解决已有的屏幕投射方式存在灵活性差的问题,达到提高屏幕投射灵活性的效果。According to the disclosure, after the screen projection channel is established between the terminal and the display device, the control command is sent to the display device according to the preset trigger condition, and the screen trigger control can be flexibly set by setting the preset trigger condition, so that the solution can be solved. The existing screen projection method has the problem of poor flexibility, and the effect of improving the projection flexibility of the screen is achieved.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图说明DRAWINGS
图1是本公开实施例的一种屏幕投射方法的移动终端的硬件结构框图;1 is a block diagram showing the hardware structure of a mobile terminal of a screen projection method according to an embodiment of the present disclosure;
图2是根据本公开实施例的屏幕投射方法的流程图;2 is a flow chart of a screen projection method in accordance with an embodiment of the present disclosure;
图3是根据本公开示例性实施例的屏幕投射方法的流程图一;FIG. 3 is a flowchart 1 of a screen projection method according to an exemplary embodiment of the present disclosure;
图4是根据本公开示例性实施例的屏幕投射方法的流程图二;FIG. 4 is a flowchart 2 of a screen projection method according to an exemplary embodiment of the present disclosure;
图5是根据本公开实施例的屏幕投射装置的结构框图一;FIG. 5 is a structural block diagram 1 of a screen projection apparatus according to an embodiment of the present disclosure; FIG.
图6是根据本公开实施例的屏幕投射装置的触发模块54的结构框图一;FIG. 6 is a structural block diagram 1 of a trigger module 54 of a screen projection apparatus according to an embodiment of the present disclosure;
图7是根据本公开实施例的屏幕投射装置的触发模块54的结构框图二;FIG. 7 is a structural block diagram 2 of a trigger module 54 of a screen projection apparatus according to an embodiment of the present disclosure;
图8是根据本公开实施例的屏幕投射装置的结构框图二;FIG. 8 is a structural block diagram 2 of a screen projection apparatus according to an embodiment of the present disclosure; FIG.
图9是根据本公开实施例的屏幕投射装置的结构框图三。9 is a block diagram 3 of a structure of a screen projection apparatus according to an embodiment of the present disclosure.
具体实施方式detailed description
对于屏幕投射方式,如果用户想让把某一个时间段的内容在显示设备上显示,那么要在该时间段的起始时间开启屏幕投射功能且建立终端和显示设备之间的屏幕投射连接,在该时间段的结束时间关闭屏幕投射功能且断开终端和显示设备之间的屏幕投射连接,等用户要进行屏幕投射功能时再进行连接。For the screen projection mode, if the user wants to display the content of a certain time period on the display device, then the screen projection function is turned on at the start time of the time period and the screen projection connection between the terminal and the display device is established, The end time of the time period turns off the screen projection function and disconnects the screen projection connection between the terminal and the display device, and then connects when the user wants to perform the screen projection function.
上述屏幕投射方式存在以下问题:1)何时显示何时不显示不由用户控制,只要终端的屏幕投射开启并和显示设备连接成功,终端上的屏幕显示的内容就时刻在显示设备上显示,关闭屏幕投射功能时终端和显示设备之间的连接也断开,如果还要进行屏幕投射就要重新连接;2)具体哪些内容显示哪些不显示也不由用户控制,只要用户在终端上打开隐私部分的界面,显示终端就会显示,除非关闭屏幕投射功能,在屏幕投射的过程中不能很好的保护用户的隐私。因此,已有的屏幕投射方式存在灵活性差的问题。The above screen projection method has the following problems: 1) When the display is not displayed and is not controlled by the user, as long as the screen projection of the terminal is turned on and the connection with the display device is successful, the content displayed on the screen on the terminal is displayed on the display device at all times, and is turned off. When the screen projection function is used, the connection between the terminal and the display device is also disconnected. If the screen projection is to be performed, it is necessary to reconnect; 2) which content is displayed and which is not displayed or controlled by the user, as long as the user opens the privacy part on the terminal. In the interface, the display terminal will display, unless the screen projection function is turned off, the user's privacy is not well protected during the screen projection process. Therefore, the existing screen projection method has a problem of poor flexibility.
下文中将参考附图并结合实施例来详细说明本公开。The present disclosure will be described in detail below with reference to the drawings in conjunction with the embodiments.
本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。The terms "first", "second" and the like in the specification and claims of the present disclosure and the above-mentioned figures are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
示例1Example 1
本公开所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是本公开实施例的一种屏幕投射方法的移动终端的硬件结构框图。如图1所示,移动终端10可以包括一个或多个(图中仅示出一个)处理器12(处理器12可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、用于存储数据的存储 器14、以及用于通信功能的传输装置16。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,移动终端10还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method embodiments provided by the present disclosure may be implemented in a mobile terminal, a computer terminal, or the like. Taking a mobile terminal as an example, FIG. 1 is a hardware structural block diagram of a mobile terminal of a screen projection method according to an embodiment of the present disclosure. As shown in FIG. 1, the mobile terminal 10 may include one or more (only one shown) processor 12 (the processor 12 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA). A memory 14 for storing data, and a transmission device 16 for communication functions. It will be understood by those skilled in the art that the structure shown in FIG. 1 is merely illustrative and does not limit the structure of the above electronic device. For example, the mobile terminal 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration than that shown in FIG.
存储器14可用于存储应用软件的软件程序以及模块,如本公开实施例中的屏幕投射方法对应的程序指令/模块,处理器12通过运行存储在存储器14内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器14可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器14可进一步包括相对于处理器12远程设置的存储器,这些远程存储器可以通过网络连接至移动终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 14 can be used to store software programs and modules of application software, such as program instructions/modules corresponding to the screen projection method in the embodiment of the present disclosure, and the processor 12 executes various kinds by executing software programs and modules stored in the memory 14. Functional application and data processing, that is, the above method is implemented. Memory 14 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 14 may further include memory remotely located relative to processor 12, which may be connected to mobile terminal 10 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
传输装置16用于经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端10的通信供应商提供的无线网络。在一个实例中,传输装置16包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置16可以为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。Transmission device 16 is for receiving or transmitting data via a network. The above-described network specific example may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, transmission device 16 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet. In one example, the transmission device 16 can be a Radio Frequency (RF) module for communicating wirelessly with the Internet.
在本实施例中提供了一种运行于上述移动终端的屏幕投射方法,图2是根据本公开实施例的屏幕投射方法的流程图,如图2所示,该流程包括如下步骤:In this embodiment, a screen projection method running on the mobile terminal is provided. FIG. 2 is a flowchart of a screen projection method according to an embodiment of the present disclosure. As shown in FIG. 2, the flow includes the following steps:
步骤S202,确定终端与显示设备之间建立了屏幕投射通道;Step S202, determining that a screen projection channel is established between the terminal and the display device;
步骤S204,根据预设触发条件,触发向显示设备发送控制指令,其中,控制指令用于控制终端的屏幕内容向显示设备上进行投射,控制指令通过建立的屏幕投射通道进行发送。Step S204, triggering a control command to be sent to the display device according to the preset trigger condition, wherein the control command is used to control the screen content of the terminal to be projected onto the display device, and the control command is sent through the established screen projection channel.
通过上述步骤,在终端与显示设备之间建立屏幕投射通道后,根据预设触发条件,触发向显示设备发送控制指令,解决了已有的屏幕投射方式存在灵活性差的问题,提高了屏幕投射的灵活性。After the screen projection channel is established between the terminal and the display device, the triggering is sent to the display device according to the preset trigger condition, which solves the problem that the existing screen projection mode has poor flexibility and improves the screen projection. flexibility.
在实施例中,步骤S204可以采用多种方式触发向显示设备发送控制指令。例如,可以通过监控到的对终端屏幕的操作与预设操作动作是否匹配控制终端屏幕内容向显示设备的投射:监控终端产生的操作动作;判断监控到的操作动作与预设动作是否匹配;在判断结果为匹配的情况下,将与操作动作对应的控制指令发送给显示设备,其中,控制指令用于指示将终端的屏幕内容开始或者停止投射到显示设备上。监控终端产生的操作动作可以包括:监控终端的以下至少之一产生的操作动作:组件、应用控件、操作键。这里的操作动作可以是终端显示屏幕中的预设按钮被按下,或者检测到用户执行预设动作,这里的检测可以是通过终端的屏幕进行检测,也可以是通过用于感应人体动作的感知部件进行检测。In an embodiment, step S204 can trigger the sending of a control command to the display device in a plurality of manners. For example, whether the monitored operation of the terminal screen matches the preset operation action to control the projection of the screen content of the terminal to the display device: monitoring the operation action generated by the terminal; determining whether the monitored operation action matches the preset action; When the result of the determination is a match, a control command corresponding to the operation action is sent to the display device, wherein the control command is used to instruct to start or stop projecting the screen content of the terminal onto the display device. The operation action generated by the monitoring terminal may include: monitoring an operation action generated by at least one of the following: a component, an application control, and an operation key. The operation action here may be that the preset button in the terminal display screen is pressed, or the user is detected to perform the preset action, where the detection may be performed through the screen of the terminal, or may be performed by sensing the motion of the human body. Parts are tested.
又例如,可以预先设置用于控制屏幕投射时间的预设时间条件,在当前时刻满足预设时间条件的情况下,向显示设备发送控制指令。这里的预设时间条件可以是:开始进行屏幕投射的时刻、停止进行屏幕投射的时刻,进行屏幕投射的时间段。这里所说的时刻或者时间段,可以是绝对时间(例如,13点15分00秒),也可以是通过定时器等确定的相对时间。对于相对时间,例如,可以定时5分钟,基准时刻以后的5分钟以后开始投射,或者基准时刻以后的5分钟以后停止投射,基准时刻可以是绝对时间,也可以是指定时刻(例如,检测到某一操作动作的时刻)。预设时间条件可以根据需要进行设定,对此不做具体限定。For another example, a preset time condition for controlling the screen projection time may be set in advance, and when the current time meets the preset time condition, a control command is transmitted to the display device. The preset time condition here may be: a time at which the screen projection is started, a time at which the screen projection is stopped, and a time period during which the screen is projected. The time or time period referred to here may be an absolute time (for example, 13:15:00), or may be a relative time determined by a timer or the like. For the relative time, for example, the projection may be started for 5 minutes, 5 minutes after the reference time, or the projection may be stopped after 5 minutes after the reference time, and the reference time may be an absolute time or a specified time (for example, a certain time is detected). The moment of an operation action). The preset time condition can be set as needed, and is not specifically limited.
再例如,还可以通过其他触发条件(例如,某一视频被播放到预定时间,某个演示文稿被播放或者播放到某一页,某幅图片被打开等等),触发向显示设备发送控制指令。For another example, triggering a control command to the display device may also be triggered by other trigger conditions (eg, a certain video is played to a predetermined time, a presentation is played or played to a certain page, a certain picture is opened, etc.) .
预设触发条件可以根据需要进行设定,对此不做具体限定。The preset trigger condition can be set as needed, and is not specifically limited.
通过本公开实施例的上述方案,通过监控到的操作动作与预设动作是否匹配进行屏幕投射控制,实现方案简单,减少对终端内存的占用,提高屏幕投射方案的实用性;通过预设时间条件进行屏幕投射控制,可以提高屏幕投射的灵活性,满足用户的不同需求,提高用户体验。Through the above solution of the embodiment of the present disclosure, the screen projection control is controlled by whether the monitored operation action matches the preset action, the implementation scheme is simple, the occupation of the terminal memory is reduced, and the practicability of the screen projection scheme is improved; Screen projection control can improve the flexibility of screen projection, meet the different needs of users, and improve user experience.
在实施例中,在控制指令用于指示将终端的屏幕内容开始投射到显示设备上的情况下,在向显示设备发送控制指令之后,还可以通过数据传输指令, 将终端的屏幕内容的镜像发送给显示设备。In an embodiment, in the case that the control instruction is used to indicate that the screen content of the terminal is started to be projected onto the display device, after the control instruction is sent to the display device, the image of the screen content of the terminal may also be sent through the data transmission instruction. Give the display device.
在实施例中,可以将终端的整个屏幕内容投射到显示设备上,也可以将终端的屏幕内容的部分投射到显示设备上。例如,可以确定终端的屏幕上用于向显示设备进行投射的预设区域的显示内容,将确定的预设区域的显示内容,发送到显示设备进行投射。预设区域可以是任意形状,在终端屏幕的任意位置,预设区域的设置可以是在终端与显示设备之间建立屏幕投射通道之前,也可以是在终端与显示设备之间建立屏幕投射通道之后,或者在进行屏幕投射的过程中,对此不做具体限定。In an embodiment, the entire screen content of the terminal may be projected onto the display device, or a portion of the screen content of the terminal may be projected onto the display device. For example, the display content of the preset area for projecting to the display device on the screen of the terminal may be determined, and the determined display content of the preset area is sent to the display device for projection. The preset area may be any shape. In any position of the terminal screen, the setting of the preset area may be before the screen projection channel is established between the terminal and the display device, or after the screen projection channel is established between the terminal and the display device. , or in the process of screen projection, this is not specifically limited.
基于上述实施例及示例性实施方式,为说明方案的整个流程交互,在本示例性实施例中,提供了一种屏幕投射方法,该方法可以应用到移动终端、计算机终端或者其他可以与显示设备进行交互的设备。下面对该屏幕投射方法进行说明。Based on the above embodiments and exemplary embodiments, in order to explain the entire process interaction of the solution, in the present exemplary embodiment, a screen projection method is provided, which may be applied to a mobile terminal, a computer terminal or other display device The device that interacts. The screen projection method will be described below.
终端开启基于Miracast的屏幕投射功能在终端和显示设备之间建立屏幕投射通道后,当满足开始投射条件时才将终端屏幕的内容投射到显示设备上;同样,当满足结束投射条件时停止将终端上的内容投射的显示设备上。这些条件可以是终端运行过程中遇到某些预置的条件时触发屏幕投射,也可以是用户通过点击图标来触发。The terminal opens the Miracast-based screen projection function, and after the screen projection channel is established between the terminal and the display device, the content of the terminal screen is projected onto the display device when the start projection condition is satisfied; likewise, the terminal is stopped when the end projection condition is satisfied. The content on the projected device is projected. These conditions may be triggered by a screen shot when certain preset conditions are encountered during terminal operation, or by a user clicking on an icon.
对于上述内容,要实现以下关键方法:For the above, the following key methods are implemented:
方法一:终端智能的开启和关闭屏幕投射功能,在终端中预置开启和关闭屏幕投射的条件,当满足条件时就自动开启或者关闭屏幕投射功能。Method 1: The terminal intelligently turns on and off the screen projection function, presets the conditions for turning on and off the screen projection in the terminal, and automatically turns on or off the screen projection function when the condition is met.
在终端和显示设备之间建立屏幕投射功能通道的同时,预置开启和关闭屏幕投射功能的条件,比如开启屏幕投射功能的条件可以是:用户点击的控件的属性为“play”等播放控件属性;比如关闭屏幕投射功能的条件可以是:正在播放的视频播放结束时。While establishing a screen projection function channel between the terminal and the display device, preset conditions for turning on and off the screen projection function, for example, the condition for turning on the screen projection function may be: the property of the control clicked by the user is a play control attribute such as “play” For example, the condition for turning off the screen projection function may be: the end of the video being played.
例如,在终端和显示设备之间的屏幕投射通道建立之后,终端监控模块就开始监控用户在终端界面上的每一个操作的动作,如果监控到该动作和预置的开启和关闭屏幕投射的动作一致,那么就将开启或者关闭屏幕投射的指令通过屏幕投射的通道发送给显示设备,显示设备接收到之后分析接收到的 内容是控制指令还是数据传输指令,如果是控制指令,就对该控制指令做出响应,将响应结果发送给终端,终端接收到响应之后执行开启(将终端界面内容镜像传输到显示设备)或者关闭(停止将终端界面内容镜像传输到显示设备)屏幕投射的动作;如果显示设备接收到内容是界面镜像传输内容,显示终端就直接显示该内容;如果终端监控到的用户的动作和预置的开启或者关闭屏幕投射的动作不一致,那么终端监控模块不做任何操作。For example, after the screen projection channel between the terminal and the display device is established, the terminal monitoring module starts monitoring the action of each operation of the user on the terminal interface, if the action and the preset action of turning on and off the screen are monitored. Consistently, the instruction to turn on or off the screen projection is sent to the display device through the channel projected by the screen, and the display device analyzes whether the received content is a control instruction or a data transmission instruction after receiving, and if it is a control instruction, the control instruction Responding to the response, sending the response result to the terminal, and after the terminal receives the response, performing an action of opening (transferring the terminal interface content to the display device) or closing (stopping the transmission of the terminal interface content to the display device) screen; if displayed The content received by the device is the content of the interface image transmission, and the display terminal directly displays the content; if the action of the user monitored by the terminal is inconsistent with the preset action of turning on or off the screen projection, the terminal monitoring module does not perform any operation.
方法二:终端开启屏幕投射功能,建立终端和显示设备之间的屏幕投射连接通道。在终端界面上有屏幕投射的图标,用户点击该图标可以实现从当前界面开始的内容投射到显示设备上,也可以实现将当前界面开始的内容不允许投射到显示设备上。Method 2: The terminal turns on the screen projection function to establish a screen projection connection channel between the terminal and the display device. On the terminal interface, there is an icon projected by the screen. When the user clicks the icon, the content starting from the current interface can be projected onto the display device, and the content starting from the current interface cannot be projected onto the display device.
在终端和显示设备之间建立屏幕投射功能通道后,在终端的屏幕上有屏幕投射功能的小图标,终端监控用户是否点击屏幕投射图标,如果用户在终端“点击”动作是开启屏幕投射操作,终端通过在终端和显示设备之间建立的屏幕投射通道发送控制指令,同样显示设备监控终端发送内容的类型,接收到指令后分析是控制指令还是传输数据的内容,如果是控制指令,就对该控制指令做出响应,将响应的结果发送给终端,终端接收到之后就开始镜像传输界面内容;如果“点击”动作是关闭屏幕投射操作,显示设备接收到之后做出响应,停止终端界面在显示设备上显示。After the screen projection function channel is established between the terminal and the display device, there is a small icon of the screen projection function on the screen of the terminal, and the terminal monitors whether the user clicks the screen projection icon, and if the user clicks the action in the terminal, the screen projection operation is turned on. The terminal sends a control instruction through a screen projection channel established between the terminal and the display device, and also displays a type of content sent by the device monitoring terminal, and after receiving the instruction, analyzes whether the control instruction or the content of the transmission data, if it is a control instruction, The control command responds, and the result of the response is sent to the terminal, and the terminal starts to mirror the transmission interface content after receiving the message; if the "click" action is to turn off the screen projection operation, the display device responds after receiving, and stops the terminal interface from being displayed. Displayed on the device.
下面结合具体的实现方案对上述方法1和方法2进行说明。The above method 1 and method 2 will be described below in conjunction with specific implementation schemes.
方法1:method 1:
方法1涉及到的模块主要有以下模块:终端上的监控模块、屏幕布局提取模块、终端上的屏幕投射开启和关闭条件预设模块(条件预设模块)以及终端上的比较模块,下面结合各模块对方法1进行说明。The modules involved in the method 1 mainly include the following modules: a monitoring module on the terminal, a screen layout extraction module, a screen projection on-and-off condition preset module on the terminal (a conditional preset module), and a comparison module on the terminal, which are combined below. The module describes Method 1.
1.终端上的监控模块:设置为监控当前用户所在界面的操作动作和操作对象,监控的格式可以为(动作:操作对象),该监控模块又包括动作监控子模块和操作对象生成子模块,动作监控负责监控用户当前的操作动作,包括单击、双击、滑动等;操作对象生成子模块根据用户操作的控件的属性来确定操作对象。1. The monitoring module on the terminal: set to monitor the operation actions and operation objects of the interface where the current user is located, and the monitoring format may be (action: operation object), and the monitoring module further includes an action monitoring sub-module and an operation object generating sub-module. The action monitoring is responsible for monitoring the current operation actions of the user, including clicking, double-clicking, sliding, etc.; the operation object generation sub-module determines the operation object according to the attributes of the control operated by the user.
操作对象指的是用户操作的控件,在当前界面上是唯一的,是用屏幕布局文件中的控件属性来获取的,这里为何不直接使用“动作:控件属性”呢,原因是控件属性不是单一的,在终端的一个屏幕上,一个控件是唯一的,但是该控件在屏幕布局文件中的属性却不一定是唯一的,有时候要用多个属性来综合确定该控件对象,如下述例1。The operation object refers to the user-operated control, which is unique on the current interface. It is obtained by using the control property in the screen layout file. Why not use the "action: control property" directly because the control property is not single. On a screen of the terminal, a control is unique, but the properties of the control in the screen layout file are not necessarily unique. Sometimes, multiple attributes are used to comprehensively determine the control object, as in the following example 1. .
例1:终端监控模块监控到用户在界面上的操作为:“单击:com.android.gallery3d:id/gl_root_view(视频play控件的资源ID属性值)”,控件的属性值可以是资源ID、描述和text属性,根据控件的属性值(com.android.gallery3d:id/gl_root_view)来获取到控件的对象(视频play控件),该操作对应的(动作:操作对象)为:“单击:视频play控件”。Example 1: The terminal monitoring module monitors the user's operation on the interface as: "Click: com.android.gallery3d: id/gl_root_view (the resource ID attribute value of the video play control)", the attribute value of the control may be the resource ID, Description and text attribute, according to the property value of the control (com.android.gallery3d: id/gl_root_view) to get the object of the control (video play control), the corresponding action (action: operation object) is: "Click: Video Play control".
下述例2对如何根据控件的属性值来获取控件的对象进行说明。Example 2 below illustrates how to get the object of the control based on the property value of the control.
例2:用户的操作为“单击:幻灯片播放控件属性”,这里操作动作是单击,幻灯片播放控件属性为:(type,value),type是上述的幻灯片播放控件属性类型,value是控件类型的值,这里type=text,value=Slideshow,action=click。那么利用android uiautomator提供的API函数根据控件的文字属性来获取控件对象,如下代码:Example 2: The user's operation is "Click: slideshow control property", where the action is click, the slideshow control property is: (type, value), type is the above slideshow control property type, value Is the value of the control type, where type=text, value=Slideshow, action=click. Then use the API function provided by android uiautomator to get the control object according to the text attribute of the control, as follows:
{UiObject mItem=new UiObject(new UiSelector().text(Slideshow));}{UiObject mItem=new UiObject(new UiSelector().text(Slideshow));}
//mItem是控件文字为幻灯片播放对应的对象//mItem is the control text for the slideshow corresponding object
2.屏幕布局提取模块:屏幕对应的布局文件描述的是该屏幕中的控件的一些信息,包括控件对应的类名、包名、坐标、资源ID、text属性、描述等信息。布局文件提取模块来完成布屏幕的布局文件的提取。布局文件的提取可以使用android SDK中的uiautomatorviewer.bat来获取。2. Screen layout extraction module: The layout file corresponding to the screen describes some information of the control in the screen, including the class name, package name, coordinates, resource ID, text attribute, description and other information corresponding to the control. The layout file extraction module completes the extraction of the layout file of the cloth screen. The extraction of layout files can be obtained using uiautomatorviewer.bat in the android SDK.
3.终端上的屏幕投射开启和关闭条件预设模块:终端在屏幕投射的通道建立成功之后,提示用户预设屏幕投射开启和关闭条件,条件的格式为“动作:操作对象”。3. Screen projection on the terminal On and off condition Preset module: After the channel is successfully created by the screen, the terminal prompts the user to preset the screen projection on and off conditions. The format of the condition is “action: operation object”.
预设条件的建立可以在用户建立屏幕投射通道后给用户展示一些场景, 用户在该场景中进行操作,操作的“动作:操作对象”将被记录为预设条件。如:在屏幕投射通道建立成功之后,展示的场景可以为视频播放器中的启动播放的,提示用户将点击播放按钮设置为预设条件。The establishment of the preset condition may display some scenes to the user after the user establishes the screen projection channel, and the user operates in the scene, and the “action: operation object” of the operation will be recorded as a preset condition. For example, after the screen projection channel is successfully established, the displayed scene can be started for playing in the video player, prompting the user to set the click play button as a preset condition.
条件预设模块也可以在屏幕投射的过程中动态增加,用户可以在对一个控件对象操作之后,将该动作标记为预设条件。The conditional preset module can also be dynamically added during the projection of the screen, and the user can mark the action as a preset condition after operating on a control object.
一组预设条件是成组出现的,包括开启和关闭条件,意思是,如果用户当前的操作符合某组预设条件中的开启屏幕投射条件,那么,结束屏幕的条件也要在该组条件中。只有当前组的预设开启和关闭结束后才能开启新的一组屏幕投射预设条件。例如,如果通过某组(例如,A组)预设条件中的开启屏幕投射条件开启屏幕投射,那么,只有通过A组的关闭屏幕投射条件才能关闭结束屏幕投射。A set of preset conditions are grouped, including open and close conditions, meaning that if the user's current operation meets the open screen projection condition in a certain set of preset conditions, then the condition of the end screen is also in the set of conditions. in. A new set of screen projection presets can only be opened after the current group's presets are turned on and off. For example, if the screen projection is turned on by the open screen projection condition in a certain group (for example, group A) preset conditions, the end screen projection can be turned off only by the group A screen closing condition of group A.
作为一种方案,还可以根据场景需要,通过不同组的预设条件中的开启屏幕投射条件和关闭屏幕投射条件,进行屏幕投射的开始和关闭。例如,通过A组预设条件中的开启屏幕投射条件开启屏幕投射,可以通过B组预设条件中的关闭屏幕投射条件关闭屏幕投射。这种场景下,虽然屏幕投射的控制更加灵活,但是屏幕投射控制存在不稳定的问题。具体通过何种方式进行屏幕投射控制,可以根据实际需要进行设定。前述屏幕投射的预设条件可以如表1所示,下述开启和关闭指的是屏幕投射的开启和关闭。As a solution, it is also possible to start and close the screen projection by turning on the screen projection condition and turning off the screen projection condition in different preset conditions according to the scene. For example, by turning on the screen projection by turning on the screen projection condition in the A group preset condition, the screen projection can be turned off by the off screen projection condition in the B group preset condition. In this scenario, although the control of the screen projection is more flexible, the screen projection control has an unstable problem. The specific method of screen projection control can be set according to actual needs. The preset conditions for the aforementioned screen projections can be as shown in Table 1. The following opening and closing refers to the opening and closing of the screen projection.
表1:屏幕投射的预设条件表Table 1: Preset condition table for screen projection
Figure PCTCN2017118515-appb-000001
Figure PCTCN2017118515-appb-000001
Figure PCTCN2017118515-appb-000002
Figure PCTCN2017118515-appb-000002
4.终端上的比较模块:用户在终端界面上每操作一步,终端上的监控模块2对监控到的用户的操作(动作:操作对象)和预设模块中的内容进行比较。例如用户单击一个控件,提取布局文件中的控件属性,和预设条件中的动作和控件属性对比,如果一致,就执行预设条件中对应的开启屏幕投射操作,此时提取该组预设条件对应的关闭屏幕投射的条件,如果监控到控件属性值和预设关闭屏幕投射空间的值一致,就执行关闭屏幕投射功能。4. Comparison module on the terminal: Each step of the user on the terminal interface, the monitoring module 2 on the terminal compares the monitored user's operation (action: operation object) with the content in the preset module. For example, the user clicks a control to extract the control attribute in the layout file, and compares the action and the control attribute in the preset condition. If they are consistent, the corresponding open screen projection operation in the preset condition is executed, and the group preset is extracted at this time. The condition corresponding to the condition of closing the screen projection, if the value of the monitored control attribute is consistent with the value of the preset closed screen projection space, the screen off function is performed.
方法2涉及到的模块主要有以下模块:终端上的监控模块、终端的指令发送模块、终端的镜像数据发送模块、以及显示设备上的监控模块,下面结合各模块对方法1进行说明。The module involved in the method 2 mainly has the following modules: a monitoring module on the terminal, an instruction sending module of the terminal, a mirror data sending module of the terminal, and a monitoring module on the display device, and the method 1 is described below in combination with each module.
1.终端上的监控模块:用来监控用户是否点击屏幕投射图标来开启或者关闭屏幕投射功能,如果用户点击了该图标就调用终端指令发送模块。1. The monitoring module on the terminal: used to monitor whether the user clicks the screen projection icon to turn on or off the screen projection function, and if the user clicks the icon, the terminal instruction sending module is called.
2.终端的指令发送模块:将监控模块监控到内容发送到显示设备。给每帧数据中添加标识位来表示该帧传输的内容是控制指令。2. The terminal's instruction sending module: monitors the monitoring module to send the content to the display device. An identification bit is added to each frame of data to indicate that the content of the frame transmission is a control instruction.
例如,基于Miracast的传输采用的是RTP协议,以“帧”的形式传输数据,将填充位置设置为“1”,在该报文的尾部填充一个8位组,用这个8为组来表示传输的控制指令的类型和控制指令的内容,将第1位设置为“0”来表示是控制指令,后面的7位表示控制指令的内容,指令的内容包括开启屏幕投射和关闭屏幕投射,也比较容易用7位二进制数表示。For example, Miracast-based transmission uses the RTP protocol to transmit data in the form of "frames", set the padding position to "1", fill an octet at the end of the message, and use this 8 group to represent the transmission. The type of control instruction and the content of the control instruction, the first bit is set to "0" to indicate that it is a control instruction, and the next 7 bits represent the content of the control instruction. The contents of the instruction include turning on the screen projection and turning off the screen projection, and also comparing Easy to use with 7-bit binary numbers.
3.终端的镜像数据发送模块:将终端设备界面的镜像内容发送到显示设备。3. The mirror data sending module of the terminal: sends the mirrored content of the terminal device interface to the display device.
例如,基于Miracast的传输采用的是RTP协议,以“帧”的形式传输数据,将填充位置设置为“0”或者填充位的内容为“1”但报文尾部的8位的首位为“1”,表示该帧的内容是镜像数据内容。For example, the Miracast-based transmission uses the RTP protocol to transmit data in the form of "frames", setting the padding position to "0" or the content of the padding bit to "1" but the first bit of the 8-bit header at the end of the message is "1". ", indicating that the content of the frame is mirrored data content.
4.显示设备上的监控模块:监控终端发送过来的内容,提取填充位的内容,如果是“1”,再提取报文尾部的8位的内容,如果首位是“0”,表示是控制指令的内容,解析指令内容,执行解析出的内容;如果填充位的内容为“0”或者填充位的内容为“1”但报文尾部的8位的首位为“1”,表示镜像内容就将利用现有的Miracast技术将镜像内容显示在显示设备上。4. The monitoring module on the display device: monitors the content sent by the terminal, extracts the content of the padding bit, and if it is "1", extracts the 8-bit content at the end of the message. If the first bit is "0", it indicates that it is a control command. The content of the instruction, parsing the content of the instruction, and executing the parsed content; if the content of the padding bit is "0" or the content of the padding bit is "1" but the first bit of the 8 bits at the end of the message is "1", the mirrored content will be The mirrored content is displayed on the display device using existing Miracast technology.
下面对本示例性实施例的屏幕投射法进行说明。The screen projection method of the present exemplary embodiment will be described below.
图3是根据本公开示例性实施例的屏幕投射方法的流程图一,图3中所示的流程图可以总结为以下步骤:FIG. 3 is a flowchart 1 of a screen projection method according to an exemplary embodiment of the present disclosure, and the flowchart illustrated in FIG. 3 may be summarized as the following steps:
步骤1,终端和显示设备通过WiFi Direct建立Miracast连接,连接建立以后,开始屏幕投射,终端启动终端监控模块,显示设备启动显示设备的监控模块。Step 1: The terminal and the display device establish a Miracast connection through the WiFi Direct. After the connection is established, the screen projection is started, the terminal starts the terminal monitoring module, and the display device starts the monitoring module of the display device.
步骤2,建立预设数据库;预设数据库可以是在通道建立之前建立的,或者与通道建立同时进行。如果在通道建立之前建立,可以在通道建立以后将预设数据库通过建立通道发送给显示设备。在屏幕投射通道建立的同时,用户展示一些场景,用户在该场景中进行操作,操作的“动作:操作对象”将被记录为预设条件。Step 2: Establish a preset database; the preset database may be established before the channel is established, or concurrently with the channel establishment. If established before the channel is established, the preset database can be sent to the display device through the setup channel after the channel is established. While the screen projection channel is established, the user displays some scenes in which the user operates, and the "action: operation object" of the operation will be recorded as a preset condition.
步骤3,用户在终端界面上操作,终端监控设备监听当前用户操作的控件属性,用操作对象生成模块利用控件属性生成控件对象,和预设条件中的控件对象比较,如果控件对象一致,再检查操作动作是否一致,如果一致就开启预设条件表格中对应的开启屏幕操作;同时提取该组预设条件中的关闭屏幕投射的条件,提出之后将控件对象的属性及属性值提取出来,监控模块一旦监控到当前屏幕中控件的属性和属性值和预设值一直,就关闭屏幕操作,执行步骤4;Step 3: The user operates on the terminal interface, and the terminal monitoring device monitors the control attribute of the current user operation, and uses the operation object generation module to generate the control object by using the control attribute, and compares with the control object in the preset condition, and if the control object is consistent, check again. Whether the operation actions are consistent, if they are consistent, the corresponding open screen operation in the preset condition table is started; at the same time, the condition for closing the screen projection in the set of preset conditions is extracted, and the attribute and attribute values of the control object are extracted, and the monitoring module is extracted. Once the properties and attribute values of the controls in the current screen are monitored and the preset values are always on, the screen operation is closed, and step 4 is performed;
步骤4,终端上的监控模块监控到之后给显示设备发送控制指令,显示设备收到之后做出响应发给终端;如果用户的操作是开启屏幕投射,那么执 行步骤5;如果用户的操作是关闭屏幕投射,那么执行步骤6;Step 4: After the monitoring module on the terminal monitors, send a control command to the display device, and after the display device receives the response, send the response to the terminal; if the user's operation is to turn on the screen projection, step 5 is performed; if the user operation is closed Screen projection, then perform step 6;
步骤5,终端将屏幕界面镜像传输给显示设备,显示设备接收并显示;Step 5: The terminal transmits the screen interface image to the display device, and the display device receives and displays;
步骤6,终端停止屏幕界面镜像传输给显示设备,显示设备停止接收。In step 6, the terminal stops the screen interface image transmission to the display device, and the display device stops receiving.
图4是根据本公开示例性实施例的屏幕投射方法的流程图二,图4中所示的流程图可以总结为以下步骤:FIG. 4 is a flowchart 2 of a screen projection method according to an exemplary embodiment of the present disclosure, and the flowchart illustrated in FIG. 4 may be summarized as the following steps:
步骤1,终端和显示设备通过WiFi Direct建立Miracast连接,终端启动监控模块,显示设备启动监控模块;Step 1: The terminal and the display device establish a Miracast connection through the WiFi Direct, the terminal starts the monitoring module, and the display device starts the monitoring module;
步骤2,用户在终端界面上进行操作,当操作到某界面时想让该界面开始之后的内容在显示设备上显示或者不在显示设备上显示,那么就点击当前界面上的开启屏幕投射图标或关闭屏幕投射图标,执行步骤3;Step 2: The user operates on the terminal interface. When the user wants to display the content after the interface starts on the display device or does not display on the display device, then click the open screen projection icon on the current interface or close. Screen projection icon, go to step 3;
步骤3,终端上的监控模块监控到之后给显示设备发送控制指令,显示设备收到之后做出响应发给终端;如果用户的操作是开启屏幕投射,那么执行步骤4;如果用户的操作是关闭屏幕投射,那么执行步骤5;Step 3: After the monitoring module on the terminal monitors, send a control command to the display device, and after the display device receives the response, send the response to the terminal; if the user's operation is to turn on the screen projection, step 4 is performed; if the user operation is closed Screen projection, then perform step 5;
步骤4,终端将屏幕界面镜像传输给显示设备,显示设备接收并显示;Step 4: The terminal transmits the screen interface image to the display device, and the display device receives and displays;
步骤5,终端停止屏幕界面镜像传输给显示设备,显示设备停止接收。In step 5, the terminal stops the screen interface image transmission to the display device, and the display device stops receiving.
通过本公开示例性实施例的上述方案,可以灵活控制终端屏幕投射,满足用户的不同操作需求,提高用户体验。Through the above solution of the exemplary embodiment of the present disclosure, the terminal screen projection can be flexibly controlled to meet different operation requirements of the user, and the user experience is improved.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是经常采用的实施方式。基于这样的理解,本公开的方案本质上可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is The often used implementation. Based on this understanding, the solution of the present disclosure may be embodied in the form of a software product stored in a storage medium (such as a ROM/RAM, a magnetic disk, an optical disk), and includes a plurality of instructions for making one The terminal device (which may be a cell phone, computer, server, or network device, etc.) performs the methods described in various embodiments of the present disclosure.
示例2Example 2
在本公开实施例中还提供了一种屏幕投射装置,该装置用于实现上述实施例及示例性实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所 描述的装置通常以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。A screen projection device is also provided in the embodiment of the present disclosure, which is used to implement the above-described embodiments and exemplary embodiments, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the devices described in the following embodiments are typically implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图5是根据本公开实施例的屏幕投射装置的结构框图一,如图5所示,该装置包括:FIG. 5 is a structural block diagram 1 of a screen projection apparatus according to an embodiment of the present disclosure. As shown in FIG. 5, the apparatus includes:
确定模块52,配置为确定终端与显示设备之间建立了屏幕投射通道;The determining module 52 is configured to determine that a screen projection channel is established between the terminal and the display device;
触发模块54,连接至上述确定模块52,配置为根据预设触发条件,触发向显示设备发送控制指令,其中,控制指令用于控制终端的屏幕内容向显示设备上进行投射,控制指令通过建立的屏幕投射通道进行发送。The triggering module 54 is connected to the determining module 52, and configured to send a control command to the display device according to the preset triggering condition, wherein the control command is used to control the screen content of the terminal to be projected onto the display device, and the control command is established by The screen cast channel is sent.
图6是根据本公开实施例的屏幕投射装置的触发模块54的结构框图一,如图6所示,该触发模块54包括:FIG. 6 is a structural block diagram of a triggering module 54 of a screen projection apparatus according to an embodiment of the present disclosure. As shown in FIG. 6, the triggering module 54 includes:
监控单元62,配置为监控终端产生的操作动作;The monitoring unit 62 is configured to monitor an operation action generated by the terminal;
第一判断单元64,连接至上述监控单元62,配置为判断监控到的操作动作与预设动作是否匹配;The first determining unit 64 is connected to the monitoring unit 62, and configured to determine whether the monitored operation action matches the preset action;
第一发送单元66,连接至上述第一判断单元64,配置为在第一判断单元64的判断结果为匹配的情况下,将与操作动作对应的控制指令发送给显示设备,其中,控制指令用于指示将终端的屏幕内容开始或者停止投射到显示设备上。The first sending unit 66 is connected to the first determining unit 64, and configured to send a control command corresponding to the operation action to the display device when the determination result of the first determining unit 64 is matched, wherein the control command is used by the control device. Instructing to start or stop projecting the screen content of the terminal onto the display device.
在实施例中,监控单元62,还可以用于监控终端的以下至少之一产生的操作动作:组件、应用控件、操作键。In an embodiment, the monitoring unit 62 is further configured to monitor an operation action generated by at least one of the following components: a component, an application control, and an operation key.
图7是根据本公开实施例的屏幕投射装置的触发模块54的结构框图二,如图7所示,该触发模块54包括:FIG. 7 is a structural block diagram 2 of a triggering module 54 of a screen projection apparatus according to an embodiment of the present disclosure. As shown in FIG. 7, the triggering module 54 includes:
第二判断单元72,配置为判断当前时刻是否满足用于控制屏幕投射时间的预设时间条件;The second determining unit 72 is configured to determine whether the current time meets a preset time condition for controlling the screen projection time;
第二发送单元74,连接至上述第二判断单元72,配置为在第二判断单元72的判断结果为匹配的情况下,向显示设备发送控制指令,其中,控制指令用于指示将终端的屏幕内容开始或者停止投射到显示设备上。The second sending unit 74 is connected to the second determining unit 72, and configured to send a control command to the display device when the determination result of the second determining unit 72 is matched, wherein the control command is used to indicate the screen of the terminal. The content starts or stops being projected onto the display device.
图8是根据本公开实施例的屏幕投射装置的结构框图二,如图8所示,该装置除了包括图5所示的所有模块外,还包括:FIG. 8 is a structural block diagram 2 of a screen projection apparatus according to an embodiment of the present disclosure. As shown in FIG. 8 , the apparatus includes: in addition to all the modules shown in FIG. 5 , the apparatus includes:
第一发送模块82,配置为在控制指令用于指示将终端的屏幕内容开始投射到显示设备上的情况下,通过数据传输指令,将终端的屏幕内容的镜像发送给显示设备。The first sending module 82 is configured to, when the control command is used to indicate that the screen content of the terminal is started to be projected onto the display device, send a mirror image of the screen content of the terminal to the display device by using a data transmission instruction.
图9是根据本公开实施例的屏幕投射装置的结构框图三,如图9所示,该装置除了包括图5所示的所有模块外,还包括:第二发送模块92,其中,9 is a structural block diagram 3 of a screen projection apparatus according to an embodiment of the present disclosure. As shown in FIG. 9, the apparatus includes: a second sending module 92, in addition to all the modules shown in FIG.
确定模块52,还配置为在控制指令用于指示将终端的屏幕内容开始投射到显示设备上的情况下,确定终端的屏幕上用于向显示设备进行投射的预设区域的显示内容;The determining module 52 is further configured to: when the control instruction is used to indicate that the screen content of the terminal is started to be projected onto the display device, determine the display content of the preset area on the screen of the terminal for projecting to the display device;
第二发送模块92,配置为将确定的预设区域的显示内容,发送到显示设备上进行投射。The second sending module 92 is configured to send the determined display content of the preset area to the display device for projection.
本公开的实施例中还提供了一种终端,该终端包括上述实施例中任一项的屏幕投射装置。A terminal is also provided in an embodiment of the present disclosure, the terminal comprising the screen projection device of any of the above embodiments.
上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。The above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the above modules are all located in the same processor; or, the above modules are respectively located in different combinations. In the processor.
示例3Example 3
本公开的实施例中提供了一种存储介质。在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:A storage medium is provided in an embodiment of the present disclosure. In this embodiment, the above storage medium may be configured to store program code for performing the following steps:
S1,确定终端与显示设备之间建立了屏幕投射通道;S1, determining that a screen projection channel is established between the terminal and the display device;
S2,根据预设触发条件,触发向显示设备发送控制指令,其中,控制指令用于控制终端的屏幕内容向显示设备上进行投射,控制指令通过建立的屏幕投射通道进行发送。S2, according to the preset trigger condition, triggering to send a control instruction to the display device, wherein the control instruction is used to control the screen content of the terminal to be projected onto the display device, and the control command is sent through the established screen projection channel.
在本实施例中,存储介质还可以被设置为存储用于执行以下步骤的程序代码:In this embodiment, the storage medium may also be arranged to store program code for performing the following steps:
根据预设触发条件,触发向显示设备发送控制指令包括:According to the preset trigger condition, triggering the sending of the control instruction to the display device includes:
S1,监控终端产生的操作动作;S1, monitoring an operation action generated by the terminal;
S2,判断监控到的操作动作与预设动作是否匹配;S2, determining whether the monitored operation action matches the preset action;
S3,在判断结果为匹配的情况下,将与操作动作对应的控制指令发送给显示设备,其中,控制指令用于指示将终端的屏幕内容开始投射或者停止投射到显示设备上。S3. If the determination result is a match, send a control instruction corresponding to the operation action to the display device, where the control instruction is used to indicate that the screen content of the terminal is started to be projected or stopped to be projected onto the display device.
在本实施例中,存储介质还可以被设置为存储用于执行以下步骤的程序代码:监控终端产生的操作动作包括:监控终端的以下至少之一产生的操作动作:组件、应用控件、操作键。In this embodiment, the storage medium may be further configured to store program code for performing the following steps: monitoring the operation action generated by the terminal comprises: monitoring an operation action generated by at least one of the following: the component, the application control, the operation key .
在本实施例中,存储介质还可以被设置为存储用于执行以下步骤的程序代码:In this embodiment, the storage medium may also be arranged to store program code for performing the following steps:
根据预设触发条件,触发向显示设备发送控制指令包括:According to the preset trigger condition, triggering the sending of the control instruction to the display device includes:
S1,判断当前时刻是否满足用于控制屏幕投射时间的预设时间条件;S1, determining whether the current time meets a preset time condition for controlling a screen projection time;
S2,在判断结果为满足预设时间条件的情况下,向显示设备发送控制指令,其中,控制指令用于指示将终端的屏幕内容开始或者停止投射到显示设备上。S2. If the result of the determination is that the preset time condition is met, the control instruction is sent to the display device, where the control instruction is used to indicate that the screen content of the terminal is started or stopped being projected onto the display device.
在本实施例中,存储介质还可以被设置为存储用于执行以下步骤的程序代码:在控制指令用于指示将终端的屏幕内容开始投射到显示设备上的情况下,在根据预设触发条件,触发向显示设备发送控制指令之后,还包括:通过数据传输指令,将终端的屏幕内容的镜像发送给显示设备。In this embodiment, the storage medium may be further configured to store program code for performing the following steps: in the case where the control instruction is used to indicate that the screen content of the terminal is started to be projected onto the display device, in accordance with the preset trigger condition After triggering the sending of the control instruction to the display device, the method further includes: sending, by using the data transmission instruction, the image of the screen content of the terminal to the display device.
在本实施例中,存储介质还可以被设置为存储用于执行以下步骤的程序代码:In this embodiment, the storage medium may also be arranged to store program code for performing the following steps:
在控制指令用于指示将终端的屏幕内容开始投射到显示设备上的情况下,在根据预设触发条件,触发向显示设备发送控制指令之后,还包括:In the case that the control instruction is used to indicate that the screen content of the terminal is started to be projected on the display device, after triggering the sending of the control instruction to the display device according to the preset trigger condition, the method further includes:
S1,确定终端的屏幕上用于向显示设备进行投射的预设区域的显示内容;S1. Determine display content of a preset area on the screen of the terminal for projecting to the display device;
S2,将确定的预设区域的显示内容,发送到显示设备进行投射。S2: Send the determined display content of the preset area to the display device for projection.
在本实施例中,存储介质还可以被设置为存储用于执行以下步骤的程序代码:监控终端产生的操作动作包括:监控终端的以下至少之一产生的操作动作:组件、应用控件、操作键。In this embodiment, the storage medium may be further configured to store program code for performing the following steps: monitoring the operation action generated by the terminal comprises: monitoring an operation action generated by at least one of the following: the component, the application control, the operation key .
在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM, Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。In this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk. A variety of media that can store program code.
在本实施例中,处理器可以根据存储介质中已存储的程序代码执行:确定终端与显示设备之间建立了屏幕投射通道;根据预设触发条件,触发向显示设备发送控制指令,其中,控制指令用于控制终端的屏幕内容向显示设备上进行投射,控制指令通过建立的屏幕投射通道进行发送。In this embodiment, the processor may be configured to: according to the stored program code in the storage medium, determine that a screen projection channel is established between the terminal and the display device; and trigger a control instruction to send to the display device according to the preset trigger condition, where the control The instruction is used to control the screen content of the terminal to be projected onto the display device, and the control command is sent through the established screen projection channel.
在本实施例中,处理器可以根据存储介质中已存储的程序代码执行:根据预设触发条件,触发向显示设备发送控制指令包括:监控终端产生的操作动作;判断监控到的操作动作与预设动作是否匹配;在判断结果为匹配的情况下,将与操作动作对应的控制指令发送给显示设备,其中,控制指令用于指示将终端的屏幕内容开始投射或者停止投射到显示设备上。In this embodiment, the processor may be executed according to the stored program code in the storage medium: triggering the sending of the control instruction to the display device according to the preset trigger condition includes: monitoring an operation action generated by the terminal; determining the monitored operation action and the pre-operation If the result of the determination is a match, the control command corresponding to the operation action is sent to the display device, wherein the control command is used to indicate that the screen content of the terminal is started to be projected or stopped to be projected onto the display device.
在本实施例中,处理器可以根据存储介质中已存储的程序代码执行:监控终端产生的操作动作包括:监控终端的以下至少之一产生的操作动作:组件、应用控件、操作键。In this embodiment, the processor may be executed according to the stored program code in the storage medium: the operation action generated by the monitoring terminal includes: monitoring an operation action generated by at least one of the following: the component, the application control, and the operation key.
在本实施例中,处理器可以根据存储介质中已存储的程序代码执行:根据预设触发条件,触发向显示设备发送控制指令包括:判断当前时刻是否满足用于控制屏幕投射时间的预设时间条件;在判断结果为满足预设时间条件的情况下,向显示设备发送控制指令,其中,控制指令用于指示将终端的屏幕内容开始或者停止投射到显示设备上。In this embodiment, the processor may execute according to the stored program code in the storage medium: triggering the sending of the control instruction to the display device according to the preset trigger condition includes: determining whether the current time meets a preset time for controlling the screen projection time Condition; if the result of the determination is that the preset time condition is met, the control instruction is sent to the display device, wherein the control instruction is used to indicate that the screen content of the terminal is started or stopped being projected onto the display device.
在本实施例中,处理器可以根据存储介质中已存储的程序代码执行:在控制指令用于指示将终端的屏幕内容开始投射到显示设备上的情况下,在根据预设触发条件,触发向显示设备发送控制指令之后,还包括:通过数据传输指令,将终端的屏幕内容的镜像发送给显示设备。In this embodiment, the processor may execute according to the stored program code in the storage medium: in the case that the control instruction is used to indicate that the screen content of the terminal is started to be projected onto the display device, triggering according to the preset trigger condition After the display device sends the control instruction, the method further includes: sending, by using the data transmission instruction, the image of the screen content of the terminal to the display device.
在本实施例中,处理器可以根据存储介质中已存储的程序代码执行:在控制指令用于指示将终端的屏幕内容开始投射到显示设备上的情况下,在根据预设触发条件,触发向显示设备发送控制指令之后,还包括:确定终端的屏幕上用于向显示设备进行投射的预设区域的显示内容;将确定的预设区域的显示内容,发送到显示设备进行投射。In this embodiment, the processor may execute according to the stored program code in the storage medium: in the case that the control instruction is used to indicate that the screen content of the terminal is started to be projected onto the display device, triggering according to the preset trigger condition After the display device sends the control instruction, the method further includes: determining display content of the preset area for projecting to the display device on the screen of the terminal; and transmitting the determined display content of the preset area to the display device for projection.
本实施例中的具体例子可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and exemplary embodiments, and details are not described herein again.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些组件或所有组件可以被实施为由处理器,如数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and functional blocks/units of the methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical The components work together. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer readable medium, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and nonvolatile, implemented in any method or technology for storing information, such as computer readable instructions, data structures, program modules or other data. Sex, removable and non-removable media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridge, magnetic tape, magnetic disk storage or other magnetic storage device, or may Any other medium used to store the desired information and that can be accessed by the computer. Moreover, it is well known to those skilled in the art that communication media typically includes computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information delivery media. .
以上所述仅为本公开的示例性实施例而已,并不用于限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。The above description is only exemplary embodiments of the present disclosure, and is not intended to limit the disclosure, and various changes and modifications may be made to the present disclosure. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and scope of the present disclosure are intended to be included within the scope of the present disclosure.
工业实用性Industrial applicability
通过本公开,在终端与显示设备之间建立屏幕投射通道后,根据预设触发条件,触发向显示设备发送控制指令,可以通过设置预设触发条件来进行灵活地屏幕投射控制,因此,可以解决已有的屏幕投射方式存在灵活性差的 问题,达到提高屏幕投射灵活性的效果。According to the disclosure, after the screen projection channel is established between the terminal and the display device, the control command is sent to the display device according to the preset trigger condition, and the screen trigger control can be flexibly set by setting the preset trigger condition, so that the solution can be solved. The existing screen projection method has the problem of poor flexibility, and the effect of improving the projection flexibility of the screen is achieved.

Claims (14)

  1. 一种屏幕投射方法,包括:A screen projection method includes:
    确定终端与显示设备之间建立了屏幕投射通道(S202);Determining that a screen projection channel is established between the terminal and the display device (S202);
    根据预设触发条件,触发向所述显示设备发送控制指令(S204),其中,所述控制指令用于控制所述终端的屏幕内容向所述显示设备上进行投射,所述控制指令通过建立的所述屏幕投射通道进行发送。Trimming to send a control instruction to the display device according to a preset trigger condition (S204), wherein the control instruction is used to control screen content of the terminal to be projected onto the display device, and the control instruction is established by The screen projection channel is transmitted.
  2. 根据权利要求1所述的方法,其中,根据所述预设触发条件,触发向所述显示设备发送所述控制指令(S204)包括:The method according to claim 1, wherein triggering the sending of the control instruction to the display device according to the preset trigger condition (S204) comprises:
    监控所述终端产生的操作动作;Monitoring operation actions generated by the terminal;
    判断监控到的所述操作动作与预设动作是否匹配;Determining whether the monitored operation action matches the preset action;
    在判断结果为匹配的情况下,将与所述操作动作对应的控制指令发送给所述显示设备,其中,所述控制指令用于指示将所述终端的屏幕内容开始投射或者停止投射到所述显示设备上。When the result of the determination is a match, a control instruction corresponding to the operation action is sent to the display device, wherein the control instruction is used to indicate that the screen content of the terminal is started to be projected or stopped to be projected to the Display on the device.
  3. 根据权利要求2所述的方法,其中,监控所述终端产生的操作动作包括:The method of claim 2, wherein monitoring the operational actions generated by the terminal comprises:
    监控所述终端的以下至少之一产生的操作动作:组件、应用控件、操作键。Monitoring operational actions generated by at least one of the following: the component, the application control, and the operation key.
  4. 根据权利要求1所述的方法,其中,根据预设触发条件,触发向所述显示设备发送控制指令(S204)包括:The method according to claim 1, wherein triggering the sending of the control instruction to the display device according to the preset trigger condition (S204) comprises:
    判断当前时刻是否满足用于控制屏幕投射时间的预设时间条件;Determining whether the current time meets a preset time condition for controlling a screen projection time;
    在判断结果为满足所述预设时间条件的情况下,向所述显示设备发送所述控制指令,其中,所述控制指令用于指示将所述终端的屏幕内容开始或者停止投射到所述显示设备上。Sending, to the display device, the control instruction, where the result of the determination is that the preset time condition is met, wherein the control instruction is used to indicate that the screen content of the terminal is started or stopped to be projected to the display On the device.
  5. 根据权利要求1至4中任一项所述的方法,其中,在所述控制指令用于指示将所述终端的屏幕内容开始投射到所述显示设备上的情况下,在根据所述预设触发条件,触发向所述显示设备发送所述控制指令(S204)之后,所述方法还包括:The method according to any one of claims 1 to 4, wherein, in the case where the control instruction is used to instruct to start projecting screen content of the terminal onto the display device, according to the preset After the triggering condition is triggered to send the control instruction to the display device (S204), the method further includes:
    通过数据传输指令,将所述终端的屏幕内容的镜像发送给所述显示设备。A mirror image of the screen content of the terminal is transmitted to the display device by a data transfer instruction.
  6. 根据权利要求1至4中任一项所述的方法,其中,在所述控制指令用于指示将所述终端的屏幕内容开始投射到所述显示设备上的情况下,在根据所述预设触发条件,触发向所述显示设备发送控制指令(S204)之后,所述方法还包括:The method according to any one of claims 1 to 4, wherein, in the case where the control instruction is used to instruct to start projecting screen content of the terminal onto the display device, according to the preset After the triggering condition is triggered to send a control instruction to the display device (S204), the method further includes:
    确定所述终端的屏幕上用于向所述显示设备进行投射的预设区域的显示内容;Determining display content of a preset area on the screen of the terminal for projecting to the display device;
    将确定的所述预设区域的所述显示内容,发送到所述显示设备进行投射。And transmitting the determined display content of the preset area to the display device for projection.
  7. 一种屏幕投射装置,包括:A screen projection device comprising:
    确定模块(52),配置为确定终端与显示设备之间建立了屏幕投射通道;a determining module (52) configured to determine that a screen projection channel is established between the terminal and the display device;
    触发模块(54),配置为根据预设触发条件,触发向所述显示设备发送控制指令,其中,所述控制指令用于控制所述终端的屏幕内容向所述显示设备进行投射,所述控制指令通过建立的所述屏幕投射通道进行发送。The triggering module (54) is configured to trigger sending a control instruction to the display device according to the preset triggering condition, where the control command is used to control screen content of the terminal to be projected to the display device, where the control The instruction is sent through the established screen projection channel.
  8. 根据权利要求7所述的装置,其中,所述触发模块(54)包括:The apparatus of claim 7, wherein the triggering module (54) comprises:
    监控单元(62),配置为监控所述终端产生的操作动作;a monitoring unit (62) configured to monitor an operation action generated by the terminal;
    第一判断单元(64),配置为判断监控到的所述操作动作与预设动作是否匹配;The first determining unit (64) is configured to determine whether the monitored operation action matches the preset action;
    第一发送单元(66),配置为在所述第一判断单元(64)的判断结果为匹配的情况下,将与所述操作动作对应的控制指令发送给所述显示设备,其中,所述控制指令用于指示开始或者停止将所述终端的屏幕内容投射到所述显示设备上。The first sending unit (66) is configured to, when the determination result of the first determining unit (64) is matched, send a control instruction corresponding to the operating action to the display device, where The control instruction is for instructing to start or stop projecting the screen content of the terminal onto the display device.
  9. 根据权利要求8所述的装置,其中,所述监控单元(62),还配置为监控所述终端的以下至少之一产生的操作动作:组件、应用控件、操作键。The apparatus of claim 8, wherein the monitoring unit (62) is further configured to monitor an operational action generated by at least one of the following: a component, an application control, an operation key.
  10. 根据权利要求7所述的装置,其中,所述触发模块(54)包括:The apparatus of claim 7, wherein the triggering module (54) comprises:
    第二判断单元(72),配置为判断当前时刻是否满足用于控制屏幕投射 时间的预设时间条件;a second determining unit (72) configured to determine whether the current time meets a preset time condition for controlling a screen projection time;
    第二发送单元(74),配置为在所述第二判断单元(72)的判断结果为匹配的情况下,向所述显示设备发送所述控制指令,其中,所述控制指令用于指示将所述终端的屏幕内容开始或者停止投射到所述显示设备上。a second sending unit (74) configured to send the control instruction to the display device if the determination result of the second determining unit (72) is a match, wherein the control instruction is used to indicate that The screen content of the terminal begins or stops being projected onto the display device.
  11. 根据权利要求7至10中任一项所述的装置,还包括:The apparatus according to any one of claims 7 to 10, further comprising:
    第一发送模块(82),配置为在所述控制指令用于指示将所述终端的屏幕内容开始投射到所述显示设备上的情况下,通过数据传输指令,将所述终端的屏幕内容的镜像发送给所述显示设备。a first sending module (82) configured to: when the control instruction is used to indicate that the screen content of the terminal is started to be projected onto the display device, by using a data transfer instruction, the screen content of the terminal is The image is sent to the display device.
  12. 根据权利要求7至10中任一项所述的装置,还包括:第二发送模块(92),其中,The apparatus according to any one of claims 7 to 10, further comprising: a second transmitting module (92), wherein
    所述确定模块(52),还配置为在所述控制指令用于指示将所述终端的屏幕内容开始投射到所述显示设备上的情况下,确定所述终端的屏幕上用于向所述显示设备进行投射的预设区域的显示内容;The determining module (52) is further configured to: when the control instruction is used to indicate that the screen content of the terminal is started to be projected onto the display device, determine that the screen of the terminal is used to Displaying the display content of the preset area projected by the device;
    所述第二发送模块(92),配置为将确定的所述预设区域的所述显示内容,发送到所述显示设备上进行投射。The second sending module (92) is configured to send the determined display content of the preset area to the display device for projection.
  13. 一种终端,包括权利要求7至12中任一项所述的屏幕投射装置。A terminal comprising the screen projection device of any one of claims 7 to 12.
  14. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现权利要求1-6中任一项所述的方法。A computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the method of any of claims 1-6.
PCT/CN2017/118515 2017-01-04 2017-12-26 Screen projection method, device and terminal WO2018126941A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710005279.6 2017-01-04
CN201710005279.6A CN108268228A (en) 2017-01-04 2017-01-04 Screen projective techniques, device and terminal

Publications (1)

Publication Number Publication Date
WO2018126941A1 true WO2018126941A1 (en) 2018-07-12

Family

ID=62770717

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/118515 WO2018126941A1 (en) 2017-01-04 2017-12-26 Screen projection method, device and terminal

Country Status (2)

Country Link
CN (1) CN108268228A (en)
WO (1) WO2018126941A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110312160A (en) * 2019-06-17 2019-10-08 广州视源电子科技股份有限公司 It is wireless to throw screen method, apparatus, Intelligent flat, terminal and system
CN112019893A (en) * 2019-05-30 2020-12-01 北京小米移动软件有限公司 Screen projection method and screen projection device of terminal

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112492364A (en) * 2019-09-11 2021-03-12 西安诺瓦星云科技股份有限公司 Screen projection method, screen projection device and source equipment
CN111596558A (en) * 2020-04-02 2020-08-28 深圳创维-Rgb电子有限公司 Display switching method, device, equipment and storage medium of intelligent display terminal
CN112286473A (en) * 2020-10-26 2021-01-29 宁波阶梯教育科技有限公司 Screen-casting content processing method and information control center equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166531A (en) * 2013-05-16 2014-11-26 纬创资通股份有限公司 Electronic device and screen content sharing method
CN105100907A (en) * 2014-04-28 2015-11-25 宇龙计算机通信科技(深圳)有限公司 Selective screen projection method and device thereof
US20150339090A1 (en) * 2014-05-23 2015-11-26 Samsung Electronics Co., Ltd. Sharing a screen between electronic devices

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9959024B2 (en) * 2015-01-27 2018-05-01 I/O Interconnect, Ltd. Method for launching applications of handheld computer through personal computer

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166531A (en) * 2013-05-16 2014-11-26 纬创资通股份有限公司 Electronic device and screen content sharing method
CN105100907A (en) * 2014-04-28 2015-11-25 宇龙计算机通信科技(深圳)有限公司 Selective screen projection method and device thereof
US20150339090A1 (en) * 2014-05-23 2015-11-26 Samsung Electronics Co., Ltd. Sharing a screen between electronic devices

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019893A (en) * 2019-05-30 2020-12-01 北京小米移动软件有限公司 Screen projection method and screen projection device of terminal
CN112019893B (en) * 2019-05-30 2023-09-12 北京小米移动软件有限公司 Screen projection method of terminal and screen projection device of terminal
CN110312160A (en) * 2019-06-17 2019-10-08 广州视源电子科技股份有限公司 It is wireless to throw screen method, apparatus, Intelligent flat, terminal and system

Also Published As

Publication number Publication date
CN108268228A (en) 2018-07-10

Similar Documents

Publication Publication Date Title
WO2018126941A1 (en) Screen projection method, device and terminal
JP6081440B2 (en) Method and apparatus for prompting based on smart glasses
US10038772B2 (en) Communication systems and methods
US10887932B2 (en) Electronic device and method of registering personal cloud apparatus in user portal server thereof
CN106464965B (en) Method and apparatus for displaying application data in wireless communication system
CN108769795B (en) Video signal realizing system and method
KR20160057873A (en) Communication method, electronic apparatus and storage medium
US10701435B2 (en) Television video interception method and device
WO2022089088A1 (en) Display device, mobile terminal, screen-casting data transmission method, and transmission system
JP2016535351A (en) Video information sharing method, apparatus, program, and recording medium
CN107147656B (en) Method and system for establishing remote control and readable storage medium
WO2018103733A1 (en) Control method and device
CN107197320B (en) Video live broadcast method, device and system
EP3021530A1 (en) Data sending method and device
WO2018209887A1 (en) Application control method and device for dual-screen terminal
EP4054198A1 (en) Live broadcast method and apparatus, electronic device, and storage medium
CN110740288A (en) Management method, access method and device of screen projection network
WO2016150273A1 (en) Video playing method, mobile terminal and system
CN105530283A (en) Point-to-point multimedia data sharing method, electronic device and nonvolatile readable computer medium
WO2021155702A1 (en) Communication processing method and device, terminal, server, and storage medium
CN107079383A (en) For the method for projection, device, system and electronic equipment
US10209944B2 (en) Interface sharing method and terminal device
US10104422B2 (en) Multimedia playing control method, apparatus for the same and system
CN112055234A (en) Television equipment screen projection processing method, equipment and storage medium
US10019604B2 (en) Method and apparatus of verifying terminal and medium

Legal Events

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

Ref document number: 17890165

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17890165

Country of ref document: EP

Kind code of ref document: A1