CN113778589A - Screen adaptation method, server, intelligent terminal, electronic device and storage medium - Google Patents

Screen adaptation method, server, intelligent terminal, electronic device and storage medium Download PDF

Info

Publication number
CN113778589A
CN113778589A CN202110961358.0A CN202110961358A CN113778589A CN 113778589 A CN113778589 A CN 113778589A CN 202110961358 A CN202110961358 A CN 202110961358A CN 113778589 A CN113778589 A CN 113778589A
Authority
CN
China
Prior art keywords
resolution
intelligent terminal
screen
video image
cloud service
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
CN202110961358.0A
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.)
Guangzhou Huya Technology Co Ltd
Original Assignee
Guangzhou Huya Technology 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 Guangzhou Huya Technology Co Ltd filed Critical Guangzhou Huya Technology Co Ltd
Priority to CN202110961358.0A priority Critical patent/CN113778589A/en
Publication of CN113778589A publication Critical patent/CN113778589A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a screen adaptation method, a server, an intelligent terminal, electronic equipment and a storage medium, wherein the screen adaptation method comprises the following steps: the cloud server receives characteristic information sent by the intelligent terminal; the characteristic information comprises the resolution of an intelligent terminal screen; adjusting the initial resolution of a virtual terminal running in a cloud server based on the resolution to obtain a target resolution of the virtual terminal, which is matched with the resolution; correspondingly generating a cloud service video image according to the target resolution; and sending the cloud service video image to the intelligent terminal so that the intelligent terminal correspondingly displays the cloud service video image. Through the scheme, the screen adaptation method can adjust the initial resolution of the virtual terminal running on the cloud server to be adapted to the resolution of the intelligent terminal, so that the situation that a black edge is left due to the fact that a cloud service video image displayed on the intelligent terminal cannot be displayed in a full screen mode is effectively avoided, and the use experience of a user is effectively improved.

Description

Screen adaptation method, server, intelligent terminal, electronic device and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a screen adapting method, a server, an intelligent terminal, an electronic device, and a storage medium.
Background
With the technical development of the internet and the intelligent terminal, the entertainment activities based on the internet and the intelligent terminal become more and more abundant, for example, the user intelligent mobile phone interactively plays a network game by communicating with the virtual mobile phone in the cloud server.
However, the resources of the cloud server are limited, and based on the consideration of the operation cost, the resolution of the virtual mobile phone in the cloud server is usually not too high, and the specification of the resolution of the virtual mobile phone is relatively fixed, so that excessive changes cannot be made.
Nowadays, a full-screen mobile phone is generally circulated in the market, the resolutions of the mobile phones are different, that is, the width and height ratios of the mobile phones are not consistent, but the resources of the virtual mobile phone in the cloud server are limited, so that the pictures pushed to the mobile phone by the virtual mobile phone in the cloud server cannot perfectly fit the resolutions of all the mobile phones, and in order to ensure the completeness of picture display, the full-screen mobile phone leaves black edges on two sides of a mobile phone screen, so that the user experience is very poor.
Disclosure of Invention
The technical problem mainly solved by the application is to provide a screen adapting method, a server, an intelligent terminal, an electronic device and a storage medium, so as to solve the problem that black edges are left on two sides of a mobile phone screen and the user experience feeling is very poor when a comprehensive screen mobile phone displays a video picture pushed by a virtual mobile phone in a cloud server in the prior art.
In order to solve the above problem, a first aspect of the present application provides a screen adapting method, wherein the screen adapting method includes: the cloud server receives characteristic information sent by the intelligent terminal; the characteristic information comprises the resolution of an intelligent terminal screen; adjusting the initial resolution of a virtual terminal running in a cloud server based on the resolution to obtain a target resolution of the virtual terminal, which is matched with the resolution; correspondingly generating a cloud service video image according to the target resolution; and sending the cloud service video image to the intelligent terminal so that the intelligent terminal correspondingly displays the cloud service video image.
The method for adjusting the initial resolution of the virtual terminal running on the cloud server based on the resolution to obtain the target resolution of the virtual terminal matched with the resolution comprises the following steps: and adjusting the initial resolution based on the resolution to obtain a target resolution consistent with the resolution.
The method for adjusting the initial resolution of the virtual terminal running on the cloud server based on the resolution to obtain the target resolution of the virtual terminal matched with the resolution comprises the following steps: adjusting the initial resolution based on the resolution to obtain a target resolution of which the virtual terminal and the resolution are in a linear relation; sending the cloud service video image to the intelligent terminal so that the intelligent terminal correspondingly displays the cloud service video image, and the method comprises the following steps: and sending the cloud service video image to the intelligent terminal so that the target resolution corresponding to the cloud service video image is adjusted to be consistent with the resolution by the intelligent terminal for display.
The resolution includes a first width parameter and a first height parameter, and the initial resolution is adjusted based on the resolution to obtain a target resolution at which the virtual terminal and the resolution are in a linear relationship, including: obtaining a target resolution ratio of the virtual terminal in a linear relation with the resolution ratio by using the first width parameter and the first height parameter; the second width parameter of the target resolution is equal to the first width parameter, the second height parameter of the target resolution is equal to the quotient of the first height parameter and the width ratio, and the width ratio is the quotient of the first width parameter and the second width parameter.
Wherein, send cloud service video image for intelligent terminal to after making intelligent terminal correspond and show cloud service video image, still include: receiving a screen click instruction sent by an intelligent terminal; performing coordinate conversion on the screen clicking instruction to update the cloud service video image based on the screen control instruction after the coordinate conversion; and sending the updated cloud service video image to the intelligent terminal so that the intelligent terminal correspondingly displays the updated cloud service video image.
Wherein, before receiving the screen click instruction that intelligent terminal sent, still include: the cloud server establishes low-delay communication connection with the intelligent terminal; receiving a screen click instruction sent by an intelligent terminal, comprising the following steps: and receiving a screen click instruction sent by the intelligent terminal through low-delay communication.
Wherein, characteristic information still includes intelligent terminal's horizontal vertical screen information, carries out coordinate conversion to the screen click instruction, includes: and performing coordinate conversion on the screen click command based on the horizontal and vertical screen information, the resolution and the target resolution.
In order to solve the above problem, a second aspect of the present application provides a screen adapting method, wherein the screen adapting method includes: the method comprises the steps that the intelligent terminal sends characteristic information comprising the screen resolution of the intelligent terminal to a cloud server, so that the cloud server adjusts the initial resolution of a virtual terminal running on the cloud server based on the resolution to obtain a target resolution of the virtual terminal, the target resolution is matched with the resolution, a cloud service video image is correspondingly generated according to the target resolution, and the cloud service video image is sent to the intelligent terminal; and receiving and correspondingly displaying the cloud service video image sent by the cloud server.
In order to solve the above problem, a third aspect of the present application provides a server, wherein the server includes: the acquisition module is used for receiving the characteristic information sent by the intelligent terminal; the characteristic information comprises the resolution of an intelligent terminal screen; the processing module is used for adjusting the initial resolution of the virtual terminal running on the cloud server based on the resolution to obtain a target resolution of the virtual terminal, the target resolution is matched with the resolution, the cloud service video image is correspondingly generated according to the target resolution, the cloud service video image is sent to the intelligent terminal, and therefore the cloud service video image is correspondingly displayed by the intelligent terminal.
In order to solve the above problem, a fourth aspect of the present application provides an intelligent terminal, wherein the intelligent terminal includes: the communication module is used for sending characteristic information comprising the screen resolution of the intelligent terminal to the cloud server so that the cloud server can adjust the initial resolution of the virtual terminal running on the cloud server based on the resolution to obtain a target resolution matched with the resolution, and correspondingly generates a cloud service video image according to the target resolution, and is also used for receiving the cloud service video image sent by the cloud server; and the display module is used for displaying the cloud service video image.
In order to solve the above problem, a fifth aspect of the present application provides an electronic device, wherein the electronic device includes a memory and a processor coupled to each other, and the processor is configured to execute program instructions stored in the memory to implement the screen adapting method as described in any one of the above.
In order to solve the above problem, a sixth aspect of the present application provides a computer-readable storage medium having stored thereon program instructions that, when executed by a processor, implement the screen adapting method as described in any one of the above.
The invention has the beneficial effects that: different from the situation of the prior art, the screen adaptation method comprises the steps that the cloud server receives feature information which is sent by the intelligent terminal and comprises the resolution ratio of the screen of the intelligent terminal, the initial resolution ratio of the virtual terminal running on the cloud server is adjusted based on the resolution ratio, the target resolution ratio of the virtual terminal and the resolution ratio is obtained, and the cloud service video image can be correspondingly generated according to the target resolution ratio, so that the cloud service video image can be displayed on the full screen of the intelligent terminal, the situation that the full screen of the intelligent terminal cannot be fully covered by the cloud service video image displayed on the intelligent terminal and a black edge is left is effectively avoided, and the use experience of a user is effectively improved.
Drawings
FIG. 1 is a schematic flow chart diagram of a first embodiment of a screen adaptation method according to the present application;
FIG. 2 is a flowchart illustrating a second embodiment of the screen adapting method of the present application;
FIG. 3 is a flowchart illustrating a third embodiment of the screen adapting method according to the present application;
FIG. 4 is a flowchart illustrating a fourth embodiment of the screen adapting method of the present application;
FIG. 5 is a flowchart illustrating a fifth embodiment of the screen adapting method according to the present application;
FIG. 6 is a block diagram of an embodiment of a server of the present application;
FIG. 7 is a block diagram of an embodiment of a smart terminal according to the present application;
FIG. 8 is a block diagram of an embodiment of an electronic device of the present application;
FIG. 9 is a block diagram of an embodiment of a computer-readable storage medium of the present application.
Detailed Description
The following describes in detail the embodiments of the present application with reference to the drawings attached hereto.
In the following description, for purposes of explanation and not limitation, specific details are set forth such as particular system structures, interfaces, techniques, etc. in order to provide a thorough understanding of the present application.
The terms "system" and "network" are often used interchangeably herein. The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship. Further, the term "plurality" herein means two or more than two.
Referring to fig. 1, fig. 1 is a flowchart illustrating a screen adapting method according to a first embodiment of the present application. Specifically, the method may include the steps of:
s11: and the cloud server receives the characteristic information sent by the intelligent terminal.
With the technical development of the internet and the intelligent terminal, the entertainment activities based on the internet and the intelligent terminal become more and more abundant, for example, the user intelligent mobile phone interactively plays a network game by communicating with the virtual mobile phone in the cloud server. For the cloud server, how to send the cloud service video image correspondingly generated on the virtual mobile phone to the intelligent terminal, and the intelligent terminal performs full-screen display without black edges, so that the ornamental value and the operation convenience are increased, which are a key point influencing the user experience, and are also key factors influencing the use frequency and duration of the user and the operation enthusiasm of the terminal. In this embodiment, the cloud service video image may be specifically an online game running picture, a live video picture or any other reasonable video image that is distributed to the intelligent terminal by the cloud server. The intelligent terminal is a user terminal and can receive cloud service video images sent by the cloud server, and screen instruction clicking operation is carried out on the basis of the cloud service video images so as to realize communication interaction with the cloud server.
Specifically, in order to ensure that the cloud server can be more adaptive to the resolution of the intelligent terminal when sending the cloud service video image to the intelligent terminal, the cloud server firstly needs to receive feature information sent by the intelligent terminal, and the feature information specifically comprises the resolution of the screen of the intelligent terminal.
It should be noted that the screen resolution refers to the number of pixel points in the vertical and horizontal directions, and the unit is px. The screen resolution determines the setting of how much information is displayed on the computer screen, measured in horizontal and vertical pixels. For the same size screen, when the screen resolution is low (e.g., 640x480), there are few pixels displayed on the screen and the size of a single pixel is large. When the screen resolution is high (for example 1600 × 1200), a large number of pixels are displayed on the screen, and the size of a single pixel is small.
Therefore, when the resolution of the intelligent terminal is inconsistent with the resolution of the virtual terminal in the cloud server, the intelligent terminal correspondingly displays the cloud service video image generated by the virtual terminal in the cloud server, and the full screen of the intelligent terminal cannot be fully paved.
Optionally, the intelligent terminal may be one of any reasonable intelligent terminals such as a computer, a tablet computer, a smart watch, or a smart phone, which is not limited in this application.
S12: and adjusting the initial resolution of the virtual terminal running on the cloud server based on the resolution to obtain the target resolution of the virtual terminal matched with the resolution.
It can be understood that, because the computing resources of the cloud server are limited, the virtual handset resolution in the cloud server is usually not too high due to consideration of the operation cost, and the specification of the virtual handset resolution, that is, the initial resolution, is also relatively fixed, and cannot be changed too much, for example, it is usually 720X1280 and 1080X 1920. However, the resolution of the smart terminals on the market includes various types, and is a full-screen mobile phone, so that the initial resolution of the virtual mobile phone cannot be adapted to all existing smart terminals.
Specifically, after receiving the feature information including the resolution sent by the intelligent terminal, the cloud server may adjust the initial resolution of the virtual terminal running in the cloud server based on the resolution of the intelligent terminal, for example, adjust the initial resolution to be consistent with the resolution of the intelligent terminal, or adjust the initial resolution to be in a linear relationship with the resolution of the intelligent terminal, that is, the subsequent intelligent terminal may make the adjusted initial resolution consistent with the resolution of the intelligent terminal through simple scaling adjustment, so that the target resolution obtained by the virtual terminal correspondingly matches the resolution of the intelligent terminal, that is, the target resolution is consistent with the resolution of the intelligent terminal or is in a linear relationship with the resolution of the intelligent terminal.
S13: and correspondingly generating a cloud service video image according to the target resolution.
Further, after the initial resolution is adjusted to be matched with the resolution of the virtual terminal, the cloud server may generate a cloud service video image according to the corresponding obtained target resolution, for example, a network game display picture is run based on the target resolution, or a live video image is run.
S14: and sending the cloud service video image to the intelligent terminal so that the intelligent terminal correspondingly displays the cloud service video image.
And further, the cloud server sends the cloud service video image generated correspondingly to the intelligent terminal, so that the intelligent terminal correspondingly displays the cloud service video image. And because the target resolution of the cloud service video image corresponding to the virtual terminal is matched with the resolution of the intelligent terminal, the cloud service video image can be fully paved on the full screen of the intelligent terminal, or the full screen of the intelligent terminal can be fully paved after the cloud service video image is simply zoomed by the intelligent terminal.
According to the scheme, the cloud server receives the characteristic information of the resolution ratio of the screen of the intelligent terminal sent by the intelligent terminal, the initial resolution ratio of the virtual terminal running on the cloud server can be adjusted based on the resolution ratio, the target resolution ratio of the virtual terminal and the resolution ratio is obtained, the cloud service video image is generated according to the target resolution ratio, the cloud service video image can be displayed on the full screen of the intelligent terminal, the situation that the full screen of the intelligent terminal cannot be fully covered by the cloud service video image displayed on the intelligent terminal and a black edge is left is effectively avoided, and the use experience of a user is effectively improved.
Further, in an embodiment, the step S12 may specifically include: and adjusting the initial resolution based on the resolution to obtain a target resolution consistent with the resolution.
Understandably, in order to ensure that the cloud service video image correspondingly generated by the cloud server can be subsequently fully paved on the full screen of the intelligent terminal and avoid the intelligent terminal from carrying out operation adjustment, the cloud server can specifically adjust the initial resolution of the virtual terminal in the cloud server directly based on the resolution of the intelligent terminal received by the cloud server so as to obtain the target resolution of the virtual terminal consistent with the resolution.
Referring to fig. 2, fig. 2 is a flowchart illustrating a screen adapting method according to a second embodiment of the present application. The screen adapting method of the present embodiment is a flowchart illustration of a detailed embodiment of the screen adapting method in fig. 1, and includes the following steps:
s21: and the cloud server receives the characteristic information sent by the intelligent terminal.
S21 is the same as S11 in fig. 1, and please refer to S11 and the related text description, which are not repeated herein.
S22: and adjusting the initial resolution based on the resolution to obtain the target resolution of which the virtual terminal and the resolution are in a linear relation.
Understandably, in order to ensure that the cloud service video image correspondingly generated by the cloud server can be conveniently paved on the full screen of the intelligent terminal subsequently and the computing resource of the cloud server is occupied as much as possible, the cloud server can also adjust the initial resolution of the virtual terminal in the cloud server according to the resolution of the intelligent terminal received by the cloud server so as to obtain the target resolution of the virtual terminal in a linear relation with the resolution, namely the subsequent intelligent terminal can make the target resolution consistent with the resolution of the intelligent terminal through simple scaling adjustment.
S23: and correspondingly generating a cloud service video image according to the target resolution.
S23 is the same as S13 in fig. 1, and please refer to S13 and the related text description, which are not repeated herein.
S24: and sending the cloud service video image to the intelligent terminal so that the target resolution corresponding to the cloud service video image is adjusted to be consistent with the resolution by the intelligent terminal for display.
Specifically, after the cloud server sends the cloud service video image generated correspondingly to the intelligent terminal, since the target resolution corresponding to the cloud service video image is in a linear relationship with the resolution of the intelligent terminal, the intelligent terminal can further adjust the target resolution corresponding to the cloud service video image to be consistent with the resolution directly through simple scaling, so as to perform full-screen display.
Further, in an embodiment, the resolution of the intelligent terminal includes a first width parameter and a first height parameter, and the S22 may specifically include: and obtaining the target resolution of the linear relation between the virtual terminal and the resolution by using the first width parameter and the first height parameter.
Specifically, the second width parameter of the target resolution of the virtual terminal is equal to the first width parameter, and the second height parameter of the target resolution is equal to the quotient of the first height parameter divided by the width ratio, and the width ratio is the quotient of the first width parameter divided by the second width parameter.
For convenience of explanation, taking the example that the resolution of the intelligent terminal includes a width parameter ClientWidth and a height parameter ClientHeight, the width parameter of the target resolution is outHeight, and the height parameter is outWidth, the corresponding calculation formula is as follows:
and (3) width calculation: outWidth is cloldwidth;
width ratio: rate is ClientWidth/cloldWidth;
and (3) height calculation: outHeight is ClientHeight/rate.
For example:
resolution of the mobile phone: 1080X 2160; the default initial resolution specification of the cloud server is as follows: 720X 1280; then the height parameter output after the virtual terminal in the cloud server is adjusted is: 2160 × 720/1080 ═ 1440; the adjusted target resolution is: 720x 1440; the aspect ratio is: 0.5.
and when the resolution of the mobile phone is: 720X 1440; the default initial resolution specification of the cloud server is as follows: 720X 1280; then the height parameter output after the virtual terminal in the cloud server is adjusted is: 1440 × 720/720 ═ 1440; the adjusted target resolution is: 720x 1440; the aspect ratio is: 0.5.
and when the resolution of the mobile phone is: 1080X 1280; the default initial resolution specification of the cloud server is as follows: 720X 1280; then the height parameter output after the virtual terminal in the cloud server is adjusted is: 1280 × 720/1080 ═ 853; the adjusted target resolution is: 720x 853; the aspect ratio is: 0.84.
referring to fig. 3, fig. 3 is a flowchart illustrating a screen adapting method according to a third embodiment of the present application. The screen adapting method of the present embodiment is a flowchart illustration of a detailed embodiment of the screen adapting method in fig. 1, and includes the following steps:
s31: and the cloud server receives the characteristic information sent by the intelligent terminal.
S32: and adjusting the initial resolution based on the resolution to obtain the target resolution of which the virtual terminal and the resolution are in a linear relation.
S33: and correspondingly generating a cloud service video image according to the target resolution.
S34: and sending the cloud service video image to the intelligent terminal so that the intelligent terminal correspondingly displays the cloud service video image.
S31, S32, S33, and S34 are the same as S11, S12, S13, and S14 in fig. 1, and please refer to S11, S12, S13, S14 and their associated text descriptions, which are not repeated herein.
S35: and receiving a screen click instruction sent by the intelligent terminal.
Understandably, when the intelligent terminal specifically needs to perform traffic interaction with the cloud server through screen click operation, for example, when praise and gift delivery are performed or game real-time operation is performed, the cloud server further receives click coordinates of the intelligent terminal acquisition user and sends a screen click instruction to the virtual terminal in the cloud server.
S36: and performing coordinate conversion on the screen clicking instruction so as to update the cloud service video image based on the screen control instruction after the coordinate conversion.
Further, because the target resolution of the virtual terminal in the cloud server is in a linear relationship with the resolution of the intelligent terminal, which may not be completely consistent, and the intelligent terminal also has the problem that the display resolutions corresponding to the horizontal screen and the vertical screen are different, after receiving a screen click command sent by the intelligent terminal, the cloud server also needs to perform coordinate conversion on the screen click command so as to adjust the screen click command to correspond to the current target resolution of the virtual terminal, and thus, the cloud server can update the cloud service video image based on the screen control command after coordinate conversion.
S37: and sending the updated cloud service video image to the intelligent terminal so that the intelligent terminal correspondingly displays the updated cloud service video image.
Further, the cloud server sends the updated cloud service video image to the intelligent terminal, so that the intelligent terminal can display the updated cloud service video image in a full screen mode.
Further, in an embodiment, the feature information sent by the intelligent terminal to the cloud server further includes horizontal and vertical screen information of the intelligent terminal, and the step S36 may further include: and performing coordinate conversion on the screen click command based on the horizontal and vertical screen information, the resolution and the target resolution.
It can be understood that after the virtual terminal of the cloud server receives the click coordinates of the screen click command of the intelligent terminal, the virtual terminal calculates the simulated click coordinates to be performed according to the resolution, horizontal and vertical screen information and current target resolution information of the virtual mobile phone of the intelligent terminal, which are stored before.
For convenience of description, in a specific embodiment, taking a click coordinate of a screen click command sent by the intelligent terminal to the cloud server as (rawX, rawY), and taking the case that the horizontal and vertical screen information corresponds to the current horizontal screen of the intelligent terminal, a calculation formula for performing coordinate conversion on the screen click command is as follows:
max (0, math.min (rawX mMaxY/mClientWidth, mMaxY));
max (0, math.min ((rawY mMaxX/mclient height), mMaxX)).
And when the horizontal and vertical screen information corresponds to that the intelligent terminal is currently in a vertical screen, the calculation formula for performing coordinate conversion on the screen click command is as follows:
max (0, math.min (rawX mMaxX/mcmientwidth, mMaxX));
max (0, math.min (raw Y mMaxY/mclient height, mMaxY)).
The coordinate x and the coordinate Y are respectively horizontal and vertical coordinates in a click coordinate of the screen click instruction after coordinate conversion, mMaxX is width information of a target resolution, mMaxY is height information of the target resolution, mClientWidth is width information of the resolution, mClientHeight is height information of the resolution, math.max is a larger value in parentheses of the calculation formula, and math.min is a smaller value in parentheses of the calculation formula.
Referring to fig. 4, fig. 4 is a flowchart illustrating a fourth embodiment of the screen adapting method according to the present application. The screen adapting method of the present embodiment is a flowchart illustration of a detailed embodiment of the screen adapting method in fig. 3, and includes the following steps:
s41: and the cloud server receives the characteristic information sent by the intelligent terminal.
S42: and adjusting the initial resolution based on the resolution to obtain the target resolution of which the virtual terminal and the resolution are in a linear relation.
S43: and correspondingly generating a cloud service video image according to the target resolution.
S44: and sending the cloud service video image to the intelligent terminal so that the intelligent terminal correspondingly displays the cloud service video image.
S41, S42, S43, and S44 are the same as S31, S32, S33, and S34 in fig. 3, and please refer to S31, S32, S33, S34 and their associated text descriptions, which are not repeated herein.
S45: and the cloud server establishes low-delay communication connection with the intelligent terminal.
Understandably, in order to ensure that the intelligent terminal of the user can interact with the cloud server more conveniently, for example, when the user plays a cloud tour through the intelligent terminal, in order to ensure better operation delay and experience effect, the cloud server still needs to establish low-delay communication connection with the intelligent terminal.
S46: and receiving a screen click instruction sent by the intelligent terminal through low-delay communication.
Further, the cloud server can perform communication interaction with the intelligent terminal in a low-delay communication mode to receive a screen click instruction sent by the intelligent terminal through low-delay communication.
S47: and performing coordinate conversion on the screen clicking instruction so as to update the cloud service video image based on the screen control instruction after the coordinate conversion.
S48: and sending the updated cloud service video image to the intelligent terminal so that the intelligent terminal correspondingly displays the updated cloud service video image.
S47 and S48 are the same as S36 and S37 in fig. 3, and please refer to S36 and S37 and the related text description thereof, which are not repeated herein.
Referring to fig. 5, fig. 5 is a flowchart illustrating a fifth embodiment of the screen adapting method according to the present application. Specifically, the method may include the steps of:
s51: the intelligent terminal sends characteristic information including screen resolution of the intelligent terminal to the cloud server, so that the cloud server adjusts initial resolution of the virtual terminal running on the cloud server based on the resolution to obtain target resolution of the virtual terminal matched with the resolution, and cloud service video images are correspondingly generated according to the target resolution to send the cloud service video images to the intelligent terminal.
Specifically, the intelligent terminal first acquires feature information including screen resolution of the intelligent terminal, and then sends the feature information to the cloud server.
Therefore, the cloud server can adjust the initial resolution of the virtual terminal running in the cloud server based on the resolution of the intelligent terminal, so that the target resolution of the virtual terminal matched with the resolution is obtained, the cloud service video image can be correspondingly generated according to the correspondingly obtained target resolution, and the cloud service video image is sent to the intelligent terminal.
S52: and receiving and correspondingly displaying the cloud service video image sent by the cloud server.
Further, the intelligent terminal receives and correspondingly displays the cloud service video image sent by the cloud server in a full screen mode.
Referring to fig. 6, fig. 6 is a schematic diagram of a framework of an embodiment of a server according to the present application. The server 61 includes: an obtaining module 611, configured to receive feature information sent by the intelligent terminal; the characteristic information comprises the resolution of an intelligent terminal screen; the processing module 612 is configured to adjust an initial resolution of the virtual terminal running on the cloud server 61 based on the resolution, obtain a target resolution of the virtual terminal, which is adapted to the resolution, and generate a cloud service video image according to the target resolution, so as to send the cloud service video image to the intelligent terminal, so that the intelligent terminal correspondingly displays the cloud service video image.
According to the scheme, the server 61 receives the feature information of the resolution ratio of the screen of the intelligent terminal sent by the intelligent terminal, the initial resolution ratio of the virtual terminal running on the cloud server 61 can be adjusted based on the resolution ratio, the target resolution ratio of the virtual terminal and the resolution ratio is obtained, the cloud service video image is generated according to the target resolution ratio, the cloud service video image can be displayed on the full screen of the intelligent terminal, the situation that the cloud service video image displayed on the intelligent terminal cannot be fully paved on the full screen of the intelligent terminal and a black edge is left is effectively avoided, and the use experience of a user is effectively improved.
In some embodiments, the processing module 612 may be specifically configured to: and adjusting the initial resolution based on the resolution to obtain a target resolution consistent with the resolution.
In some embodiments, the processing module 612 may be specifically configured to: and adjusting the initial resolution based on the resolution to obtain a target resolution of the virtual terminal in a linear relation with the resolution, and correspondingly generating a cloud service video image according to the target resolution to send the cloud service video image to the intelligent terminal so that the target resolution corresponding to the cloud service video image is adjusted to be consistent with the resolution by the intelligent terminal for display.
In some embodiments, the processing module 612 may be specifically configured to: obtaining a target resolution ratio of the virtual terminal in a linear relation with the resolution ratio by using the first width parameter and the first height parameter; the second width parameter of the target resolution is equal to the first width parameter, the second height parameter of the target resolution is equal to the quotient of the first height parameter and the width ratio, and the width ratio is the quotient of the first width parameter and the second width parameter.
In some embodiments, the processing module 612 may be specifically configured to: receiving a screen click instruction sent by an intelligent terminal; performing coordinate conversion on the screen clicking instruction to update the cloud service video image based on the screen control instruction after the coordinate conversion; and sending the updated cloud service video image to the intelligent terminal so that the intelligent terminal correspondingly displays the updated cloud service video image.
In some embodiments, the processing module 612 may be specifically configured to: and establishing low-delay communication connection with the intelligent terminal so as to receive a screen click instruction sent by the intelligent terminal through low-delay communication.
In some embodiments, the processing module 612 may be specifically configured to: and performing coordinate conversion on the screen click command based on the horizontal and vertical screen information, the resolution and the target resolution.
Referring to fig. 7, fig. 7 is a schematic diagram of a framework of an embodiment of an intelligent terminal according to the present application. This intelligent terminal 71 includes: the communication module 711 is configured to send feature information including the screen resolution of the intelligent terminal 71 to the cloud server, so that the cloud server adjusts the initial resolution of the virtual terminal running on the cloud server based on the resolution to obtain a target resolution adapted to the resolution, and generates a cloud service video image according to the target resolution, and the communication module 711 is further configured to receive the cloud service video image sent by the cloud server; and a display module 712, configured to display the cloud service video image.
Referring to fig. 8, fig. 8 is a schematic frame diagram of an embodiment of an electronic device according to the present application. The electronic device 81 comprises a memory 811 and a processor 812 coupled to each other, the processor 812 being configured to execute program instructions stored in the memory 811 to implement the steps of any of the screen adaptation method embodiments described above.
In one particular implementation scenario, electronic device 81 may include, but is not limited to: any reasonable mobile intelligent terminal such as a computer, a tablet computer, a smart phone and a smart watch is not limited in the application.
In particular, the processor 812 is configured to control itself and the memory 811 to implement the steps of any of the above-described embodiments of the video display method. Processor 812 may also be referred to as a CPU (Central Processing Unit). The processor 812 may be an integrated circuit chip having signal processing capabilities. The Processor 812 may also be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. Additionally, the processor 812 may be implemented collectively by an integrated circuit chip.
Referring to fig. 9, fig. 9 is a block diagram illustrating an embodiment of a computer-readable storage medium according to the present application. The computer readable storage medium 91 stores program instructions 911 that can be executed by the processor, the program instructions 911 being for implementing the steps of any of the screen adapting method embodiments described above.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a module or a unit is merely one type of logical division, and an actual implementation may have another division, for example, a unit or a component may be combined or integrated with another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some interfaces, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on network elements. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

Claims (12)

1. A screen adaptation method, characterized in that the screen adaptation method comprises:
the cloud server receives characteristic information sent by the intelligent terminal; the characteristic information comprises the resolution of the screen of the intelligent terminal;
adjusting the initial resolution of a virtual terminal running in the cloud server based on the resolution to obtain a target resolution of the virtual terminal, which is matched with the resolution;
correspondingly generating a cloud service video image according to the target resolution;
and sending the cloud service video image to the intelligent terminal so that the intelligent terminal correspondingly displays the cloud service video image.
2. The screen adapting method according to claim 1, wherein the adjusting an initial resolution of the virtual terminal running on the cloud server based on the resolution to obtain a target resolution of the virtual terminal adapted to the resolution comprises:
and adjusting the initial resolution based on the resolution to obtain the target resolution consistent with the resolution.
3. The screen adapting method according to claim 1, wherein the adjusting an initial resolution of the virtual terminal running on the cloud server based on the resolution to obtain a target resolution of the virtual terminal adapted to the resolution comprises:
adjusting the initial resolution based on the resolution to obtain the target resolution of which the resolution is in a linear relation with the virtual terminal;
the sending the cloud service video image to the intelligent terminal so that the intelligent terminal correspondingly displays the cloud service video image comprises:
and sending the cloud service video image to the intelligent terminal so that the target resolution corresponding to the cloud service video image is adjusted to be consistent with the resolution by the intelligent terminal for display.
4. The screen adaptation method according to claim 3, wherein the resolution comprises a first width parameter and a first height parameter; the adjusting the initial resolution based on the resolution to obtain the target resolution of which the virtual terminal and the resolution are in a linear relation includes:
obtaining the target resolution of the virtual terminal in a linear relation with the resolution by using the first width parameter and the first height parameter;
wherein the second width parameter of the target resolution is equal to the first width parameter, the second height parameter of the target resolution is equal to a quotient of the first height parameter and a width ratio, and the width ratio is a quotient of the first width parameter and the second width parameter.
5. The screen adapting method according to claim 1, wherein after the sending the cloud service video image to the intelligent terminal so that the intelligent terminal correspondingly displays the cloud service video image, the method further comprises:
receiving a screen click instruction sent by the intelligent terminal;
performing coordinate conversion on the screen clicking instruction to update the cloud service video image based on the screen control instruction after the coordinate conversion;
and sending the updated cloud service video image to the intelligent terminal so that the intelligent terminal correspondingly displays the updated cloud service video image.
6. The screen adapting method according to claim 5, wherein before receiving the screen click command sent by the intelligent terminal, the method further comprises:
the cloud server establishes low-delay communication connection with the intelligent terminal;
the receiving of the screen click instruction sent by the intelligent terminal comprises the following steps:
and receiving the screen click instruction sent by the intelligent terminal through the low-delay communication.
7. The screen adapting method according to claim 5, wherein the feature information further includes horizontal and vertical screen information of the intelligent terminal, and the performing coordinate conversion on the screen click command includes:
and performing coordinate conversion on the screen clicking instruction based on the horizontal and vertical screen information, the resolution and the target resolution.
8. A screen adaptation method, characterized in that the screen adaptation method comprises:
the method comprises the steps that the intelligent terminal sends characteristic information including screen resolution of the intelligent terminal to a cloud server, so that the cloud server adjusts initial resolution of a virtual terminal running on the cloud server based on the resolution to obtain target resolution of the virtual terminal, the target resolution is matched with the resolution, a cloud service video image is correspondingly generated according to the target resolution, and the cloud service video image is sent to the intelligent terminal;
and receiving and correspondingly displaying the cloud service video image sent by the cloud server.
9. A server, comprising:
the acquisition module is used for receiving the characteristic information sent by the intelligent terminal; the characteristic information comprises the resolution of the screen of the intelligent terminal;
the processing module is used for adjusting the initial resolution of a virtual terminal running on the cloud server based on the resolution to obtain a target resolution of the virtual terminal, the target resolution is matched with the resolution, a cloud service video image is correspondingly generated according to the target resolution, the cloud service video image is sent to the intelligent terminal, and therefore the intelligent terminal correspondingly displays the cloud service video image.
10. An intelligent terminal, comprising:
the communication module is used for sending characteristic information comprising the screen resolution of the intelligent terminal to a cloud server so as to enable the cloud server to adjust the initial resolution of a virtual terminal running in the cloud server based on the resolution, obtain a target resolution matched with the resolution, and generate a cloud service video image according to the target resolution, and the communication module is also used for receiving the cloud service video image sent by the cloud server;
and the display module is used for displaying the cloud service video image.
11. An electronic device comprising a memory and a processor coupled to each other, the processor being configured to execute program instructions stored in the memory to implement the screen adapting method of any one of claims 1-7 or 8.
12. A computer readable storage medium having stored thereon program instructions, which when executed by a processor implement the screen adaptation method of any of claims 1-7 or 8.
CN202110961358.0A 2021-08-20 2021-08-20 Screen adaptation method, server, intelligent terminal, electronic device and storage medium Pending CN113778589A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110961358.0A CN113778589A (en) 2021-08-20 2021-08-20 Screen adaptation method, server, intelligent terminal, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110961358.0A CN113778589A (en) 2021-08-20 2021-08-20 Screen adaptation method, server, intelligent terminal, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN113778589A true CN113778589A (en) 2021-12-10

Family

ID=78838332

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110961358.0A Pending CN113778589A (en) 2021-08-20 2021-08-20 Screen adaptation method, server, intelligent terminal, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN113778589A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114327335A (en) * 2021-12-27 2022-04-12 珠海豹趣科技有限公司 Interface processing method and device
CN114360461A (en) * 2022-03-14 2022-04-15 南京初芯集成电路有限公司 TCON chip and OLED panel driving framework
CN115914459A (en) * 2022-11-28 2023-04-04 湖南麒麟信安科技股份有限公司 Method and device for adjusting resolution of cloud mobile phone, electronic equipment and storage medium
CN116886744A (en) * 2023-09-08 2023-10-13 深圳云天畅想信息科技有限公司 Dynamic adjustment method, device and equipment for streaming resolution and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111544886A (en) * 2020-04-30 2020-08-18 腾讯科技(深圳)有限公司 Picture display method and related device
CN112870711A (en) * 2021-04-28 2021-06-01 腾讯科技(深圳)有限公司 Cloud game processing method, device, equipment and storage medium
CN113015021A (en) * 2021-03-12 2021-06-22 腾讯科技(深圳)有限公司 Cloud game implementation method, device, medium and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111544886A (en) * 2020-04-30 2020-08-18 腾讯科技(深圳)有限公司 Picture display method and related device
CN113015021A (en) * 2021-03-12 2021-06-22 腾讯科技(深圳)有限公司 Cloud game implementation method, device, medium and electronic equipment
CN112870711A (en) * 2021-04-28 2021-06-01 腾讯科技(深圳)有限公司 Cloud game processing method, device, equipment and storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114327335A (en) * 2021-12-27 2022-04-12 珠海豹趣科技有限公司 Interface processing method and device
CN114327335B (en) * 2021-12-27 2024-04-02 珠海豹趣科技有限公司 Interface processing method and device
CN114360461A (en) * 2022-03-14 2022-04-15 南京初芯集成电路有限公司 TCON chip and OLED panel driving framework
CN115914459A (en) * 2022-11-28 2023-04-04 湖南麒麟信安科技股份有限公司 Method and device for adjusting resolution of cloud mobile phone, electronic equipment and storage medium
CN115914459B (en) * 2022-11-28 2024-07-19 湖南麒麟信安科技股份有限公司 Method and device for adjusting resolution of cloud mobile phone, electronic equipment and storage medium
CN116886744A (en) * 2023-09-08 2023-10-13 深圳云天畅想信息科技有限公司 Dynamic adjustment method, device and equipment for streaming resolution and storage medium
CN116886744B (en) * 2023-09-08 2023-12-29 深圳云天畅想信息科技有限公司 Dynamic adjustment method, device and equipment for streaming resolution and storage medium

Similar Documents

Publication Publication Date Title
CN113778589A (en) Screen adaptation method, server, intelligent terminal, electronic device and storage medium
CN109829977A (en) Method, apparatus, electronic equipment and the medium in room are seen in virtual three-dimensional space
CN108156533B (en) Smart television backlight adjusting method, smart television and storage medium
CN106803984B (en) Method and device compatible with VR and television functions
CN110569013B (en) Image display method and device based on display screen
CN107027030B (en) A kind of code rate allocation method and its equipment
CN113315927B (en) Video processing method and device, electronic equipment and storage medium
CN113542781B (en) Live broadcasting room game interaction method and related device
CN106791915A (en) A kind of method and apparatus for showing video image
CN113986177A (en) Screen projection method, screen projection device, storage medium and electronic equipment
CN111741353A (en) Method for device cooperative work, terminal device and readable storage medium
CN114816308B (en) Information partition display method and related equipment
CN113905268A (en) Black edge removing method for screen projection display of mobile terminal
CN113411621A (en) Audio data processing method and device, storage medium and electronic equipment
CN113645476A (en) Picture processing method and device, electronic equipment and storage medium
CN114428597A (en) Multi-channel terminal screen projection control method and device, screen projector and storage medium
CN110928509B (en) Display control method, display control device, storage medium, and communication terminal
CN116761310A (en) Lamp strip control method and device, storage medium and electronic device
CN113286100B (en) Configuration method and device of video output interface and video output equipment
CN110858388B (en) Method and device for enhancing video image quality
CN112040316B (en) Video image display method, device, multimedia equipment and storage medium
JP2019149785A (en) Video conversion device and program
CN112770095A (en) Panoramic projection method and device and electronic equipment
CN112911362B (en) Video picture moving and scaling method and device, electronic equipment and readable storage medium
CN111223114B (en) Image area segmentation method and device and electronic equipment

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