Game application processing method, device, electronic device and storage medium
By using a container component on a smart TV to detect hardware configuration and determine the game operation mode, the game application installation failure or poor effect of the game application installation or poor effects caused by insufficient intelligent TV hardware configuration, and achieve a better gaming experience.
Patent Information
- Application Number
- CN202310499576.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-05
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2043-05-05
AI Technical Summary
The low hardware configuration of smart TVs leads to failed installation of game applications or poor game effects, affecting the user's gaming experience.
Detect the hardware configuration information of smart TVs through the container component, determine the operating mode of the game application, and obtain or install the installation package from the server to ensure appropriate resource allocation.
It improved the installation flexibility of the game application on the smart TV side, solved the problem of failure or poor game effects caused by insufficient hardware configuration, and ensured the user's game experience.
Smart Images

Figure CN116668793B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart television technology, and in particular to a game application processing method, device, electronic device and storage medium. Background Art
[0002] Currently, users download game application installation packages from application stores, use the game application installation packages to install game applications on smart TVs, and operate game applications to play games on smart TVs. However, some game applications have high hardware requirements for smart TVs. If the hardware configuration of smart TVs is low, the game application installation may fail, or the game effect may be poor (for example, the screen may freeze, etc.), affecting the gaming experience. Summary of the invention
[0003] Multiple aspects of the present application provide a game application processing method, device, electronic device and storage medium, which are used to greatly solve the problem that the installation of game applications on smart TVs fails or the game effect is poor due to the low hardware configuration of the smart TV, thereby ensuring the user's gaming experience.
[0004] An embodiment of the present application provides a method for processing a game application, including: downloading an installation package of a container component from an application store, installing and starting the container component in a smart TV according to the installation package of the container component; obtaining hardware configuration information of the smart TV through the container component; if it is determined according to the hardware configuration information that the running mode of the game application is a local game mode, obtaining the installation package of the game application from a server through the container component; installing the game application in the container component based on the installation package of the game application through the container component; and starting the game application in the container component in response to a startup instruction of the game application.
[0005] An embodiment of the present application also provides an application processing device, including: a first installation module, used to download an installation package of a container component from an application store, and install and start the container component in a smart TV according to the installation package of the container component; a first acquisition module, used to obtain hardware configuration information of the smart TV through the container component; a second acquisition module, used to obtain the installation package of the game application from a server through the container component if it is determined that the running mode of the game application is a local game mode according to the hardware configuration information; a second installation module, used to install the game application in the container component based on the installation package of the game application through the container component; a startup module, used to start the game application in the container component in response to a startup instruction of the game application.
[0006] An embodiment of the present application also provides an electronic device, comprising: a memory and a processor; the memory is used to store a computer program; the processor is coupled to the memory, and is used to execute the computer program to execute the steps in the game application processing method.
[0007] An embodiment of the present application also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor is enabled to implement the steps in the game application processing method.
[0008] In the embodiment of the present application, the container component can determine whether to run the game application in the local game mode in the smart TV according to the detected hardware configuration information of the smart TV, which improves the flexibility of installing the game application on the smart TV, greatly solves the problem that the smart TV fails to install the game application or the game effect is poor due to the low hardware configuration of the smart TV, and ensures the user's gaming experience. In addition, the smart TV can obtain the installation package of the container component from the application store at a low bandwidth cost, and installing the container component locally on the smart TV will not occupy more storage resources and computing resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0010] Figure 1 An exemplary application scenario diagram provided for this embodiment;
[0011] Figure 2 A flowchart of a game application processing method provided in this embodiment;
[0012] Figure 3 A flowchart of another method for processing game applications provided by this embodiment;
[0013] Figure 4 A schematic diagram of the structure of a game application processing device provided in an embodiment of the present application;
[0014] Figure 5 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION
[0015] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0016] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the access relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B may be singular or plural. In the text description of the present application, the character " / " generally indicates that the previous and next associated objects are in an "or" relationship. In addition, in the embodiments of the present application, "first", "second", "third", etc. are only used to distinguish the contents of different objects and have no other special meanings.
[0017] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0018] Figure 1 This is an exemplary application scenario diagram provided for this embodiment. Figure 1 In the application scenario shown, the application store refers to a mobile application platform that provides various applications (Application, APP for short). The application store allows users to browse, download and install these applications. Usually, a new APP will be released to the application store after development. In this embodiment, after the container component for managing game applications is developed, the installation package of the container component is released to the application store. Compared with the installation package of the game application, the package size of the installation package of the container component is much smaller, which will not occupy more resources of the smart TV and will not drag down the running performance of the smart TV.
[0019] Cloud phone refers to a virtualization service based on cloud computing and ARM (Advanced RISC Machine) processors. Cloud phone has the ability to run applications quickly, efficiently and stably in the cloud. In this embodiment, the provider of the game application can pre-install the game application in the cloud phone so that the game application supports the cloud game mode. In the cloud game mode, the cloud phone runs the game application and sends the rendered game screen to the smart TV for display.
[0020] A server refers to a server that manages game applications. For example, the server can receive and store game application installation packages released by game application developers, receive and store game application update packages released by game application developers, etc. The server can also provide game application installation packages or update packages to the outside world so that smart TVs can obtain the game application installation packages to install the game applications, or update the version of the game applications on smart TVs according to the game application update packages.
[0021] Smart TV is a new TV product with a fully open platform and an operating system. Users can install and uninstall various applications on their own while enjoying ordinary TV content, and continuously expand and upgrade their functions.
[0022] The following is an introduction using the example of a smart TV and a cloud phone that have not yet installed a game application.
[0023] See also Figure 1 As shown in ①, the cloud phone installs the game application in the cloud phone according to the installation package of the game application to provide support for the game application to support the cloud game mode. For example, the provider of the game application provides the cloud phone with the installation package of the game application so that the cloud phone can install the game application. In actual applications, the version of the game application in the cloud phone is continuously updated in real time or periodically, so that the version of the game application in the cloud phone is the latest version.
[0024] See also Figure 1 As shown in ②, when the smart TV has not yet installed the container component, the application store provides the smart TV with an installation package of the container component. In this embodiment, the developer of the game application can develop an application software for managing the game application separately for the game application, and the application software is referred to as a container component herein. The developer of the game application can simply publish the developed container component to the application store without publishing the game application to the application store. Generally, whether the application store updates the version of the application that has been published to the application store is related to the update policy set by the provider of the application store. Although the provider of the application applies to the application store to update the version of the application that has been published to the application store, it is subject to the update policy set by the provider of the application store. The version of the application that has been published to the application store may not be updated immediately, or it may be delayed for a long time to update, which in turn causes users who use the application to be unable to obtain the latest version of the application, seriously affecting the development effect and user experience of the application.
[0025] In this embodiment, there is no need to publish the game application to the application store, but only the container component for managing the game application is published, so that the version update of the game application is no longer subject to the update policy set by the provider of the application store.
[0026] See also Figure 1 As shown in ③, the smart TV installs and starts the container component according to the installation package of the container component. The container component has at least the following functions: detecting the hardware configuration information of the smart TV, selecting the running mode of the game application, downloading, updating and installing the game application, interacting with the cloud phone, etc. The hardware configuration information includes, for example, but is not limited to: the performance parameters of the central processing unit (CPU), the performance parameters of the graphics processing unit (GPU), the memory capacity, the flash memory capacity, etc.
[0027] See also Figure 1As shown in ④, the smart TV calls the container component to select the running mode of the game application. The container component detects the hardware configuration information of the smart TV and determines whether the game application is suitable for the local game mode or the cloud game mode based on the hardware configuration information of the smart TV. In the local game mode, the smart TV is supported to run the game application and output the audio and video data of the game application (including the rendered game screen). In the cloud game mode, the cloud phone runs the game application, and the cloud phone outputs the audio and video data of the game application (including the rendered game screen) and transmits it to the smart TV for display and / or playback.
[0028] See also Figure 1 As shown in ⑤ and ⑥, when the operation mode is the local game mode, the smart TV calls the container component to access the server to obtain the installation package of the game application. The smart TV calls the container component to install the game application in the container component according to the installation package of the game application. Furthermore, the container component can also periodically or irregularly access the server to obtain an update package from the server, and use the update package to update the version of the container component already installed in the smart TV.
[0029] See also Figure 1 As shown in ⑦, the smart TV receives a start command initiated by the game player through a keyboard or mouse, etc. Figure 1 As shown in ⑧, in the local game mode, the smart TV starts the local game application. At this time, the smart TV outputs the audio and video data of the game application, such as displaying the game screen and / or playing audio data.
[0030] See also Figure 1 As shown in 9, the smart TV generates control instructions according to the control operation initiated by the game player on the game screen. Figure 1 As shown in ⑩, the smart TV starts to output new audio and video data of the game application according to the control instructions of the game player, for example, rendering and displaying the latest game screen.
[0031] See also Figure 1 In As shown in the figure, when the operation mode is cloud gaming mode, after receiving the start command initiated by the game player through the keyboard or mouse, the smart TV calls the streaming component in the container component to send the start command to the cloud phone through the transmission channel. Among them, the streaming component is a component that controls the playback or display of audio and video data. The streaming component can be understood as a player to a certain extent.
[0032] See also Figure 1 In As shown, the cloud phone starts the game application according to the startup instruction. In the cloud game mode, the cloud phone starts the game application in the cloud. The cloud phone generates audio and video data of the game application and sends it to the smart TV through the transmission channel so that the smart TV can output the audio and video data of the game application, such as displaying the game screen and / or playing audio data.
[0033] See also Figure 1 In As shown, after the smart TV receives the control instruction generated in response to the control operation initiated by the game player on the game screen, the smart TV calls the streaming component in the container component to send the control instruction to the cloud phone through the transmission channel. Figure 1 In As shown, the cloud phone generates new audio data according to the control instructions, such as rendering new game screens. Figure 1 In As shown, the smart TV receives new audio data sent by the cloud phone through the transmission channel and outputs it, for example, displays the new game screen rendered by the cloud phone.
[0034] exist Figure 1 In the application scenario shown, there is no need to publish the game application to the application store, which greatly improves the flexibility of the version update of the game application and shortens the time for the latest version of the game application to be released to users. The developer can upload the latest version of the game application installation package or update package to the server with management authority in a timely manner. The container component in the smart TV can access the server to obtain the latest version of the game application installation package or update package, and control the game application in the smart TV to keep the latest version based on the latest version of the game application installation package or update package. Of course, the developer can also update the version of the game application in the cloud phone in a timely manner.
[0035] In an embodiment of the present application, only the container component for managing the game application is released to the application store. Since the package size of the installation package of the container component is much smaller than the package size of the installation package of the game application, the smart TV can obtain the installation package of the container component from the application store at a lower bandwidth cost, and installing the container component locally on the smart TV will not occupy more storage resources and computing resources.
[0036] In an embodiment of the present application, the container component can determine whether to run the game application in the smart TV in local game mode based on the detected hardware configuration information of the smart TV, thereby improving the flexibility of installing the game application on the smart TV, and greatly solving the problem of failure to install the game application on the smart TV or poor game effect due to the low hardware configuration of the smart TV, thereby ensuring the user's gaming experience.
[0037] In the embodiment of the present application, when the container component determines that the hardware configuration of the smart TV is low, it can also interact with the cloud phone, and then run the game application of the cloud phone in the cloud game mode, so that even if the hardware configuration of the user's smart TV is low, it will not affect the user's inability to use the game application normally, thereby ensuring the user's gaming experience. It is worth noting that in the cloud game mode, the hardware configuration of the cloud phone is high, and the game effect is better, for example, the screen freeze rate is low, the second opening rate is high, and the playback success rate is high.
[0038] Figure 2 This is a flow chart of a method for processing a game application provided in this embodiment. The method may be executed by a game application processing device, which may be composed of software and / or hardware and may generally be configured in various electronic devices such as smart TVs.
[0039] See also Figure 2 , the method may include the following steps:
[0040] 201. Download an installation package of the container component from an application store, and install and start the container component in the smart TV according to the installation package of the container component.
[0041] 202. Obtain hardware configuration information of the smart TV through the container component.
[0042] 203. If it is determined according to the hardware configuration information that the running mode of the game application is the local game mode, the installation package of the game application is obtained from the server through the container component.
[0043] 204. Install the game application in the container component based on the installation package of the game application through the container component.
[0044] 205. In response to a start instruction of the game application, start the game application in the container component.
[0045] In this embodiment, when the smart TV has not yet installed the container component, the smart TV responds to the download operation of the container component issued by the user through a remote control, keyboard or mouse, etc., and sends a download request to the application store to download the installation package of the container component from the application store. The smart TV installs the container component in the smart TV according to the installation package of the container component. After the container component is installed, the container component detects the hardware configuration information of the smart TV, and determines whether the hardware configuration of the smart TV is higher or lower relative to the game application based on the comparison result of the hardware configuration information required by the game application and the hardware configuration information of the smart TV. If the hardware configuration of the smart TV is higher, the smart TV responds to the start instruction of the game application issued by the user through a remote control, keyboard or mouse, etc., and starts the game application in the container component. At this time, in the local game mode, the smart TV runs the game application locally, and the smart TV outputs the audio and video data of the game application, such as rendering and displaying the game screen and / or playing audio data.
[0046] In some optional embodiments, the container component may also periodically or irregularly access the server to obtain an update package or the latest version of the container component installation package from the server, and use the update package or the latest version of the container component installation package to update the version of the container component already installed in the smart TV. Therefore, further optionally, after installing the game application in the container component based on the installation package of the game application through the container component, the container component may also send a version update message to the server, the version update message including the current version of the installation package of the game application already installed in the container component; receive the update package of the game application returned by the server through the container component; and update the game application already installed in the container component according to the update package through the container component.
[0047] Specifically, after receiving the current version of the installation package of the game application that has been installed in the container component, the server determines whether there is an update package that upgrades the current version to the latest version. If there is an update package that upgrades the current version to the latest version, the server returns the update package of the game application to the container component, and the container component updates the game application that has been installed in the container component according to the update package.
[0048] In this embodiment, there is no need to publish the game application to the application store, which greatly improves the flexibility of the version update of the game application and shortens the time for the latest version of the game application to be released to users. The developer can upload the latest version of the game application installation package or update package to the server with management authority in a timely manner. The container component in the smart TV can access the server to obtain the latest version of the game application installation package or update package, and control the game application in the smart TV to keep the latest version based on the latest version of the game application installation package or update package. Of course, the developer can also update the version of the game application in the cloud phone in a timely manner.
[0049] In an embodiment of the present application, only the container component for managing the game application is released to the application store. Since the package size of the installation package of the container component is much smaller than the package size of the installation package of the game application, the smart TV can obtain the installation package of the container component from the application store at a lower bandwidth cost, and installing the container component locally on the smart TV will not occupy more storage resources and computing resources.
[0050] In actual applications, the hardware configuration of each user's smart TV is different. In order to enable all users to play games normally, if the hardware configuration of the smart TV is high, the smart TV responds to the game application start command issued by the user through the remote control, keyboard or mouse, and starts the game application in the cloud phone. Figure 2 , the above method may further include:
[0051] Step 206: If it is determined according to the hardware configuration information that the running mode of the game application is the cloud game mode, then in response to the start instruction of the game application, the streaming component in the container component sends the start instruction to the cloud phone through the transmission channel, so that the cloud phone starts the game application in the cloud.
[0052] In cloud gaming mode, the cloud phone responds to the start-up command of the game application, generates audio and video data of the game application, and sends it to the smart TV through the transmission channel so that the smart TV can output the audio and video data of the game application, such as displaying the game screen and / or playing audio data. After the smart TV receives the control instruction generated in response to the control operation initiated by the game player on the game screen, the smart TV calls the streaming component in the container component to send the control instruction to the cloud phone through the transmission channel. The cloud phone generates new audio data according to the control instruction, such as rendering a new game screen. The smart TV receives the new audio data sent by the cloud phone through the transmission channel and outputs it, such as displaying the new game screen rendered by the cloud phone.
[0053] In the embodiment of the present application, when the container component determines that the hardware configuration of the smart TV is low, it can also interact with the cloud phone, and then run the game application of the cloud phone in the cloud game mode, so that even if the hardware configuration of the user's smart TV is low, it will not affect the user's inability to use the game application normally, thereby ensuring the user's gaming experience. It is worth noting that in the cloud game mode, the hardware configuration of the cloud phone is high, and the game effect is better, for example, the screen freeze rate is low, the second opening rate is high, and the playback success rate is high.
[0054] It is understandable that if the container component is not installed on the smart TV, the container component needs to be installed on the smart TV before the game application is started for the first time. If the container component is already installed on the smart TV, the smart TV can directly respond to the user's startup command and start the local game application.
[0055] The technical solution provided by the embodiment of the present application is that the container component can determine whether to run the game application in the local game mode in the smart TV according to the hardware configuration information of the detected smart TV, which improves the flexibility of installing the game application on the smart TV, greatly solves the problem that the smart TV fails to install the game application or the game effect is poor due to the low hardware configuration of the smart TV, and ensures the user's gaming experience. In addition, the smart TV can obtain the installation package of the container component from the application store at a low bandwidth cost, and installing the container component locally on the smart TV will not occupy a lot of storage resources and computing resources.
[0056] Figure 3 This is a flow chart of another method for processing game applications provided in this embodiment. The method may be executed by a game application processing device, which may be composed of software and / or hardware and may generally be configured in various electronic devices such as smart TVs.
[0057] 301. Download an installation package of the container component from an application store, and install and start the container component in the smart TV according to the installation package of the container component.
[0058] 302. Obtain hardware configuration information of the smart TV through the container component.
[0059] 303. If it is determined according to the hardware configuration information that the running mode of the game application is the local game mode, the installation package of the game application is obtained from the server through the container component.
[0060] 304. Install the game application in the container component based on the installation package of the game application through the container component.
[0061] 305. In response to the start instruction of the game application, if the current remaining resource amount of the smart TV is less than the first resource requirement, release the resources of the smart TV occupied by other applications until the current remaining resource amount of the smart TV is greater than or equal to the first resource requirement.
[0062] 306. When the current remaining amount of resources of the smart TV is greater than or equal to the first resource requirement, start the game application in the container component.
[0063] 307. If it is determined according to the hardware configuration information that the running mode of the game application is the cloud game mode, then in response to the start instruction of the game application, the streaming component in the container component sends the start instruction to the cloud phone through the transmission channel, so that the cloud phone starts the game application in the cloud.
[0064] In this embodiment, step 301, step 302, step 303, step 304 and step 307 may refer to the relevant steps of the above-mentioned embodiment, and will not be described again here.
[0065] In actual applications, the hardware configuration information of the smart TV meets the first resource requirement required for starting the game application, which is also the resource requirement required for starting the game application. However, as time goes by, more and more applications are installed on the smart TV, and more and more applications are started, which continuously consume the hardware resources of the smart TV. For example, the CPU usage rate is getting higher and higher, the GPU usage rate is getting higher and higher, the available memory capacity is getting smaller and smaller, and the available flash memory capacity is getting smaller and smaller, etc. In other words, the current remaining resources of the smart TV may be insufficient, causing the game application to fail to start normally. In response to such a situation, the resources occupied by other applications on the smart TV can be released until the current remaining resources of the smart TV are greater than or equal to the first resource requirement. When the current remaining resources of the smart TV are greater than or equal to the first resource requirement, the game application in the container component is started to ensure the normal startup of the game application.
[0066] In actual applications, a resource usage priority setting page may be popped up for the user to set the resource usage priority of each application installed in the smart TV; an application with a higher resource usage priority will have priority in occupying the hardware resources of the smart TV.
[0067] Optionally, resources occupied by applications with a lower resource usage priority than the game application may be released first. When releasing resources, the application may be switched from an active state to an inactive state, or from an active state to a paused state, or the application may be uninstalled, or only some basic functions of the application may be run, and some functions of the application that consume more resources, such as a video call function, may be disabled.
[0068] Based on this, resources occupied by applications (i.e., application programs) with lower resource usage priority than game applications can be released in order of resource usage priority from high to low, so as to ensure the reliability of game application startup while reducing the impact on users' normal use of other applications.
[0069] As an example, when releasing resources occupied by other applications on a smart TV, at least one first application whose resource usage priority is lower than that of a game application can be selected from the smart TV; the current first application can be selected from at least one first application that has not been selected in order of the current resource usage of the at least one first application from high to low; the resources occupied by the current first application on the smart TV are released, and it is determined whether the current remaining amount of resources on the smart TV is less than the first resource requirement; if so, the step of selecting the current first application from at least one first application that has not been selected is returned to the step of executing the step of selecting the current first application from at least one first application that has not been selected until the current remaining amount of resources on the smart TV is greater than or equal to the first resource requirement or the current first application is the last first application.
[0070] In actual applications, after releasing the resources occupied by applications with a lower resource usage priority than the game application, the current remaining resource amount of the smart TV may still be less than the first resource requirement, so either switch to the cloud game mode or continue to release resources. Therefore, further optionally, if the current remaining resource amount of the smart TV is still less than the first resource requirement after releasing the resources occupied by all the first applications, a prompt message is output, and the prompt message is used to prompt the switch from the local game mode to the cloud game mode; if confirmation information of switching to the cloud game mode is received, a start instruction is sent to the cloud phone through the transmission channel through the streaming component in the container component, so that the cloud phone starts the cloud game application; if confirmation information of maintaining the local game mode is received, at least one second application with a higher resource usage priority than the game application is selected from the smart TV; according to the current resource usage of at least one second application from high to low, the current second application is selected from the at least one second application that has not been selected; the resources occupied by the current second application of the smart TV are released, and it is determined whether the current remaining resource amount of the smart TV is less than the first resource requirement. If so, the step of selecting the current second application from the at least one second application that has not been selected is returned to execute until the current remaining resource amount of the smart TV is greater than or equal to the first resource requirement.
[0071] Of course, if after releasing the resources occupied by applications with a higher resource usage priority than the game application, the current remaining resources of the smart TV are still less than the first resource demand, then the user can only be prompted to switch to the cloud gaming mode.
[0072] In actual applications, users will use different game skills when playing games, and different game skills consume different resources. For example, some game skills continuously update the game screen for a long time and consume more resources, while some game skills are shorter in duration and consume fewer resources. In response to this situation, you can collect users' historical game behavior data and mine their gaming habits. Users' gaming habits can reflect which game skills users like to use during the game. Based on users' gaming habits, the second resource demand required for the game application to run after the game application is started can be estimated to ensure a better game effect. Among them, the second resource demand is the amount of resources required to meet the user's needs to activate the game skills.
[0073] Based on the above, in response to the startup instruction of the game application, after starting the game application in the container component, the second resource requirement required for the operation of the game application can also be estimated based on the user's gaming habits; if the current remaining resources of the smart TV are less than the second resource requirement, the resources occupied by other applications of the smart TV are released until the current remaining resources of the smart TV are greater than or equal to the second resource requirement.
[0074] Further optionally, resources occupied by applications with a lower resource usage priority than the game application can be released first. Based on this, resources occupied by applications (i.e., application programs) with a lower resource usage priority than the game application can be released in descending order of resource usage priority, so as to ensure the reliability of the game application startup while reducing the impact on the user's normal use of other applications.
[0075] As an example, when releasing resources occupied by other applications on a smart TV, at least one third application whose resource usage priority is lower than that of the game application can be selected from the smart TV; the current third application can be selected from at least one third application that has not been selected in order of the current resource usage of the at least one third application from high to low; the resources occupied by the current third application on the smart TV are released, and it is determined whether the current remaining amount of resources on the smart TV is less than the second resource requirement; if so, the step of selecting the current third application from at least one third application that has not been selected is returned to the step of executing the step of selecting the current third application from at least one third application that has not been selected until the current remaining amount of resources on the smart TV is greater than or equal to the second resource requirement or the current third application is the last third application.
[0076] In actual applications, after releasing the resources occupied by applications with a lower resource usage priority than the game application, the current remaining resources of the smart TV may still be less than the second resource demand. In this case, either switch to cloud gaming mode or continue to release resources. Therefore, further optionally, if after releasing the resources occupied by all the third applications, the current remaining resource amount of the smart TV is still less than the second resource requirement, a prompt message is output, and the prompt message is used to prompt the switch from the local game mode to the cloud game mode; if confirmation information for switching to the cloud game mode is received, a start instruction is sent to the cloud phone through the transmission channel by the streaming component in the container component, so that the cloud phone starts the cloud game application; if confirmation information for maintaining the local game mode is received, at least one fourth application with a higher resource usage priority than the game application is selected from the smart TV; according to the order of the current resource usage of at least one fourth application from high to low, the current second application is selected from at least one fourth application that has not been selected; the resources occupied by the current fourth application of the smart TV are released, and it is determined whether the current remaining resource amount of the smart TV is less than the second resource requirement. If so, return to the step of selecting the current fourth application from at least one fourth application that has not been selected until the current remaining resource amount of the smart TV is greater than or equal to the second resource requirement.
[0077] The technical solution provided by the embodiment of the present application is that the container component can determine whether to run the game application in the smart TV in the local game mode according to the detected hardware configuration information of the smart TV, thereby improving the flexibility of installing the game application on the smart TV, greatly solving the problem that the smart TV fails to install the game application or the game effect is poor due to the low hardware configuration of the smart TV, and ensuring the user's gaming experience. In addition, the smart TV can obtain the installation package of the container component from the application store at a low bandwidth cost, and installing the container component locally on the smart TV will not occupy more storage resources and computing resources. Furthermore, when the remaining resources of the smart TV are insufficient to start the game application, the container component releases the occupied resources of the smart TV to ensure the normal startup of the game application and the user's gaming experience.
[0078] Figure 4 This is a schematic diagram of the structure of a game application processing device provided in an embodiment of the present application. Figure 4 , the device may include:
[0079] A first installation module 41 is used to download an installation package of the container component from an application store, and install and start the container component in the smart TV according to the installation package of the container component;
[0080] A first acquisition module 42 is used to acquire hardware configuration information of the smart TV through a container component;
[0081] The second acquisition module 43 is used to acquire the installation package of the game application from the server through the container component if it is determined that the running mode of the game application is the local game mode according to the hardware configuration information;
[0082] A second installation module 44, configured to install the game application in the container component based on the installation package of the game application through the container component;
[0083] The starting module 45 is used to start the game application in the container component in response to the starting instruction of the game application.
[0084] Further optionally, the above-mentioned device also includes: an update module, which is used to send a version update message to the server through the container component after installing the game application in the container component based on the installation package of the game application through the container component, and the version update message includes the current version of the installation package of the game application that has been installed in the container component; receive the update package of the game application returned by the server through the container component; and update the game application that has been installed in the container component according to the update package through the container component.
[0085] Further optionally, the above-mentioned device also includes: a sending module, which is used to respond to the start-up instruction of the game application by sending the start-up instruction to the cloud phone through the streaming component in the container component through the transmission channel if it is determined that the operating mode of the game application is the cloud game mode according to the hardware configuration information, so that the cloud phone starts the game application in the cloud.
[0086] Further optionally, when the startup module 45 responds to the startup instruction of the game application to start the game application in the container component, it is specifically used to: respond to the startup instruction of the game application, if the current remaining resources of the smart TV are less than the first resource requirement required to start the game application, release the resources occupied by other applications of the smart TV until the current remaining resources of the smart TV are greater than or equal to the first resource requirement; when the current remaining resources of the smart TV are greater than or equal to the first resource requirement, start the game application in the container component.
[0087] Further optionally, when the startup module 45 releases the resources of the smart TV occupied by other applications, it is specifically used to: select at least one first application from the smart TV whose resource usage priority is lower than that of the game application; select the current first application from at least one first application that has not been selected in order of the current resource usage of the at least one first application from high to low; release the resources of the smart TV occupied by the current first application, and determine whether the current remaining amount of resources of the smart TV is less than the first resource demand, and if so, return to the step of selecting the current first application from at least one first application that has not been selected until the current remaining amount of resources of the smart TV is greater than or equal to the first resource demand or the current first application is the last first application.
[0088] Further optionally, the startup module 45 is also used for: if after releasing the resources occupied by all the first applications, the current remaining resource amount of the smart TV is still less than the first resource requirement, then outputting a prompt message, the prompt message being used to prompt switching from the local game mode to the cloud game mode; if confirmation information for switching to the cloud game mode is received, then sending a startup instruction to the cloud phone through the transmission channel via the streaming component in the container component, so that the cloud phone starts the cloud game application; if confirmation information for maintaining the local game mode is received, selecting at least one second application whose resource usage priority is higher than the game application from the smart TV; selecting the current second application from at least one second application that has not been selected in order of the current resource usage of at least one second application from high to low; releasing the resources occupied by the current second application of the smart TV, and determining whether the current remaining resource amount of the smart TV is less than the first resource requirement, and if so, returning to the step of selecting the current second application from at least one second application that has not been selected, until the current remaining resource amount of the smart TV is greater than or equal to the first resource requirement.
[0089] Further optionally, the startup module is also used to: respond to a startup instruction of the game application, start the game application in the container component, and estimate the second resource requirement required for the current operation of the game application based on the current game data of the game application; if the current remaining resources of the smart TV are less than the second resource requirement, release the resources occupied by other applications of the smart TV until the current remaining resources of the smart TV are greater than or equal to the second resource requirement.
[0090] Figure 4 The device shown can perform Figure 2 or Figure 3 The method shown in the figure, its implementation principle and technical effect are not described in detail. Figure 4 The specific manner in which each module and unit of the device shown performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0091] It should be noted that the execution subject of each step of the method provided in the above embodiment can be the same device, or the method can be executed by different devices. For example, the execution subject of steps 201 to 206 can be device A; for another example, the execution subject of steps 201 and 202 can be device A, and the execution subject of steps 203 to 206 can be device B; and so on.
[0092] In addition, in some of the processes described in the above embodiments and the accompanying drawings, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel, and the sequence numbers of the operations, such as 201, 202, etc., are only used to distinguish between different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.
[0093] Figure 5 This is a schematic diagram of the structure of an electronic device provided in this application. Figure 5 As shown, the electronic device includes: a memory 51 and a processor 52;
[0094] The memory 51 is used to store computer programs and can be configured to store various other data to support operations on the computing platform. Examples of such data include instructions for any application or method operating on the computing platform, contact data, phone book data, messages, pictures, videos, etc.
[0095] The memory 51 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 storage, flash memory, magnetic disk or optical disk.
[0096] The processor 52 is coupled to the memory 51 and is used to execute the computer program in the memory 51 for the steps in the above-mentioned game application processing method.
[0097] Further, if Figure 5 As shown, the electronic device also includes: a communication component 53, a display 54, a power component 55, an audio component 56 and other components. Figure 5 Only some components are shown schematically, which does not mean that the electronic device only includes Figure 5 In addition, Figure 5 The components in the dashed box are optional components, not mandatory components, and the specific components depend on the product form of the electronic device. The electronic device of this embodiment can be implemented as a terminal device such as a desktop computer, a laptop computer, a smart phone, or an IOT (Internet of Things) device, or a server device such as a conventional server, a cloud server, or a server array. If the electronic device of this embodiment is implemented as a terminal device such as a desktop computer, a laptop computer, a smart phone, etc., it can include Figure 5 If the electronic device of this embodiment is implemented as a server device such as a conventional server, a cloud server or a server array, it may not include Figure 5 Components within the dashed box.
[0098] For the detailed implementation process of the processor executing each action, please refer to the relevant description in the aforementioned method embodiment or device embodiment, which will not be repeated here.
[0099] Accordingly, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which, when executed, can implement each step that can be executed by an electronic device in the above method embodiment.
[0100] Accordingly, an embodiment of the present application also provides a computer program product, including a computer program / instruction. When the computer program / instruction is executed by a processor, the processor is enabled to implement each step in the above method embodiment that can be executed by an electronic device.
[0101] The above-mentioned communication component is configured to facilitate wired or wireless communication between the device where the communication component is located and other devices. The device where the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G / LTE, 5G and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
[0102] The above-mentioned display includes a screen, and 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 touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
[0103] The power supply assembly provides power to various components of the device where the power supply assembly is located. The power supply assembly may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device where the power supply assembly is located.
[0104] The above-mentioned audio component can be configured to output and / or input audio signals. For example, the audio component includes a microphone (MIC), and when the device where the audio component is located is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in a memory or sent via a communication component. In some embodiments, the audio component also includes a speaker for outputting an audio signal.
[0105] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0106] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0107] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0108] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0109] In a typical configuration, a computing device includes one or more processors (central processing units, CPUs), input / output interfaces, network interfaces, and memory.
[0110] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0111] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, Phase Change RAM (PRAM), Static Random-Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically-Erasable Programmable Read-Only Memory (EEPROM), flash memory or other memory technology, CD-ROM, Digital Versatile Disc (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device. According to the definition in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0112] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0113] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for processing a game application, characterized in that: include: Download an installation package of the container component from an application store, and install and start the container component in the smart TV according to the installation package of the container component; Acquire the hardware configuration information of the smart TV through the container component; If it is determined according to the hardware configuration information that the running mode of the game application is the local game mode, obtaining the installation package of the game application from the server through the container component; Installing the game application in the container component based on the installation package of the game application through the container component; In response to a start instruction of the game application, start the game application in the container component; In response to the start instruction of the game application, starting the game application in the container component includes: In response to the start-up instruction of the game application, if the current remaining amount of resources of the smart TV is less than the first resource requirement required for starting the game application, releasing the resources of the smart TV occupied by other applications until the current remaining amount of resources of the smart TV is greater than or equal to the first resource requirement; When the current remaining amount of resources of the smart TV is greater than or equal to the first required amount of resources, starting the game application in the container component; The releasing of resources of the smart TV occupied by other applications includes: selecting at least one first application from the smart TV having a lower resource usage priority than the game application; Selecting a current first application from at least one first application that has not been selected in descending order of current resource usage of the at least one first application; releasing the resources of the smart TV occupied by the current first application, determining whether the current remaining resource amount of the smart TV is less than the first resource requirement amount, and if so, returning to the step of selecting the current first application from at least one first application that has not been selected, until the current remaining resource amount of the smart TV is greater than or equal to the first resource requirement amount or the current first application is the last first application; If, after releasing the resources occupied by all the first applications, the current remaining amount of resources of the smart TV is still less than the first resource requirement, outputting a prompt message, wherein the prompt message is used to prompt switching from the local game mode to the cloud game mode; If confirmation information for switching to the cloud gaming mode is received, the streaming component in the container component sends the startup instruction to the cloud phone through the transmission channel, so that the cloud phone starts the cloud gaming application; If confirmation information for maintaining the local game mode is received, selecting at least one second application having a higher resource usage priority than the game application from the smart TV; Selecting a current second application from at least one second application that has not been selected in descending order of current resource usage of the at least one second application; Release the resources of the smart TV occupied by the current second application, determine whether the current remaining resource amount of the smart TV is less than the first resource requirement, and if so, return to the step of selecting the current second application from at least one second application that has not been selected until the current remaining resource amount of the smart TV is greater than or equal to the first resource requirement.
2. The method according to claim 1, characterized in that: After installing the game application in the container component based on the installation package of the game application through the container component, the method further includes: Sending a version update message to the server through the container component, wherein the version update message includes a current version of an installation package of the game application that has been installed in the container component; Receiving, through a container component, an update package of the game application returned by the server; The game application already installed in the container component is updated according to the update package through the container component.
3. The method according to claim 1, characterized in that Also includes: If it is determined according to the hardware configuration information that the running mode of the game application is the cloud game mode, then in response to the start-up instruction of the game application, the start-up instruction is sent to the cloud phone through the transmission channel by the streaming component in the container component, so that the cloud phone starts the cloud game application.
4. The method according to claim 1, characterized in that: After the game application in the container component is started in response to the start instruction of the game application, the method includes: estimating a second resource requirement required for the current operation of the game application according to current game data of the game application; If the current remaining resource amount of the smart TV is less than the second resource requirement, the resources of the smart TV occupied by other applications are released until the current remaining resource amount of the smart TV is greater than or equal to the second resource requirement.
5. An application processing device, characterized in that: include: A first installation module, configured to download an installation package of a container component from an application store, and install and start the container component in a smart TV according to the installation package of the container component; A first acquisition module, configured to acquire hardware configuration information of the smart TV through the container component; A second acquisition module is used to acquire the installation package of the game application from the server through a container component if it is determined that the running mode of the game application is a local game mode according to the hardware configuration information; A second installation module, configured to install the game application in the container component based on the installation package of the game application through the container component; A startup module, configured to start the game application in the container component in response to a startup instruction of the game application; The startup module is specifically used for: In response to the start-up instruction of the game application, if the current remaining amount of resources of the smart TV is less than the first resource requirement required for starting the game application, releasing the resources of the smart TV occupied by other applications until the current remaining amount of resources of the smart TV is greater than or equal to the first resource requirement; When the current remaining amount of resources of the smart TV is greater than or equal to the first required amount of resources, starting the game application in the container component; The releasing of resources of the smart TV occupied by other applications includes: selecting at least one first application from the smart TV having a lower resource usage priority than the game application; Selecting a current first application from at least one first application that has not been selected in descending order of current resource usage of the at least one first application; releasing the resources of the smart TV occupied by the current first application, determining whether the current remaining resource amount of the smart TV is less than the first resource requirement amount, and if so, returning to the step of selecting the current first application from at least one first application that has not been selected, until the current remaining resource amount of the smart TV is greater than or equal to the first resource requirement amount or the current first application is the last first application; If, after releasing the resources occupied by all the first applications, the current remaining amount of resources of the smart TV is still less than the first resource requirement, outputting a prompt message, wherein the prompt message is used to prompt switching from the local game mode to the cloud game mode; If confirmation information for switching to the cloud gaming mode is received, the streaming component in the container component sends the startup instruction to the cloud phone through the transmission channel, so that the cloud phone starts the cloud gaming application; If confirmation information for maintaining the local game mode is received, selecting at least one second application having a higher resource usage priority than the game application from the smart TV; Selecting a current second application from at least one second application that has not been selected in descending order of current resource usage of the at least one second application; Release the resources of the smart TV occupied by the current second application, determine whether the current remaining resource amount of the smart TV is less than the first resource requirement, and if so, return to the step of selecting the current second application from at least one second application that has not been selected until the current remaining resource amount of the smart TV is greater than or equal to the first resource requirement.
6. An electronic device, characterized in that: include: Memory and processor; The memory is used to store computer programs; The processor is coupled to the memory and configured to execute the computer program to perform the steps in the method according to any one of claims 1 to 5.
7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the processor is enabled to implement the steps in the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method, device and system for detecting program installation adaptation
CN106331858A
application program keep-alive method and device, computer equipment and storage medium
CN109992310A
Game starting method and device, computer equipment and storage medium
CN113157348A