CN111949239B - Screen sharing method and device, storage medium and terminal - Google Patents
Screen sharing method and device, storage medium and terminal Download PDFInfo
- Publication number
- CN111949239B CN111949239B CN202010908851.1A CN202010908851A CN111949239B CN 111949239 B CN111949239 B CN 111949239B CN 202010908851 A CN202010908851 A CN 202010908851A CN 111949239 B CN111949239 B CN 111949239B
- Authority
- CN
- China
- Prior art keywords
- display interface
- transmission rate
- network transmission
- processed
- screen sharing
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1454—Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
- G06F9/452—Remote windowing, e.g. X-Window System, desktop virtualisation
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Telephone Function (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the application discloses a screen sharing method and device, a storage medium and a terminal. The screen sharing method comprises the following steps: when a screen sharing instruction is detected, acquiring the current network transmission rate, wherein the screen sharing instruction indicates that a display screen of the sharing equipment is shared with the shared equipment; processing the current display interface according to the network transmission rate to obtain a processed display interface; and sending the processed display interface to the shared device, so that the processed display interface is synchronously displayed on the shared device. According to the method and the device, the network transmission rate of the sending terminal in the screen sharing process is detected, the current display interface is cut according to the network transmission rate to obtain the target display interface, the target display interface is transmitted to the receiving terminal to be displayed, transmitted image data can be reduced when the network transmission rate is low, the smoothness of screen sharing is guaranteed, and the screen sharing efficiency between terminals can be improved.
Description
Technical Field
The application relates to the field of mobile terminal application, in particular to a screen sharing method, a screen sharing device, a storage medium and a terminal.
Background
With the development of terminal technology, the technology of screen sharing is silently emerging. The screen sharing refers to sharing of display contents by connecting different terminals through a wireless network. For example, the content displayed by one terminal is shared with another terminal and displayed on the other terminal.
In the prior art, two terminals for screen sharing are required to transmit image data displayed by one terminal to the other terminal through a network, and a large transmission delay is introduced under the condition of poor network performance to cause slow screen sharing reaction, thereby affecting the screen sharing quality.
Disclosure of Invention
The embodiment of the application provides a screen sharing method and device, a storage medium and terminals, and screen sharing efficiency among the terminals can be improved.
The embodiment of the application provides a screen sharing method, which comprises the following steps:
when a screen sharing instruction is detected, acquiring the current network transmission rate, wherein the screen sharing instruction indicates that a display screen of the sharing equipment is shared with the shared equipment;
processing the current display interface according to the network transmission rate to obtain a processed display interface;
and sending the processed display interface to the shared device, so that the processed display interface is synchronously displayed on the shared device.
Correspondingly, the embodiment of the present application further provides a screen sharing apparatus, including:
the device comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring the current network transmission rate when a screen sharing instruction is detected, and the screen sharing instruction indicates that a display screen of the sharing device is shared with a shared device;
the processing unit is used for processing the current display interface according to the network transmission rate to obtain a processed display interface;
and the sending unit is used for sending the processed display interface to the shared device so as to enable the processed display interface to be synchronously displayed on the shared device.
Correspondingly, the embodiment of the application also provides a storage medium, wherein the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the screen sharing method.
Correspondingly, the embodiment of the application also provides a terminal, which comprises a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the screen sharing method.
According to the method and the device, the network transmission rate of the sending terminal in the screen sharing process is detected, the current display interface is cut according to the network transmission rate to obtain the target display interface, the target display interface is transmitted to the receiving terminal to be displayed, transmitted image data can be reduced when the network transmission rate is low, the smoothness of screen sharing is guaranteed, and the screen sharing efficiency between terminals can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a screen sharing method according to an embodiment of the present application.
Fig. 2 is a schematic view of processing a display interface according to an embodiment of the present disclosure.
Fig. 3 is a schematic view of another display interface processing provided in the embodiment of the present application.
Fig. 4 is a schematic flowchart of another screen sharing method according to an embodiment of the present application.
Fig. 5 is a schematic view of a display interface according to an embodiment of the present application.
Fig. 6 is a schematic processing diagram of another display interface provided in the embodiment of the present application.
Fig. 7 is a block diagram of a screen sharing apparatus according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Based on the above problems, embodiments of the present application provide a first screen sharing method, apparatus, storage medium, and terminal, which can improve screen sharing efficiency between terminals. The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a screen sharing method according to an embodiment of the present disclosure. The screen sharing method can be applied to mobile terminals such as mobile phones, tablet computers, notebook computers, palmtop computers, Portable Media Players (PMPs), and fixed terminals such as desktop computers. The specific flow of the screen sharing method can be as follows:
101. when a screen sharing instruction is detected, acquiring the current network transmission rate, wherein the screen sharing instruction indicates that the display screen of the sharing device is shared with the shared device.
In the embodiment of the application, the sharing device and the shared device may be terminals of the same type or terminals of different types. For example, the sharing device may be a mobile phone, the shared device may be a computer, and the sharing device and the shared device are different types of terminals. For another example, the sharing device may be a mobile phone, and the shared device may be a mobile phone, and then the sharing device and the shared device may be terminals of the same type.
The sharing device and the shared device share a screen, which may mean that the sharing device and the shared device perform screen sharing. Screen sharing is a technology for remotely viewing or controlling desktops of other terminal devices on the terminal devices. Screen sharing is also known as screen sharing, screen synchronization, or sharing on the same screen.
The scene of screen sharing is generally that multiple computers (or tablets and mobile phones) work in coordination. For example, when training is carried out in a conference room, a lecturer (or a lecturer) shares a computer picture of the lecturer with other people participating in the conference, so that the participants only need to watch screens of the lecturer; for example, a teacher gives a lesson in a classroom, and a student computer displays the contents of the teacher computer courseware in real time; for example, when a paperless conference is held, the participants hold computers, and the pictures and the screen of the speaker computer are synchronized. In general, screen sharing may be: the method comprises the steps of sharing a computer screen to a plurality of computers, sharing the computer screen to a tablet or a mobile phone, sharing a mobile phone screen to a computer, and sharing the mobile phone screen to the tablet or other mobile phones.
Wherein the screen sharing instruction may be triggered by a user. The sharing device receives a screen sharing instruction triggered by a user, selects a shared device, and is connected with the shared device, namely the sharing device and the shared device can share the screen. When the sharing device and the shared device share the screen, the current network transmission rate can be acquired. The network transmission rate may represent how fast the data transmission speed is, and may be in bps (bits per second). For example, the network transmission rate may be 150Mbps, etc.
102. And processing the current display interface according to the network transmission rate to obtain a processed display interface.
After the current network transmission rate is obtained, the current display interface can be processed according to the network transmission rate. The current display interface may be a display interface to be shared by the sharing device to the shared device currently. By processing the current display interface, a processed display interface can be obtained.
In some embodiments, the step of processing the current display interface according to the network transmission rate to obtain a processed display interface may include:
(1) when the network transmission rate is smaller than a preset network transmission rate, acquiring a multiplying power value between the network transmission rate and the preset network transmission rate;
(2) and intercepting the current display interface according to the multiplying power value to obtain the processed display interface.
In the related art, when screen sharing is performed between terminals, a higher network transmission speed is required to ensure the smoothness of screen sharing between terminals. However, when the network is affected by other factors, the network transmission speed is slowed down, thereby affecting the screen sharing display between terminals. Therefore, according to the scheme, the display interface to be shared of the sharing equipment can be processed when the low-speed network is in the low-speed network, image transmission data are reduced, the smoothness of screen sharing when the low-speed network is in the low-speed network is guaranteed, and user experience can be greatly improved.
After the current network transmission rate is obtained, the current network transmission rate may be compared with a preset network transmission rate. The preset network transmission rate may be the lowest network transmission rate that ensures smooth screen sharing between the sharing device and the shared device, and may also be set by a user through self-definition, and the like, which is not limited herein.
For example, the network transmission rate may be 25Mbps, the preset network transmission rate may be 50Mbps, and comparing the network transmission rate with the preset network transmission rate may determine that the network transmission rate is less than the preset network transmission rate. For another example, the network transmission rate may be 100Mbps, the preset network transmission rate may be 50Mbps, and comparing the network transmission rate with the preset network transmission rate may determine that the network transmission rate is greater than the preset network transmission rate.
If the network transmission rate is less than the preset network transmission rate, the multiplying factor value between the network transmission rate and the preset network transmission rate can be obtained, and the multiplying factor value represents the multiplying factor between the network transmission rate and the preset network transmission rate and can be obtained by calculating the network transmission rate and the preset network transmission rate.
For example, the network transmission rate may be 25Mbps, the preset network transmission rate may be 50Mbps, the network transmission rate value is 25, the preset network transmission rate value is 50, and a multiple value of 1/2, that is, a value indicating that the network transmission rate is 1/2 times of the preset network transmission rate, may be obtained through calculation.
If the network transmission rate is greater than the preset network transmission rate, the current network data transmission speed is high, the smoothness of screen sharing between the sharing equipment and the shared equipment can be ensured, and the current display interface does not need to be processed.
After determining the magnification value between the network transmission rate and the preset network transmission rate, the current display interface may be processed according to the magnification value to obtain a processed display interface.
In some embodiments, the intercepting the current display interface according to the magnification value may include:
(2.1) acquiring the size parameter of the current display interface;
(2.2) processing the multiplying power value and the size parameter to obtain a processed size parameter;
and (2.3) performing interception processing on the current display interface based on the processed size parameter.
The size parameter of the current display interface is also the resolution of the current display interface of the sharing device, and the display resolution (screen resolution) is the precision of the screen image, which means how many pixels can be displayed by the display. Since the dots, lines and planes on the screen are all composed of pixels, the more pixels the display can display, the finer the picture, and the more information can be displayed in the same screen area. For example, the screen resolution may be 100x100 pixels, and accordingly, the screen display size may be 100x 100.
After the size parameter of the current display interface is determined, the size parameter can be processed according to the magnification value, and the processed size parameter is obtained. Specifically, the processing may be performed according to a preset calculation formula, where the preset calculation formula may be: and (4) after treatment, the size parameter is the value x times of the size parameter.
For example, if the size parameter of the current display interface is 100x100 (i.e., representing width x height), the size parameter values are 100 and 100, and the magnification value may be 1/2, then processing is performed according to a preset calculation formula, and the processed parameter may be 50x 50.
After the processed size parameter is determined, the current display interface may perform the intercepting process according to the processed size parameter. The intercepting process may be to perform a cropping operation on the display interface image to obtain a part of the display interface.
In some embodiments, the step of performing, based on the processed size parameter, an interception process on the current display interface may include:
(2.31) acquiring the position of the central point of the current display interface;
(2.32) determining a clipping region in the current display interface based on the center point position and the processed size parameter;
(2.33) determining the processed display interface according to the intercepted area.
Wherein, the position of the central point can be determined by the size parameters of the current display interface, wherein the size parameters can comprise a wide value, a high value and the like. Specifically, a coordinate axis space may be constructed based on the current display interface, where the wide value is used as one coordinate axis and the high value is used as the other coordinate axis. For example, if the width value is 100 and the height value is 100, then a coordinate axis can be constructed based on the width value of 100 and the height value of 100, and then the center point position can be determined to be (50, 50)
After the position of the center point of the current display interface is determined, the intercepting area can be determined in the current display interface according to the processed size parameters obtained in the above steps. The position of the central point of the intercepted area may be the same as the position of the central point of the current display interface, and the size of the intercepted area may be a processed size parameter, so as to determine the intercepted area. The cutting-out area is cut out from the current display interface, and the cutting-out area can be used as a processed display interface.
In some embodiments, the step of performing, based on the processed size parameter, an interception process on the current display interface may include:
(2.34) performing content identification on the current display interface;
(2.35) determining a cutting area from the current display interface according to the content identification result;
(2.36) determining the processed display interface according to the intercepted area.
The content identification may refer to identifying all display contents of the current display interface, and the display contents of the same display type may be divided into one display area. The display types may include various types, such as text display, picture display, background display, pattern display, and the like.
Referring to fig. 2, fig. 2 is a schematic view illustrating a display interface processing according to an embodiment of the present disclosure. After the content recognition operation is performed on the current display interface, the first display area, the second display area, the third display area and the fourth display area shown in fig. 2 can be obtained. The display type of the first display area may be text display, the display type of the second display area may be picture display, the display type of the third display area may be background display, and the display type of the fourth display area may be pattern display.
After the display type of each display region is determined, a target display region may be determined as a cut-out region from the plurality of display regions according to the importance level of the display type. The importance level of the display type may be preset, for example, the text display may be set as a first level, the picture display may be set as a second level, the background display may be set as a third level, and the pattern display may be set as a fourth level, where the importance level of each level may be the first level, the second level, the third level, and the fourth level in sequence from high to low.
Further, in fig. 2, it may be determined that the importance degree of the first display area is the highest, the size of the first display area may be compared with the processed size parameter, and if the size of the first display area is greater than the processed size parameter, the first display area may be cut accordingly, where the cutting manner may include multiple types, for example, cutting according to the central point of the first display area as a midpoint, and the like. The target area, i.e. the cut-out area, may be determined based on the first display area, thereby determining the processed display interface.
In some embodiments, the intercepting the current display interface according to the magnification value to obtain a processed display interface may include:
adjusting the current display interface based on the multiplying power value to obtain an adjusted display interface;
dividing the adjusted display interface into a plurality of display sub-areas;
acquiring a corresponding display area of each display sub-area in the current display interface and the difference between the display area and the corresponding display area;
and determining a display sub-area with the largest difference with the corresponding display area in the current display interface from the adjusted display interface as the processed display interface.
The adjustment of the current display interface based on the magnification value may be to perform amplification processing on the current display interface. Specifically, the size parameter of the current display interface may be processed according to the magnification value, so that the processed display interface may be obtained. For example, the magnification value may be 1/2, and the size parameter of the current display interface may be 100x100, then the size parameter and the magnification value are calculated, and the size parameter of the processed display interface may be determined to be 200x200, so as to obtain the adjusted display interface.
After the adjusted display interface is determined, the adjusted display interface may be divided into a plurality of display sub-regions, where the dividing manner may include various manners, for example, the display sub-regions may be divided according to the area of the adjusted display interface on average, the adjusted display interface may be divided into a plurality of display sub-regions with the same area on average, and the like. Correspondingly, after the adjusted interface is divided into a plurality of display sub-regions, the current display interface may be divided into a plurality of display sub-regions in the same manner as described above, where each sub-region in the current display interface may correspond to each display sub-region in the adjusted display interface one to one.
In some embodiments, please refer to fig. 3, where fig. 3 is a schematic view of another display interface processing provided in the embodiments of the present application. Fig. 3 shows a display interface and a processed display interface, where the display interface may be a current display interface, and the processed display interface may be a display interface obtained by performing amplification processing on the current display interface according to a magnification value. Because the processed display interface is an enlarged interface of the display interface, the display content of the display interface corresponds to the content of the processed display interface one to one. For example, in fig. 3, the display interface may include a first area, a second area, a third area and a fourth area, and the processed display interface may include a fifth area, a sixth area, a seventh area and an eighth area, so that according to the display position of each area in different display interfaces, it may be determined that the first area corresponds to the fifth area, the second area corresponds to the sixth area, the third area corresponds to the seventh area, and the fourth area corresponds to the eighth area.
After determining the corresponding relationship between each display sub-region in the current display interface and each display sub-region in the adjusted display interface, the corresponding display sub-regions may be compared, for example, the first region may be compared with the fifth region, the second region may be compared with the sixth region, the third region may be compared with the seventh region, and the fourth region may be compared with the eighth region, so that the difference between the corresponding display sub-regions may be obtained. Wherein, the content definition, color and the like between the display sub-regions can be compared to judge the difference.
For example, in fig. 3, comparing the first region with the fifth region, comparing the second region with the sixth region, comparing the third region with the seventh region, and comparing the fourth region with the eighth region, the similarity between the first region and the fifth region may be 50%, the similarity between the second region and the sixth region may be 30%, the similarity between the third region and the seventh region may be 80%, and the similarity between the fourth region and the eighth region may be 70%, then it may be determined that the difference between the second region and the sixth region is the largest, and then the second region in the display interface may be determined as the processed display interface.
In some embodiments, before sending the processed display interface to the shared device, the method may further include:
when an adjusting instruction is received, adjusting the current display interface according to the adjusting instruction to obtain an adjusted display interface;
determining the processed display interface based on the adjusted display interface.
The adjusting instruction can be an adjusting instruction triggered by a user, the adjusting instruction is triggered by touch operation of the user on the current display interface, the adjusting instruction can be intercepting operation on the current display interface, a part of display area is intercepted from the current display interface according to the user operation, and the intercepted display area is used as a processed display interface. The user can select the display area to share by himself by adjusting the operation of the instruction on the current display interface.
103. And sending the processed display interface to the shared device, so that the processed display interface is synchronously displayed on the shared device.
After determining the processed display interface, the processed display interface may be sent to the shared device. The transmission data volume of the processed display interface is reduced relative to the transmission data volume of the current display interface, so that the screen sharing between the sharing equipment and the shared equipment can be continued at a low network transmission rate.
After the shared device receives the processed display interface sent by the sharing device, the processed display interface may be processed, for example, resolution may be adjusted, so that the processed display interface may be clearly displayed on the display screen of the shared device.
The embodiment of the application discloses a screen sharing method, which comprises the following steps: when a screen sharing instruction is detected, acquiring the current network transmission rate, wherein the screen sharing instruction indicates that a display screen of the sharing device is shared with a shared device; processing the current display interface according to the network transmission rate to obtain a processed display interface; and sending the processed display interface to the shared device, so that the processed display interface is synchronously displayed on the shared device. According to the method and the device, the network transmission rate of the sending terminal in the screen sharing process is detected, the current display interface is cut according to the network transmission rate to obtain the target display interface, the target display interface is transmitted to the receiving terminal to be displayed, transmitted image data can be reduced when the network transmission rate is low, the smoothness of screen sharing is guaranteed, and the screen sharing efficiency between the terminals can be improved.
Referring to fig. 4, fig. 4 is a schematic flowchart of another screen sharing method according to an embodiment of the present disclosure. In the embodiment of the present application, screen sharing between a sending terminal and a receiving terminal is taken as an example for description, and specific scene applications of the screen sharing method may be as follows:
201. and the sending terminal receives a screen sharing instruction triggered by a user and performs screen sharing with the receiving terminal according to the screen sharing instruction.
In the embodiment of the present application, the sending terminal may be a mobile phone, the receiving terminal may be a computer, and the present application is specifically described by taking a screen sharing operation between the mobile phone and the computer as an example.
The sending terminal can be in network connection with the receiving terminal, and can start sharing with the receiving terminal after receiving a screen sharing instruction triggered by a user. The screen sharing instruction can be used for screen sharing between the sending terminal and the receiving terminal.
202. And in the process of sharing the screen between the sending terminal and the receiving terminal, acquiring the current network transmission rate.
After the sending terminal and the receiving terminal perform screen sharing, the current network transmission rate can be acquired in the screen sharing process. Since the sending terminal and the receiving terminal perform screen sharing through network connection, a higher network transmission rate is required in the screen sharing process of the sending terminal and the receiving terminal. According to the method and the device, when the network transmission rate is low, the shared display interface of the sending terminal is processed, so that the smoothness of screen sharing is guaranteed.
The current network transmission rate may be a network transmission speed at which the current sending terminal transmits the shared interface to the receiving terminal. For example, the current network transmission speed may be 10 Mbps.
203. The sending terminal judges whether the network transmission rate is less than a preset network transmission rate.
After determining the current network transmission rate, the sending terminal may determine whether the network transmission rate is less than a preset network transmission rate. The preset network transmission rate may be a network transmission rate that is the minimum requirement for screen sharing between the sending terminal and the receiving terminal, and when the network transmission rate is less than the preset network transmission rate, screen sharing between the sending terminal and the receiving terminal may be affected.
For example, the obtained network transmission rate may be 10Mbps, and the preset network transmission rate may be 50Mbps, then it may be determined that the network transmission rate is less than the preset network transmission rate, and step 204 may be executed.
For another example, if the obtained network transmission rate may be 100Mbps and the preset network transmission rate may be 50Mbps, it may be determined that the network transmission rate is less than the preset network transmission rate, and step 208 may be executed.
204. The sending terminal obtains a multiplying factor value between the network transmission rate and a preset network transmission rate.
When the network transmission rate is less than the preset network transmission rate, a magnification value between the network transmission rate and the preset network transmission rate may be obtained, where the definition of the magnification value may refer to the foregoing embodiment, which is not described herein in detail.
For example, the network transmission rate may be 10Mbps, the preset network transmission rate may be 50Mbps, and it may be determined that the multiplication factor value between the network transmission rate and the preset network transmission rate may be 1/5.
205. And the sending terminal determines the size parameter based on the current display interface and the magnification value.
The size parameter is determined based on the current display interface and the magnification value, and the size parameter of the current display interface may be processed according to the magnification value to obtain a processed size parameter, that is, the size parameter.
For example, if the size parameter of the current display interface may be 100x100 and the magnification value may be 1/5, the size parameter and the magnification value of the current display interface are processed, and the processed size parameter may be 20x 20.
206. And the sending terminal intercepts a display area corresponding to the size parameter on the current display interface as a target display interface.
After determining the size parameter, the sending terminal may perform an intercepting operation according to the size parameter on the current display interface.
In some embodiments, please refer to fig. 5, and fig. 5 is a schematic view of a display interface provided in the embodiments of the present application. The display interface shown in fig. 5 may be a current display interface, and the position of the center point of the current display interface may be determined by a size parameter of the current display interface.
Referring to fig. 6, fig. 6 is a schematic view illustrating another display interface processing according to an embodiment of the present disclosure. And determining the processed size parameter according to the size parameter and the magnification value of the current display interface, and determining the intercepting area from the current display interface according to the processed size parameter. In fig. 6, the display interface may be the current display interface, the center point of the current display interface is determined, the processed size parameter is determined according to the size parameter and the magnification value of the current display interface, and then the capture area, that is, the capture area shown in fig. 6, may be determined according to the center point and the processed size parameter, and the center point of the capture area and the center point of the display interface are located at the same position.
After the intercepting area is determined, a clipping operation may be performed on the intercepting area from the current display area, and the intercepting area is used as a target display interface.
207. And the sending terminal sends the target display interface to the receiving terminal so that the receiving terminal processes the target display interface and displays the processed target display interface.
After the target display interface is determined, the sending terminal can send the target display interface to the receiving terminal, the target display interface can be a part of display area of the current display interface, and data transmission quantity is reduced, so that screen sharing between the sending terminal and the receiving terminal is guaranteed when network transmission rate is low. After the receiving terminal receives the target display interface, the target display interface can be displayed, and screen sharing between the sending terminal and the receiving terminal can be realized.
208. The transmitting terminal ends the operation.
When the network transmission rate is greater than the preset network transmission rate, at this time, the screen sharing between the sending terminal and the receiving terminal is not affected by the network transmission rate, and the screen sharing can be continued at the current network transmission rate.
The embodiment of the application discloses a screen sharing method, which comprises the following steps: when a screen sharing instruction is detected, acquiring the current network transmission rate, wherein the screen sharing instruction indicates that a display screen of the sharing equipment is shared with the shared equipment; processing the current display interface according to the network transmission rate to obtain a processed display interface; and sending the processed display interface to the shared device, so that the processed display interface is synchronously displayed on the shared device. According to the method and the device, the network transmission rate of the sending terminal in the screen sharing process is detected, the current display interface is cut according to the network transmission rate to obtain the target display interface, the target display interface is transmitted to the receiving terminal to be displayed, transmitted image data can be reduced when the network transmission rate is low, the smoothness of screen sharing is guaranteed, and the screen sharing efficiency between the terminals can be improved.
In order to better implement the screen sharing method provided by the embodiment of the present application, the embodiment of the present application further provides a device based on the screen sharing method. Wherein the meaning of the noun is the same as that in the screen sharing method, and the specific implementation details can refer to the description in the method embodiment.
Referring to fig. 7, fig. 7 is a block diagram of a screen sharing device according to an embodiment of the present disclosure, where the screen sharing device can be applied to a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a Portable Media Player (PMP), and a fixed terminal such as a desktop computer, and the device includes:
an obtaining unit 301, configured to obtain a current network transmission rate when a screen sharing instruction is detected, where the screen sharing instruction indicates to share a display screen of a shared device with a shared device;
the processing unit 302 is configured to process 303 a current display interface according to the network transmission rate to obtain a processed display interface;
a sending unit 304, configured to send the processed display interface to the shared device, so that the processed display interface is synchronously displayed on the shared device.
In some embodiments, the processing unit 302 may include:
the first acquiring subunit is configured to acquire a magnification value between the network transmission rate and a preset network transmission rate when the network transmission rate is smaller than the preset network transmission rate;
and the processing subunit is used for intercepting the current display interface according to the multiplying power value to obtain the processed display interface.
In some embodiments, the processing subunit may be specifically configured to: acquiring the size parameter of the current display interface; processing the multiplying power value and the size parameter to obtain a processed size parameter; acquiring the position of the central point of the current display interface; determining an intercepting area on the current display interface based on the central point position and the processed size parameter; and determining the processed display interface according to the intercepted area.
In some embodiments, the processing subunit may be further specifically configured to: identifying the content of the current display interface; determining an intercepting area from the current display interface according to a content identification result; and determining the processed display interface according to the intercepted area.
In some embodiments, the processing unit 302 may further include:
the adjusting subunit is used for adjusting the current display interface based on the magnification value to obtain an adjusted display interface;
the dividing subunit is used for dividing the adjusted display interface into a plurality of display sub-areas;
the second obtaining subunit is configured to obtain a display area corresponding to each display sub-area in the current display interface and a difference between the display area and the corresponding display area;
and the determining subunit is used for determining a display sub-region with the largest difference with the display region corresponding to the current display interface from the adjusted display interface, and the determined display sub-region is used as the processed display interface.
In some embodiments, the screen sharing apparatus may further include:
the receiving unit is used for adjusting the current display interface according to the adjusting instruction when the adjusting instruction is received, so that an adjusted display interface is obtained;
a determining unit, configured to determine the processed display interface based on the adjusted display interface.
The embodiment of the application discloses a screen sharing device, which comprises: when a screen sharing instruction is detected, acquiring the current network transmission rate, wherein the screen sharing instruction indicates that a display screen of the sharing device is shared with a shared device; processing the current display interface according to the network transmission rate to obtain a processed display interface; and sending the processed display interface to the shared device, so that the processed display interface is synchronously displayed on the shared device. According to the method and the device, the network transmission rate of the sending terminal in the screen sharing process is detected, the current display interface is cut according to the network transmission rate to obtain the target display interface, the target display interface is transmitted to the receiving terminal to be displayed, transmitted image data can be reduced when the network transmission rate is low, the smoothness of screen sharing is guaranteed, and the screen sharing efficiency between the terminals can be improved.
The embodiment of the application also provides a terminal. As shown in fig. 8, the terminal may include a Radio Frequency (RF) circuit 601, a memory 602 including one or more storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a Wireless Fidelity (WiFi) module 607, a processor 608 including one or more processing cores, and a power supply 609. Those skilled in the art will appreciate that the terminal structure shown in fig. 8 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 601 may be used for receiving and transmitting signals during the process of transmitting and receiving information, and in particular, for processing the received downlink information of the base station by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 601 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 601 may also communicate with networks and other devices via wireless communications.
The memory 602 may be used to store software programs and modules, and the processor 608 executes various functional applications and screen sharing by operating the software programs and modules stored in the memory 602. The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like. Further, the memory 602 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 access to the memory 602.
The input unit 603 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 603 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. The input unit 603 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 604 may be used to display information input by or provided to the user and various graphical user interfaces of the server, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 604 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 8 the touch sensitive surface and the display panel are implemented as two separate components for input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel for input and output functions.
The terminal may also include at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that turns off the display panel and the backlight when the server moves to the ear.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 607, and provides wireless broadband internet access for the user. Although fig. 8 shows the WiFi module 607, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope of not changing the essence of the application.
The processor 608 is a control center of the terminal, connects various parts of the entire mobile phone using various interfaces and lines, performs various functions of the server and processes data by operating or executing software programs and modules stored in the memory 602 and calling data stored in the memory 602, thereby integrally monitoring the mobile phone. Optionally, processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The terminal also includes a power supply 609 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 608 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 609 may also include any component, such as one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Specifically, in this embodiment, the processor 608 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and the processor 608 runs the application programs stored in the memory 602, thereby implementing various functions:
when a screen sharing instruction is detected, acquiring the current network transmission rate, wherein the screen sharing instruction indicates that a display screen of the sharing equipment is shared with the shared equipment;
processing the current display interface according to the network transmission rate to obtain a processed display interface;
and sending the processed display interface to the shared device, so that the processed display interface is synchronously displayed on the shared device.
The embodiment of the application discloses a screen sharing method and device, a storage medium and a terminal. The screen sharing method comprises the following steps: when a screen sharing instruction is detected, acquiring the current network transmission rate, wherein the screen sharing instruction indicates that a display screen of the sharing equipment is shared with the shared equipment; processing the current display interface according to the network transmission rate to obtain a processed display interface; and sending the processed display interface to the shared device, so that the processed display interface is synchronously displayed on the shared device. According to the method and the device, the network transmission rate of the sending terminal in the screen sharing process is detected, the current display interface is cut according to the network transmission rate to obtain the target display interface, the target display interface is transmitted to the receiving terminal to be displayed, transmitted image data can be reduced when the network transmission rate is low, the smoothness of screen sharing is guaranteed, and the screen sharing efficiency between the terminals can be improved.
It will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by instructions or by instructions controlling associated hardware, which may be stored in a storage medium and loaded and executed by a processor.
To this end, the present application provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the screen sharing methods provided in the present application. For example, the instructions may perform the steps of:
when a screen sharing instruction is detected, acquiring the current network transmission rate, wherein the screen sharing instruction indicates that a display screen of the sharing equipment is shared with the shared equipment; processing the current display interface according to the network transmission rate to obtain a processed display interface; and sending the processed display interface to the shared device, so that the processed display interface is synchronously displayed on the shared device.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any screen sharing method provided in the embodiments of the present application, beneficial effects that can be achieved by any screen sharing method provided in the embodiments of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The screen sharing method, device, storage medium and terminal provided by the embodiment of the present application are described in detail above, and a specific example is applied in the description to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (9)
1. A screen sharing method is applied to a sharing device and comprises the following steps:
when a screen sharing instruction is detected, acquiring the current network transmission rate, wherein the screen sharing instruction indicates that a display screen of the sharing equipment is shared with the shared equipment;
when the network transmission rate is smaller than a preset network transmission rate, acquiring a multiplying power value between the network transmission rate and the preset network transmission rate;
intercepting the current display interface according to the multiplying power value to obtain a processed display interface;
and sending the processed display interface to the shared device, so that the processed display interface is synchronously displayed on the shared device.
2. The method according to claim 1, wherein the intercepting the current display interface according to the magnification value comprises:
acquiring the size parameter of the current display interface;
processing the multiplying power value and the size parameter to obtain a processed size parameter;
and performing interception processing on the current display interface based on the processed size parameters.
3. The method of claim 2, wherein the performing a clipping process on the current display interface based on the processed size parameter comprises:
acquiring the position of the central point of the current display interface;
determining an intercepting area on the current display interface based on the central point position and the processed size parameter;
and determining the processed display interface according to the intercepted area.
4. The method according to claim 2 or 3, wherein the performing of the intercepting process on the current display interface based on the processed size parameter comprises:
identifying the content of the current display interface;
determining an intercepting area from the current display interface according to a content identification result;
and determining the processed display interface according to the intercepted area.
5. The method according to claim 1 or 2, wherein the intercepting processing of the current display interface according to the magnification value to obtain a processed display interface comprises:
adjusting the current display interface based on the multiplying power value to obtain an adjusted display interface;
dividing the adjusted display interface into a plurality of display sub-areas;
acquiring a corresponding display area of each display sub-area in the current display interface and a change difference between the display area and the corresponding display area;
and determining a display sub-area with the largest difference with the corresponding display area in the current display interface from the adjusted display interface as the processed display interface.
6. The method of claim 1, further comprising, prior to sending the post-processing display interface to the shared device:
when an adjusting instruction is received, adjusting the current display interface according to the adjusting instruction to obtain an adjusted display interface;
determining the processed display interface based on the adjusted display interface.
7. A screen sharing apparatus, comprising:
the device comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring the current network transmission rate when a screen sharing instruction is detected, and the screen sharing instruction indicates that a display screen of the sharing device is shared with a shared device;
the processing unit is used for acquiring a multiplying factor value between the network transmission rate and a preset network transmission rate when the network transmission rate is smaller than the preset network transmission rate; intercepting the current display interface according to the multiplying power value to obtain a processed display interface;
and the sending unit is used for sending the processed display interface to the shared device so as to enable the processed display interface to be synchronously displayed on the shared device.
8. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the screen sharing method of any one of claims 1 to 6.
9. A terminal comprising a processor and a memory, the memory storing a plurality of instructions, the processor loading the instructions to perform the screen sharing method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010908851.1A CN111949239B (en) | 2020-09-02 | 2020-09-02 | Screen sharing method and device, storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010908851.1A CN111949239B (en) | 2020-09-02 | 2020-09-02 | Screen sharing method and device, storage medium and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111949239A CN111949239A (en) | 2020-11-17 |
CN111949239B true CN111949239B (en) | 2022-07-08 |
Family
ID=73367200
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010908851.1A Active CN111949239B (en) | 2020-09-02 | 2020-09-02 | Screen sharing method and device, storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111949239B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114584816B (en) * | 2020-11-30 | 2024-06-11 | 上海新微技术研发中心有限公司 | An Zhuotou screen definition setting method, computer-readable storage medium, and apparatus |
CN113030914A (en) * | 2021-02-24 | 2021-06-25 | 安徽理工大学 | Urban engineering surveying and mapping measuring device for building heritage and using method thereof |
CN115499693B (en) * | 2022-08-09 | 2024-10-15 | 深圳市酷开网络科技股份有限公司 | Multi-screen different display control method, device and system, storage medium and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102510405A (en) * | 2011-11-18 | 2012-06-20 | 深圳中兴网信科技有限公司 | Screen sharing method and system |
CN103838543A (en) * | 2014-03-27 | 2014-06-04 | 成都睿明医疗信息技术有限公司 | Screen picture sharing method and system |
CN109104610A (en) * | 2017-06-20 | 2018-12-28 | 微软技术许可有限责任公司 | Real time screen is shared |
CN109324772A (en) * | 2017-07-31 | 2019-02-12 | 中兴通讯股份有限公司 | Method of data synchronization, mobile terminal and the storage medium of mobile terminal |
CN110377253A (en) * | 2019-06-27 | 2019-10-25 | 东软集团股份有限公司 | A kind of multimedia resource sharing method, device, system, equipment and medium |
CN111049868A (en) * | 2018-10-15 | 2020-04-21 | 北京仁光科技有限公司 | Data interaction system and data interaction method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014157889A1 (en) * | 2013-03-25 | 2014-10-02 | Samsung Electronics Co., Ltd. | Method and apparatus for improving quality of experience in sharing screen among devices, and recording medium thereof |
-
2020
- 2020-09-02 CN CN202010908851.1A patent/CN111949239B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102510405A (en) * | 2011-11-18 | 2012-06-20 | 深圳中兴网信科技有限公司 | Screen sharing method and system |
CN103838543A (en) * | 2014-03-27 | 2014-06-04 | 成都睿明医疗信息技术有限公司 | Screen picture sharing method and system |
CN109104610A (en) * | 2017-06-20 | 2018-12-28 | 微软技术许可有限责任公司 | Real time screen is shared |
CN109324772A (en) * | 2017-07-31 | 2019-02-12 | 中兴通讯股份有限公司 | Method of data synchronization, mobile terminal and the storage medium of mobile terminal |
CN111049868A (en) * | 2018-10-15 | 2020-04-21 | 北京仁光科技有限公司 | Data interaction system and data interaction method |
CN110377253A (en) * | 2019-06-27 | 2019-10-25 | 东软集团股份有限公司 | A kind of multimedia resource sharing method, device, system, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN111949239A (en) | 2020-11-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020215720A1 (en) | Photographing method, storage medium, and electronic device | |
CN111949239B (en) | Screen sharing method and device, storage medium and terminal | |
CN111158455A (en) | Power consumption control method and device, storage medium and terminal | |
CN111324235A (en) | Screen refreshing frequency adjusting method and electronic equipment | |
CN106658064B (en) | Virtual gift display method and device | |
US11165950B2 (en) | Method and apparatus for shooting video, and storage medium | |
CN105989572B (en) | Picture processing method and device | |
CN108513671B (en) | Display method and terminal for 2D application in VR equipment | |
CN103488450A (en) | Method, device and terminal equipment for projecting picture | |
CN110874128B (en) | Visualized data processing method and electronic equipment | |
WO2020007116A1 (en) | Split-screen window adjustment method and apparatus, storage medium and electronic device | |
CN111182236A (en) | Image synthesis method and device, storage medium and terminal equipment | |
CN108564539B (en) | Method and device for displaying image | |
CN111240451B (en) | Heat dissipation method, electronic device and computer-readable storage medium | |
CN112040324A (en) | Playing progress adjusting method and device, storage medium and terminal | |
CN111158815B (en) | Dynamic wallpaper blurring method, terminal and computer readable storage medium | |
CN110688051B (en) | Screen recording operation method and device, computer readable storage medium and terminal | |
CN110221765B (en) | Video file playing method and device, storage medium and terminal | |
WO2021104162A1 (en) | Display method and electronic device | |
CN109491631B (en) | Display control method and terminal | |
CN114063962B (en) | Image display method, device, terminal and storage medium | |
CN108920086B (en) | Split screen quitting method and device, storage medium and electronic equipment | |
CN105184750A (en) | Method and device of denoising real-time video images on mobile terminal | |
CN114155142A (en) | Image processing method, image processing device, computer-readable storage medium and computer equipment | |
CN110996003B (en) | Photographing positioning method and device and mobile terminal |
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 |