CN116257195A - Screen projection method and device, storage medium and electronic equipment - Google Patents

Screen projection method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN116257195A
CN116257195A CN202111501296.1A CN202111501296A CN116257195A CN 116257195 A CN116257195 A CN 116257195A CN 202111501296 A CN202111501296 A CN 202111501296A CN 116257195 A CN116257195 A CN 116257195A
Authority
CN
China
Prior art keywords
screen
target
throwing
parameter
terminal
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.)
Pending
Application number
CN202111501296.1A
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202111501296.1A priority Critical patent/CN116257195A/en
Publication of CN116257195A publication Critical patent/CN116257195A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • G06F3/1462Digital 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 with means for detecting differences between the image stored in the host and the images displayed on the remote displays
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The disclosure relates to a screen projection method, a screen projection device, a storage medium and electronic equipment. The method comprises the following steps: under the condition that a terminal performs screen projection to target equipment, periodically acquiring current state parameters of the terminal; adjusting target screen projection parameters of the terminal according to the current state parameters acquired in the current period; and sending screen projection data to the target equipment according to the adjusted target screen projection parameters, and displaying the screen projection data by the target equipment. Therefore, the target screen-throwing parameter is dynamically adjusted according to the current state parameter of the terminal, and the screen is thrown according to the target screen-throwing parameter, so that the power consumption of the terminal can be reduced, the screen-throwing delay and the screen-throwing blockage are avoided, and the screen-throwing experience of a user is improved.

Description

Screen projection method and device, storage medium and electronic equipment
Technical Field
The disclosure relates to the technical field of terminals, and in particular relates to a screen projection method, a screen projection device, a storage medium and electronic equipment.
Background
With the progress of terminal technology, the screen projection function has been widely applied to the daily life of users. For example, a user can project a display interface of the terminal to other target devices (such as a smart television, a projector and the like) supporting the screen projection function for display by installing screen projection software in the terminal, so that the user can conveniently view display contents in the same device on different devices, conveniently analyze the display interface with multiple people, and achieve better watching effect. However, in the related art, a delay or a blocking phenomenon occurs in the screen projection process, which affects the viewing effect of the user.
Disclosure of Invention
In order to overcome the above problems in the related art, the present disclosure provides a screen projection method, apparatus, storage medium and electronic device.
According to a first aspect of embodiments of the present disclosure, there is provided a screen projection method, the method including:
under the condition that a terminal performs screen projection to target equipment, periodically acquiring current state parameters of the terminal;
adjusting target screen projection parameters of the terminal according to the current state parameters acquired in the current period;
and sending screen throwing data to the target equipment according to the adjusted target screen throwing parameters, wherein the screen throwing data are used for displaying the screen throwing data by the target equipment.
Optionally, before adjusting the target screen projection parameter of the terminal according to the current state parameter of the terminal, the method further comprises:
periodically acquiring the screen-throwing application type of the terminal;
the adjusting the target screen projection parameter of the terminal according to the current state parameter acquired in the current period comprises the following steps:
and adjusting the target screen-throwing parameter according to the current state parameter and the screen-throwing application type acquired in the current period.
Optionally, the target screen-throwing parameter includes a target screen-throwing resolution and a target screen-throwing frame rate, and the adjusting the target screen-throwing parameter according to the current state parameter and the screen-throwing application type acquired in the current period includes:
Reducing the target screen-throwing frame rate to a first frame rate under the condition that the screen-throwing application type is a first application type and the current state parameter is greater than or equal to a first preset parameter threshold value; or alternatively, the process may be performed,
reducing the target screen-throwing resolution to a first resolution under the condition that the screen-throwing application type is a second application type and the current state parameter is greater than or equal to a second preset parameter threshold; or alternatively, the process may be performed,
and under the condition that the screen-throwing application type is a third application type and the current state parameter is larger than or equal to a third preset parameter threshold value, reducing the target screen-throwing frame rate to a second frame rate, and reducing the target screen-throwing resolution to a second resolution.
Optionally, the method further comprises:
according to the screen projection application type, determining a first preset parameter reduction step length and a first preset parameter adjustment minimum value corresponding to the target screen projection parameter;
determining a first parameter adjustment candidate value according to the target screen projection parameter and the first preset parameter reduction step length;
determining a first parameter adjustment target value according to the first parameter adjustment candidate value and the first preset parameter adjustment minimum value; wherein the first parameter adjustment target value includes the first frame rate, the first resolution, the second frame rate, or the second resolution.
Optionally, the method further comprises:
and reducing the screen display resolution of the terminal to the first resolution under the condition that the screen-throwing application type is a second application type and the current state parameter is greater than or equal to the second preset parameter threshold.
Optionally, before the periodically acquiring the current state parameter of the terminal, the method further includes:
under the condition of receiving a screen-throwing starting instruction, acquiring an initial screen-throwing application type of the terminal;
determining candidate screen throwing parameters corresponding to the initial screen throwing application type according to the application screen throwing parameter corresponding relation, wherein the application screen throwing parameter corresponding relation comprises the corresponding relation between the initial screen throwing application type and the candidate screen throwing parameters;
determining target screen projection parameters of the terminal according to the candidate screen projection parameters;
and sending screen projection data to the target equipment according to the target screen projection parameters so as to project the screen to the target equipment.
Optionally, the adjusting the target screen projection parameter according to the current state parameter of the terminal includes:
and under the condition that the current state parameter is greater than or equal to a fourth preset parameter threshold, reducing the target screen projection parameter to a screen projection parameter adjustment target value.
Optionally, the screen parameter adjustment target value is obtained by the following method:
acquiring a second preset parameter reduction step length and a second preset parameter adjustment minimum value corresponding to the target screen projection parameter;
determining a second parameter adjustment candidate value according to the target screen projection parameter and a second preset parameter reduction step length;
and determining the screen throwing parameter adjustment target value according to the second parameter adjustment candidate value and the second preset parameter adjustment minimum value.
Optionally, the current state parameter includes one or more of a processor occupancy rate, a memory occupancy rate, and a terminal device temperature of the terminal.
According to a second aspect of embodiments of the present disclosure, there is provided a screen projection device, the device comprising:
the parameter acquisition module is configured to periodically acquire current state parameters of the terminal under the condition that the terminal performs screen projection to target equipment;
the parameter adjustment module is configured to adjust target screen projection parameters of the terminal according to the current state parameters acquired in the current period;
the data sending module is configured to send screen projection data to the target equipment according to the adjusted target screen projection parameters and used for displaying the screen projection data by the target equipment.
Optionally, the apparatus further comprises:
the application type acquisition module is configured to periodically acquire the screen-throwing application type of the terminal;
the parameter adjustment module is configured to adjust the target screen projection parameter according to the current state parameter and the screen projection application type acquired in the current period.
Optionally, the target screen-projection parameters include a target screen-projection resolution and a target screen-projection frame rate, and the parameter adjustment module is configured to:
reducing the target screen-throwing frame rate to a first frame rate under the condition that the screen-throwing application type is a first application type and the current state parameter is greater than or equal to a first preset parameter threshold value; or alternatively, the process may be performed,
reducing the target screen-throwing resolution to a first resolution under the condition that the screen-throwing application type is a second application type and the current state parameter is greater than or equal to a second preset parameter threshold; or alternatively, the process may be performed,
and under the condition that the screen-throwing application type is a third application type and the current state parameter is larger than or equal to a third preset parameter threshold value, reducing the target screen-throwing frame rate to a second frame rate, and reducing the target screen-throwing resolution to a second resolution.
Optionally, the parameter adjustment module is further configured to determine a first preset parameter reduction step length and a first preset parameter adjustment minimum value corresponding to the target screen projection parameter according to the screen projection application type; determining a first parameter adjustment candidate value according to the target screen projection parameter and the first preset parameter reduction step length; determining a first parameter adjustment target value according to the first parameter adjustment candidate value and the first preset parameter adjustment minimum value; wherein the first parameter adjustment target value includes the first frame rate, the first resolution, the second frame rate, or the second resolution.
Optionally, the parameter adjustment module is further configured to reduce the screen display resolution of the terminal to the first resolution when the screen-casting application type is a second application type and the current state parameter is greater than or equal to the second preset parameter threshold.
Optionally, the apparatus further comprises:
the screen-throwing starting module is configured to acquire an initial screen-throwing application type of the terminal under the condition that a screen-throwing starting instruction is received; determining candidate screen throwing parameters corresponding to the initial screen throwing application type according to the application screen throwing parameter corresponding relation, wherein the application screen throwing parameter corresponding relation comprises the corresponding relation between the initial screen throwing application type and the candidate screen throwing parameters; determining target screen projection parameters of the terminal according to the candidate screen projection parameters;
The data sending module is configured to send screen projection data to the target equipment according to the target screen projection parameters so as to carry out screen projection to the target equipment.
Optionally, the parameter adjustment module is configured to reduce the target screen projection parameter to a screen projection parameter adjustment target value when the current state parameter is greater than or equal to a fourth preset parameter threshold.
Optionally, the parameter adjustment module is configured to obtain a second preset parameter reduction step length and a second preset parameter adjustment minimum value corresponding to the target screen projection parameter; determining a second parameter adjustment candidate value according to the target screen projection parameter and a second preset parameter reduction step length; and determining the screen throwing parameter adjustment target value according to the second parameter adjustment candidate value and the second preset parameter adjustment minimum value.
Optionally, the current state parameter includes one or more of a processor occupancy rate, a memory occupancy rate, and a terminal device temperature of the terminal.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the steps of the method of screening provided in the first aspect of the present disclosure.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of screening provided by the first aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: under the condition that a terminal performs screen projection to target equipment, periodically acquiring current state parameters of the terminal; adjusting target screen projection parameters of the terminal according to the current state parameters acquired in the current period; and sending screen projection data to the target equipment according to the adjusted target screen projection parameters, and displaying the screen projection data by the target equipment. Therefore, the target screen-throwing parameter is dynamically adjusted according to the current state parameter of the terminal, and the screen is thrown according to the target screen-throwing parameter, so that the power consumption of the terminal can be reduced, the screen-throwing delay and the screen-throwing blockage are avoided, and the screen-throwing experience of a user is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flowchart illustrating a method of screen projection according to an exemplary embodiment.
FIG. 2 is a flow chart illustrating another method of screening according to an exemplary embodiment.
Fig. 3 is a block diagram of a screen-casting device, according to an example embodiment.
Fig. 4 is a block diagram of another screen projection device, according to an example embodiment.
Fig. 5 is a block diagram of another screen projection device, according to an example embodiment.
Fig. 6 is a block diagram of an electronic device, shown in accordance with an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
First, an application scenario of the present disclosure will be described. The present disclosure may be applied to screen-cast scenes, particularly screen-mirrored screen-cast scenes. When the screen mirror images are projected, the terminal sends images displayed by the screen to target equipment for projection in real time, at the moment, the power consumption of the terminal is high, the resource consumption is high, and particularly for image scenes (such as videos and games) with high element richness, the smoothness of projection is affected due to the fact that the load of a processor or a memory is high due to the fact that a large number of operations are rendered by the terminal, and delay or blocking problems can occur in the projection process due to the fact that the computing capacity and network bandwidth of the target equipment are affected.
In order to solve the problems, the disclosure provides a screen projection method, a device, a storage medium and an electronic device, which periodically acquire current state parameters of a terminal, dynamically adjust target screen projection parameters according to the current state parameters, and project a screen according to the target screen projection parameters, so that the power consumption of the terminal can be reduced, the screen projection delay and the screen blockage are avoided, and the screen projection experience of a user is improved.
The present disclosure is described below in connection with specific embodiments.
FIG. 1 is a flow chart of a method of screening, as shown in FIG. 1, according to an exemplary embodiment, the method may include:
s101, periodically acquiring current state parameters of the terminal under the condition that the terminal performs screen projection to target equipment.
The current state reference may include one or more of a processor occupancy rate, a memory occupancy rate, and a terminal device temperature of the terminal. The processor occupancy may include CPU (Central Processing Unit ) occupancy or GPU (Graphics Processing Unit, graphics processor) occupancy. The terminal device temperature may detect the acquired temperature of the terminal processor chip by a temperature sensor provided in the terminal.
S102, adjusting target screen projection parameters of the terminal according to the current state parameters acquired in the current period.
The target screen-projection parameters may include one or more of a target screen-projection resolution, a target screen-projection frame rate, a target transmission code rate, and a target codec compression rate. It should be noted that, among the above-mentioned multiple target screen-throwing parameters, the target screen-throwing resolution and the target screen-throwing frame rate are basic parameters, and the target transmission code rate and the target codec compression rate may be calculated according to the target screen-throwing resolution, the target screen-throwing frame rate and the screen display resolution of the terminal.
And S103, sending screen projection data to target equipment according to the adjusted target screen projection parameters, and displaying the screen projection data by the target equipment.
The display data can be encoded and compressed data, and after receiving the target screen projection parameters and the display data, the target equipment can decode the display data according to the target screen projection parameters and display the decoded display data.
For example, if the current state parameter includes the processor occupancy rate, if the processor occupancy rate is greater than or equal to the preset processor occupancy rate threshold, the target screen-throwing resolution may be reduced, or the target screen-throwing frame rate may be reduced, and the processing and the transmission of the screen-throwing data may be performed according to the reduced target screen-throwing resolution or the target screen-throwing frame rate, so that the operation overhead of the processor may be reduced, thereby reducing the processor occupancy rate, and avoiding or reducing the problem of screen-throwing and blocking caused by the excessively high processor occupancy rate.
For another example, if the current state parameter includes the memory occupancy rate, if the memory occupancy rate is greater than or equal to the preset memory occupancy rate threshold, the target screen-throwing resolution may be reduced, or the target screen-throwing frame rate may be reduced, and the screen-throwing data may be processed and transmitted according to the reduced target screen-throwing resolution or target screen-throwing frame rate, so as to reduce the memory overhead, thereby reducing the memory occupancy rate, and avoiding or reducing the problem of screen-throwing blocking caused by the excessive memory occupancy rate.
It should be noted that, if the current state parameter includes a plurality of parameters, any one of the parameters satisfies a preset condition, that is, the target screen projection parameter of the terminal may be adjusted. For example, if the current state parameter includes the processor occupancy rate, the memory occupancy rate and the terminal device temperature, if the processor occupancy rate is greater than or equal to a preset processor occupancy rate threshold, or the memory occupancy rate is greater than or equal to a preset memory occupancy rate threshold, or the terminal device temperature is greater than or equal to a preset temperature threshold, the target screen-projection resolution may be reduced, or the target screen-projection frame rate may be reduced, and the processing and the transmission of the screen-projection data may be performed according to the reduced target screen-projection resolution or the target screen-projection frame rate, so that the processor overhead and the memory overhead may be reduced, and the terminal device temperature may be reduced, thereby avoiding or reducing the problem of screen-projection jamming.
By adopting the method, under the condition that the terminal performs screen projection to the target equipment, the current state parameter of the terminal is periodically acquired; adjusting target screen projection parameters of the terminal according to the current state parameters acquired in the current period; and sending screen projection data to the target equipment according to the adjusted target screen projection parameters, and displaying the screen projection data by the target equipment. Therefore, the target screen-throwing parameter is dynamically adjusted according to the current state parameter of the terminal, and the screen is thrown according to the target screen-throwing parameter, so that the power consumption of the terminal can be reduced, the screen-throwing delay and the screen-throwing blockage are avoided, and the screen-throwing experience of a user is improved.
FIG. 2 is a flowchart illustrating another method of screening, as shown in FIG. 2, according to an exemplary embodiment, the method may include:
s201, under the condition that a terminal performs screen projection to target equipment, periodically acquiring the screen projection application type and the current state parameters of the terminal.
The screen-throwing application type may be used to characterize the type of application being displayed by the terminal screen, and for example, the application of the terminal may be divided into a first application type, a second application type and a third application type, where the first application type may be a text application, and the text application may include an instant messaging application, a text reading application, a web browser application, a document processing application, a picture browsing application, and the like; the second application type may be a game-like application, which may include a stand-alone game application, a network game application, or the like; the third application type may be a video class application, which may include a network video playback application, a local video playback application, and the like.
The current state parameter may also include one or more of a processor occupancy, a memory occupancy, and a terminal device temperature of the terminal.
It should be noted that, the period for acquiring the type of the screen-throwing application and the period for acquiring the current state parameter may be the same or different. For example, the first period of acquiring the screen-cast application type may be greater than or equal to the second period of acquiring the current state parameter, e.g., the first period may be any time greater than or equal to 1 minute; the second period may be any time greater than or equal to 1 second and less than or equal to the first period. The acquired screen-throwing application type and the current state parameter can be stored in a memory variable of the terminal, and the memory variable is updated in each period so as to maintain the accuracy and the instantaneity of the screen-throwing application type and the current state parameter stored by the memory variable.
Alternatively, in order to avoid the problem that the current state parameter of the terminal fluctuates to cause frequent adjustment of the screen-throwing parameter, the current state parameter may be subjected to smoothing filtering, for example, an average value of the current state parameters of the last N periods may be taken as the current state parameter of the current period per period. Thus, the accuracy of the current state parameters can be improved through smoothing filtering processing, so that the problem of frequent adjustment of the target screen projection parameters caused by parameter fluctuation can be avoided, and the reliability of adjustment of the target screen projection parameters is improved.
S202, adjusting target screen projection parameters according to the current state parameters and the screen projection application types acquired in the current period.
The current state parameter and the screen-casting application type acquired in the current period may be the latest current state parameter and screen-casting application type stored in a memory variable of the terminal.
The above-mentioned target screen-projection parameters may include a target screen-projection resolution and a target screen-projection frame rate, and in this step, the manner of adjusting the target screen-projection parameters may be one or more of the following manners:
in the first mode, the target screen-throwing frame rate is reduced to the first frame rate under the condition that the screen-throwing application type is the first application type and the current state parameter is larger than or equal to the first preset parameter threshold value.
It should be noted that, when the current state parameter is greater than or equal to the first preset parameter threshold, the current state parameter may be used to characterize that the power consumption of the terminal is greater, and when the screen-casting application of the first application type performs screen-casting, if the current state parameter is greater than or equal to the first preset parameter threshold for a long time, the problem of screen-casting delay or jamming may occur with a greater probability.
For example, the current state parameter may include a processor occupancy rate, and the first preset parameter threshold may be 80%, so that if the processor occupancy rate of the terminal is greater than or equal to 80% and the screen-drop application type is the first application type, the target screen-drop frame rate may be reduced to the first frame rate.
For another example, the current state parameter may include a memory occupancy rate, and the first preset parameter threshold may be 90%, so that if the memory occupancy rate of the terminal is greater than or equal to 90% and the screen-projection application type is the first application type, the target screen-projection frame rate may be reduced to the first frame rate.
For another example, the current state parameter may include a terminal device temperature, and the first preset parameter threshold may be 30 degrees celsius, so that if the terminal device temperature is greater than or equal to 30 degrees celsius and the screen-projection application type is the first application type, the target screen-projection frame rate may be reduced to the first frame rate.
The first application type can be a text application, the change frequency of the text application is small, and the requirement on the screen-throwing frame rate is low, so that the screen-throwing data can be transmitted by adopting the low screen-throwing frame rate, the screen-throwing experience of a user is not reduced, and the power consumption of the terminal can be reduced. The first frame rate may be a first minimum target drop frame rate corresponding to a preset text class application, for example, 7.5 frames per second.
Further, the first frame rate may be a frame rate that is reduced according to a preset step size based on the current target screen-throwing frame rate. For example, the first frame rate may be determined by a parameter adjustment step, which may include:
Firstly, determining a first preset parameter reduction step length and a first preset parameter adjustment minimum value corresponding to a target screen projection parameter according to a screen projection application type.
And secondly, determining a first parameter adjustment candidate value according to the target screen projection parameter and the first preset parameter reduction step length.
For example, a difference obtained by subtracting the first preset parameter reduction step from the target projection parameter may be used as the first parameter adjustment candidate.
And determining a first parameter adjustment target value according to the first parameter adjustment candidate value and the first preset parameter adjustment minimum value.
For example, the larger value of the first parameter adjustment candidate value and the first preset parameter adjustment minimum value may be used as the first parameter adjustment target value.
Wherein the first parameter adjustment target value may include a first frame rate, a first resolution, a second frame rate, or a second resolution; the target landing parameter may include a target landing frame rate and a target landing resolution. In the case that the target projection parameter includes a target projection frame rate, the first parameter adjustment target value may include the first frame rate or the second frame rate; in the case where the target projection parameter includes a target projection resolution, the first parameter adjustment target value may include the first resolution or the second resolution described above.
For example, in the case where the drop application type is the first application type, the first parameter adjustment target value may be a first frame rate, the target drop parameter may include a target drop frame rate (e.g., 30 frames per second or 10 frames per second), the first preset parameter decrease step may be a first preset frame rate decrease step (e.g., 5 frames per second), and the first preset parameter adjustment minimum may be a first preset frame rate adjustment minimum (e.g., 7.5 frames per second).
For example, in the case where the first preset frame rate reduction step is 5 frames per second and the first preset frame rate adjustment minimum value is 7.5 frames per second, if the target screen-on frame rate is 30 frames per second, the first parameter adjustment candidate value is calculated to be 30-5=25 frames per second, and since the first parameter adjustment candidate value is greater than the first preset frame rate adjustment minimum value, the first frame rate can be 25 frames per second; if the target screen-throwing frame rate is 10 frames per second, the first parameter adjustment candidate value is calculated to be 10 < -5 > = 5 frames per second, and the first parameter adjustment candidate value is smaller than the first preset frame rate adjustment minimum value, so that the first frame rate is 7.5 frames per second.
Therefore, the target screen-throwing frame rate can be properly reduced according to the preset step length so as to reduce the power consumption of the terminal, and the problem of excessively low screen-throwing instantaneity caused by the fact that the reduced target screen-throwing frame rate is smaller than the minimum value can be avoided, so that the balanced target screen-throwing parameters can be obtained between the power consumption of the terminal and the screen-throwing effect.
It should be noted that, in the first mode, when the screen-throwing application type is the first application type (for example, a text application) and the current state parameter is greater than or equal to the first preset parameter threshold, the target screen-throwing resolution may be kept unchanged, or the target screen-throwing resolution may be adjusted to a preset specific resolution (for example, 1080P, 720P or 480P), so that the screen-throwing effect of the text application may be ensured.
And in a second mode, under the condition that the screen-throwing application type is a second application type and the current state parameter is greater than or equal to a second preset parameter threshold value, reducing the target screen-throwing resolution to the first resolution.
It should be noted that, the current state parameter is greater than or equal to the second preset parameter threshold, which may be used to characterize that the power consumption of the terminal is greater, and when the screen-casting application of the second application type performs screen-casting, if the current state parameter is greater than or equal to the second preset parameter threshold for a long time, the problem of screen-casting delay or jamming will occur with a greater probability.
The second application type may be a game application, where the change frequency of the game application is relatively high, and the real-time requirement on screen projection is high, so that a relatively high screen projection frame rate is required to be maintained, and in order to reduce the power consumption of the terminal and ensure the smoothness of the game, the target screen projection resolution may be reduced, and the target screen projection frame rate is kept unchanged. The first resolution may be a first minimum target resolution corresponding to a preset game application, for example, 360P or 480P.
Further, the first resolution may be a resolution frame rate after being reduced according to a preset step size based on the current target screen-throwing resolution, and the first resolution may be determined by the parameter adjustment step.
For example, the resolution may be divided into the following levels: 4K, 2K, 1080P, 720P, 480P, 360P and 240P. In the second mode, in the case where the screen-throwing application type is the second application type, in the step of adjusting the parameter, the first parameter adjustment target value may be a first resolution, the target screen-throwing parameter may include a target screen-throwing resolution (for example, 1080P or 720P), the first preset parameter reduction step may include a first preset resolution reduction step (for example, one resolution level), and the first preset parameter adjustment minimum value may include a first preset resolution adjustment minimum value (for example, 360P).
Under the condition that the first preset resolution reduction step length is one grade and the first preset resolution adjustment minimum value is 360P, if the target screen projection resolution is 720P, calculating to obtain a first parameter adjustment candidate value which is 480P, wherein the first parameter adjustment candidate value is larger than the first preset resolution adjustment minimum value, so that the first resolution is 480P; if the target screen-projection resolution is 360P, the first parameter adjustment candidate value is calculated to be 240P, and since the first parameter adjustment candidate value is smaller than the first preset resolution adjustment minimum value, the first resolution is 360P.
Therefore, the target screen-throwing resolution can be properly reduced according to the preset step length so as to reduce the power consumption of the terminal, and the problem that the screen-throwing image definition is too low due to the fact that the reduced target screen-throwing resolution is smaller than the minimum value can be avoided, so that the balanced target screen-throwing parameters can be obtained between the power consumption of the terminal and the screen-throwing effect.
Further, when the game application runs, the equipment utilization rate of the terminal is greatly increased due to the calculation amount of the game itself, and the machine temperature heating is more serious, so that when the condition in the second mode is satisfied, that is, when the screen-throwing application type is the second application type (game application) and the current state parameter is greater than or equal to the second preset parameter threshold value, the screen display resolution of the terminal can be reduced to the first resolution in addition to the target screen throwing resolution.
Therefore, the power consumption of the terminal can be further reduced, and the running smoothness and screen throwing effect of the game application are improved.
Optionally, for a screen of a control game application (where the control game is used to represent a game in which a terminal side is used as a control end and a target device for screen casting is used as a presentation end), control component information of the control game application may be displayed on a screen of the terminal, and the presentation component information of the control game application may be encoded into game screen casting data, and the game screen casting data may be sent to the target device, so that the target device presents the presentation component information.
By way of example, the control component information may include control buttons, maps and other necessary UI (User Interface) components, etc.; the presentation component information may include game characters, background pictures, etc. Therefore, the power consumption of the mobile phone terminal can be reduced, and the definition and fluency of screen-throwing display can be ensured.
And in a third mode, when the screen-throwing application type is a third application type and the current state parameter is greater than or equal to a third preset parameter threshold, reducing the target screen-throwing frame rate to a second frame rate, and reducing the target screen-throwing resolution to the second resolution.
The third application type may be a video application, and the resolution and the frame rate of the video application are both higher, so that the power consumption of the terminal is greatly affected, and in the case that the screen-throwing application type is the third application type (video application) and the current state parameter is greater than or equal to the third preset parameter threshold, the target screen-throwing frame rate and the target screen-throwing resolution can be both reduced, so that the power consumption of the terminal is reduced under the condition that basic viewing experience is ensured.
The second frame rate may be a second minimum target frame rate corresponding to a preset video class application, for example, 20 frames per second. The second resolution may be a second minimum target resolution corresponding to a preset video class application, for example, 480P or 720P.
In the third mode, the second frame rate or the second resolution may also be determined by the above parameter adjustment step, and the specific implementation step may be referred to the step in the first mode or the second mode, which is not described herein.
It should be noted that, the first preset parameter threshold, the second preset parameter threshold, and the third preset parameter threshold may be preset according to experience or experimental data, and the disclosure is not limited to the magnitude relation among the three preset parameter thresholds.
Further, in the first to third modes, a plurality of preset parameter thresholds may be set, and the first parameter adjustment target values corresponding to different preset parameter thresholds may be different. Illustratively:
in the first mode, N first preset parameter thresholds may be set, including a first preset parameter threshold 1, first preset parameter thresholds 2 and … …, and a first preset parameter threshold N; the first frame rate corresponding to each first preset parameter threshold is different, and the larger the first preset parameter threshold is, the smaller the first frame rate is.
Likewise, in the second mode, M second preset parameter thresholds may be set, including a second preset parameter threshold 1, second preset parameter thresholds 2, … …, and a second preset parameter threshold M; the first resolutions corresponding to the second preset parameter thresholds are different, and the larger the first preset parameter threshold is, the smaller the first resolution is.
Likewise, in the third mode, K third preset parameter thresholds may be set, including a third preset parameter threshold 1, a third preset parameter threshold 2, … …, and a third preset parameter threshold K; the second resolution or the second frame rate corresponding to each third preset parameter threshold may be different, and the larger the third preset parameter threshold is, the smaller the second resolution is, and the smaller the second frame rate is.
Therefore, through the intelligent dynamic adjustment, screen throwing and blocking caused by overhigh power consumption of the terminal can be avoided, screen throwing can be performed under the condition of smoothness and definition as much as possible, and balance between power consumption and screen throwing effect (smoothness and definition) is realized.
And in the fourth mode, under the condition that the current state parameter is in the preset parameter range, the target screen projection parameter can be adjusted according to the screen projection application type.
The preset parameter range may include that the current state parameter is smaller than a specific parameter threshold, where the current state parameter may represent that the power consumption of the terminal is normal within the preset parameter range, for example, if the processor resource occupancy rate is smaller than 60%, the processor resource of the terminal may be represented as normal; if the occupancy rate of the memory resources is less than 80%, the memory resources of the terminal can be represented to be normal; if the temperature of the terminal equipment is less than 25 ℃, the temperature of the terminal can be represented to be normal. At this time, the target screen projection parameters can be adjusted according to the screen projection application type.
For example, in the case that the screen-throwing application type is unchanged, the current target screen-throwing parameter can be kept unchanged; under the condition that the screen-throwing application type is changed, the target screen-throwing parameter can be adjusted according to the changed screen-throwing application type.
For example, in the case where the target projection parameters include a target projection resolution and a target projection frame rate,
if the changed screen-throwing application type is a first application type (for example, text application), the first preset screen-throwing resolution is used as the target screen-throwing resolution, and the first preset screen-throwing frame rate is used as the target screen-throwing frame rate.
If the changed screen-throwing application type is a second application type (such as a game application), the second preset screen-throwing resolution is used as the target screen-throwing resolution, and the second preset screen-throwing frame rate is used as the target screen-throwing frame rate.
If the changed screen-throwing application type is a third application type (for example, video application), the third preset screen-throwing resolution is used as the target screen-throwing resolution, and the third preset screen-throwing frame rate is used as the target screen-throwing frame rate.
Wherein, the values of the preset parameters can meet the following conditions: the first preset screen-throwing frame rate is less than or equal to the third preset screen-throwing frame rate and less than or equal to the second preset screen-throwing frame rate; the first preset screen-throwing resolution is more than or equal to the second preset screen-throwing resolution; the first preset screen-throwing resolution is more than or equal to the third preset screen-throwing resolution.
For example, the first preset screen frame rate may be any value greater than or equal to 30 frames per second and less than or equal to 45 frames per second; the second preset screen frame rate may be any value greater than or equal to 60 frames per second and less than or equal to 90 frames per second; the third preset screen frame rate may be any value greater than or equal to 45 frames per second and less than or equal to 60 frames per second.
The first preset screen projection resolution may be any resolution between 1080P and 4K; the second preset screen projection resolution may be any resolution between 720P and 1080P; the third preset screen projection resolution may be any resolution between 720P and 1080P.
It should be noted that, at present, the resolution of the main stream terminal screen may be 2K at the highest, but the resolution of the video itself is mostly 1080P or even lower, and the frame rate of the video stream is mostly 30 or 60 frames per second, so, in order to ensure the video smoothness and reduce the power consumption of the terminal, if the changed screen-throwing application type is a video application, the resolution of the video stream may be obtained, the resolution of the video stream is taken as the target screen-throwing resolution, and the third preset screen-throwing frame rate is taken as the target screen-throwing frame rate. Therefore, invalid coding loss of the terminal can be reduced, and smoothness and definition of the video are ensured.
And S203, transmitting screen projection data to the target equipment according to the adjusted target screen projection parameters, and displaying the screen projection data by the target equipment.
Thus, through the method, the terminal dynamically adjusts the target screen-throwing parameter according to the current state parameter and the screen-throwing application type, and throws the screen according to the target screen-throwing parameter, so that the screen-throwing requirement (definition and fluency) of the screen-throwing application can be met on the basis of reducing the power consumption of the terminal, avoiding screen-throwing delay and blocking, and the screen-throwing experience of a user is further improved.
In another embodiment of the present disclosure, before the step S101, the method may further include:
firstly, under the condition that a screen-throwing starting instruction is received, acquiring the initial screen-throwing application type of the terminal.
The screen-throwing start instruction may be a screen-throwing instruction initiated by the user through the APP, or may be a screen-throwing response instruction returned by the target device after sending the screen-throwing request instruction to the target device. For example: the terminal can send a screen projection request instruction to the target equipment, wherein the screen projection request instruction is used for requesting to project a display interface of the terminal to the target equipment for display; then, the terminal can receive a screen-throwing response instruction sent by the target equipment according to the screen-throwing request instruction, and the screen-throwing response instruction can be used for indicating the terminal to start screen throwing; the screen-throwing response instruction can also comprise equipment screen-throwing parameters (such as maximum screen-throwing resolution, maximum screen-throwing frame rate, coding and decoding protocol type and the like) supported by the target equipment, and the terminal can determine the maximum value of the target screen-throwing parameters according to the equipment screen-throwing parameters so as to avoid the situation that the target screen-throwing parameters exceed the supporting range of the target equipment.
And secondly, determining candidate screen throwing parameters corresponding to the initial screen throwing application type according to the corresponding relation of the application screen throwing parameters.
The application screen-throwing parameter corresponding relation comprises a corresponding relation between the initial screen-throwing application type and the candidate screen-throwing parameter.
Likewise, the initial screen-drop application type may be used to characterize the type of application that the terminal screen is displaying at the time of screen-drop start. Illustratively, the initial drop-in application type may include a first application type, a second application type, and a third application type, where the first application type may be a text-type application, and the text-type application may include an instant messaging application, a text reading application, a web browser application, a document processing application, a picture browsing application, and so on; the second application type may be a game-like application, which may include a stand-alone game application, a network game application, or the like; the third application type may be a video class application, which may include a network video playback application, a local video playback application, and the like.
The candidate screen-throwing parameter may include a candidate screen-throwing resolution and a candidate screen-throwing frame rate, and for example, the application screen-throwing parameter correspondence may include: the resolution of the candidate screen projection corresponding to the first application type is 2K, and the frame rate of the corresponding candidate screen projection is 40 frames per second; the candidate screen projection resolution corresponding to the second application type is 1080P, and the corresponding candidate screen projection frame rate is 80 frames per second; the candidate screen projection resolution corresponding to the third application type is 1080P, and the corresponding candidate screen projection frame rate is 50 frames per second.
And determining target screen projection parameters of the terminal according to the candidate screen projection parameters.
For example, the candidate screen projection parameter may be used as a target screen projection parameter of the terminal; and the target screen projection parameter can be determined after comparing the candidate screen projection parameter with the maximum screen projection parameter supported by the target equipment. For example: taking the maximum screen projection parameter as a target screen projection parameter under the condition that the candidate screen projection parameter is larger than the maximum screen projection parameter supported by the target equipment; and taking the candidate screen throwing parameter as the target screen throwing parameter under the condition that the candidate screen throwing parameter is smaller than or equal to the maximum screen throwing parameter supported by the target equipment.
And finally, sending the screen projection data to the target equipment according to the target screen projection parameters so as to project the screen to the target equipment.
Therefore, when the screen is started, reasonable target screen throwing parameters can be determined according to the screen throwing application type, so that the definition and smoothness of the screen throwing can be ensured, and the problem that the terminal power consumption is overlarge due to unreasonable screen throwing parameters can be avoided.
In another embodiment of the present disclosure, the step S102 adjusts the target screen-projection parameter of the terminal according to the current state parameter acquired in the current period, which may be implemented by:
And under the condition that the current state parameter is greater than or equal to a fourth preset parameter threshold value, reducing the target screen projection parameter to a screen projection parameter adjustment target value.
It should be noted that, the current state parameter is greater than or equal to the fourth preset parameter threshold, which may be used to characterize that the power consumption of the terminal is greater, and there is a greater probability that the screen-throwing delay or the blocking problem occurs.
For example, the current state parameter may include a processor occupancy rate, and the first preset parameter threshold may be 80%, so that if the processor occupancy rate of the terminal is greater than or equal to 80%, the target screen-projection parameter may be reduced to the screen-projection parameter adjustment target value.
For another example, the current state parameter may include a memory occupancy rate, and the first preset parameter threshold may be 90%, so that if the memory occupancy rate of the terminal is greater than or equal to 90%, the target screen-projection parameter may be reduced to the screen-projection parameter adjustment target value.
For another example, the current state parameter may include a terminal device temperature, and the first preset parameter threshold may be 30 degrees celsius, so that if the terminal device temperature is greater than or equal to 30 degrees celsius, the target screen projection parameter may be reduced to the screen projection parameter adjustment target value.
The screen parameter adjustment target value can be obtained through the following steps:
firstly, a second preset parameter reduction step length and a second preset parameter adjustment minimum value corresponding to the target screen projection parameter are obtained.
For example, if the target screen-projection parameter is the target screen-projection frame rate, the second preset parameter reduction step corresponding to the target screen-projection frame rate may be a second preset frame rate reduction step (e.g. 10 frames per second), and the corresponding second preset parameter adjustment minimum may be a second preset frame rate adjustment minimum (e.g. 20 frames per second).
If the target screen projection parameter is the target screen projection resolution, the second preset parameter reduction step corresponding to the target screen projection resolution may be a second preset resolution reduction step (for example, a resolution level), and the corresponding second preset parameter adjustment minimum value may be a second preset resolution adjustment minimum value (for example, 480P or 720P).
And secondly, determining a second parameter adjustment candidate value according to the target screen projection parameter and a second preset parameter reduction step length.
For example, a difference obtained by subtracting the second preset parameter reduction step from the target projection parameter may be used as the second parameter adjustment candidate.
And finally, determining the screen projection parameter adjustment target value according to the second parameter adjustment candidate value and the second preset parameter adjustment minimum value.
For example, the larger value of the second parameter adjustment candidate value and the second preset parameter adjustment minimum value may be used as the screen projection parameter adjustment target value.
Therefore, the target screen-throwing parameter can be dynamically and gradually adjusted according to the current state parameter of the terminal, and the screen is thrown according to the target screen-throwing parameter, so that the power consumption of the terminal can be reduced, the screen-throwing delay and the screen-throwing blockage are avoided, and the screen-throwing experience of a user is improved.
Fig. 3 is a block diagram of a screen projection device 300, according to an exemplary embodiment, as shown in fig. 3, the device 300 may include:
the parameter obtaining module 301 is configured to periodically obtain a current state parameter of the terminal when the terminal performs screen projection to the target device;
the parameter adjustment module 302 is configured to adjust the target screen projection parameter of the terminal according to the current state parameter acquired in the current period;
the data sending module 303 is configured to send the screen projection data to the target device according to the adjusted target screen projection parameter, and the screen projection data is used for displaying the screen projection data by the target device.
Fig. 4 is a block diagram of another screen projection device, as shown in fig. 4, according to an exemplary embodiment, the device may further include:
An application type obtaining module 401 configured to periodically obtain a screen-casting application type of the terminal;
the parameter adjustment module 302 is configured to adjust the target screen projection parameter according to the current state parameter and the screen projection application type acquired in the current period.
Optionally, the target projection parameters include a target projection resolution and a target projection frame rate, and the parameter adjustment module 302 is configured to:
reducing the target screen-throwing frame rate to a first frame rate under the condition that the screen-throwing application type is a first application type and the current state parameter is greater than or equal to a first preset parameter threshold value; or alternatively, the process may be performed,
reducing the target screen-throwing resolution to a first resolution under the condition that the screen-throwing application type is a second application type and the current state parameter is greater than or equal to a second preset parameter threshold; or alternatively, the process may be performed,
and under the condition that the screen-throwing application type is a third application type and the current state parameter is larger than or equal to a third preset parameter threshold value, reducing the target screen-throwing frame rate to a second frame rate, and reducing the target screen-throwing resolution to the second resolution.
Optionally, the parameter adjustment module 302 is further configured to determine, according to the screen-projection application type, a first preset parameter reduction step size and a first preset parameter adjustment minimum value corresponding to the target screen-projection parameter; determining a first parameter adjustment candidate value according to the target screen projection parameter and the first preset parameter reduction step length; determining a first parameter adjustment target value according to the first parameter adjustment candidate value and the first preset parameter adjustment minimum value; wherein the first parameter adjustment target value includes the first frame rate, the first resolution, the second frame rate, or the second resolution.
Optionally, the parameter adjustment module 302 is further configured to reduce the screen display resolution of the terminal to the first resolution if the screen-cast application type is a second application type and the current status parameter is greater than or equal to the second preset parameter threshold.
Fig. 5 is a block diagram of another screen projection device, as shown in fig. 5, according to an exemplary embodiment, the device may further include:
the screen-throwing starting module 501 is configured to acquire an initial screen-throwing application type of the terminal under the condition of receiving a screen-throwing starting instruction; determining candidate screen throwing parameters corresponding to the initial screen throwing application type according to the corresponding relation of the application screen throwing parameters, wherein the corresponding relation of the application screen throwing parameters comprises the corresponding relation of the initial screen throwing application type and the candidate screen throwing parameters; determining target screen projection parameters of the terminal according to the candidate screen projection parameters;
the data sending module 303 is configured to send the screen projection data to the target device according to the target screen projection parameter so as to perform screen projection to the target device.
Optionally, the parameter adjustment module 302 is configured to reduce the target screen projection parameter to a screen projection parameter adjustment target value if the current state parameter is greater than or equal to a fourth preset parameter threshold.
Optionally, the parameter adjustment module 302 is configured to obtain a second preset parameter reduction step size and a second preset parameter adjustment minimum value corresponding to the target screen projection parameter; determining a second parameter adjustment candidate value according to the target screen projection parameter and a second preset parameter reduction step length; and determining the screen projection parameter adjustment target value according to the second parameter adjustment candidate value and the second preset parameter adjustment minimum value.
Optionally, the current state parameter includes one or more of a processor occupancy, a memory occupancy, and a terminal device temperature of the terminal.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
In summary, by adopting the device in the above embodiment of the present disclosure, when the terminal performs screen projection to the target device, the current state parameter of the terminal is periodically obtained; adjusting target screen projection parameters of the terminal according to the current state parameters acquired in the current period; and sending screen projection data to the target equipment according to the adjusted target screen projection parameters, and displaying the screen projection data by the target equipment. Therefore, the target screen-throwing parameter is dynamically adjusted according to the current state parameter of the terminal, and the screen is thrown according to the target screen-throwing parameter, so that the power consumption of the terminal can be reduced, the screen-throwing delay and the screen-throwing blockage are avoided, and the screen-throwing experience of a user is improved.
It should be noted that, the terminal in the present disclosure may be an electronic device such as a smart phone, a tablet computer, a smart watch, a smart bracelet, a PDA (Personal Digital Assistant, a personal digital assistant), a CPE (Customer Premise Equipment, a client terminal device), and the present disclosure is not limited thereto.
The present disclosure also provides a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the screen projection method provided by the present disclosure.
Fig. 6 is a block diagram of an electronic device 600, shown in accordance with an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, router, or the like.
Referring to fig. 6, an electronic device 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an input/output (I/O) interface 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the electronic device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the screen casting method described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 606 provides power to the various components of the electronic device 600. The power components 606 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 600.
The multimedia component 608 includes a screen between the electronic device 600 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and/or a rear camera. When the electronic device 600 is in an operational mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 614 includes one or more sensors for providing status assessment of various aspects of the electronic device 600. For example, the sensor assembly 614 may detect an on/off state of the electronic device 600, a relative positioning of the components, such as a display and keypad of the electronic device 600, the sensor assembly 614 may also detect a change in position of the electronic device 600 or a component of the electronic device 600, the presence or absence of a user's contact with the electronic device 600, an orientation or acceleration/deceleration of the electronic device 600, and a change in temperature of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communication between the electronic device 600 and other devices, either wired or wireless. The electronic device 600 may access a wireless network based on a communication standard, such as Wi-Fi,2G, 3G, 4G, 5G, NB-IOT, eMTC, or other 6G, etc., or a combination thereof. In one exemplary embodiment, the communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for performing the above-described screen projection methods.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 604, including instructions executable by processor 620 of electronic device 600 to perform the above-described screen-casting method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In another exemplary embodiment, a computer program product is also provided, comprising a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-described screen-projection method when executed by the programmable apparatus.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A method of screening, the method comprising:
under the condition that a terminal performs screen projection to target equipment, periodically acquiring current state parameters of the terminal;
Adjusting target screen projection parameters of the terminal according to the current state parameters acquired in the current period;
and sending screen throwing data to the target equipment according to the adjusted target screen throwing parameters, wherein the screen throwing data are used for displaying the screen throwing data by the target equipment.
2. The method of claim 1, wherein prior to adjusting the target projection parameters of the terminal based on the current state parameters of the terminal, the method further comprises:
periodically acquiring the screen-throwing application type of the terminal;
the adjusting the target screen projection parameter of the terminal according to the current state parameter acquired in the current period comprises the following steps:
and adjusting the target screen-throwing parameter according to the current state parameter and the screen-throwing application type acquired in the current period.
3. The method of claim 2, wherein the target screen-drop parameters include a target screen-drop resolution and a target screen-drop frame rate, and wherein the adjusting the target screen-drop parameters according to the current state parameter and the screen-drop application type acquired in the current period includes:
reducing the target screen-throwing frame rate to a first frame rate under the condition that the screen-throwing application type is a first application type and the current state parameter is greater than or equal to a first preset parameter threshold value; or alternatively, the process may be performed,
Reducing the target screen-throwing resolution to a first resolution under the condition that the screen-throwing application type is a second application type and the current state parameter is greater than or equal to a second preset parameter threshold; or alternatively, the process may be performed,
and under the condition that the screen-throwing application type is a third application type and the current state parameter is larger than or equal to a third preset parameter threshold value, reducing the target screen-throwing frame rate to a second frame rate, and reducing the target screen-throwing resolution to a second resolution.
4. A method according to claim 3, characterized in that the method further comprises:
according to the screen projection application type, determining a first preset parameter reduction step length and a first preset parameter adjustment minimum value corresponding to the target screen projection parameter;
determining a first parameter adjustment candidate value according to the target screen projection parameter and the first preset parameter reduction step length;
determining a first parameter adjustment target value according to the first parameter adjustment candidate value and the first preset parameter adjustment minimum value; wherein the first parameter adjustment target value includes the first frame rate, the first resolution, the second frame rate, or the second resolution.
5. A method according to claim 3, characterized in that the method further comprises:
and reducing the screen display resolution of the terminal to the first resolution under the condition that the screen-throwing application type is a second application type and the current state parameter is greater than or equal to the second preset parameter threshold.
6. The method of claim 1, wherein prior to the periodically acquiring the current state parameter of the terminal, the method further comprises:
under the condition of receiving a screen-throwing starting instruction, acquiring an initial screen-throwing application type of the terminal;
determining candidate screen throwing parameters corresponding to the initial screen throwing application type according to the application screen throwing parameter corresponding relation, wherein the application screen throwing parameter corresponding relation comprises the corresponding relation between the initial screen throwing application type and the candidate screen throwing parameters;
determining target screen projection parameters of the terminal according to the candidate screen projection parameters;
and sending screen projection data to the target equipment according to the target screen projection parameters so as to project the screen to the target equipment.
7. The method of claim 1, wherein the adjusting the target projection parameter according to the current state parameter of the terminal comprises:
And under the condition that the current state parameter is greater than or equal to a fourth preset parameter threshold, reducing the target screen projection parameter to a screen projection parameter adjustment target value.
8. The method of claim 7, wherein the projection parameter adjustment target value is obtained by:
acquiring a second preset parameter reduction step length and a second preset parameter adjustment minimum value corresponding to the target screen projection parameter;
determining a second parameter adjustment candidate value according to the target screen projection parameter and a second preset parameter reduction step length;
and determining the screen throwing parameter adjustment target value according to the second parameter adjustment candidate value and the second preset parameter adjustment minimum value.
9. The method according to any one of claims 1 to 8, wherein the current state parameters include one or more of processor occupancy, memory occupancy, and terminal device temperature of the terminal.
10. A screen projection device, the device comprising:
the parameter acquisition module is configured to periodically acquire current state parameters of the terminal under the condition that the terminal performs screen projection to target equipment;
the parameter adjustment module is configured to adjust target screen projection parameters of the terminal according to the current state parameters acquired in the current period;
The data sending module is configured to send screen projection data to the target equipment according to the adjusted target screen projection parameters and used for displaying the screen projection data by the target equipment.
11. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the steps of the method of any one of claims 1 to 9.
12. A computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the method of any of claims 1 to 9.
CN202111501296.1A 2021-12-09 2021-12-09 Screen projection method and device, storage medium and electronic equipment Pending CN116257195A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111501296.1A CN116257195A (en) 2021-12-09 2021-12-09 Screen projection method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111501296.1A CN116257195A (en) 2021-12-09 2021-12-09 Screen projection method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN116257195A true CN116257195A (en) 2023-06-13

Family

ID=86686641

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111501296.1A Pending CN116257195A (en) 2021-12-09 2021-12-09 Screen projection method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116257195A (en)

Similar Documents

Publication Publication Date Title
CN109327716B (en) Delay control method, delay control apparatus, and computer-readable storage medium
CN106506448B (en) Live broadcast display method and device and terminal
CN110611829B (en) Video preloading method and device, electronic equipment and storage medium
CN107040591B (en) Method and device for controlling client
CN107888965B (en) Image gift display method and device, terminal, system and storage medium
EP4007289A1 (en) Video uploading method and apparatus, electronic device, and storage medium
EP2986020B1 (en) Method and apparatus for adjusting video quality based on network environment
CN111259246A (en) Information pushing method and device, electronic equipment and storage medium
CN107493478B (en) Method and device for setting coding frame rate
CN111953980A (en) Video processing method and device
CN112866612B (en) Frame insertion method, device, terminal and computer readable storage medium
CN116257195A (en) Screen projection method and device, storage medium and electronic equipment
CN113157178B (en) Information processing method and device
CN114442792A (en) Method and device for adjusting operating frequency of processor and storage medium
CN114078432B (en) Driving method and device
CN113487707A (en) Webpage animation processing method and device, electronic equipment and storage medium
CN113301254A (en) Video recording method, processing method, device, terminal and storage medium
CN111538447A (en) Information display method, device, equipment and storage medium
CN114253385A (en) Power consumption management method and device of mobile terminal and computer readable storage medium
CN114363674B (en) Video playing method, device, terminal and storage medium
CN111124099A (en) State control method, device and storage medium
CN108153506B (en) Image processing method and device and terminal equipment
US20210360189A1 (en) Video processing method and apparatus, and storage medium
CN111261035B (en) Screen display method and device
CN118113238A (en) Screen refresh rate control method, device, equipment, storage medium and chip

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