WO2015000393A1 - 屏幕分享方法及装置 - Google Patents

屏幕分享方法及装置 Download PDF

Info

Publication number
WO2015000393A1
WO2015000393A1 PCT/CN2014/081324 CN2014081324W WO2015000393A1 WO 2015000393 A1 WO2015000393 A1 WO 2015000393A1 CN 2014081324 W CN2014081324 W CN 2014081324W WO 2015000393 A1 WO2015000393 A1 WO 2015000393A1
Authority
WO
WIPO (PCT)
Prior art keywords
control
window
identification
window object
operator
Prior art date
Application number
PCT/CN2014/081324
Other languages
English (en)
French (fr)
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 WO2015000393A1 publication Critical patent/WO2015000393A1/zh

Links

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/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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • 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
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/08Cursor circuits
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/14Display of multiple viewports

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a screen sharing method and apparatus.
  • a user usually needs to select a window object among a plurality of running window objects as a target sharing window object, and the screen sharing application shares it with other users.
  • Embodiments of the present invention provide a screen sharing method and apparatus, which can reduce memory usage and improve memory utilization, thereby improving the running speed of a computer device.
  • a screen sharing method including:
  • the computer device obtains a screen sharing instruction
  • the computer device tracks a first cursor position corresponding to the screen sharing instruction, and Displaying, in a display area corresponding to the first cursor position, a first floating layer that moves following the first cursor position;
  • the computer device detects whether a window selection instruction corresponding to the first cursor position is triggered, and determines a window object corresponding to the first cursor position as a target sharing window object when the window selection instruction is triggered, and Share the target sharing window object.
  • a screen sharing device comprising:
  • a screen sharing instruction acquisition module configured to acquire a screen sharing instruction
  • a tracking display module configured to track a first cursor position corresponding to the screen sharing instruction, and display a first floating layer that moves along the first cursor position in a display area corresponding to the first cursor position;
  • a prompt information generating module configured to acquire a window object corresponding to the first cursor position, obtain a screenshot and/or a window identifier of the window object, and generate a first prompt information according to the screenshot and/or the window identifier of the window object, Displaying the first prompt information in the first floating layer; wherein, the first prompt information is used to prompt a user to select a window for sharing;
  • a window sharing module configured to detect whether a window selection instruction corresponding to the first cursor position is triggered, and determine a window object corresponding to the first cursor position as a target sharing window object when the window selection instruction is triggered And share the target sharing window object.
  • the above screen sharing method and device share the screen by displaying a floating layer in the vicinity of the cursor and displaying the prompt information of the window object corresponding to the cursor position in the floating layer.
  • the initiator of the operation provides the identification information of the window object, so that the initiator of the screen sharing operation can share the window object by directly moving the cursor to the display area in which the window object that he wishes to share is located, without passing through an additional list.
  • the component generates a window display interface, which reduces memory usage, improves memory utilization, and improves the speed of the computer.
  • FIG. 1 is an operation interface diagram of selecting a window object in a screen sharing operation in an embodiment
  • FIG. 2 is a schematic structural diagram of a computer device in an embodiment
  • FIG. 3 is a flow chart of a screen sharing method in an embodiment
  • FIG. 4 is an operation interface diagram of a screen sharing method in an embodiment
  • FIG. 5 is an operation interface diagram of a screen sharing method in an embodiment
  • FIG. 6 is a flow chart of a method for distinguishing multiple operators after screen sharing in one embodiment
  • FIG. 7 is a schematic diagram of a multi-person collaboration interface after screen sharing in one embodiment
  • FIG. 8 is a multi-person collaboration after screen sharing in one embodiment
  • FIG. 9 is a schematic structural diagram of a screen sharing device in an embodiment
  • FIG. 10 is a schematic structural diagram of a screen sharing device in another embodiment
  • FIG. 11 is a schematic diagram showing the hardware structure of a screen sharing device in an embodiment
  • FIG. 12 is a schematic diagram showing the hardware structure of a screen sharing device in another embodiment.
  • a screen sharing application uses an additional list component 101 and displays therein interface thumbnails corresponding to a plurality of running window objects (such as window 1, window 2 in FIG. 1, and Window 3) for the user to choose.
  • the extra list component requires extra memory, which makes the memory utilization low, which reduces the running speed of the computing device.
  • FIG. 2 is a block diagram showing the structure of a computing device in accordance with one embodiment of the present invention.
  • computer 200 can be a computing device capable of implementing the methods and apparatus provided by embodiments of the present invention.
  • the computer 200 can be a personal computer or a portable device such as a notebook computer, a tablet computer, a mobile phone, or a smart phone.
  • the computer 200 can also be a server connected to the above device via a network.
  • Computer 200 can have different capabilities and features. Various possible implementations are within the scope of the invention.
  • computer 200 can include a keypad/keyboard 256, and can also include a display 254, such as a liquid crystal display (LCD), or a display with advanced features, such as a touch sensitive 2D or 3D display.
  • a web-enabled computer 200 can include one or more physical or virtual keyboards, as well as a mass storage device 230.
  • the computer 200 may also include or allow various operating systems 241, such as the WindowsTM or LinuxTM operating system, or a mobile operating system such as iOSTM, AndroidTM, or Windows MobileTM.
  • Computer 200 can include or run various applications 242, such as screen sharing application 245.
  • Application 242 is capable of communicating with other devices over a network.
  • computer 200 can include one or more processor readable non-volatile storage Media 230 and one or more processors 222 in communication with storage medium 230.
  • the processor readable non-volatile storage medium 230 can be a RAM, a flash memory, a ROM, an EPROM, an EEPROM, a register, a hard disk, a removable hard disk, a CD-ROM, or other various forms of non-volatile storage media.
  • Storage medium 230 may store a series of instructions or units and/or modules comprising instructions for performing the operations of various embodiments of the present invention.
  • Processor 222 can execute the above-described instructions to perform the operations in various embodiments of the present invention.
  • FIG. 3 is a flowchart of a method for sharing a screen according to an embodiment of the present invention. The method may be run on a computer device, such as the computer 200.
  • the method may include the following steps:
  • Step S102 Acquire a screen sharing instruction.
  • the screen sharing instruction may be a triggering instruction of the screen sharing operation, and the user may trigger the screen sharing instruction by clicking a corresponding button or icon.
  • Step S104 tracking a first cursor position corresponding to the screen sharing instruction, and displaying a first floating layer following the movement of the first cursor position in the display area corresponding to the first cursor position.
  • the first cursor position is position information of a cursor that is moved by the originator of the screen sharing operation when the target sharing window object is selected. After detecting that the screen sharing command is triggered, the first cursor position is tracked.
  • the first floating layer may be a floating layer generated by the tips control. The first floating layer can be of any shape.
  • the first floating layer 41 may be a rectangle, and the position 42 of the positioning point is the first cursor position.
  • the vertex position of the upper left corner of the rectangular interface element is its fixed position. For example, if the pixel coordinates of the positioning point of the rectangular interface element are (x, y) and the length and width of the rectangular interface element are m and n, respectively, the pixel coordinates of the four vertices of the rectangular interface element are respectively the vertices in the upper left corner.
  • the first floating layer The anchor point moves following the first cursor position.
  • Step S106 Obtain a window object corresponding to the first cursor position, obtain a screenshot and/or a window identifier of the window object, generate corresponding prompt information according to the screenshot and/or the window identifier of the window object, and display the location in the first floating layer. Prompt information.
  • the window object occupies the corresponding display area in the display interface.
  • the window object can be acquired according to the display area where the first cursor position is located. That is to say, following the movement of the first cursor position, the window object corresponding to the display area in which it is located can be obtained. For example, when the first cursor position is switched from the display area in which the window object A is located to the display area in which the window object B is located, the acquired window object is also switched from A to B.
  • the window identifier may be an ID value of the window object or a title attribute value of the window object.
  • the value of the title property of a window object can be obtained by calling a function such as GetWindowText.
  • a screenshot of the window object can be obtained by calling the window function of the operating system as a parameter.
  • the prompt information generated from the screenshot of the window object and/or the window identifier may contain text and/or images.
  • the prompt information may be displayed in the first floating layer by calling a function such as PrintWindow.
  • the prompt information is used to prompt the user to select a window for sharing.
  • the prompt information displayed in the first floating layer 41 may include a screenshot 43 corresponding to the window object, a title attribute value 44 of the window, and a corresponding prompting function for prompting the user to select. Text 45.
  • the method may further include the step of: adjusting the display effect of the window object.
  • the display effect may include a colored mask effect, a border highlighting effect, and the like. That is to say, after the window object corresponding to the first cursor position is obtained, the display effect of the window object can be adjusted to make it look more conspicuous, thereby facilitating the user to know the position of the currently selected window object in the display interface. Set.
  • the prompt information displayed by the first floating layer may also be refreshed by periodically acquiring a screenshot of the window object and/or a window identifier.
  • the video screenshot of the video playing application may be periodically acquired and the obtained video screenshot may be refreshed in the first floating layer.
  • the method before the step of acquiring a screenshot of the window object and/or the window identifier, generating a corresponding prompt information according to the captured screenshot of the window object and/or the window identifier, the method further includes:
  • the initiating window object is a window object corresponding to an application that generates a screen sharing instruction.
  • the initiator of the screen sharing operation triggers the screen sharing instruction by clicking the screen sharing button (ie, the initiating button 52 in FIG. 5) in the group chat window 51, and the group chat window 51 is the initiation window.
  • the screen sharing button ie, the initiating button 52 in FIG. 5
  • the group chat window 51 is the initiation window.
  • the prompt information that the window cannot be selected may be displayed, as shown by 53 in FIG.
  • the window mask will be initiated so that the user cannot select to initiate the window for sharing, and prompts the user which screen object to initiate the screen sharing operation. .
  • the initiating window object corresponding to the screen sharing instruction may also be minimized after the screen sharing instruction is obtained.
  • Step S108 detecting whether a window selection instruction corresponding to the first cursor position is triggered, and when the window selection instruction is triggered, determining a window object corresponding to the first cursor position as a target sharing window object, and Share the target sharing window object.
  • the window selection instruction is triggered, the window object corresponding to the current first cursor position is determined as the target sharing window object. That is to say, the initiator of the screen sharing operation can move the cursor so that the first cursor position is in the display area where the window object that the user wants to share is located, and the window is selected by clicking the cursor or triggering another function key to input the instruction, that is, the trigger window.
  • Check the instruction The window object corresponding to the first cursor position is selected as the target sharing window object.
  • the step of sharing the target sharing window object may include: acquiring a terminal corresponding to the screen sharing instruction, and sharing the target sharing window object to the terminal.
  • the screen sharing instruction is initiated by the initiator of the screen sharing operation by clicking the screen sharing button on the group chat window 46 (initiating the window object) (ie, the launch button in FIG. 4). 47) Trigger, the obtained terminal corresponding to the screen sharing instruction is the terminal corresponding to other users in the group.
  • the other users refer to users other than the initiator of the screen sharing operation among the group users corresponding to the group chat window 46.
  • the user identifier of the group user corresponding to the group chat window is obtained, and then the target sharing window object is shared with the terminal corresponding to the user identifier of the group user.
  • the step of sharing the target sharing window object may further include:
  • Step S202 Acquire an operator identifier corresponding to the target sharing window object.
  • Step S204 Track the second cursor position corresponding to the operator identifier, and display a second floating layer that follows the second cursor position and corresponds to the operator identifier in the display area corresponding to the second cursor position.
  • Step S206 Generate prompt information according to the operator identifier and display it in the second floating layer.
  • the operator identifier corresponding to the target sharing window object may be an operator identifier of the user who cooperates with the target sharing window object after sharing the target sharing window object with other users. For example, if user A shares a window object to users B, C, and D, if B and C accept the share, participate in the window object. After the cooperative operation, the operator identifier corresponding to the window object includes the operator identifiers of users A, B, and C.
  • each operator identification may correspond to an independent cursor.
  • the position of the cursor in the target sharing window object is the second cursor position.
  • the second cursor position also corresponds to the operator identification, and the second cursor position may change as the operator's corresponding operator moves the cursor's trajectory.
  • the step of generating the prompt information according to the operator identifier may be specifically: acquiring an operator name and/or an operator avatar corresponding to the operator identifier, and generating prompt information according to the operator name and/or the operator avatar.
  • the prompt information can be used to distinguish an operator in a target sharing window object.
  • users A, B, and C can each have their own separate cursors.
  • Each cursor is displayed with a corresponding second floating layer that can be followed by it.
  • the second floating layer 71 corresponding to the cursor of the user A can display the avatar 72 of the user A and the nickname 73 of the user A.
  • the corresponding floating layer is displayed next to the respective cursors of the operators operating in the screen sharing, and the prompt information corresponding to the operator identifier is displayed in the second floating layer, so that each operator is provided when there are many operators It is possible to distinguish the operators corresponding to the plurality of cursors in the target sharing window object, thereby facilitating the operator to input accurately and reducing the possibility of erroneous operations.
  • the method may further include the following steps: acquiring a control trigger instruction corresponding to the second cursor position and an operator identifier; acquiring a control corresponding to the control trigger instruction in the target sharing window object, and acquiring the occupation of the control
  • the identifier of the user if not obtained, sets the operator identifier to the occupant identifier of the control, and triggers the control according to the control trigger instruction. If the occupant identifier of the control is obtained, determining whether the occupant identifier of the control is the operator identifier, if not, masking the control triggering instruction, and in the second corresponding to the operator identifier The corresponding prompt information is displayed in the floating layer.
  • the target sharing window object 81 may include a plurality of controls (such as the control 1 and the control 2 shown in FIG. 8), so as to avoid use conflicts caused by multiple operators simultaneously using the same control,
  • the control triggering instruction may be masked, and the prompt information is displayed in the second floating layer corresponding to the operator identifier to notify the operator to identify the corresponding user.
  • a vector graphic 84 indicating prohibition may be displayed on the operator avatar 83 in the second floating layer 82, indicating that the control 2 has been occupied and is inoperable.
  • the occupant identifier can be obtained, and the user is notified by the prompt information that the control has been occupied by the operator corresponding to the occupant identifier, as shown in the floating layer 85, 86 in FIG. If there is no occupant identifier, it means that the control has no other operator to operate on it, the control may be triggered according to the input control triggering instruction, and the occupant identifier of the control is set to the operation corresponding to the control triggering instruction. Identifier, indicating that the control is being used by the operator corresponding to the operator ID.
  • the method further includes:
  • Obtaining position information of the control displaying a third floating layer in a display area corresponding to the position information of the control; acquiring an occupant identifier of the control, generating prompt information according to the occupant identifier, and displaying the same on the third floating layer.
  • the third floating layer may be displayed in the adjacent area, and the prompt information corresponding to the occupant identifier of the control is displayed in the third floating layer to indicate the current operator of the control, so that the operation You can know which controls are currently being used.
  • the prompt information shown in the floating layers 85, 86 in Fig. 8 is shown.
  • the method may further include: acquiring a position corresponding to the second cursor position The control releases the instruction and the operator identifier; obtains the control corresponding to the control release instruction, and obtains the occupant identifier of the control; determines whether the operator identifier is the same as the occupant identifier of the control, and if so, removes the occupant identifier corresponding to the control.
  • a screen sharing device includes a screen sharing instruction acquisition module 102, a tracking display module 104, a prompt information generating module 106, and a window sharing module 108, wherein:
  • the screen sharing instruction acquisition module 102 is configured to obtain a screen sharing instruction.
  • the tracking display module 104 is configured to track a first cursor position corresponding to the screen sharing instruction, and display a first floating layer that follows the movement of the first cursor position in a display area corresponding to the first cursor position.
  • the prompt information generating module 106 is configured to acquire a window object corresponding to the first cursor position, obtain a screenshot of the window object and/or a window identifier, and generate corresponding prompt information according to the screenshot and/or the window identifier of the window object, at the first A prompt message is displayed in the floating layer.
  • the prompt information is used to prompt the user to select a window for sharing.
  • a window sharing module 108 configured to detect whether a window selection instruction corresponding to the first cursor position is triggered, and when the window selection instruction is triggered, the window object corresponding to the first cursor position is used as a target sharing window object, and The target sharing window object sharing.
  • the window sharing module 108 is further configured to acquire a terminal corresponding to the screen sharing instruction, and share the target sharing window object to the terminal.
  • the prompt information generating module 106 is further configured to determine whether the window object is an originating window object corresponding to the screen sharing instruction, and if not, obtain a screenshot of the window object and/or a window identifier, according to the screenshot of the window object. And/or the window identifier generates the corresponding prompt information. In an embodiment, the prompt information generating module 106 is further configured to adjust a display effect of the window object.
  • the prompt information generating module 106 is further configured to refresh the prompt information displayed by the first floating layer by periodically acquiring a screenshot of the window object and/or a window identifier.
  • the screen sharing device further includes an operator distinguishing display module 110, configured to acquire an operator identifier corresponding to the target sharing window object, and track a second cursor position corresponding to the operator identifier, and Displaying, in a display area corresponding to the second cursor position, a second floating layer that follows the second cursor position and corresponds to the operator identifier; generating prompt information according to the operator identifier, and displaying the prompt information in the second In the floating layer.
  • the prompt information is used to distinguish an operator in the target sharing window object.
  • the operator distinguishing display module 110 is further configured to obtain an operator name and/or an operator avatar corresponding to the operator identification, and generate prompt information according to the operator name and/or the operator avatar.
  • the screen sharing device further includes a control locking module 112, configured to acquire a control trigger instruction and an operator identifier corresponding to the second cursor position; and acquire a target sharing window object and the control trigger
  • the control corresponding to the instruction acquires the occupant identifier of the control. If the occupant identifier of the control is not obtained, the operator identifier is set as the occupant identifier of the control, and the control is triggered according to the control trigger instruction.
  • control locking module 112 is further configured to: when the occupant identifier of the control is obtained, determine whether the occupant identifier of the control is an operator identifier, and if not, mask the control triggering instruction, and operate and operate The corresponding prompt information is displayed in the corresponding second floating layer.
  • the prompt information is used to prompt the user that the control has been occupied by other operators.
  • the screen sharing device further includes a control state prompting module 114, configured to acquire position information of the control; display a third floating layer in a display area corresponding to the position information of the control; The occupant identifier generates a prompt message according to the occupant identifier, and displays the prompt information on the third floating layer.
  • a control state prompting module 114 configured to acquire position information of the control; display a third floating layer in a display area corresponding to the position information of the control; The occupant identifier generates a prompt message according to the occupant identifier, and displays the prompt information on the third floating layer.
  • the screen sharing device further includes a control unlocking module 116, configured to acquire a control release instruction and an operator identifier corresponding to the second cursor position, acquire a control corresponding to the control release instruction, and obtain the The occupant identifier of the control; determines whether the operator identifier is the same as the occupant identifier of the control, and if so, removes the occupant identifier corresponding to the control.
  • a control unlocking module 116 configured to acquire a control release instruction and an operator identifier corresponding to the second cursor position, acquire a control corresponding to the control release instruction, and obtain the The occupant identifier of the control; determines whether the operator identifier is the same as the occupant identifier of the control, and if so, removes the occupant identifier corresponding to the control.
  • modules in the foregoing embodiments of the present invention may be integrated into one or may be separately deployed; may be combined into one module, or may be further split into multiple sub-modules.
  • the various modules in the foregoing embodiments of the present invention may be implemented by software (for example, machine readable instructions executed by a processor stored in a computer readable medium), or may be implemented by hardware (for example, an application specific integrated circuit).
  • the processor of the ASIC is implemented by a combination of software and hardware, which is not specifically limited in the embodiment of the present invention.
  • FIG. 11 is a hardware structural diagram of a screen sharing apparatus according to an embodiment of the present invention.
  • the screen sharing device may include a port 11, a data processing unit 12, a processor 13, and a memory 14.
  • the data processing unit 12 forwards the data received from the port 11 to the processor 13 for processing, and forwards the data received from the processor 13 to the port 11 for forwarding.
  • the memory 14 stores a machine readable instruction module, which is executable by the processor 13.
  • the machine readable instruction module includes: a screen sharing instruction acquiring module 102a, a tracking display module 104a, a prompt information generating module 106a, and a window sharing module 108a. among them:
  • the screen sharing instruction acquisition module 10 2a is configured to acquire a screen sharing instruction.
  • the tracking display module 104a is configured to track a first cursor position corresponding to the screen sharing instruction, and display a first floating layer that follows the movement of the first cursor position in a display area corresponding to the first cursor position.
  • the prompt information generating module 106a is configured to acquire a window object corresponding to the first cursor position, Obtaining a screenshot of the window object and/or a window identifier, generating corresponding prompt information according to the screenshot and/or the window identifier of the window object, and displaying the prompt information in the first floating layer.
  • the prompt information is used to prompt the user to select a window for sharing.
  • a window sharing module I08a configured to detect whether a window selection instruction corresponding to the first cursor position is triggered, and when the window selection instruction is triggered, the window object corresponding to the first cursor position is used as a target sharing window object, and The target sharing window object sharing.
  • the machine readable instruction module may further include an operator distinguishing display module 110a, a control locking module 112a, a control state prompting module 114a, and a control unlocking module 116a.
  • the hardware structure diagram of the screen sharing device provided by the embodiment of the present invention can be as shown in FIG.
  • modules in the foregoing embodiments of the present invention may be integrated into one or may be separately deployed; may be combined into one module, or may be further split into multiple sub-modules.
  • the screen sharing method and apparatus in the embodiment of the present invention provide a window object for the initiator of the screen sharing operation by displaying a floating layer in a vicinity of the cursor and displaying prompt information of the window object corresponding to the cursor position in the floating layer.
  • the identification information enables the originator of the screen sharing operation to share the window object by directly moving the cursor to the display area in which the window object that it wishes to share is located, without generating an window display interface through an additional list component, thereby Reduced memory usage, improved memory utilization, and improved computer settings The running speed of the backup.
  • Hardware modules or units in various embodiments of the invention may be implemented mechanically or electronically.
  • a hardware module can include specially designed permanent circuits or logic devices (such as dedicated processors such as FPGAs or ASICs) for performing specific operations.
  • the hardware modules may also include programmable logic devices or circuits (such as including general purpose processors or other programmable processors) that are temporarily configured by software for performing particular operations.
  • programmable logic devices or circuits such as including general purpose processors or other programmable processors
  • the specific use of mechanical methods, or the use of dedicated permanent circuits, or the use of temporarily configured circuits (such as software configuration) to implement hardware modules can be determined based on cost and time considerations.
  • the present invention can be implemented by means of software plus a necessary general hardware platform, that is, by machine-readable instructions to instruct related hardware, and of course It can be done through hardware, but in many cases the former is a better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for making a
  • the terminal device (which may be a cell phone, a personal computer, a server, or a network device, etc.) performs the methods described in various embodiments of the present invention.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

一种屏幕分享方法及装置:计算机设备获取屏幕分享指令;所述计算机设备跟踪与所述屏幕分享指令对应的第一光标位置,并在与所述第一光标位置对应的显示区域展示跟随所述第一光标位置移动的第一浮动层;所述计算机设备获取所述第一光标位置对应的窗口对象,获取所述窗口对象的截图和/或窗口标识,根据所述窗口对象的截图和/或窗口标识生成第一提示信息,在所述第一浮动层中展示所述第一提示信息,其中,所述第一提示信息用于提示用户选择窗口进行分享;所述计算机设备检测与所述第一光标位置对应的窗口选中指令是否被触发,当所述窗口选中指令被触发时将与所述第一光标位置对应的窗口对象确定为目标分享窗口对象,并将所述目标分享窗口对象分享。

Description

屏幕分享方法及装置 相关文件
本申请要求于 2013 年 07 月 01 日提交中国专利局、 申请号为 201310272515.2, 发明名称为"屏幕分享方法及装置 "的中国专利申请的 优先权, 其全部内容通过引用结合在本申请中。
技术领域
本发明涉及计算机技术领域,特别是涉及一种屏幕分享方法及装置。
发明背景 在现有的屏幕分享技术中, 用户通常需要在多个运行中的窗口对象 中选出一个窗口对象作为目标分享窗口对象, 屏幕分享应用再将其分享 给其它用户。
发明内容 本发明实施例提供了一种屏幕分享方法和装置, 能够降低内存占 用, 提高内存利用率, 从而提升了计算机设备的运行速度。
一种屏幕分享方法, 包括:
计算机设备获取屏幕分享指令;
所述计算机设备跟踪与所述屏幕分享指令对应的第一光标位置, 并 在与所述第一光标位置对应的显示区域展示跟随所述第一光标位置移 动的第一浮动层;
所述计算机设备获取所述第一光标位置对应的窗口对象, 获取所述 窗口对象的截图和 /或窗口标识, 根据所述窗口对象的截图和 /或窗口标 识生成第一提示信息, 在所述第一浮动层中展示所述第一提示信息; 其 中, 所述第一提示信息用于提示用户选择窗口进行分享;
所述计算机设备检测与所述第一光标位置对应的窗口选中指令是 否被触发, 当所述窗口选中指令被触发时将与所述第一光标位置对应的 窗口对象确定为目标分享窗口对象, 并将所述目标分享窗口对象分享。 一种屏幕分享装置, 包括:
屏幕分享指令获取模块, 用于获取屏幕分享指令;
跟踪展示模块, 用于跟踪与所述屏幕分享指令对应的第一光标位 置, 并在与所述第一光标位置对应的显示区域展示跟随所述第一光标位 置移动的第一浮动层;
提示信息生成模块, 用于获取所述第一光标位置对应的窗口对象, 获取所述窗口对象的截图和 /或窗口标识, 根据所述窗口对象的截图和 / 或窗口标识生成第一提示信息, 在所述第一浮动层中展示所述第一提示 信息; 其中, 所述第一提示信息用于提示用户选择窗口进行分享;
窗口分享模块, 用于检测与所述第一光标位置对应的窗口选中指令 是否被触发, 当所述窗口选中指令被触发时将与所述第一光标位置对应 的窗口对象确定为目标分享窗口对象, 并将所述目标分享窗口对象分 享。 上述屏幕分享方法及装置, 通过在光标的邻近区域展示浮动层, 并 在浮动层中展示与光标位置对应的窗口对象的提示信息来为屏幕分享 操作的发起者提供窗口对象的辨别信息, 使得屏幕分享操作的发起者可 通过直接移动光标到其希望分享的窗口对象所处的显示区域中来将该 窗口对象分享, 而不需要通过额外的列表组件生成窗口显示界面, 从而 降低了内存占用, 提高了内存利用率, 提升了计算机的运行速度。
附图简要说明 以下附图为本发明技术方案的一些实施例, 本发明实施例并不局限 于图中示出的特征。 以下附图中, 相似的标号表示相似的元素:
图 1为一个实施例中屏幕分享操作中选取窗口对象的操作界面图; 图 2为一个实施例中计算机设备的结构示意图;
图 3为一个实施例中屏幕分享方法的流程图;
图 4为一个实施例中屏幕分享方法的操作界面图;
图 5为一个实施例中屏幕分享方法的操作界面图;
图 6为一个实施例中屏幕分享后区分多个操作者的方法流程图; 图 7为一个实施例中屏幕分享后多人协作界面的示意图; 图 8为一个实施例中屏幕分享后多人协作界面的示意图; 图 9为一个实施例中屏幕分享装置的结构示意图;
图 10为另一个实施例中屏幕分享装置的结构示意图;
图 11为一个实施例中屏幕分享装置的硬件结构示意图;
图 12为另一个实施例中屏幕分享装置的硬件结构示意图。
实施本发明的方式 为了描述上的简洁和直观, 下文通过描述若干代表性的实施例来对 本发明的方案进行阐述。 实施例中大量的细节仅用于帮助理解本发明的 方案。 但是很明显, 本发明的技术方案实现时可以不局限于这些细节。 为了避免不必要地模糊了本发明的方案, 一些实施例没有进行细致地描 述, 而是仅给出了框架。 下文中, "包括" 是指 "包括但不限于", "根 据 ... ... " 是指 "至少根据 ... ..., 但不限于仅根据 ... ... "。 由于汉语的语 言习惯, 下文中没有特别指出一个成分的数量时, 意味着该成分可以是 一个也可以是多个, 或可理解为至少一个。
如图 1所示,根据一实施例,屏幕分享应用使用额外的列表组件 101, 并在其中展示多个运行中的窗口对象对应的界面缩略图 (如图 1中的窗 口 1, 窗口 2, 以及窗口 3 ) 以供用户选择。 而额外的列表组件需要占用 额外的内存, 使得内存利用率不高, 从而降低了计算设备的运行速度。
图 2是根据本发明一个实施例的计算设备的结构示意图。 如图 2所 示, 计算机 200可以是能够实现本发明实施例提供的方法和装置的计算 设备。 例如, 计算机 200可以是个人电脑或便携设备, 例如笔记本电脑、 平板电脑、 手机或智能手机等。 计算机 200还可以是与上述设备通过网 络相连的服务器。
计算机 200可以具有不同的性能和特征。 各种可能的实现方式都在 本发明的保护范围内。 例如, 计算机 200可以包括按键区 /键盘 256, 还 可以包括一个显示器 254, 如液晶显示器(LCD ), 或者具有高级功能的 显示器, 例如触摸感应 2D或 3D显示器。 一个例子中, 一个具有 web 功能的计算机 200可以包括一个或多个物理键盘或虚拟键盘, 以及大容 量存储装置 230。
计算机 200也可以包括或允许各种操作系统 241, 例如 Windows™ 或 Linux™操作系统,或移动操作系统,如 iOS™, Android™,或 Windows Mobile™等。 计算机 200可以包括或运行各种应用程序 242, 例如屏幕 分享应用 245。 应用程序 242能够通过网络与其它设备进行通信。
此外, 计算机 200可以包括一个或多个处理器可读的非易失性存储 介质 230和一个或多个与存储介质 230通信的处理器 222。 例如, 处理 器可读的非易失性存储介质 230可以是 RAM、 闪存、 ROM、 EPROM、 EEPROM、 寄存器、 硬盘、 移动硬盘、 CD-ROM, 或其它各种形式的非 易失性存储介质。 存储介质 230可以存储一系列指令或包含指令的单元 和 /或模块, 用于完成本发明各种实施例的操作。 处理器 222可以执行上 述指令, 完成本发明各种实施例中的操作。
图 3为本发明一实施例提供的一种屏幕分享方法的流程图, 该方法 可运行于一计算机设备上, 如上述计算机 200。
如图 3所示, 该方法可包括以下步骤:
步骤 S102, 获取屏幕分享指令。
根据本发明一实施例, 屏幕分享指令可以为屏幕分享操作的触发指 令, 用户可通过点击相应的按钮或图标触发该屏幕分享指令。
步骤 S104, 跟踪与屏幕分享指令对应的第一光标位置, 并在与第一 光标位置对应的显示区域展示跟随第一光标位置移动的第一浮动层。
根据本发明一实施例, 第一光标位置为屏幕分享操作的发起者在选 择目标分享窗口对象时移动的光标的位置信息。 在检测到屏幕分享指令 被触发之后, 跟踪第一光标位置。 根据本发明一实施例, 第一浮动层可 以是通过 tips控件生成的浮动层。 第一浮动层可以是任意形状。
如图 4所示, 根据本发明一实施例, 第一浮动层 41可以是矩形, 其定位点的位置 42 即为第一光标位置。 才艮据本发明一实施例, 矩形显 示界面在用像素坐标表示时, 矩形界面元素的左上角的顶点位置为其定 位点。 例如, 若矩形界面元素的定位点的像素坐标为 (x, y ), 矩形界 面元素长和宽分别为 m和 n, 则该矩形界面元素的四个顶点的像素坐标 分别为位于左上角的顶点: (x, y )、 位于右上角的顶点: (x+m, y )、 位 于右下角的顶点: (x+m, y+n )和位于左下角的顶点: (x, y+n )。
由于用户在选择窗口对象时, 光标处于移动状态, 因此第一浮动层 的定位点跟随第一光标位置移动。
步骤 S106, 获取第一光标位置对应的窗口对象, 获取该窗口对象的 截图和 /或窗口标识, 根据该窗口对象的截图和 /或窗口标识生成相应的 提示信息, 在第一浮动层中展示所述提示信息。
窗口对象在显示界面中占据相应的显示区域。 当屏幕分享操作的发 起者移动光标进入某个窗口对象对应的显示区域后, 则根据第一光标位 置所处的显示区域即可获取到该窗口对象。 也就是说, 可跟随着第一光 标位置的移动, 获取其所处的显示区域对应的窗口对象。 例如, 当第一 光标位置由窗口对象 A所处的显示区域切换到窗口对象 B所处的显示区 域时, 则获取到的窗口对象同样由 A切换到 B。
根据本发明一实施例, 窗口标识可以是窗口对象的 ID值, 也可以 是窗口对象的 title属性值。 例如, 在 windows系统中, 窗口对象的 title 属性值可通过调用 GetWindowText等函数获取。 窗口对象的截图可以将 所述窗口标识作为参数通过调用操作系统的截图函数获取。 根据窗口对 象的截图和 /或窗口标识生成的提示信息可包含文字和 /或图片。 在一个 实施例中, 例如在 windows系统中, 可通过调用 PrintWindow等函数将 所述提示信息展示在第一浮动层中。 根据本发明实施例, 所述提示信息 用于提示用户选择窗口进行分享。
例如, 在一个应用场景中, 如图 4所示, 显示在第一浮动层 41 中 的提示信息可包括窗口对象对应的截图 43、 窗口的 title属性值 44以及 相应的提示用户进行选择的提示性文字 45。
在获取第一光标位置对应的窗口对象的步骤之后, 所述方法还可包 括以下步骤: 调整窗口对象的显示效果。 根据本发明一实施例, 显示效 果可包括有色蒙板效果和边框高亮效果等。 也就是说, 当获取到第一光 标位置对应的窗口对象后, 可通过调整该窗口对象的显示效果使其看起 来更醒目, 从而方便用户知晓其当前选择的窗口对象在显示界面中的位 置。
根据本发明一实施例, 在所述方法中, 还可通过定期获取窗口对象 的截图和 /或窗口标识刷新第一浮动层展示的提示信息。 例如, 若获取到 的窗口对象运行的是视频播放应用, 则可定期获取该视频播放应用的视 频截图并将获取到的视频截图刷新在第一浮动层中。 屏幕分享操作的发 起者在多个视频播放应用对应的窗口对象中进行选择时, 即可通过第一 浮动层中变化的截图快速判断窗口对象是否符合其要求。
在一个实施例中, 在获取窗口对象的截图和 /或窗口标识, 根据获取 到的窗口对象的截图和 /或窗口标识生成相应的提示信息的步骤之前,该 方法还包括:
判断窗口对象是否为与屏幕分享指令对应的发起窗口对象, 若否, 则执行获取窗口对象的截图和 /或窗口标识,根据获取到的窗口对象的截 图和 /或窗口标识生成相应的提示信息的步骤。
根据本发明一实施例, 发起窗口对象即为生成屏幕分享指令的应用 对应的窗口对象。 例如, 如图 5所示, 屏幕分享操作的发起者通过点击 群聊天窗口 51中的屏幕分享按钮(即图 5中的发起按钮 52 )触发屏幕 分享指令, 则该群聊天窗口 51 即为发起窗口对象。 若获取到的窗口对 象为发起窗口对象, 则可展示该窗口不可选择的提示信息, 如图 5中的 53所示。 由于发起窗口对象对应控制屏幕分享操作开启或结束的应用, 并不需要将发起窗口分享, 因此将发起窗口屏蔽使用户不可选择发起窗 口进行分享, 并提示用户是通过哪个窗口对象发起的屏幕分享操作。 在 其他实施例中, 在获取到屏幕分享指令后还可将与屏幕分享指令对应的 发起窗口对象最小化。
步骤 S108,检测与所述第一光标位置对应的窗口选中指令是否被触 发, 当所述窗口选中指令被触发时, 将与所述第一光标位置对应的窗口 对象确定为目标分享窗口对象, 并将目标分享窗口对象分享。 当窗口选中指令被触发时, 则当前第一光标位置对应的窗口对象即 被确定为目标分享窗口对象。 也就是说, 屏幕分享操作的发起者可移动 光标使得第一光标位置处于其希望分享的窗口对象所处的显示区域中, 并通过点击光标或触发其它功能键输入窗口选中指令, 也即触发窗口选 中指令。 该与第一光标位置对应的窗口对象即被选取为目标分享窗口对 象。
在本实施例中, 将目标分享窗口对象分享的步骤可包括: 获取与屏 幕分享指令对应的终端,将目标分享窗口对象分享给终端。如图 4所示, 在本实施例对应的应用场景中, 屏幕分享指令由屏幕分享操作的发起者 通过点击群聊天窗口 46 (发起窗口对象)上的屏幕分享按钮(即图 4中 的发起按钮 47 )触发, 则获取到的与屏幕分享指令对应的终端即为该群 中的其它用户对应的终端。 其中, 所述其它用户指群聊天窗口 46对应 的群用户中的除屏幕分享操作的发起者以外的用户。 可通过获取群聊天 窗口对应的群用户的用户标识, 然后将该目标分享窗口对象分享给该群 用户的用户标识对应的终端。
在一个实施例中, 如图 6所示, 将目标分享窗口对象分享的步骤之 后还可包括:
步骤 S202, 获取目标分享窗口对象对应的操作者标识。
步骤 S204, 跟踪操作者标识对应的第二光标位置, 并在与第二光标 位置对应的显示区域展示跟随第二光标位置移动的且与操作者标识对 应的第二浮动层。
步骤 S206, 根据操作者标识生成提示信息并展示在第二浮动层中。 根据本发明一实施例, 与目标分享窗口对象对应的操作者标识可以 为将目标分享窗口对象分享给其它用户后, 参与到对目标分享窗口对象 进行协同操作的用户的操作者标识。 例如, 若用户 A将某个窗口对象分 享给用户 B、 C和 D后, 若 B和 C接受了该分享, 参与到对该窗口对象 的协同操作后, 则该窗口对象对应的操作者标识即包括用户 A、 B和 C 的操作者标识。
根据本发明一实施例, 每个操作者标识可对应独立的光标。 操作者 标识对应的操作者移动其对应的光标进行操作时, 该光标在目标分享窗 口对象中的位置即为第二光标位置。 相应地, 第二光标位置也与操作者 标识对应, 第二光标位置可随着其操作者标识对应的操作者移动光标的 轨迹改变。
在本实施例中, 根据操作者标识生成提示信息的步骤可具体为: 获 取所述操作者标识对应的操作者名称和 /或操作者头像,根据操作者名称 和 /或操作者头像生成提示信息。根据本发明实施例, 所述提示信息可用 来区分目标分享窗口对象中的操作者。
例如, 如图 7所示, 用户 A、 B和 C可分别具有各自独立的光标。 每个光标旁均展示有相应的可跟随其移动第二浮动层。 例如, 用户 A的 光标对应的第二浮动层 71中则可展示用户 A的头像 72以及用户 A的昵 称 73。
在屏幕分享中协同操作的操作者各自的光标旁展示相应的第二浮 动层, 并在第二浮动层中展示与操作者标识对应的提示信息, 可在操作 者较多时, 使得每个操作者能够区分目标分享窗口对象中的多个光标各 自对应的操作者, 从而方便操作者进行准确地输入, 降低了误操作的可 能性。
在一个实施例中, 所述方法还可包括以下步骤: 获取与第二光标位 置对应的控件触发指令以及操作者标识; 获取目标分享窗口对象中与控 件触发指令对应的控件, 获取该控件的占用者标识, 若获取不到, 则将 该操作者标识设置为控件的占用者标识, 并根据控件触发指令触发该控 件。 若获取到控件的占用者标识, 判断控件的占用者标识是否为该操作 者标识, 若否, 则屏蔽控件触发指令, 且在与该操作者标识对应的第二 浮动层中展示相应的提示信息。
例如, 如图 8所示, 目标分享窗口对象 81 中可包含多个控件(如 图 8中所示的控件 1和控件 2 ),为避免多个操作者同时使用同一控件而 造成使用冲突, 可在获取到与操作者标识对应的控件触发指令后判断该 控件触发指令对应的控件是否已有其他操作者在使用, 即判断该控件是 否具有占用者标识, 若存在占用者标识且该占用者标识不为该操作者标 识, 即其他操作者正在使用该控件, 则可将控件触发指令屏蔽, 并在该 操作者标识对应的第二浮动层中展示提示信息通知该操作者标识对应 的用户该控件已被其他操作者占用。 例如图 8 中, 可在第二浮动层 82 中操作者头像 83上展示表示禁止的矢量图形 84, 表示该控件 2已被占 用不可操作。 根据本发明一实施例, 可获取占用者标识, 并通过提示信 息通知用户该控件已被该占用者标识对应的操作者占用, 如图 8中浮动 层 85、 86 中所示的提示信息。 若不存在占用者标识, 则表示该控件尚 没有其它操作者对其进行操作, 可根据输入的控件触发指令触发该控 件, 并将该控件的占用者标识设置为与该控件触发指令对应的操作者标 识, 表示该控件正在被该操作者标识对应的操作者使用。
在一个实施例中, 将操作者标识设置为控件的占用者标识的步骤之 后, 所述方法还包括:
获取所述控件的位置信息; 在与控件的位置信息对应的显示区域展 示第三浮动层; 获取控件的占用者标识, 根据占用者标识生成提示信息 并将其展示在第三浮动层上。
也就是说, 若控件被占用, 可在其临近区域展示第三浮动层, 并在 第三浮动层中展示与控件的占用者标识对应的提示信息, 以指示该控件 的当前操作者, 使得操作者能够知晓当前哪些控件正在被使用。 如图 8 中浮动层 85、 86中所示的提示信息。
在一个实施例中, 所述方法还可包括: 获取与第二光标位置对应的 控件释放指令及操作者标识; 获取控件释放指令对应的控件, 获取所述 控件的占用者标识; 判断操作者标识是否与控件的占用者标识相同, 若 是则移除控件对应的占用者标识。
也就是说, 操作者可通过输入控件释放指令释放相应的控件, 即移 除该控件对应的占用者标识, 从而使得该控件能够被其它操作者使用。 在一个实施例中, 如图 9所示, 一种屏幕分享装置, 包括屏幕分享 指令获取模块 102、 跟踪展示模块 104、 提示信息生成模块 106以及窗 口分享模块 108, 其中:
屏幕分享指令获取模块 102, 用于获取屏幕分享指令。
跟踪展示模块 104,用于跟踪与屏幕分享指令对应的第一光标位置, 并在与第一光标位置对应的显示区域展示跟随第一光标位置移动的第 一浮动层。
提示信息生成模块 106, 用于获取第一光标位置对应的窗口对象, 获取窗口对象的截图和 /或窗口标识, 根据所述窗口对象的截图和 /或窗 口标识生成相应的提示信息, 在第一浮动层中展示提示信息。 其中, 所 述提示信息用于提示用户选择窗口进行分享。
窗口分享模块 108, 用于检测与第一光标位置对应的窗口选中指令 是否被触发, 当所述窗口选中指令被触发时将与第一光标位置对应的窗 口对象作为目标分享窗口对象, 并将所述目标分享窗口对象分享。
在一个实施例中, 窗口分享模块 108还用于获取与屏幕分享指令对 应的终端, 将目标分享窗口对象分享给该终端。
在一个实施例中, 提示信息生成模块 106还用于判断窗口对象是否 为与屏幕分享指令对应的发起窗口对象, 若否, 获取窗口对象的截图和 /或窗口标识, 根据所述窗口对象的截图和 /或窗口标识生成相应的提示 信息。 在一个实施例中, 提示信息生成模块 106还用于调整窗口对象的显 示效果。
在一个实施例中, 提示信息生成模块 106还用于通过定期获取窗口 对象的截图和 /或窗口标识刷新第一浮动层展示的提示信息。
在一个实施例中, 如图 10所示, 屏幕分享装置还包括操作者区分 展示模块 110, 用于获取目标分享窗口对象对应的操作者标识; 跟踪该 操作者标识对应的第二光标位置, 并在与第二光标位置对应的显示区域 展示跟随第二光标位置移动的且与该操作者标识对应的第二浮动层; 根 据该操作者标识生成提示信息, 并将所述提示信息展示在第二浮动层 中。 其中, 所述提示信息用于区分所述目标分享窗口对象中的操作者。
在一个实施例中, 操作者区分展示模块 110还用于获取操作者标识 对应的操作者名称和 /或操作者头像, 根据操作者名称和 /或操作者头像 生成提示信息。
在一个实施例中, 如图 10所示, 屏幕分享装置还包括控件加锁模 块 112,用于获取与第二光标位置对应的控件触发指令以及操作者标识; 获取目标分享窗口对象中与控件触发指令对应的控件, 获取该控件的占 用者标识, 若获取不到所述控件的占用者标识, 将所述操作者标识设置 为该控件的占用者标识, 并根据控件触发指令触发所述控件。
在一个实施例中, 控件加锁模块 112还用于在获取到控件的占用者 标识时, 判断控件的占用者标识是否为操作者标识, 若否, 则屏蔽述控 件触发指令, 且在与操作者标识对应的第二浮动层中展示相应的提示信 息。 其中, 所述提示信息用于提示用户所述控件已被其他操作者占用。
在一个实施例中, 如图 10所示, 屏幕分享装置还包括控件状态提 示模块 114, 用于获取控件的位置信息; 在与控件的位置信息对应的显 示区域展示第三浮动层; 获取控件的占用者标识, 根据占用者标识生成 提示信息, 并将所述提示信息展示在第三浮动层上。 在一个实施例中, 如图 10所示, 屏幕分享装置还包括控件解锁模 块 116, 用于获取与第二光标位置对应的控件释放指令及操作者标识; 获取控件释放指令对应的控件, 获取该控件的占用者标识; 判断操作者 标识是否与控件的占用者标识相同, 若是则移除控件对应的占用者标 识。
上述本发明实施例中的模块可以集成于一体, 也可以分离部署; 可 以合并为一个模块, 也可以进一步拆分成多个子模块。
上述本发明实施例中的各个模块可以由软件实现(例如存储在计算 机可读取介质中的由处理器执行的机器可读指令), 也可以由硬件实现 (例如专用集成电路(Application Specific Integrated Circuit, ASIC ) 的 处理器), 或者由软件和硬件的结合实现, 本发明实施例不作具体限定。
图 11是本发明实施例提供的屏幕分享装置的硬件结构图。 如图 11 所示, 该屏幕分享装置可包括端口 11, 数据处理单元 12, 处理器 13, 以及存储器 14。 其中, 所述数据处理单元 12将从所述端口 11接收的数 据转发至所述处理器 13进行处理, 以及, 将从所述处理器 13接收的数 据转发至所述端口 11进行转发。 所述存储器 14存储有机器可读指令模 块, 所述机器可读指令模块可被所述处理器 13执行。 其中, 所述机器 可读指令模块包括: 屏幕分享指令获取模块 102a、 跟踪展示模块 104a、 提示信息生成模块 106a以及窗口分享模块 108a。 其中:
屏幕分享指令获取模块 102a, 用于获取屏幕分享指令。 跟踪展示模块 104a, 用于跟踪与屏幕分享指令对应的第一光标位 置, 并在与第一光标位置对应的显示区域展示跟随第一光标位置移动的 第一浮动层。
提示信息生成模块 106a, 用于获取第一光标位置对应的窗口对象, 获取窗口对象的截图和 /或窗口标识, 根据所述窗口对象的截图和 /或窗 口标识生成相应的提示信息, 在第一浮动层中展示提示信息。 其中, 所 述提示信息用于提示用户选择窗口进行分享。
窗口分享模块 I08a,用于检测与第一光标位置对应的窗口选中指令 是否被触发, 当所述窗口选中指令被触发时将与第一光标位置对应的窗 口对象作为目标分享窗口对象, 并将所述目标分享窗口对象分享。
根据本发明实施例, 所述机器可读指令模块还可包括操作者区分展 示模块 110a、 控件加锁模块 112a、 控件状态提示模块 114a以及控件解 锁模块 116a。
上述本发明实施例各模块的功能可参照前述方法实施例及装置实 施例中屏幕分享指令获取模块 102、 跟踪展示模块 104、 提示信息生成 模块 106、 窗口分享模块 108、 操作者区分展示模块 110、 控件加锁模块 112、控件状态提示模块 114以及控件解锁模块 116的相关描述,本发明 实施例在此不再赘述。
基于以上描述, 本发明实施例提供的屏幕分享装置的硬件结构图可 如图 12所示。
上述本发明实施例中的模块可以集成于一体, 也可以分离部署; 可 以合并为一个模块, 也可以进一步拆分成多个子模块。
上述本发明实施例中的屏幕分享方法及装置, 通过在光标的邻近区 域展示浮动层, 并在浮动层中展示与光标位置对应的窗口对象的提示信 息来为屏幕分享操作的发起者提供窗口对象的辨别信息, 使得屏幕分享 操作的发起者可通过直接移动光标到其希望分享的窗口对象所处的显 示区域中来将该窗口对象分享, 而不需要通过额外的列表组件生成窗口 显示界面, 从而降低了内存占用, 提高了内存利用率, 提升了计算机设 备的运行速度。
本发明各实施方式中的硬件模块或单元可以以机械方式或电子方 式实现。 例如, 一个硬件模块可以包括专门设计的永久性电路或逻辑器 件 (如专用处理器, 如 FPGA或 ASIC )用于完成特定的操作。 硬件模 块也可以包括由软件临时配置的可编程逻辑器件或电路(如包括通用处 理器或其它可编程处理器)用于执行特定操作。至于具体釆用机械方式, 或是釆用专用的永久性电路, 或是釆用临时配置的电路(如由软件进行 配置)来实现硬件模块, 可以根据成本和时间上的考虑来决定。
通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到 本发明可借助软件加必需的通用硬件平台的方式来实现, 即通过机器可 读指令来指令相关的硬件来实现, 当然也可以通过硬件, 但很多情况下 前者是更佳的实施方式。 基于这样的理解, 本发明的技术方案本质上或 者说对现有技术做出贡献的部分可以以软件产品的形式体现出来, 该计 算机软件产品存储在一个存储介质中, 包括若干指令用以使得一台终端 设备(可以是手机, 个人计算机, 服务器, 或者网络设备等)执行本发 明各个实施例所述的方法。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部 分流程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序 可存储于一计算机可读取存储介质中, 该程序在执行时, 可包括如上述 各方法的实施例的流程。 其中, 所述的存储介质可为磁碟、 光盘、 只读 存储记忆体(Read-Only Memory, ROM )或随机存储记忆体(Random Access Memory, RAM )等。
本发明实施方式中的附图为一些实施例, 其中的模块和步骤不是实 现本发明所必须的。 所述的模块可以结合成一个模块或者进一步分为多 个子模块。
上所述仅为本发明的实施例而已, 并非用于限定本发明的保护范 围。 凡在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进 等, 均应包含在本发明的保护范围之内。 综上所述, 权利要求的范围不 应局限于以上描述的例子中的实施方式, 而应当将说明书作为一个整体 并给予最宽泛的解释。

Claims

权利要求书
1、 一种屏幕分享方法, 包括:
计算机设备获取屏幕分享指令;
所述计算机设备跟踪与所述屏幕分享指令对应的第一光标位置, 并 在与所述第一光标位置对应的显示区域展示跟随所述第一光标位置移 动的第一浮动层;
所述计算机设备获取所述第一光标位置对应的窗口对象, 获取所述 窗口对象的截图和 /或窗口标识, 根据所述窗口对象的截图和 /或窗口标 识生成第一提示信息, 在所述第一浮动层中展示所述第一提示信息; 其 中, 所述第一提示信息用于提示用户选择窗口进行分享;
所述计算机设备检测与所述第一光标位置对应的窗口选中指令是 否被触发, 当所述窗口选中指令被触发时将与所述第一光标位置对应的 窗口对象确定为目标分享窗口对象, 并将所述目标分享窗口对象分享。
2、 根据权利要求 1 所述的屏幕分享方法, 其特征在于, 所述将目 标分享窗口对象分享的步骤包括:
获取与所述屏幕分享指令对应的终端, 将所述目标分享窗口对象分 享给所述终端。
3、 根据权利要求 2 所述的屏幕分享方法, 其特征在于, 所述获取 所述窗口对象的截图和 /或窗口标识, 根据所述窗口对象的截图和 /或窗 口标识生成第一提示信息的步骤之前该方法还包括:
判断所述窗口对象是否为与所述屏幕分享指令对应的发起窗口对 象, 若否, 获取所述窗口对象的截图和 /或窗口标识, 根据所述窗口对象 的截图和 /或窗口标识生成所述第一提示信息。
4、 根据权利要求 1 所述的屏幕分享方法, 其特征在于, 所述获取 所述第一光标位置对应的窗口对象的步骤之后该方法还包括: 调整所述窗口对象的显示效果。
5、 根据权利要求 1 所述的屏幕分享方法, 其特征在于, 所述方法 还包括:
通过定期获取所述窗口对象的截图和 /或窗口标识刷新所述第一浮 动层展示的所述第一提示信息。
6、 根据权利要求 1 所述的屏幕分享方法, 其特征在于, 所述将目 标分享窗口对象分享的步骤之后该方法还包括:
获取所述目标分享窗口对象对应的操作者标识;
跟踪所述操作者标识对应的第二光标位置, 并在与所述第二光标位 置对应的显示区域展示跟随所述第二光标位置移动的且与所述操作者 标识对应的第二浮动层;
根据所述操作者标识生成第二提示信息, 并将所述第二提示信息展 示在所述第二浮动层中; 其中, 所述第二提示信息用于区分所述目标分 享窗口对象中的操作者。
7、 根据权利要求 6 所述的屏幕分享方法, 其特征在于, 所述根据 所述操作者标识生成第二提示信息的步骤包括:
获取所述操作者标识对应的操作者名称和 /或操作者头像,根据所述 操作者名称和 /或操作者头像生成所述第二提示信息。
8、 根据权利要求 6 所述的屏幕分享方法, 其特征在于, 所述方法 还包括:
获取与所述第二光标位置对应的控件触发指令以及操作者标识; 获取所述目标分享窗口对象中与所述控件触发指令对应的控件, 获 取所述控件的占用者标识,
若获取不到所述控件的占用者标识, 将所述操作者标识设置为所述 控件的占用者标识, 并根据所述控件触发指令触发所述控件。
9、 根据权利要求 8 所述的屏幕分享方法, 其特征在于, 该方法还 包括:
若获取到所述控件的占用者标识, 判断所述控件的占用者标识是否 为所述操作者标识, 若否, 则屏蔽所述控件触发指令, 且在与所述操作 者标识对应的第二浮动层中展示第三提示信息; 其中, 所述第三提示信 息用于提示用户所述控件已被其他操作者占用。
10、 根据权利要求 8所述的屏幕分享方法, 其特征在于, 所述将所 述操作者标识设置为所述控件的占用者标识的步骤之后该方法还包括: 获取所述控件的位置信息;
在与所述控件的位置信息对应的显示区域展示第三浮动层; 获取所述控件的占用者标识, 根据所述占用者标识生成提示信息, 并将所述提示信息展示在所述第三浮动层上。
11、 根据权利要求 8所述的屏幕分享方法, 其特征在于, 所述方法 还包括:
获取与所述第二光标位置对应的控件释放指令及操作者标识; 获取所述控件释放指令对应的控件, 获取所述控件的占用者标识; 判断所述操作者标识是否与所述控件的占用者标识相同, 若是则移 除所述控件对应的占用者标识。
12、 一种屏幕分享装置, 其特征在于, 包括:
屏幕分享指令获取模块, 用于获取屏幕分享指令;
跟踪展示模块, 用于跟踪与所述屏幕分享指令对应的第一光标位 置, 并在与所述第一光标位置对应的显示区域展示跟随所述第一光标位 置移动的第一浮动层;
提示信息生成模块, 用于获取所述第一光标位置对应的窗口对象, 获取所述窗口对象的截图和 /或窗口标识, 根据所述窗口对象的截图和 / 或窗口标识生成第一提示信息, 在所述第一浮动层中展示所述第一提示 信息; 其中, 所述第一提示信息用于提示用户选择窗口进行分享; 窗口分享模块, 用于检测与所述第一光标位置对应的窗口选中指令 是否被触发, 当所述窗口选中指令被触发时将与所述第一光标位置对应 的窗口对象确定为目标分享窗口对象, 并将所述目标分享窗口对象分 享。
13、 根据权利要求 12 所述的屏幕分享装置, 其特征在于, 所述窗 口分享模块还用于获取与所述屏幕分享指令对应的终端, 将所述目标分 享窗口对象分享给所述终端。
14、 根据权利要求 13 所述的屏幕分享方法, 其特征在于, 所述提 示信息生成模块还用于判断所述窗口对象是否为与所述屏幕分享指令 对应的发起窗口对象, 若否, 获取所述窗口对象的截图和 /或窗口标识, 根据所述窗口对象的截图和 /或窗口标识生成所述第一提示信息。
15、 根据权利要求 12 所述的屏幕分享装置, 其特征在于, 所述提 示信息生成模块还用于调整所述窗口对象的显示效果。
16、 根据权利要求 12 所述的屏幕分享装置, 其特征在于, 所述提 示信息生成模块还用于通过定期获取所述窗口对象的截图和 /或窗口标 识刷新所述第一浮动层展示的所述第一提示信息。
17、 根据权利要求 12 所述的屏幕分享装置, 其特征在于, 所述装 置还包括操作者区分展示模块, 用于获取所述目标分享窗口对象对应的 操作者标识; 跟踪所述操作者标识对应的第二光标位置, 并在与所述第 二光标位置对应的显示区域展示跟随所述第二光标位置移动的且与所 述操作者标识对应的第二浮动层; 根据所述操作者标识生成第二提示信 息, 并将所述第二提示信息展示在所述第二浮动层中; 其中, 所述第二 提示信息用于区分所述目标分享窗口对象中的操作者。
18、 根据权利要求 17 所述的屏幕分享装置, 其特征在于, 所述操 作者区分展示模块还用于获取所述操作者标识对应的操作者名称和 /或 操作者头像,根据所述操作者名称和 /或操作者头像生成所述第二提示信 息。
19、 根据权利要求 17 所述的屏幕分享装置, 其特征在于, 所述装 置还包括控件加锁模块, 用于获取与所述第二光标位置对应的控件触发 指令以及操作者标识; 获取所述目标分享窗口对象中与所述控件触发指 令对应的控件, 获取所述控件的占用者标识, 若获取不到所述控件的占 用者标识, 将所述操作者标识设置为所述控件的占用者标识, 并根据所 述控件触发指令触发所述控件。
20、 根据权利要求 19 所述的屏幕分享装置, 其特征在于, 所述控 件加锁模块还用于在获取到所述控件的占用者标识时, 判断所述控件的 占用者标识是否为所述操作者标识, 若否, 则屏蔽所述控件触发指令, 且在与所述操作者标识对应的第二浮动层中展示第三提示信息; 其中, 所述第三提示信息用于提示用户所述控件已被其他操作者占用。
21、 根据权利要求 19 所述的屏幕分享装置, 其特征在于, 所述装 置还包括控件状态提示模块, 用于获取所述控件的位置信息; 在与所述 控件的位置信息对应的显示区域展示第三浮动层; 获取所述控件的占用 者标识, 根据所述占用者标识生成提示信息, 并将所述提示信息展示在 所述第三浮动层上。
22、 根据权利要求 19 所述的屏幕分享装置, 其特征在于, 所述装 置还包括控件解锁模块, 用于获取与所述第二光标位置对应的控件释放 指令及操作者标识; 获取所述控件释放指令对应的控件, 获取所述控件 的占用者标识; 判断所述操作者标识是否与所述控件的占用者标识相 同, 若是则移除所述控件对应的占用者标识。
PCT/CN2014/081324 2013-07-01 2014-07-01 屏幕分享方法及装置 WO2015000393A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310272515.2 2013-07-01
CN201310272515.2A CN104281356B (zh) 2013-07-01 2013-07-01 屏幕分享方法及装置

Publications (1)

Publication Number Publication Date
WO2015000393A1 true WO2015000393A1 (zh) 2015-01-08

Family

ID=52143103

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/081324 WO2015000393A1 (zh) 2013-07-01 2014-07-01 屏幕分享方法及装置

Country Status (2)

Country Link
CN (1) CN104281356B (zh)
WO (1) WO2015000393A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108415781A (zh) * 2018-01-30 2018-08-17 努比亚技术有限公司 一种显示控制方法、终端及计算机可读存储介质
CN109271228A (zh) * 2018-09-28 2019-01-25 珠海市君天电子科技有限公司 应用的界面功能识别方法、装置及电子设备
CN111506244A (zh) * 2020-04-24 2020-08-07 东莞市精驰软件有限公司 控件拖拽显示方法、系统、智能终端及存储介质
CN111582996A (zh) * 2020-05-20 2020-08-25 拉扎斯网络科技(上海)有限公司 业务信息的展示方法及装置

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325666B (zh) * 2015-07-08 2019-11-19 腾讯科技(深圳)有限公司 一种屏幕分享方法、装置及服务器
CN106547792B (zh) * 2015-09-22 2020-08-25 阿里巴巴集团控股有限公司 一种图片分享方法及装置
CN106528021A (zh) * 2016-10-27 2017-03-22 三星电子(中国)研发中心 屏幕内容共享方法及装置
CN108933965B (zh) * 2017-05-26 2022-06-10 腾讯科技(深圳)有限公司 屏幕内容共享方法、装置及存储介质
CN112130794B8 (zh) * 2018-02-05 2022-12-30 陕西精诚展览装饰有限公司 多屏幕拼接标牌的数据交互方法
CN111488190B (zh) * 2020-03-31 2021-10-15 腾讯科技(深圳)有限公司 屏幕分享方法、装置、计算机设备和存储介质
CN113139112B (zh) * 2021-05-07 2023-02-03 网易(杭州)网络有限公司 信息查询处理方法、装置、终端设备及存储介质
CN113805990B (zh) * 2021-08-24 2024-02-02 支付宝(杭州)信息技术有限公司 展位页面处理方法、装置、设备及系统
CN114546229B (zh) * 2022-01-14 2023-09-22 阿里巴巴(中国)有限公司 信息处理方法、截屏方法及电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008310587A (ja) * 2007-06-14 2008-12-25 Mitsubishi Electric Corp ウインドウ共有装置およびそのプログラム
CN101583009A (zh) * 2009-06-18 2009-11-18 中兴通讯股份有限公司 可视终端及其实现界面内容共享的方法
CN101795240A (zh) * 2009-02-03 2010-08-04 宏碁股份有限公司 即时数据分享系统及其机器可读取媒体
CN102938834A (zh) * 2012-11-21 2013-02-20 北京佳讯飞鸿电气股份有限公司 一种多屏多视频缩微视图调度系统及调度操作方法

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090265487A1 (en) * 2008-04-16 2009-10-22 Techbridge, Inc. Method and System For Synchronization Indicator Enabled Sharing
CN101447998B (zh) * 2008-12-25 2012-07-11 广东威创视讯科技股份有限公司 桌面共享方法及系统
JP5369702B2 (ja) * 2009-01-23 2013-12-18 セイコーエプソン株式会社 共有情報表示装置、共有情報表示方法およびコンピュータプログラム

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008310587A (ja) * 2007-06-14 2008-12-25 Mitsubishi Electric Corp ウインドウ共有装置およびそのプログラム
CN101795240A (zh) * 2009-02-03 2010-08-04 宏碁股份有限公司 即时数据分享系统及其机器可读取媒体
CN101583009A (zh) * 2009-06-18 2009-11-18 中兴通讯股份有限公司 可视终端及其实现界面内容共享的方法
CN102938834A (zh) * 2012-11-21 2013-02-20 北京佳讯飞鸿电气股份有限公司 一种多屏多视频缩微视图调度系统及调度操作方法

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108415781A (zh) * 2018-01-30 2018-08-17 努比亚技术有限公司 一种显示控制方法、终端及计算机可读存储介质
CN109271228A (zh) * 2018-09-28 2019-01-25 珠海市君天电子科技有限公司 应用的界面功能识别方法、装置及电子设备
CN111506244A (zh) * 2020-04-24 2020-08-07 东莞市精驰软件有限公司 控件拖拽显示方法、系统、智能终端及存储介质
CN111582996A (zh) * 2020-05-20 2020-08-25 拉扎斯网络科技(上海)有限公司 业务信息的展示方法及装置
CN111582996B (zh) * 2020-05-20 2023-11-24 拉扎斯网络科技(上海)有限公司 业务信息的展示方法及装置

Also Published As

Publication number Publication date
CN104281356A (zh) 2015-01-14
CN104281356B (zh) 2018-09-28

Similar Documents

Publication Publication Date Title
WO2015000393A1 (zh) 屏幕分享方法及装置
US10445132B2 (en) Method and apparatus for switching applications
JP6553719B2 (ja) 画面分割表示方法および装置
CN107037949B (zh) 一种分屏显示方法及装置
AU2016278358B2 (en) Method and terminal for locking target in game scene
WO2017000350A1 (zh) 一种基于触摸屏终端的解锁方法、装置和触摸屏终端
US20190212916A1 (en) Touch screen-based control method and apparatus
US10572647B2 (en) Touchscreen unlocking method and apparatus
WO2017054450A1 (zh) 一种信息处理方法、终端和计算机存储介质
KR20180005222A (ko) 정보 처리 방법, 단말 및 컴퓨터 저장 매체
US10946277B2 (en) Method and apparatus for controlling virtual object, and storage medium
EP2722730B1 (en) Mobile terminal and method for moving cursor thereof
JP2020036907A (ja) 情報処理方法、端末及びコンピュータ記憶媒体
WO2016119673A1 (zh) 应用快速启动方法和系统、计算机存储介质
WO2015103993A1 (en) Chat window presentation control method and system
CA2989209A1 (en) Method for controlling interaction with virtual target, terminal, and storage medium
WO2014121673A1 (zh) 一种触摸屏控制方法及设备
US20150186004A1 (en) Multimode gesture processing
WO2016192521A1 (zh) 一种显示控制方法、装置及终端
CN109726539B (zh) 应用开启方法、装置、终端及存储介质
CN105739817B (zh) 一种图标隐藏的方法、装置及移动终端
WO2015110060A1 (en) Filter realization method and apparatus of camera application
WO2019242457A1 (zh) 一种应用页面展示方法及移动终端
US20190155462A1 (en) Method for Viewing Application Program, Graphical User Interface, and Terminal
WO2019242458A1 (zh) 一种应用程序启动方法、装置及设备

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 310516)

122 Ep: pct application non-entry in european phase

Ref document number: 14820522

Country of ref document: EP

Kind code of ref document: A1