CN112584226A - Screen capturing method and device for sharing desktop - Google Patents
Screen capturing method and device for sharing desktop Download PDFInfo
- Publication number
- CN112584226A CN112584226A CN202110207464.XA CN202110207464A CN112584226A CN 112584226 A CN112584226 A CN 112584226A CN 202110207464 A CN202110207464 A CN 202110207464A CN 112584226 A CN112584226 A CN 112584226A
- Authority
- CN
- China
- Prior art keywords
- screenshot
- screen capture
- candidate
- memory
- key frame
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000004590 computer program Methods 0.000 claims description 9
- 230000006870 function Effects 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 3
- 230000002452 interceptive effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4334—Recording operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a screen capturing method and device for sharing a desktop. The method comprises the following steps: storing the video-decoded key frame of the shared desktop into a memory; if a screen capture trigger event is identified when the shared desktop is displayed, capturing the content of a key frame in the memory before the screen capture trigger moment to obtain a candidate screen capture; and displaying the candidate screenshot. According to the invention, through the storage of the key frame of the shared desktop, candidate screenshots before the screenshot triggering moment can be provided for the user after the user triggers the screenshot, so that the screenshot tracing function is realized.
Description
Technical Field
The invention relates to the technical field of online conferences, in particular to a screen capturing method and device for sharing a desktop.
Background
At present, a remote network conference system is widely used, and users at different places log in a conference through a conference terminal. The network conference usually has an interface sharing function, namely, a speaker shares a desktop of the speaker, and other participants can display an interface on a terminal of the speaker on a local terminal, so that the communication effect is improved. During the process of sharing the desktop by the speaker, the participants often want to capture the content of interest in the shared desktop, and then save the content for later use. Currently, a participant can generally adopt a screen capture operation supported by an operating system of a terminal or a screen capture tool provided by a conference system to capture the current screen content. However, the shared desktop is usually controlled by the main speaker, and when the participant tries to capture the screen, the main speaker may have switched the shared content, and the picture captured by the above capturing manner is usually the picture triggering the screen capture time, and has no traceability, so that the participant may miss the content which the participant wants to capture the screen.
Disclosure of Invention
In order to solve the problems, the invention provides a screen capturing method and device for sharing a desktop.
The invention relates to a screen capturing method for sharing a desktop, which comprises the following steps:
storing the video-decoded key frame of the shared desktop into a memory;
if a screen capture trigger event is identified when the shared desktop is displayed, capturing the content of a key frame in the memory before the screen capture trigger moment to obtain a candidate screen capture;
and displaying the candidate screenshot.
Optionally, if the screen capture trigger event specifies a screen capture area, the capturing the content of the key frame in the memory before the screen capture trigger time to obtain a candidate screen capture, including:
acquiring coordinates of a designated screen capture area;
and intercepting the content of the screenshot area corresponding to the key frame before the screenshot triggering time in the memory according to the coordinates to obtain the candidate screenshot.
Optionally, the candidate screenshot is intercepted as follows:
and intercepting the content of the key frame in a first preset time period before the screen capture triggering time in the memory to obtain a candidate screenshot.
Optionally, when storing the key frame, the method further includes:
and setting the storage time length of the key frame so as to destroy the key frame after the storage time length of the key frame reaches the storage time length, wherein the storage time length is greater than or equal to the time length of the first preset time period.
Optionally, the candidate screenshot is intercepted as follows:
and intercepting the contents of a first preset number of key frames before the screen capture triggering moment in the memory to obtain a candidate screenshot.
Optionally, the method further comprises:
and destroying the key frames exceeding a second preset number according to the storage time sequence of the key frames, wherein the second preset number is greater than or equal to the first preset number.
Optionally, the method further comprises:
displaying a screenshot of the shared desktop at the screenshot triggering moment;
and the display mode of the screenshot of the shared desktop at the screenshot triggering moment is different from the display mode of the candidate screenshot.
A second aspect of the present invention relates to a screen capture apparatus for sharing a desktop, comprising:
the key frame storage module is used for storing the key frames of the shared desktop after the video is decoded into a memory;
the screen capture processing module is used for identifying a screen capture trigger event, and if the screen capture trigger event is identified when the shared desktop is displayed, capturing the content of a key frame before the screen capture trigger time in the memory to obtain a candidate screen capture;
and the display module is used for displaying the candidate screenshot.
A third aspect of the invention relates to a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the method according to the first aspect.
A fourth aspect of the invention relates to an electronic device comprising a memory having stored thereon a computer program and a processor which, when executing the program, implements the method according to the first aspect.
According to the method and the device, the video-decoded key frame of the shared desktop is stored, after the screen capture trigger event is identified, the candidate screenshot is provided for the user according to the key frame stored before the screen capture trigger time, so that the user can obtain the content of the screen capture desired before the screen capture trigger time, and the screen capture tracing function is realized. Therefore, the content needing to be shot can be obtained, a desktop sharer does not need to be disturbed, and the user experience is better.
Drawings
FIG. 1 is a flowchart illustrating a screen capture method for sharing a desktop according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a screen capture method when sharing a desktop according to another embodiment of the present invention;
FIG. 3 is a schematic diagram of a screen capture process when sharing a desktop according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a screenshot scenario according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a screen capture device for sharing a desktop according to an embodiment of the present invention;
FIG. 6 is a block schematic diagram of an exemplary electronic device capable of implementing embodiments of the present invention.
Detailed Description
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Referring to fig. 1, a flowchart illustrating a screen capture method when sharing a desktop according to an embodiment of the present invention is shown. As shown in fig. 1, an embodiment of the present invention provides a screen capturing method for sharing a desktop, including:
and S101, storing the video-decoded key frame of the shared desktop to a memory.
In practical applications, in a work flow of desktop sharing, a shared desktop provided by a desktop sharer is usually transmitted to a terminal of a user as a participant through a server after being subjected to video coding. And then, the terminal of the user decodes the video of the shared desktop and displays the decoded video to the user.
In some embodiments of the present invention, after the video decoding is performed on the shared desktop by the user's terminal, the key frame of the shared desktop can be identified, and the key frame of the shared desktop after the video decoding is stored in the memory. It will be appreciated that the keyframes of the shared desktop may be identified using techniques commonly used by those skilled in the art.
S102, if the screen capture trigger event is identified when the shared desktop is displayed, capturing the content of the key frame before the screen capture trigger moment in the memory to obtain the candidate screen capture.
In some embodiments of the present invention, when displaying the video-decoded shared desktop, a user may perform a screen capture operation on the shared desktop currently displayed by the terminal. After the user executes the screen capture operation, the terminal of the user identifies the screen capture trigger event, and then, the key frame before the screen capture trigger time can be obtained from the memory, and the content of the key frame is captured, so as to obtain the candidate screen capture corresponding to the key frame before the screen capture trigger time.
It can be understood that, in the initial stage of sharing, the memory includes the keyframe of the initial shared desktop, and therefore, if a screenshot trigger event is identified when the initial shared desktop is displayed, the candidate screenshot corresponding to the keyframe before the screenshot trigger time includes the candidate screenshot corresponding to the keyframe of the initial shared desktop.
It can be understood that the screenshot triggering event occurs in the display phase of the shared desktop, and therefore, the key frame of the currently displayed shared desktop is included in the candidate screenshot corresponding to the key frame before the screenshot triggering time.
In practical application, a user can designate a screen capture area according to different requirements of the user or does not designate the screen capture area when performing screen capture operation.
Optionally, in some embodiments of the present invention, if a screenshot area is selected when a user performs a screenshot operation, it indicates that a screenshot triggering event specifies the screenshot area, and the capturing content of a key frame before the screenshot triggering time in the memory to obtain a candidate screenshot may include: and acquiring the coordinates of the appointed screenshot area, and intercepting the content of the screenshot area corresponding to the key frame before the screenshot triggering moment in the memory according to the coordinates to obtain the candidate screenshot.
Optionally, in some embodiments of the present invention, in a case that the user does not specify the screen capture area, the candidate screen capture may be captured according to the default coordinates of the screen capture area. The default screen capture area may be the entire display area of the user terminal, or may be a pre-selected display area.
And S103, displaying the candidate screenshot.
Specifically, after the candidate screenshot is captured in step S102, the terminal may display a plurality of captured candidate screenshots for the user to select.
In some embodiments of the present invention, the displayed candidate screenshots are interactive pictures, and the user may select one or more candidate screenshots as the final screenshot result.
According to the screenshot method provided by the embodiment of the invention, the video-decoded key frame of the shared desktop is stored, and after the screenshot trigger event is identified, the candidate screenshot is provided for the user according to the stored key frame before the screenshot trigger time, so that the user can obtain the content of the screenshot before the screenshot trigger time, and the screenshot tracing function is realized. Therefore, the content needing to be shot can be obtained, a desktop sharer does not need to be disturbed, and the user experience is better.
Regarding candidate screenshots, in some embodiments of the invention, the screenshots may be intercepted as follows: and intercepting the content of the key frame in a first preset time period before the screen capture triggering time in the memory to obtain a candidate screenshot. In practical application, the content of the key frame in a first preset time period before the screen capture trigger time in the memory can be extracted first, and then the extracted content is captured to obtain the candidate screen capture. The duration of the first preset time period is set by a person skilled in the art according to actual needs, and may be set to 10 seconds, 5 seconds, or the like, for example.
Optionally, in some embodiments of the present invention, the candidate screenshot may be intercepted as follows: and intercepting the contents of a first preset number of key frames before the screen capture triggering moment in the memory to obtain a candidate screenshot. In practical application, the contents of a first preset number of key frames before the screen capture trigger time in the memory can be extracted first, and then the extracted contents are captured to obtain a candidate screen capture. The first preset number is set by a person skilled in the art according to actual requirements, and may be set to 3 frames, 5 frames, 10 frames, and so on, for example. It can be understood that, in the case that the number of the keyframes before the screen capture trigger time in the memory is less than the first preset number, all the keyframes before the screen capture trigger time in the memory may be captured as the candidate screenshots.
In practical application, after extracting the content of the key frames in a first preset time period before the screen capture trigger time in the memory, or extracting the content of a first preset number of key frames before the screen capture trigger time in the memory, if the screen capture trigger event designates the screen capture area, the content of the designated screen capture area can be captured as a candidate screen capture; if the screen capture trigger event does not specify the screen capture area, all the extracted contents can be captured as candidate screen captures, or the contents of a default screen capture area can be captured as candidate screen captures.
Further, in order to avoid occupying too much memory, a storage duration may be set when storing a key frame, so that the key frame is destroyed after the storage duration of the key frame reaches the storage duration. The storage duration is greater than or equal to the duration of the first preset time period, and the storage duration is set by a person skilled in the art according to actual needs. For example, based on the consideration of the traceability, the saving time length may be longer than the time length of the first preset time period, and based on the consideration of the memory, the saving time length may be equal to the time length of the first preset time period.
Optionally, in some embodiments of the present invention, when the storage duration is longer than the duration of the first preset time period, the content of the key frame in the first preset time period before the screen capture trigger time in the memory needs to be captured according to the storage time sequence of the key frame.
Optionally, in some embodiments of the present invention, the storage duration is equal to the duration of the first preset time period, and all the keyframes stored in the memory are keyframes within the first preset time period before the screen capture trigger time, so that the content of each keyframe in the memory can be captured one by one to obtain a candidate screenshot, and the keyframes within the first preset time period before the screen capture trigger time do not need to be identified according to the storage time sequence of the keyframes.
Optionally, in some embodiments of the present invention, if the content of the first preset number of key frames before the screen capture trigger time in the memory is captured to obtain the candidate screen capture, the key frames exceeding the second preset number may be destroyed according to the storage time sequence of the key frames. The second preset number is set by a person skilled in the art according to actual requirements, and the second preset number is greater than or equal to the first preset number. For example, when the first preset number is 5 frames, the key frames before 5 frames or 10 frames may be destroyed.
On the basis of the embodiment shown in fig. 1, another embodiment of the present invention provides another screen capturing method for sharing a desktop, as shown in fig. 2, including:
s201, storing the video-decoded key frame of the shared desktop to a memory.
S202, if a screen capture trigger event is identified when the shared desktop is displayed, capturing the content of the key frame in the memory before the screen capture trigger moment to obtain a candidate screen capture.
And S203, displaying the candidate screenshot.
And S204, displaying the screenshot of the shared desktop at the screenshot triggering moment.
And the display mode of the screenshot of the shared desktop at the screenshot triggering moment is different from the display mode of the candidate screenshot.
It is understood that steps S201 to S203 in the embodiment of the present invention may refer to steps S101 to S103 in the embodiment shown in fig. 1, and are not described herein again.
In the embodiment of the present invention, the sequence of the steps S203 and S204 is not limited, and the step S203 may be executed first and then the step S204 is executed, or the step S204 may be executed first and then the step S203 is executed, or the steps S203 and S204 may be executed at the same time.
In the embodiment of the present invention, in order to distinguish the screenshot of the shared desktop at the screenshot triggering time from the candidate screenshot captured in step S202, different display modes may be adopted, for example, different display sizes and different display positions are adopted. For example, the size of the screenshot of the shared desktop at the screenshot triggering moment is larger and is placed in the middle of the terminal display interface.
The candidate screenshot displayed in step S203 and the screenshot displayed in step S204 are both interactive pictures, and the user may select one or more pictures as a final screenshot result.
By the screen capture method provided by the embodiment of the invention, after the user operates and triggers the screen capture, the screen capture of the shared desktop at the screen capture triggering moment can be provided for the user, and the candidate screen capture before the screen capture operation can also be provided for the user, so that the content which is required is conveniently traced and selected, and different display modes are adopted, so that the user can conveniently select.
As shown in fig. 3, an embodiment of the present invention provides a flow of a screen capturing method when sharing a desktop as follows:
s301, receiving a shared desktop provided by a desktop sharer from a server.
S302, carrying out video decoding on the received shared desktop.
And S303, identifying the key frame of the shared desktop and storing the key frame to a memory.
And S304, displaying the video-decoded shared desktop.
S305, the user carries out screen capture triggering operation.
And S306, intercepting the content of the key frame before the screen capture triggering moment in the memory to obtain a candidate screenshot.
And S307, displaying the candidate screenshot.
And S308, displaying the screenshot of the shared desktop at the screenshot triggering moment.
It is understood that step S303 and step S304 may be executed simultaneously or step S303 may be executed first and then step S304 is executed. Step S307 and step S308 may be executed simultaneously, step S307 may be executed first and then step S308 may be executed, or step S308 may be executed first and then step S307 may be executed.
As shown in FIG. 4, a user viewing a shared desktop provided by a desktop sharer may locate and select a screenshot area of the shared desktop. As shown in fig. 4, a indicates the contents of the screen capture area. After the terminal of the user recognizes the screen capture trigger event, the content of the key frame before the screen capture trigger time in the memory can be captured by the method provided by the above embodiment, so as to obtain a candidate screen capture, and the candidate screen capture is displayed on the user screen, wherein A, B, C indicates the content of the candidate screen capture before the screen capture trigger time. In the embodiment of the invention, the screenshot of the shared desktop at the screenshot triggering moment can be displayed on the user screen in a display mode different from that of the candidate screenshot.
Referring to fig. 5, a schematic structural diagram of a screen capture device when sharing a desktop according to an embodiment of the present invention is shown; as shown in fig. 5, an embodiment of the present invention provides a screen capture device for sharing a desktop, including:
and a key frame storage module 501, configured to store the video-decoded key frame of the shared desktop to a memory.
And the screenshot processing module 502 is configured to identify a screenshot trigger event, and if the screenshot trigger event is identified when the shared desktop is displayed, capture the content of the key frame in the memory before the screenshot trigger time to obtain a candidate screenshot.
A display module 503, configured to display the candidate screenshot.
Optionally, if the screen capture trigger event specifies a screen capture area, the screen capture processing module 502 obtains coordinates of the specified screen capture area; and intercepting the content of the screenshot area corresponding to the key frame before the screenshot triggering time in the memory according to the coordinates to obtain the candidate screenshot.
Alternatively, the screen shot processing module 502 may intercept the candidate screen shot by: and intercepting the content of the key frame in a first preset time period before the screen capture triggering time in the memory to obtain a candidate screenshot.
Optionally, the key frame storage module 501 is further configured to set a storage duration of the key frame when the key frame is stored, so that the key frame is destroyed after the storage duration of the key frame reaches the storage duration, where the storage duration is greater than or equal to the duration of the first preset time period.
Alternatively, the screen shot processing module 502 may intercept the candidate screen shot by: and intercepting the contents of a first preset number of key frames before the screen capture triggering moment in the memory to obtain a candidate screenshot.
Optionally, the key frame storage module 501 is further configured to destroy key frames exceeding a second preset number according to the storage time sequence of the key frames, where the second preset number is greater than or equal to the first preset number.
Optionally, the display module 503 is further configured to display a screenshot of the shared desktop at the screenshot triggering time.
And the display mode of the screenshot of the shared desktop at the screenshot triggering moment is different from the display mode of the candidate screenshot.
Each module of the screen capture device of this embodiment is configured to correspondingly implement each step in the foregoing method, and specific contents are not described herein again.
The embodiment of the disclosure also provides the electronic equipment. The electronic device includes: a memory having a computer program stored thereon and a processor implementing the method as described above when executing the program. Further, a computer-readable storage medium is also provided, on which a computer program is stored which, when being executed by a processor, carries out the method as described above. FIG. 6 illustrates a schematic block diagram of an electronic device 600 that may be used to implement embodiments of the present disclosure. As shown, device 600 includes a Central Processing Unit (CPU) 601 that may perform various appropriate actions and processes in accordance with computer program instructions stored in a Read Only Memory (ROM) 602 or loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the device 600 can also be stored. The CPU 601, ROM602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
A number of components in the device 600 are connected to the I/O interface 605, including: an input unit 606 such as a keyboard, a mouse, or the like; an output unit 607 such as various types of displays, speakers, and the like; a storage unit 608, such as a magnetic disk, optical disk, or the like; and a communication unit 609 such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processing unit 601 performs the various methods and processes described above. For example, in some embodiments, the methods may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 600 via the ROM602 and/or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the CPU 601, one or more steps of the method described above may be performed. Alternatively, in other embodiments, CPU 601 may be configured to perform the method by any other suitable means (e.g., by way of firmware).
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a load programmable logic device (CPLD), and the like.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Further, while operations are depicted in a particular order, this should be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single implementation. Conversely, various features that are described in the context of a single implementation can also be implemented in multiple implementations separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Claims (10)
1. A screen capture method for a shared desktop is characterized by comprising the following steps:
storing the video-decoded key frame of the shared desktop into a memory;
if a screen capture trigger event is identified when the shared desktop is displayed, capturing the content of a key frame in the memory before the screen capture trigger moment to obtain a candidate screen capture;
and displaying the candidate screenshot.
2. The method of claim 1, wherein if the screenshot triggering event specifies a screenshot area, the capturing the content of the key frame in the memory before the screenshot triggering time to obtain a candidate screenshot comprises:
acquiring coordinates of a designated screen capture area;
and intercepting the content of the screenshot area corresponding to the key frame before the screenshot triggering time in the memory according to the coordinates to obtain the candidate screenshot.
3. The method of claim 1 or 2, wherein the candidate screenshot is captured by:
and intercepting the content of the key frame in a first preset time period before the screen capture triggering time in the memory to obtain a candidate screenshot.
4. The method of claim 3, wherein when storing key frames, the method further comprises:
and setting the storage time length of the key frame so as to destroy the key frame after the storage time length of the key frame reaches the storage time length, wherein the storage time length is greater than or equal to the time length of the first preset time period.
5. The method of claim 1 or 2, wherein the candidate screenshot is captured by:
and intercepting the contents of a first preset number of key frames before the screen capture triggering moment in the memory to obtain a candidate screenshot.
6. The method of claim 5, further comprising:
and destroying the key frames exceeding a second preset number according to the storage time sequence of the key frames, wherein the second preset number is greater than or equal to the first preset number.
7. The method according to claim 1 or 2, characterized in that the method further comprises:
displaying a screenshot of the shared desktop at the screenshot triggering moment;
and the display mode of the screenshot of the shared desktop at the screenshot triggering moment is different from the display mode of the candidate screenshot.
8. A screen capture device for sharing a desktop, comprising:
the key frame storage module is used for storing the key frames of the shared desktop after the video is decoded into a memory;
the screen capture processing module is used for identifying a screen capture trigger event, and if the screen capture trigger event is identified when the shared desktop is displayed, capturing the content of a key frame before the screen capture trigger time in the memory to obtain a candidate screen capture;
and the display module is used for displaying the candidate screenshot.
9. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program, wherein the processor, when executing the program, implements the method of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110207464.XA CN112584226B (en) | 2021-02-25 | 2021-02-25 | Screen capturing method and device for sharing desktop |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110207464.XA CN112584226B (en) | 2021-02-25 | 2021-02-25 | Screen capturing method and device for sharing desktop |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112584226A true CN112584226A (en) | 2021-03-30 |
CN112584226B CN112584226B (en) | 2021-06-18 |
Family
ID=75114016
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110207464.XA Active CN112584226B (en) | 2021-02-25 | 2021-02-25 | Screen capturing method and device for sharing desktop |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112584226B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103369372A (en) * | 2013-07-17 | 2013-10-23 | 广州珠江数码集团有限公司 | Live television screen capturing system and live television screen capturing method |
CN104915202A (en) * | 2015-06-05 | 2015-09-16 | 广东欧珀移动通信有限公司 | Screenshot method and device |
CN106412708A (en) * | 2016-10-21 | 2017-02-15 | 上海与德信息技术有限公司 | Video screenshot method and video screenshot device |
US20170178685A1 (en) * | 2015-12-22 | 2017-06-22 | Le Holdings (Beijing) Co., Ltd. | Method for intercepting video animation and electronic device |
CN107370768A (en) * | 2017-09-12 | 2017-11-21 | 中广热点云科技有限公司 | A kind of intelligent television Streaming Media prebrowsing system and method |
CN108462851A (en) * | 2017-02-21 | 2018-08-28 | 北京视联动力国际信息技术有限公司 | The method and mobile terminal of data processing, server, the second mobile terminal |
-
2021
- 2021-02-25 CN CN202110207464.XA patent/CN112584226B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103369372A (en) * | 2013-07-17 | 2013-10-23 | 广州珠江数码集团有限公司 | Live television screen capturing system and live television screen capturing method |
CN104915202A (en) * | 2015-06-05 | 2015-09-16 | 广东欧珀移动通信有限公司 | Screenshot method and device |
US20170178685A1 (en) * | 2015-12-22 | 2017-06-22 | Le Holdings (Beijing) Co., Ltd. | Method for intercepting video animation and electronic device |
CN106412708A (en) * | 2016-10-21 | 2017-02-15 | 上海与德信息技术有限公司 | Video screenshot method and video screenshot device |
CN108462851A (en) * | 2017-02-21 | 2018-08-28 | 北京视联动力国际信息技术有限公司 | The method and mobile terminal of data processing, server, the second mobile terminal |
CN107370768A (en) * | 2017-09-12 | 2017-11-21 | 中广热点云科技有限公司 | A kind of intelligent television Streaming Media prebrowsing system and method |
Also Published As
Publication number | Publication date |
---|---|
CN112584226B (en) | 2021-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110580125B (en) | Partial refreshing method, device, equipment and medium for display interface | |
CN112306607B (en) | Screenshot method and device, electronic equipment and readable storage medium | |
EP3917131A1 (en) | Image deformation control method and device and hardware device | |
CN112738418B (en) | Video acquisition method and device and electronic equipment | |
CN109729429B (en) | Video playing method, device, equipment and medium | |
CN109672909B (en) | Data processing method, device, electronic equipment and readable storage medium | |
CN105554430A (en) | Video call method, system and device | |
CN111182338A (en) | Video processing method and device, storage medium and electronic equipment | |
CN110750664A (en) | Picture display method and device | |
CN107018137A (en) | A kind of Flash reorientation methods and device | |
CN112532785A (en) | Image display method, image display device, electronic apparatus, and storage medium | |
CN107911388B (en) | Method and system for supervising mobile terminal application | |
CN112584226B (en) | Screen capturing method and device for sharing desktop | |
CN105468237A (en) | Screen-shot method in video call and electronic equipment | |
CN107870752B (en) | Terminal window wall-mounting method, terminal, television wall and system | |
CN107346197B (en) | Information display method and device | |
CN104125497B (en) | Webpage video recording method and device | |
CN104571812B (en) | Information processing method and electronic equipment | |
CN107872683B (en) | Video data processing method, device, equipment and storage medium | |
CN112784324B (en) | Privacy protection method and device for sharing desktop | |
CN114253449B (en) | Screen capturing method, device, equipment and medium | |
CN115718581A (en) | Information display method and device, electronic equipment and storage medium | |
CN112487247B (en) | Video processing method and video processing device | |
CN112269886B (en) | Shared image acquisition method, window sharing method and shared image acquisition device | |
CN108023892B (en) | Method and system for supervising mobile terminal application |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |