CN112291630B - Electronic equipment screen sharing method and device - Google Patents

Electronic equipment screen sharing method and device Download PDF

Info

Publication number
CN112291630B
CN112291630B CN202011172544.8A CN202011172544A CN112291630B CN 112291630 B CN112291630 B CN 112291630B CN 202011172544 A CN202011172544 A CN 202011172544A CN 112291630 B CN112291630 B CN 112291630B
Authority
CN
China
Prior art keywords
camera
screen display
current screen
display content
content
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.)
Active
Application number
CN202011172544.8A
Other languages
Chinese (zh)
Other versions
CN112291630A (en
Inventor
杨凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou Co Ltd
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 Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202011172544.8A priority Critical patent/CN112291630B/en
Publication of CN112291630A publication Critical patent/CN112291630A/en
Application granted granted Critical
Publication of CN112291630B publication Critical patent/CN112291630B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone
    • H04N7/142Constructional details of the terminal equipment, e.g. arrangements of the camera and the display

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method and a device for sharing a screen of electronic equipment, and belongs to the technical field of communication. The method comprises the steps that in the process that a first user uses a target application to conduct video chatting with a second user, the operation state of a camera of the electronic equipment is determined; when the fact that preset operation is executed on the camera is detected, current screen display content of the electronic equipment is obtained; and transmitting content data corresponding to the current screen display content as video data of the camera to the target application so as to share the current screen display content to the second user. According to the method and the device, the screen sharing can be realized quickly and conveniently in the chatting process.

Description

Electronic equipment screen sharing method and device
Technical Field
The application belongs to the technical field of communication, and particularly relates to a screen sharing method and device for electronic equipment.
Background
At present, in the process of a user using a mobile terminal to perform video chat, if a display interface of a current screen of a shared terminal device needs to be seen by an opposite terminal or when a user wants to demonstrate certain operations to the opposite terminal, the user generally needs to obtain current screen display content in a screen capturing or screen recording manner, and then sends a corresponding screenshot or screen recording content to the opposite terminal through a tool, so that screen sharing is achieved.
However, the screen sharing method has the problem of inconvenient use.
Disclosure of Invention
The embodiment of the application aims to provide a method and a device for sharing a screen of an electronic device, which can solve the problem that the screen of the existing electronic device is not convenient to share and use.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a method for sharing a screen of an electronic device, including:
determining the operation state of a camera of the electronic equipment in the process of video chat between a first user and a second user by using a target application;
when the fact that a preset operation is executed on the camera is detected, obtaining current screen display content of the electronic equipment;
and transmitting content data corresponding to the current screen display content as video data of the camera to the target application so as to share the current screen display content to the second user. A method, comprising:
in a second aspect, an embodiment of the present application provides an electronic device screen sharing apparatus, including:
the first determining module is used for determining the operating state of a camera of the electronic equipment in the process of video chat between a first user and a second user by using a target application;
the acquisition module is used for acquiring the current screen display content of the electronic equipment when the camera is detected to execute the preset operation;
and the transmission module is used for transmitting the content data corresponding to the current screen display content as the video data of the camera to the target application so as to share the current screen display content to the second user.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, the operation state of a camera of electronic equipment is determined in the process of performing video chat between a first user and a second user by using a target application, when the fact that preset operation is performed on the camera is detected, current screen display content of the electronic equipment is obtained, content data corresponding to the current screen display content is used as video data of the camera and is transmitted to the target application, and the current screen display content is shared to the second user. Therefore, according to the application, the data of the current display screen in the mobile terminal is transmitted as the video data of the camera through the virtual camera technology, so that the sharing of the display content of the current screen can be performed in a mode that a user firstly captures the screen or records the screen content and then shares the screen content with friends at the opposite end in the process of using the mobile terminal to perform video chat, the content data corresponding to the display content of the current screen can be directly virtualized into the video data source of the camera, and the purpose that the display data of the current screen is shared with the opposite end in real time, quickly and conveniently is achieved.
Drawings
Fig. 1 is a schematic flowchart of a screen sharing method for an electronic device according to an embodiment of the present application.
Fig. 2 is a schematic view of a predetermined operation interface of the camera according to the first embodiment of the present application.
Fig. 3 is a schematic view of a predetermined operation interface of a camera according to a second embodiment of the present application.
Fig. 4 is a schematic view of a camera predetermined operation interface according to a third embodiment of the present application.
FIG. 5 is a schematic diagram of a prompt box interface according to an embodiment of the application.
FIG. 6 is a screen sharing interface diagram according to an embodiment of the present application.
Fig. 7 is a block diagram illustrating a configuration of a screen sharing apparatus for an electronic device according to an embodiment of the present application.
Fig. 8 is a block diagram of an electronic device according to an embodiment of the present application.
Fig. 9 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The method for sharing the screen of the electronic device according to the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
In an embodiment of the present application, a method for sharing a screen of an electronic device is provided, please refer to fig. 1, which is a schematic flow chart of the method for sharing a screen of an electronic device according to the embodiment of the present application.
As shown in fig. 1, the method for sharing a screen of an electronic device according to the embodiment of the present application includes the following steps:
step 202, in the process that the first user uses the target application to conduct video chat with the second user, determining the operation state of a camera of the electronic equipment.
The operating state of the camera refers to a state of the camera for video chat in the process of the user video chat, such as a normal open state, a pressed state, a blocked state or other camera-related operating states. And detecting the operation state of the camera in real time after the video chat is started, and ending the detection if the video chat is ended.
In this embodiment of the application, when a first user chats with a second user in a video mode, if the first user wants to share content on a screen of the first user terminal to an opposite terminal, for example, a certain interface displayed by the electronic device is displayed to the opposite terminal, or a certain interface is displayed to the opposite terminal for performing a demonstration operation, the sharing event may be triggered by executing a predetermined operation on a camera of the electronic device. The target application may be any application that enables video chat of the first user and the second user.
In the embodiment of the application, the first user currently uses the front camera or the off-screen camera to perform video chat.
And 204, when the camera is detected to execute the preset operation, acquiring the current screen display content of the electronic equipment.
Optionally, in the first embodiment, the predetermined operation performed on the camera includes: a pressing event of a predetermined area around the camera.
In the first embodiment, when a first user wants to share content on the screen of the mobile phone of the first user to a second user in the process of video chat, the sharing can be realized by pressing the camera.
Whether the camera is pressed or not is detected, and the detection can be determined by detecting a pressing event of a predetermined area around the camera. As shown in the embodiment of fig. 2, in the case that the screen of the electronic device is a hole-digging screen, a rectangular detection area 14 may be added around the camera 12, and the size of the area may be set according to the requirement, for example, the length and width of the detection area 14 is set to be 1-2 times of the diameter of the hole-digging of the camera.
During the video chat, detecting a pressing event of the area, and if the area is detected to be pressed, or is pressed and the duration time exceeds a preset time, such as 1-2 seconds, detecting that a pressing operation is performed on the camera 12; if the pressing operation is not detected, the area is continuously detected. The detection of the press event may be accomplished by screen press detection of the electronic device, such as determined by capacitive touch screen press detection.
Optionally, in the second embodiment, the predetermined operation performed on the camera includes: and shielding the camera and shielding the shielding event of which the shielding distance value is smaller than a preset threshold value.
In the second embodiment, when the first user wants to share the content on the screen of the mobile phone to the second user in the video chat process, the sharing can be realized in a mode of shielding the camera.
Whether the camera is to perform a predetermined operation for blocking an event can be determined by using the contents of the camera view in combination with a distance sensor of the electronic apparatus. As shown in the embodiment of fig. 3, for example, when the content of the view of the camera 12 is a solid color, black or red, or other solid colors, the specific color value may be set as needed, and it is considered that there is something in front of the camera 12, that is, it is blocked. At this time, it is detected that the camera is shielded by an object within a predetermined threshold range, for example, according to the current distance value of the distance sensor, that is, the shielding distance value is smaller than the predetermined threshold, and the predetermined threshold is, for example, 1-3 cm. If the conditions are met, the fact that the shielding operation is executed on the camera is detected; and if the shielding operation is not detected, continuing to detect.
Optionally, in a third embodiment, the predetermined operation performed on the camera includes: an application drag event that moves a window position of a specific application to a position of the camera.
In the third embodiment, when the first user wants to share the content of a specific application displayed on the screen of the mobile phone of the first user to the second user in the process of video chat, the sharing can be realized by dragging the application.
As shown in the embodiment of fig. 4, whether the camera is performing the predetermined operation of the drag event may be determined by determining the position of the specific application when detecting that the window of the specific application is changed in zooming, and when the position of the window of the application is moved to the position of the camera, it is determined that the drag operation is performed on the specific application; and if the application dragging operation is not detected, continuing to perform detection and position judgment.
In step 204, for the above-mentioned embodiment of performing the predetermined operation on the camera, if it is detected that the predetermined operation corresponding to the press event, the blocking event, or the application drag event is performed on the camera, as shown in fig. 4, a pop-up prompt box may be used to inquire whether the first user starts to share the screen, and if "ok" is clicked, the current screen display content of the electronic device is acquired. Otherwise, cancel indicates that the shared screen is not executed for the current predetermined operation.
In step 204, the acquired current screen display content of the electronic device includes: and carrying out screen capture or screen recording on the current display screen of the electronic equipment to obtain the current screen display content of the electronic equipment.
And a corresponding screen capture picture can be obtained by capturing the current display screen of the electronic equipment. If the screen capture is carried out at a higher frequency, the screen recording of the current display screen of the electronic equipment can be realized, and a corresponding video is obtained.
And step 206, transmitting content data corresponding to the current screen display content as video data of the camera to the target application so as to share the current screen display content to the second user.
For the first embodiment in which the pressing event is performed on the camera in step 204 and the second embodiment in which the blocking event is performed on the camera, if it is detected that the predetermined operation is performed on the camera, step 206 may be directly performed, and content data corresponding to the current screen display content, for example, a captured picture or a video recorded on a screen, may be obtained and shared to the second user.
In the normal video chat process, the camera is opened, video data is acquired, and then the video data is transmitted. In the application, after the content data corresponding to the current screen display content is acquired, a data source returned by the camera needs to be modified, and the content data corresponding to the current screen display content is returned to the target application as the video data of the camera.
Optionally, in an embodiment, returning content data corresponding to the current screen display content to the target application as video data of the camera includes: replacing the video data with the content data corresponding to the current screen display content to obtain replaced data; and the replaced data is used as a video data source transmitted by the camera and transmitted to the target application.
In the embodiment, the screenshot picture or the recorded video of the current screen display content of the first user is used, the video data of the target application is normally transmitted to the camera for covering and replacing, and the replaced data is virtualized into the video data of the camera for transmission. That is, the second user cannot currently view the camera video data acquired by the camera of the electronic device of the first user, but sees the content data corresponding to the current screen display content shared by the first user.
Optionally, in another embodiment, transmitting content data corresponding to the current screen display content as video data of the camera to the target application includes: merging the content data corresponding to the current screen display content and the video data in a preset display mode; and transmitting the merged data to the target application as a video data source transmitted by the camera.
In this embodiment, the screenshot or the recorded video of the current screen display content of the first user and the video data normally returned to the target application by the camera are merged, that is, the second user can currently see the camera video data acquired by the camera of the electronic device of the first user and also can see the content data corresponding to the current screen display content shared by the first user. The predetermined display mode is, for example, a mode of vertically arranging the display or a mode of horizontally arranging the display.
For the third embodiment of executing the application drag event on the camera in step 204, if it is detected that the predetermined operation is executed on the camera, step 206 may not be directly executed.
Optionally, before transmitting the content data corresponding to the current screen display content as the video data of the camera to the target application, the method further includes: determining whether current screen display content of the electronic equipment is an interface of the specific application; and when the current screen display content of the electronic equipment is determined to be the interface of the specific application, transmitting content data corresponding to the current screen display content as video data of the camera to the target application.
That is to say, after the current screen display content of the electronic device is obtained in step 204, it needs to be determined whether content data corresponding to the obtained current screen display content is an interface of the specific application, and if the content data is the interface of the specific application, like the above-mentioned first and second embodiments, the content data corresponding to the obtained current screen display content and the video data of the camera are replaced or merged and then transmitted to the target application by modifying the data source returned by the camera, and the replaced or merged data is virtualized into the video data of the camera and transmitted. And if the content data corresponding to the current screen display content is judged not to be the interface of the specific application, data replacement or combination is not carried out, the video data of the camera is continuously transmitted, and normal chatting between the first user and the second user is carried out.
In addition, according to the embodiment of the present application, when the screen is shared in the foregoing steps 202 to 206, the current screen sharing may be stopped in a similar manner to the predetermined operation corresponding to the foregoing first, second, or third embodiment, and after the current screen sharing is stopped, the data of the camera is automatically switched to perform a normal video chat.
According to the method for sharing the screen of the electronic equipment, the operation state of a camera of the electronic equipment is determined in the process that a first user uses a target application to conduct video chat with a second user, when the fact that the camera executes preset operation is detected, the current screen display content of the electronic equipment is obtained, content data corresponding to the current screen display content is used as video data of the camera and transmitted to the target application, and the current screen display content is shared to the second user. Therefore, according to the method and the device, data of a current display screen in the electronic terminal are transmitted as video data of the camera through the technology of the virtual camera, sharing of the display content of the current screen is not needed to be performed in a mode that a user firstly captures the screen or records the screen content and then shares the screen content with friends at the opposite end in the process of using the electronic terminal to perform video chat, the content data corresponding to the display content of the current screen can be directly virtualized into a video data source of the camera, and the purpose that the display data of the current screen is shared with the opposite end in real time, quickly and conveniently is achieved.
It should be noted that, in the electronic device screen sharing method provided in the embodiment of the present application, the execution main body may be an electronic device screen sharing apparatus, or a control module in the electronic device screen sharing apparatus, which is used for executing the electronic device screen sharing method. The embodiment of the present application describes an electronic device screen sharing apparatus provided in the embodiment of the present application, with an example of a method for executing electronic device screen sharing by an electronic device screen sharing apparatus.
Referring to fig. 7, fig. 7 is a block diagram illustrating a structure of a screen sharing apparatus for an electronic device according to an embodiment of the present disclosure. As shown in fig. 7, the electronic device screen sharing apparatus 1000 according to the embodiment of the present application includes:
a first determining module 1200, configured to determine an operation state of a camera of an electronic device in a process that a first user uses a target application to perform a video chat with a second user;
the obtaining module 1400 is configured to obtain current screen display content of the electronic device when it is detected that a predetermined operation is performed on the camera;
a transmission module 1600, configured to transmit content data corresponding to the current screen display content as video data of the camera to the target application, so as to share the current screen display content to the second user.
The predetermined operation performed on the camera includes: a pressing event of a predetermined area around the camera.
Optionally, the predetermined operation performed on the camera includes: and shielding the camera and shielding the shielding event of which the shielding distance value is smaller than a preset threshold value.
Optionally, the predetermined operation performed on the camera includes: an application drag event that moves a window position of a specific application to a position of the camera.
Optionally, the apparatus 1000 further comprises:
a second determining module (not shown in the figures), configured to determine whether the current screen display content of the electronic device is an interface of the specific application before the sending module 1600 transmits content data corresponding to the current screen display content as video data of the camera to the target application;
the transmission module 1600 is configured to transmit, when the second determination module determines that the current screen display content of the electronic device is the interface of the specific application, content data corresponding to the current screen display content as video data of the camera to the target application.
Optionally, the obtaining module 1400 obtains the current screen display content of the electronic device, including: and performing screen capture or screen recording on the current display screen of the electronic equipment to obtain the current screen display content of the electronic equipment.
Optionally, the transmitting module 1600 transmits the content data corresponding to the current screen display content as the video data of the camera to the target application, including:
replacing the video data with the content data corresponding to the current screen display content to obtain replaced data;
and the replaced data is used as a video data source transmitted by the camera and transmitted to the target application.
Optionally, the transmitting module 1600 transmits the content data corresponding to the current screen display content as the video data of the camera to the target application, including:
merging the content data corresponding to the current screen display content and the video data in a preset display mode;
and transmitting the merged data to the target application as a video data source transmitted by the camera.
The electronic device screen sharing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a Personal Computer (PC), and the like, which is not limited in this embodiment.
The electronic device screen sharing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The electronic device screen sharing apparatus provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 6, and can achieve the same technical effect, and is not described here again to avoid repetition.
According to the electronic equipment screen sharing device, the operation state of the camera of the electronic equipment is determined in the process that the first user uses the target application to conduct video chat with the second user, when the fact that the preset operation is executed on the camera is detected, the current screen display content of the electronic equipment is obtained, content data corresponding to the current screen display content is used as video data of the camera and transmitted to the target application, and therefore the current screen display content is shared to the second user. Therefore, the data of the current display screen in the electronic equipment is transmitted as the video data of the camera through the technology of the virtual camera, the sharing of the display content of the current screen is not required to be carried out in a mode of firstly capturing the screen or recording the screen content and then sharing the screen content to friends at the opposite end in the process of carrying out video chatting by a user by using the electronic equipment, the content data corresponding to the display content of the current screen can be directly virtualized into the video data source of the camera, and the purpose that the display data of the current screen is shared to the opposite end in real time, quickly and conveniently is achieved.
Optionally, as shown in fig. 8, an electronic device 2000 is further provided in this embodiment of the present application, and includes a processor 2200, a memory 2400, and a program or an instruction stored in the memory 2400 and executable on the processor 2200, where the program or the instruction is executed by the processor 2200 to implement each process of the above-mentioned embodiment of the electronic device screen sharing method, and can achieve the same technical effect, and in order to avoid repetition, it is not described here again.
It should be noted that the electronic devices in the embodiments of the present application include mobile electronic devices and non-mobile electronic devices.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 9 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The processor 110 is configured to determine an operation state of a camera of the electronic device in a process of a video chat between a first user and a second user using a target application; when the fact that preset operation is executed on the camera is detected, current screen display content of the electronic equipment is obtained; and transmitting content data corresponding to the current screen display content as video data of the camera to the target application so as to share the current screen display content to the second user.
The processor 110 detects an operation state of a camera of the electronic device during a process of a first user using a target application to perform a video chat with a second user, acquires current screen display content of the electronic device when it is detected that a predetermined operation is performed on the camera, and transmits content data corresponding to the current screen display content as video data of the camera to the target application to share the current screen display content to the second user. Therefore, the processor 110 transmits the data of the current display screen in the electronic device as the video data of the camera through the technology of the virtual camera, so that in the process of using the electronic device by a user to perform video chat, the sharing of the display content of the current screen is performed without firstly capturing the screen or recording the screen content and then sharing the screen content to friends at the opposite end, and the content data corresponding to the display content of the current screen can be directly virtualized into the video data source of the camera, so that the purpose of sharing the display data of the current screen to the opposite end in real time, quickly and conveniently is realized.
Optionally, the processor 110 is further configured to determine whether the current screen display content of the electronic device is an interface of the specific application before returning content data corresponding to the current screen display content as video data of the camera to the target application; and when the current screen display content of the electronic equipment is determined to be the interface of the specific application, transmitting content data corresponding to the current screen display content as video data of the camera to the target application.
Therefore, the display interface corresponding to the specific application on the first user electronic equipment can be quickly shared to the opposite-end second user of the chat.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned electronic device screen sharing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above-mentioned electronic device screen sharing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatuses in the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions recited, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (8)

1. A method for sharing a screen of an electronic device is characterized by comprising the following steps:
determining the operation state of a camera of the electronic equipment in the process of video chat between a first user and a second user by using a target application;
when the fact that a preset operation is executed on the camera is detected, acquiring current screen display content of the electronic equipment, wherein the preset operation executed on the camera comprises the following steps: the method comprises the following steps of pressing an event in a preset area around the camera, blocking the camera, wherein the blocking distance value is smaller than a preset threshold value, or dragging the application, wherein the window position of a specific application is moved to the position of the camera;
and transmitting content data corresponding to the current screen display content as video data of the camera to the target application so as to share the current screen display content to the second user.
2. The method according to claim 1, wherein in a case where the predetermined operation performed on the camera is an application drag event that moves a window position of a specific application to a position of the camera, before transmitting content data corresponding to the current screen display content as video data of the camera to the target application, further comprising:
determining whether current screen display content of the electronic equipment is an interface of the specific application;
and when the current screen display content of the electronic equipment is determined to be the interface of the specific application, transmitting content data corresponding to the current screen display content as video data of the camera to the target application.
3. The method of claim 1, wherein transmitting content data corresponding to the current screen display content as video data of the camera to the target application comprises:
replacing the video data with the content data corresponding to the current screen display content to obtain replaced data;
and transmitting the replaced data to the target application as a video data source transmitted by the camera.
4. The method of claim 1, wherein transmitting content data corresponding to the current screen display content as video data of the camera to the target application comprises:
merging the content data corresponding to the current screen display content and the video data in a preset display mode;
and transmitting the merged data to the target application as a video data source transmitted by the camera.
5. An electronic device screen sharing apparatus, comprising:
the first determining module is used for determining the operating state of a camera of the electronic equipment in the process of video chat between a first user and a second user by using a target application;
an obtaining module, configured to obtain current screen display content of the electronic device when it is detected that a predetermined operation is performed on the camera, where the predetermined operation performed on the camera includes: the method comprises the following steps of pressing an event in a preset area around the camera, blocking the camera, wherein the blocking distance value is smaller than a preset threshold value, or dragging the application of moving the window position of a specific application to the position of the camera;
and the transmission module is used for transmitting the content data corresponding to the current screen display content as the video data of the camera to the target application so as to share the current screen display content to the second user.
6. The apparatus of claim 5, further comprising:
a second determining module, configured to determine, when the predetermined operation performed on the camera is an application dragging event that moves a window position of a specific application to a position of the camera, before the transmitting module transmits content data corresponding to the current screen display content as video data of the camera to the target application, whether the current screen display content of the electronic device is an interface of the specific application;
the transmission module is configured to transmit, to the target application, content data corresponding to the current screen display content as video data of the camera when the second determination module determines that the current screen display content of the electronic device is the interface of the specific application.
7. The apparatus of claim 5, wherein the transmitting module transmits content data corresponding to the current screen display content as video data of the camera to the target application, and comprises:
replacing the video data with the content data corresponding to the current screen display content to obtain replaced data;
and transmitting the replaced data to the target application as a video data source transmitted by the camera.
8. The apparatus of claim 5, wherein the transmitting module transmits content data corresponding to the current screen display content as video data of the camera to the target application, and comprises:
merging the content data corresponding to the current screen display content and the video data in a preset display mode;
and transmitting the merged data to the target application as a video data source transmitted by the camera.
CN202011172544.8A 2020-10-28 2020-10-28 Electronic equipment screen sharing method and device Active CN112291630B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011172544.8A CN112291630B (en) 2020-10-28 2020-10-28 Electronic equipment screen sharing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011172544.8A CN112291630B (en) 2020-10-28 2020-10-28 Electronic equipment screen sharing method and device

Publications (2)

Publication Number Publication Date
CN112291630A CN112291630A (en) 2021-01-29
CN112291630B true CN112291630B (en) 2022-09-30

Family

ID=74373062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011172544.8A Active CN112291630B (en) 2020-10-28 2020-10-28 Electronic equipment screen sharing method and device

Country Status (1)

Country Link
CN (1) CN112291630B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827343B (en) * 2022-04-11 2024-08-23 三星电子(中国)研发中心 Method and device for screen sharing

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104365088A (en) * 2012-06-08 2015-02-18 三星电子株式会社 Multiple channel communication using multiple cameras
CN111178305A (en) * 2019-12-31 2020-05-19 维沃移动通信有限公司 Information display method and head-mounted electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8436887B2 (en) * 2009-11-13 2013-05-07 Samsung Electronics Co., Ltd. Mobile terminal, display apparatus and control method thereof
KR101720940B1 (en) * 2013-01-28 2017-04-10 네이버 주식회사 Apparatus, method and computer readable recording medium for sharing a real time video through a chatting window of a messenger service
CN108933965B (en) * 2017-05-26 2022-06-10 腾讯科技(深圳)有限公司 Screen content sharing method and device and storage medium
CN109542378A (en) * 2018-11-19 2019-03-29 上海闻泰信息技术有限公司 Screen sharing method, device, electronic equipment and readable storage medium storing program for executing
CN109495711B (en) * 2018-12-29 2020-10-16 南京维沃软件技术有限公司 Video call processing method, sending terminal, receiving terminal and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104365088A (en) * 2012-06-08 2015-02-18 三星电子株式会社 Multiple channel communication using multiple cameras
CN111178305A (en) * 2019-12-31 2020-05-19 维沃移动通信有限公司 Information display method and head-mounted electronic equipment

Also Published As

Publication number Publication date
CN112291630A (en) 2021-01-29

Similar Documents

Publication Publication Date Title
CN110431521B (en) Split screen display method and device and terminal
CN111865961B (en) Data processing method and device and electronic equipment
CN112764624B (en) Information screen display method and device
CN112261340B (en) Visual field sharing method and device, electronic equipment and readable storage medium
CN112099714B (en) Screenshot method and device, electronic equipment and readable storage medium
CN113504859A (en) Transmission method and device
CN112291630B (en) Electronic equipment screen sharing method and device
CN112269509B (en) Information processing method and device and electronic equipment
CN112684963A (en) Screenshot method and device and electronic equipment
CN112269510B (en) Information processing method and device and electronic equipment
CN113726953B (en) Display content acquisition method and device
CN112162689B (en) Input method and device and electronic equipment
CN114442881A (en) Information display method and device, electronic equipment and readable storage medium
CN111813741B (en) File sharing method and electronic equipment
CN114283476A (en) Unlocking control method and device, electronic equipment and readable storage medium
CN113835583A (en) Display method and device and electronic equipment
CN113703592A (en) Secure input method and device
CN113965640A (en) Message processing method and device
CN113784192A (en) Screen projection method, screen projection device and electronic equipment
CN113805756A (en) Interface display method and device, electronic equipment and storage medium
CN112527177A (en) Application program management method and device and intelligent glasses
CN113076435A (en) Information processing method, processing device, electronic device and readable storage medium
CN113190162A (en) Display method, display device, electronic equipment and readable storage medium
CN113518143A (en) Interface input source switching method and device and electronic equipment
CN112148175A (en) Notification display mode setting method and device, electronic equipment and storage medium

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