Dynamic wallpaper display method, apparatus and device, and computer program product
By playing dynamic wallpaper videos on the system desktop and displaying an immersive page with a transparent background on the upper layer of the wallpaper video player, the problem of dynamic wallpaper being blocked in the existing technology is solved, and the human-computer interaction efficiency and user experience are improved.
Patent Information
- Application Number
- CN202411181981.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-12-13
AI Technical Summary
The existing dynamic wallpaper rendering method causes the application of icons, status bars, and navigation bars on the system desktop to block text or content in the dynamic wallpaper, which has poor human-computer interaction efficiency and poor user experience.
By playing dynamic wallpaper videos on the system desktop and displaying an immersive page with a transparent background on the upper layer of the wallpaper video player, users can observe dynamic wallpaper videos at the same time, hiding desktop icons, status bars and other elements.
It improves human-computer interaction efficiency and provides an immersive user experience. Users can interact with dynamic wallpaper more conveniently, avoiding text or content being blocked.
Smart Images

Figure CN119127367A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, equipment and computer program product for displaying a dynamic wallpaper. Background Art
[0002] The existing dynamic wallpaper rendering method is to inherit and rewrite the system WallpaperService and its internal Engine class. Then the dynamic wallpaper is directly displayed on the system desktop through the video player. However, in the above solution, the application icons, system status bar, system navigation bar, etc. displayed on the system desktop will block the text or content in the dynamic wallpaper, resulting in poor human-computer interaction efficiency and poor user experience. Summary of the invention
[0003] The embodiments of the present application provide a method, apparatus, device and computer program product for displaying a dynamic wallpaper, which will not block the text or content in the dynamic wallpaper, facilitate immersive interaction between the user and the dynamic wallpaper, and improve the efficiency of human-computer interaction.
[0004] According to one aspect of an embodiment of the present application, a method for displaying a dynamic wallpaper is provided, the method comprising:
[0005] Play dynamic wallpaper video on the system desktop;
[0006] An immersive page is displayed on the upper layer of the wallpaper video player, and the background of the immersive page has transparency, so that the user can observe the dynamic wallpaper video through the background.
[0007] According to another aspect of an embodiment of the present application, a dynamic wallpaper display device is provided, wherein the device comprises:
[0008] The first display module is used to play dynamic wallpaper video on the system desktop;
[0009] The second display module is used to display an immersive page on the upper layer of the wallpaper video player, and the background of the immersive page has transparency so that the user can observe the dynamic wallpaper video through the background.
[0010] In some embodiments, the first display module is used to inherit the system WallpaperService, rewrite the Engine class of the system WallpaperService; create the wallpaper video player; set the SurfaceHolder returned by the system WallpaperService as the content output window of the wallpaper video player; and play the dynamic wallpaper video through the content output window.
[0011] In some embodiments, the first display module is used to obtain the SurfaceHolder object returned by the system WallpaperService; and pass the SurfaceHolder object to the instance of the wallpaper video player through a setting function provided by the wallpaper video player.
[0012] In some embodiments, the second display module is used to replace the content output window of the wallpaper video player with the SurfaceHolder associated with the SurfaceView of the immersive page, so as to display the immersive page on the upper layer of the wallpaper video player.
[0013] In some embodiments, the apparatus further comprises:
[0014] A page creation module, used to create an Activity as the immersive page, the size of the Activity is full screen and the state is transparent;
[0015] The page creation module is also used to add a SurfaceView to the Activity so that when switching from the system desktop to the immersive page, the wallpaper video player is still used.
[0016] In some embodiments, at least one interactive component is displayed on the immersive page, and the interactive component is used to interact with the target object in the dynamic wallpaper video.
[0017] In some embodiments, the second display module is further used to replace the content output window of the wallpaper video player with the SurfaceHolder of the system desktop.
[0018] According to another aspect of an embodiment of the present application, a computer device is provided, comprising a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the dynamic wallpaper display method as described in the above aspect.
[0019] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein the storage medium stores at least one program code, and the at least one program code is used to be executed by a processor to implement the method for displaying a dynamic wallpaper as described in the above aspect.
[0020] According to another aspect of an embodiment of the present application, a computer program product is provided, which stores at least one program code, and the at least one program code is used to be executed by a processor to implement the method for displaying a dynamic wallpaper described in the above aspect.
[0021] An embodiment of the present application provides a display solution for dynamic wallpapers. By switching the system desktop to an immersive page and displaying the immersive page with a transparent background on the upper layer of the wallpaper video player, the user's visual experience is like staying on the desktop to play the dynamic wallpaper, but elements such as the desktop icons, status bar, and navigation bar are hidden, so that the text or content in the dynamic wallpaper will not be obscured, thereby facilitating the user's immersive interaction with the dynamic wallpaper and improving the efficiency of human-computer interaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 It is a schematic diagram of an implementation environment provided by an embodiment of the present application;
[0024] Figure 2 is a flow chart of a method for displaying a dynamic wallpaper provided in an embodiment of the present application;
[0025] Figure 3 is a flowchart of another method for displaying a dynamic wallpaper provided in an embodiment of the present application;
[0026] Figure 4 is a schematic diagram of an immersive page provided according to an embodiment of the present application;
[0027] Figure 5 It is a schematic diagram of a technical architecture provided according to an embodiment of the present application;
[0028] Figure 6 It is a structural schematic diagram of a dynamic wallpaper display device provided in an embodiment of the present application;
[0029] Figure 7 It is a structural block diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0031] In this article, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of the associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0032] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the system desktop and dynamic wallpaper videos involved in this application are all obtained with full authorization.
[0033] Figure 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Figure 1 , the implementation environment includes a terminal 101 and a server 102. The terminal 101 can be directly or indirectly connected to the server 102 through wired or wireless communication.
[0034] In some embodiments, the terminal 101 may be a mobile phone, a desktop computer, a laptop computer, a tablet computer, etc. The terminal 101 installs and runs services such as a system desktop. The system desktop may display information such as application icons, a system status bar, and a system navigation bar.
[0035] In some embodiments, server 102 is an independent physical server, or it can be a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.
[0036] In some embodiments, the server 102 undertakes the main computing work and the terminal 101 undertakes the secondary computing work; or, the server 102 undertakes the secondary computing work and the terminal 101 undertakes the main computing work; or, the server 102 and the terminal 101 adopt a distributed computing architecture to perform collaborative computing.
[0037] Figure 2 is a flow chart of a method for displaying a dynamic wallpaper provided in an embodiment of the present application. The method is executed by a terminal, see Figure 2 , the method comprising:
[0038] 201. The terminal plays a dynamic wallpaper video on the system desktop.
[0039] In an embodiment of the present application, a wallpaper video player is installed and run on the terminal device, and the wallpaper video player is responsible for reading and parsing relevant data of the dynamic wallpaper video, and presenting the above-mentioned relevant data on the system desktop in the form of continuous playback.
[0040] For example, when a user turns on a mobile phone, the mobile phone, as a terminal, will use the built-in wallpaper video player to allow the user to see wallpaper videos composed of dynamic elements such as flowing water and floating clouds constantly changing and displaying on the desktop, providing the user with a more vivid and personalized desktop visual experience.
[0041] 202. The terminal displays an immersive page on an upper layer of the wallpaper video player. The background of the immersive page has transparency, so that the user can observe the dynamic wallpaper video through the background.
[0042] In an embodiment of the present application, when the user executes the operation of switching the system desktop to an immersive page, the terminal device will respond accordingly. Accordingly, the terminal will display the immersive page on the upper layer of the wallpaper video player that is currently playing the dynamic wallpaper video. The special feature of this immersive page is that its background is transparent, so that the user can observe the dynamic wallpaper video through the background. That is, while the user sees the content presented by the immersive page (such as a specific application interface, operation menu, etc.), he can also see the dynamic wallpaper video being played in the lower layer through the transparent background.
[0043] An embodiment of the present application provides a method for displaying a dynamic wallpaper. By switching the system desktop to an immersive page and displaying the immersive page with a transparent background on the upper layer of the wallpaper video player, the user's visual experience is like staying on the desktop to play the dynamic wallpaper, but elements such as the desktop icons, status bar, and navigation bar are hidden, so that the text or content in the dynamic wallpaper will not be obscured, thereby facilitating the user to immersively interact with the dynamic wallpaper, thereby improving the efficiency of human-computer interaction.
[0044] Figure 3 is a flow chart of another method for displaying dynamic wallpaper provided in an embodiment of the present application. The method is executed by a terminal, see Figure 3 , the method comprising:
[0045] 301. The terminal inherits the system WallpaperService and rewrites the Engine class of the system WallpaperService.
[0046] In the embodiment of the present application, the system WallpaperService refers to a WallpaperService service class provided by the Android system. In the Android system, WallpaperService is an extremely important service class. WallpaperService plays a core role in system wallpaper management and is used to manage and control the related functions of the system wallpaper. WallpaperService provides a basic framework for developers, allowing developers to implement various customized wallpaper effects and behaviors at the system level, and realize rich and unique wallpaper functions. The WallpaperService service class not only simply controls the display of wallpaper, but also involves multiple levels such as interaction with system resources, response to different screen states, and perception of user operations.
[0047] The Engine class is an important part of WallpaperService, carrying the key logic of the wallpaper's specific behavior and performance. The Engine class is mainly responsible for handling the core logic of the wallpaper's specific drawing, updating, and interaction with the user. The Engine class is responsible for handling the wallpaper's drawing process, which determines how each frame of the image is presented on the screen. The Engine class can cope with changes in screen size and resolution to ensure that the wallpaper can be perfectly adapted to various devices. The Engine class also needs to handle user interactions with the wallpaper, such as touch operations and gesture recognition, and respond accordingly to these interactions, such as switching wallpapers and adjusting display effects. In addition, the Engine class also needs to manage wallpaper resources, including images, audio, etc., to ensure that resources can be reasonably allocated and released in different system states (such as low memory, power saving mode, etc.), thereby ensuring the stability and smoothness of the system. By overriding the methods in the Engine class, developers can precisely control the display method and effect of the wallpaper.
[0048] Here's how to do it.
[0049] First, create a new Java class and explicitly specify that it inherits from the WallpaperService class provided by the system. Then, override the onCreateEngine method in this new class and return an instance of a custom Engine class in this method. The custom Engine class needs to inherit from the system's Engine class and override key methods according to specific needs. For example, onVisibilityChanged is used to handle changes in wallpaper visibility. Override the onVisibilityChanged method to accurately respond to changes in wallpaper visibility. When the wallpaper changes from visible to invisible, or vice versa, you can perform corresponding resource management and state adjustment operations in this method. For example, pause the animation and release some occupied resources to save system overhead; when the wallpaper becomes visible again, resume related operations and resource loading. The onSurfaceCreated method is used to handle important initialization work when the wallpaper display surface is created. In this method, you can set the graphics context, load the initial resources, initialize the drawing parameters, and other operations to prepare for subsequent smooth drawing. The onSurfaceDestroyed method is used to perform necessary cleanup and resource release when the wallpaper display surface is destroyed. This includes releasing graphics resources, closing related file streams, stopping ongoing background tasks, etc., to ensure that system resources are properly recycled and managed.
[0050] For example, if you want to implement a wallpaper that changes color and shape dynamically as the user slides their finger, you can get touch events in the rewritten Engine class, calculate the direction and distance of the slide, and then adjust the wallpaper's drawing content and effects in real time based on these parameters. Or, if you want to implement a wallpaper that automatically switches to different themes based on the system time and weather conditions, you can get the time and weather data, and select and load the corresponding wallpaper resources for display.
[0051] 302. Create a wallpaper video player.
[0052] In the embodiment of the present application, the wallpaper video player has the ability to read and parse various common video formats to adapt to dynamic wallpaper video files of different sources and formats.
[0053] In terms of playback control, the wallpaper video player can support common operations such as play, pause, stop, fast forward, fast rewind, etc., so that users can flexibly control the playback progress of dynamic wallpaper videos according to their needs. Optionally, the wallpaper video player has efficient resource management capabilities so that the wallpaper video player can run smoothly in the system, especially when resources are limited. The wallpaper video player can reasonably allocate memory to store video data, optimize the video decoding process to reduce CPU usage, and effectively handle video cache to avoid freezes and delays.
[0054] In terms of display, the wallpaper video player can adaptively adjust the size and ratio of the video according to the system's screen resolution and display settings to ensure that the dynamic wallpaper video can perfectly adapt to different device screens and will not have problems such as stretching, deformation or cropping that affect the visual effect.
[0055] The wallpaper video player can also be well integrated and interacted with other parts of the system. For example, the wallpaper video player can respond to the system's power management policy and automatically reduce playback performance or pause playback when the device enters power saving mode; the wallpaper video player can also communicate with the system's wallpaper setting interface so that users can easily select, switch and set relevant parameters of dynamic wallpaper videos.
[0056] Optionally, the wallpaper video player also supports functions such as automatic loop playback, random playback, and automatic switching of different dynamic wallpaper videos according to system themes or time, so as to provide users with a better experience.
[0057] In some embodiments, when creating a wallpaper video player, first select Java or Kotlin and the corresponding framework, and introduce video decoding and playback libraries such as ExoPlayer. Then, add the necessary permissions in AndroidManifest.xml, design the layout and place the view that displays the video. Then, initialize the player, set parameters such as video source and playback mode, and add control buttons and logic to achieve interaction with the system such as screen rotation and power management. Finally, perform performance optimization and test and debug on different devices and system versions to ensure that the player runs smoothly and does not affect system performance.
[0058] 303. The terminal sets the SurfaceHolder returned by the system WallpaperService as the content output window of the wallpaper video player.
[0059] In an embodiment of the present application, WallpaperService is an important service provided at the system level, which is responsible for handling various operations and functions related to wallpaper. When the system starts WallpaperService, WallpaperService performs a series of internal processing and calculations, and finally returns a SurfaceHolder object. Optionally, the terminal obtains the SurfaceHolder object returned by the system WallpaperService, and then passes the SurfaceHolder object to the instance of the wallpaper video player through the setting function provided by the wallpaper video player. Among them, the setting function is used to check the validity of the incoming SurfaceHolder object, and then associates this SurfaceHolder object with the graphics drawing and display logic inside the player. Optionally, the setting function can also adjust some parameters of the player according to the information provided by SurfaceHolder. For example, resolution adaptation, frame rate control strategy, etc., to ensure that the video playback can match the characteristics and performance of the screen.
[0060] SurfaceHolder is a management and control entity that is closely associated with a specific area on the screen. SurfaceHolder is not just a simple object, but also controls the entire process of drawing, updating, and displaying graphics in the screen area corresponding to SurfaceHolder.
[0061] A crucial part of the wallpaper video player is to determine where to output the video content, that is, to find a suitable display window. When the terminal sets the SurfaceHolder returned by the system WallpaperService as the content output window of the wallpaper video player, it actually establishes a direct and clear connection. With this setting, the player clearly knows that the decoded video frame data, graphics information, and related visual effects should be accurately drawn and output to the screen area managed and controlled by this specific SurfaceHolder. The above method ensures that the dynamic wallpaper video can be displayed in the expected manner at the predetermined location on the system desktop.
[0062] For example, take a mobile phone. When the user starts the device and triggers the system's wallpaper display mechanism, the WallpaperService inside the system starts working and returns the SurfaceHolder corresponding to the desktop wallpaper area. Subsequently, the phone's operating system passes this SurfaceHolder to a pre-installed or user-defined wallpaper video player. At this time, when the wallpaper video player starts to obtain and play the data stream of the dynamic wallpaper video, each frame of the wonderful video screen will be drawn in the screen area specified by the SurfaceHolder, thus presenting users with a smooth, beautiful dynamic wallpaper effect that perfectly blends with the system desktop.
[0063] The importance of the above settings lies in achieving efficient collaboration between system services and application components, ensuring the correct display of dynamic wallpapers and a high-quality user experience. At the same time, it also reflects the sophisticated management and high flexibility of modern operating systems in graphics processing and user interface design.
[0064] 304. The terminal plays the dynamic wallpaper video through the content output window.
[0065] In an embodiment of the present application, the terminal obtains the dynamic wallpaper video resource to be played. Optionally, the dynamic wallpaper video resource comes from local storage, network download or system built-in resources. Then, the terminal's operating system and related video playback components decode and process the video. Then, the terminal sends the decoded image frame and audio data to the content output window through specific graphics and audio interfaces. The terminal adapts and scales the image frame according to the size and resolution of the content output window to ensure that the video can be fully and appropriately displayed in the specified area.
[0066] 305. The terminal displays an immersive page on an upper layer of the wallpaper video player, and the background of the immersive page is transparent.
[0067] In an embodiment of the present application, when the user executes the operation of switching the system desktop to an immersive page, the terminal device first determines the location and display level of the currently running wallpaper video player. Then, a new page, namely the immersive page, is created and displayed above the level where the wallpaper video player is located. Among them, the characteristic of the immersive page is to minimize interference elements as much as possible, so that the user can focus on the current main content or operation, so that the user can be more focused and invested in the page content. It should be noted that since the background of the immersive page is transparent, the user can see the content presented by the immersive page (such as the application interface, operation menu, etc.) while also being able to see the dynamic wallpaper video being played below through the transparent background. The above display method can provide users with a specific operation interface or information display without completely blocking the original wallpaper video, thereby maintaining a certain visual continuity and aesthetics while ensuring the function is realized.
[0068] In some embodiments, in response to the operation of switching the system desktop to the immersive page, the terminal displays the immersive page on the upper layer of the wallpaper video player, including: in response to the operation of switching the system desktop to the immersive page, the terminal replaces the content output window of the wallpaper video player with the SurfaceHolder associated with the SurfaceView of the immersive page, so as to display the immersive page on the upper layer of the wallpaper video player. The above method enhances the user experience, improves the system interaction flexibility and resource utilization efficiency, improves the application integration and information display effect, and realizes a smooth transition and function optimization when the system desktop switches to the immersive page.
[0069] In some embodiments, the step of the terminal creating an immersive page includes: the terminal creates an Activity as an immersive page, the size of the Activity is full screen, and the state is transparent. That is, although this Activity is in the foreground, the user can still see the content behind it through it. The terminal adds a SurfaceView to the Activity so that when switching from the system desktop to the immersive page, the wallpaper video player is still used. The above method can ensure that the playback of the wallpaper video is not affected by switching pages, thereby achieving a coherent and uninterrupted visual experience.
[0070] 306. The terminal replaces the content output window of the wallpaper video player with the SurfaceHolder of the system desktop.
[0071] In the embodiment of the present application, when the user switches the immersive page back to the system desktop, the terminal adjusts the content output window of the wallpaper video player. Accordingly, the terminal replaces the output window currently used to display the immersive page content with the SurfaceHolder corresponding to the system desktop to achieve a smooth switch from the immersive page to the system desktop and ensure that the content of the wallpaper video player can be correctly displayed on the system desktop.
[0072] For example, when the user exits the immersive page and returns to the desktop system, the wallpaper video player keeps playing without pausing. The terminal replaces the content output window of the wallpaper video player with the SurfaceHolder of the original system desktop, so that the dynamic wallpaper can be played seamlessly when exiting the immersive page.
[0073] In some embodiments, at least one interactive component is displayed on the immersive page, and the interactive component is used to interact with the target object in the dynamic wallpaper video. The interactive component is at least one of a virtual button, a slider, and a selection box.
[0074] For example, Figure 4 is a schematic diagram of an immersive page provided according to an embodiment of the present application. Figure 4 As shown, the dynamic wallpaper video being played by the wallpaper video player includes a target object 401. A plurality of virtual buttons 402 and a virtual image 403 are displayed on the immersion page. The plurality of virtual buttons 402 are used to instruct the target object 401 to perform corresponding actions after being triggered. The actions include: making corresponding actions, answering corresponding dialogues, or changing corresponding clothing and attire, etc. Optionally, the immersion page also includes an exit control 404, by triggering the exit control 404, the immersion page can be switched to the system desktop.
[0075] It should be noted that in order to more clearly illustrate the display solution of the dynamic wallpaper provided in the embodiment of the present application. Figure 5 is a schematic diagram of a technical architecture provided according to an embodiment of the present application. Figure 5 As shown, the technical architecture includes a wallpaper material library 501 for providing relevant materials for dynamic wallpaper videos. A player 502, i.e. the wallpaper video player mentioned above, is referred to as the player here. The player 502 is used to achieve seamless switching between the desktop wallpaper SurfaceView503 and the immersive page SurfaceView504. Optionally, the immersive page SurfaceView504 also displays interactive controls for sliding left and right, as well as a floating ball control for interaction.
[0076] An embodiment of the present application provides a method for displaying a dynamic wallpaper. By switching the system desktop to an immersive page and displaying the immersive page with a transparent background on the upper layer of the wallpaper video player, the user's visual experience is like staying on the desktop to play the dynamic wallpaper, but elements such as the desktop icons, status bar, and navigation bar are hidden, so that the text or content in the dynamic wallpaper will not be obscured, thereby facilitating the user to immersively interact with the dynamic wallpaper, thereby improving the efficiency of human-computer interaction.
[0077] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0078] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0079] Figure 6 is a structural diagram of a dynamic wallpaper display device provided in an embodiment of the present application. Figure 6 , the device includes: a first display module 601 and a second display module 602.
[0080] The first display module 601 is used to play the dynamic wallpaper video on the system desktop;
[0081] The second display module 602 is used to display an immersive page on the upper layer of the wallpaper video player. The background of the immersive page has transparency so that the user can observe the dynamic wallpaper video through the background.
[0082] In some embodiments, the first display module 601 is used to inherit the system WallpaperService, rewrite the Engine class of the system WallpaperService; create a wallpaper video player; set the SurfaceHolder returned by the system WallpaperService as the content output window of the wallpaper video player; and play the dynamic wallpaper video through the content output window.
[0083] In some embodiments, the first display module 601 is used to obtain the SurfaceHolder object returned by the system WallpaperService; and pass the SurfaceHolder object to the instance of the wallpaper video player through the setting function provided by the wallpaper video player.
[0084] In some embodiments, the second display module 602 is used to replace the content output window of the wallpaper video player with the SurfaceHolder associated with the SurfaceView of the immersive page, so as to display the immersive page on the upper layer of the wallpaper video player.
[0085] In some embodiments, the apparatus further comprises:
[0086] The page creation module is used to create an Activity as an immersive page. The Activity size is full screen and the status is transparent.
[0087] The page creation module is also used to add SurfaceView to the Activity so that the wallpaper video player is still used when switching from the system desktop to the immersive page.
[0088] In some embodiments, at least one interactive component is displayed on the immersive page, and the interactive component is used to interact with a target object in the dynamic wallpaper video.
[0089] In some embodiments, the second display module 602 is further used to replace the content output window of the wallpaper video player with the SurfaceHolder of the system desktop.
[0090] An embodiment of the present application provides a display device for dynamic wallpapers. The display device switches the system desktop to an immersive page and displays an immersive page with a transparent background on the upper layer of a wallpaper video player. The user's visual experience is like staying on the desktop and playing the dynamic wallpaper, but elements such as desktop icons, status bar, and navigation bar are hidden, so that the text or content in the dynamic wallpaper will not be obscured, thereby facilitating the user's immersive interaction with the dynamic wallpaper and improving the efficiency of human-computer interaction.
[0091] It should be noted that the above embodiment provides a display device for dynamic wallpaper. When implementing its functions, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the terminal is divided into different functional modules to complete all or part of the functions described above. In addition, the display device for dynamic wallpaper provided in the above embodiment and the display method embodiment of dynamic wallpaper belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0092] An embodiment of the present application provides a terminal, which includes a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the dynamic wallpaper display method provided by the above-mentioned various method embodiments.
[0093] Figure 7700 is a block diagram of a terminal provided in an embodiment of the present application. In some embodiments, the terminal 700 is a terminal such as a smart phone, a tablet computer, a wearable device, etc. that can access a wireless local area network as a wireless station. The terminal 700 in the present application includes at least one or more of the following components: a processor 710, a memory 720, and at least two wireless links 730.
[0094] In some embodiments, the processor 710 includes one or more processing cores. The processor 710 uses various interfaces and lines to connect various parts of the entire terminal 700, and executes various functions and processes data of the terminal 700 by running or executing program codes stored in the memory 720, and calling data stored in the memory 720. In some embodiments, the processor 710 is implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 710 can integrate one or more combinations of central processing unit (CPU), graphics processing unit (GPU), neural network processor (NPU) and modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the NPU is used to implement artificial intelligence (AI) functions; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 710, but may be implemented by a separate chip.
[0095] In some embodiments, the processor 710 is used to control the working conditions of at least two wireless links 730. Accordingly, the processor 710 is a processor integrated with a wireless fidelity (Wireless Fidelity, Wi-Fi) chip. The Wi-Fi chip is a chip with dual Wi-Fi processing capabilities. For example, the Wi-Fi chip is a dual-band dual concurrent (Dual Band Dual Concurrent, DBDC) chip, or a dual-band synchronous (Dual Band Simultaneous, DBS) chip, etc.
[0096] In some embodiments, the memory 720 includes a random access memory (RAM), and in some embodiments, the memory 720 includes a read-only memory (ROM). In some embodiments, the memory 720 includes a non-transitory computer-readable storage medium. The memory 720 can be used to store program codes. The memory 720 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data created according to the use of the terminal 700 (such as audio data, a phone book), etc.
[0097] In some embodiments, the memory 720 stores reception schemes for receiving beacon frames of different wireless links 730, as well as identifiers of access nodes connected to different wireless links 730, identifiers of wireless links 730, and the like.
[0098] The at least two wireless links 730 are used to connect different access points (APs) to receive downlink data sent by the APs, wherein the different access points are access points in the same router or access points in different routers.
[0099] In some embodiments, the terminal 700 also includes a display screen. The display screen is a display component for displaying a user interface. In some embodiments, the display screen is a display screen with a touch function, through which the user can use any suitable object such as a finger or a touch pen to perform touch operations on the display screen. In some embodiments, the display screen is usually arranged on the front panel of the terminal 700. In some embodiments, the display screen is designed to be a full screen, a curved screen, a special-shaped screen, a double-sided screen or a folding screen. In some embodiments, the display screen is also designed to be a combination of a full screen and a curved screen, a combination of a special-shaped screen and a curved screen, etc., which is not limited in this embodiment.
[0100] In addition, those skilled in the art will appreciate that the structure of the terminal 700 shown in the above drawings does not limit the terminal 700, and the terminal 700 includes more or fewer components than shown in the drawings, or combines certain components, or arranges components differently. For example, the terminal 700 also includes components such as a microphone, a speaker, an input unit, a sensor, an audio circuit, a module, a power supply, and a Bluetooth module, which will not be described in detail here.
[0101] The present application also provides a computer-readable storage medium, which stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the dynamic wallpaper display method shown in the above embodiments.
[0102] The present application also provides a computer program product, which stores at least one program code, and the at least one program code is used to be executed by a processor to implement the dynamic wallpaper display method shown in the above embodiments.
[0103] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0104] Those skilled in the art can understand that all or part of the steps in the method for displaying dynamic wallpapers in the above embodiment can be completed by hardware, or by a program to instruct the relevant hardware to complete the steps. The above program can be stored in a computer-readable storage medium, and the above storage medium can be a read-only memory, a disk or an optical disk, etc. The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for displaying a dynamic wallpaper, characterized in that: The method comprises: Play dynamic wallpaper video on the system desktop; An immersive page is displayed on the upper layer of the wallpaper video player, and the background of the immersive page has transparency, so that the user can observe the dynamic wallpaper video through the background.
2. The method according to claim 1, characterized in that: Playing the dynamic wallpaper video on the system desktop includes: Inherit the system WallpaperService and rewrite the Engine class of the system WallpaperService; Creating the wallpaper video player; Set the SurfaceHolder returned by the system WallpaperService as the content output window of the wallpaper video player; The dynamic wallpaper video is played through the content output window.
3. The method according to claim 2, characterized in that The step of setting the SurfaceHolder returned by the system WallpaperService as the content output window of the wallpaper video player includes: Get the SurfaceHolder object returned by the system WallpaperService; The SurfaceHolder object is passed to the instance of the wallpaper video player through the setting function provided by the wallpaper video player.
4. The method according to claim 1, characterized in that: The immersion page is displayed on the upper layer of the wallpaper video player, including: The content output window of the wallpaper video player is replaced with the SurfaceHolder associated with the SurfaceView of the immersive page, so as to display the immersive page on the upper layer of the wallpaper video player.
5. The method according to claim 4, characterized in that The method further comprises: Create an Activity as the immersive page, the size of the Activity is full screen and the state is transparent; A SurfaceView is added to the Activity so that the wallpaper video player is still used when switching from the system desktop to the immersive page.
6. The method according to any one of claims 1 to 5, characterized in that: At least one interactive component is displayed on the immersive page, and the interactive component is used to interact with the target object in the dynamic wallpaper video.
7. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: The content output window of the wallpaper video player is replaced with the SurfaceHolder of the system desktop.
8. A dynamic wallpaper display device, characterized in that: The device comprises: The first display module is used to play dynamic wallpaper video on the system desktop; The second display module is used to display an immersive page on the upper layer of the wallpaper video player, and the background of the immersive page has transparency so that the user can observe the dynamic wallpaper video through the background.
9. A computer device, characterized in that: The computer device includes a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the dynamic wallpaper display method according to any one of claims 1 to 7.
10. A computer program product, comprising a computer program, characterized in that The computer program product stores at least one program code, and the at least one program code is used to be executed by a processor to implement the dynamic wallpaper display method according to any one of claims 1 to 7.
