Information display method and device, equipment and storage medium
By embedding lyric display in the taskbar, the problem of single lyric display method and large screen space in the prior art is solved, and rich lyric display methods and efficient screen space utilization are achieved.
Patent Information
- Application Number
- CN202510278615.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-10
- Publication Date
- 2025-06-24
AI Technical Summary
The existing music playback platform displays lyrics in a single way, takes up a large screen space, affecting screen utilization.
Determine the display location of the lyrics in the taskbar and embed the lyrics in the taskbar to display them to achieve a diverse display of lyrics without taking up a lot of screen space.
Enrich the way lyrics are displayed, improve screen space utilization, and the lyrics of the currently playing songs can still be displayed in the taskbar even if the target application's user interface is minimized or closed.
Smart Images

Figure CN120196243A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the fields of computer and Internet technologies, and particularly to an information display method, apparatus, device, and storage medium. Background Art
[0002] A music playback platform is a network platform or application that provides music streaming services, and users can play music on the Internet through the music playback platform. With the development of computer technology, music playback platforms provide more and more rich functions.
[0003] In the related art, while a music playback platform provides a song playback function for users, it also displays the lyrics of the currently playing song for users. For example, the lyrics of the currently playing song are displayed in the music playback interface of the music playback platform.
[0004] In the related art, the way of displaying the lyrics of the currently playing song is relatively single. Summary of the Invention
[0005] Embodiments of the present application provide an information display method, apparatus, device, and storage medium. The technical solutions provided by the embodiments of the present application are as follows:
[0006] According to one aspect of the embodiments of the present application, an information display method is provided. The method includes:
[0007] Play a song;
[0008] Determine a lyrics display position in the task bar, where the lyrics display position is used to display the lyrics of the song;
[0009] Based on the lyrics display position, embed the lyrics in the task bar for display.
[0010] According to one aspect of the embodiments of the present application, an information display method is provided. The method includes:
[0011] Play multimedia content;
[0012] Determine a text display position in the task bar, where the text display position is used to display the associated text of the multimedia content;
[0013] Based on the text display position, embed the associated text in the task bar for display.
[0014] According to one aspect of the embodiments of the present application, an information display apparatus is provided. The apparatus includes:
[0015] A playback module, configured to play a song;
[0016] A determination module, configured to determine a lyrics display position in a task bar, where the lyrics display position is used to display the lyrics of the song;
[0017] A display module, configured to embed and display the lyrics in the task bar based on the lyrics display position.
[0018] According to one aspect of the embodiments of the present application, an information display device is provided, and the device includes:
[0019] A playback module, configured to play multimedia content;
[0020] A determination module, configured to determine a text display position in a task bar, where the text display position is used to display associated text of the multimedia content;
[0021] A display module, configured to embed and display the associated text in the task bar based on the text display position.
[0022] According to one aspect of the embodiments of the present application, a computer device is provided. The terminal device includes a processor and a memory. A computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the above information display method.
[0023] According to one aspect of the embodiments of the present application, a computer-readable storage medium is provided. A computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by a processor to implement the above information display method.
[0024] According to one aspect of the embodiments of the present application, a computer program product is provided. The computer program product includes a computer program. The computer program is stored in a computer-readable storage medium, and a processor reads and executes the computer program from the computer-readable storage medium to implement the above information display method.
[0025] The technical solutions provided by the embodiments of the present application at least include the following beneficial effects:
[0026] By embedding and displaying the lyrics of the song in the lyrics display position of the task bar while the song is being played, the way of lyrics display is enriched, and there is no need to occupy a large amount of screen space to display the lyrics, effectively improving the utilization rate of the screen space. Description of the Drawings
[0027] Figure 1 is a schematic diagram of the implementation environment of the solution provided by an embodiment of the present application;
[0028] Figure 2 is a flowchart of the information display method provided by an embodiment of the present application;
[0029] Figure 3 It is a schematic diagram of the task bar of the desktop operating system provided by an embodiment of the present application;
[0030] Figure 4 It is a schematic diagram of the task bar of the mobile operating system provided by an embodiment of the present application;
[0031] Figure 5 It is a schematic diagram of the task bar of the embedded system provided by an embodiment of the present application;
[0032] Figure 6 It is a schematic diagram of the task bar of the desktop operating system provided by another embodiment of the present application;
[0033] Figure 7 It is a schematic diagram of the display of the task bar lyrics provided by an embodiment of the present application;
[0034] Figure 8 It is a schematic diagram of the display of the task bar lyrics provided by another embodiment of the present application;
[0035] Figure 9 It is a schematic diagram of the playback control control provided by an embodiment of the present application;
[0036] Figure 10 It is a flowchart of the information display method provided by another embodiment of the present application;
[0037] Figure 11 It is a flowchart of the information display method provided by another embodiment of the present application;
[0038] Figure 12 It is a block diagram of the information display device provided by an embodiment of the present application;
[0039] Figure 13 It is a block diagram of the information display device provided by another embodiment of the present application;
[0040] Figure 14 It is a block diagram of the structure of the computer device provided by an embodiment of the present application. Detailed implementation manners
[0041] To make the objectives, technical solutions and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.
[0042] Please refer to Figure 1 , which shows a schematic diagram of the solution implementation environment provided by an embodiment of the present application. This solution implementation environment can be implemented as an application system. This solution implementation environment may include: a terminal device 10 and a server 20.
[0043] The terminal device 10 is a terminal device with a task bar. In some embodiments, the terminal device 10 is a PC (Personal Computer). Optionally, the terminal device 10 can also be an electronic device such as a mobile phone, a tablet computer, a PC (Personal Computer), a wearable device, a VR (Virtual Reality) device, an AR (Augmented Reality) device, a vehicle-mounted device, etc., and this application does not limit this. The terminal device 10 can run the client of a target application (such as a music playback application). Optionally, the target application can be an application that needs to be downloaded and installed, or can be in the form of a web page or a small program, and this application does not limit this.
[0044] In some embodiments, the target application can also be at least one of the following: a video playback application, a radio playback application, an audiobook application, a screen reader application, etc., and can also be other types of applications, and the embodiments of this application do not limit this.
[0045] The server 20 is used to provide background services for the client of the target application running in the terminal device 10. Exemplarily, the server 20 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, and 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, Content Delivery Network (CDN for short), and big data and artificial intelligence platforms, but is not limited thereto.
[0046] The terminal device 10 and the server 20 can communicate with each other through a network. The network can be a wired network or a wireless network.
[0047] Please refer to Figure 2 , which shows a flowchart of an information display method provided by an embodiment of this application. The execution subject of each step of this method is the terminal device. For example, the terminal device can be Figure 1 the terminal device 10 in the solution implementation environment shown, or can also be the client running in the terminal device 10. This method can include at least one of the following steps (210 to 230):
[0048] Step 210, play a song.
[0049] Playing a song refers to the act of a target application controlling the audio to play a specified song. In some embodiments, the audio can be the built-in audio of the terminal device or an external audio connected to the terminal device, and the embodiments of the present application do not limit this. In some embodiments, the external audio can be connected to the terminal device in a wired or wireless manner. The specified song refers to the song to be played. In some embodiments, the song to be played can be determined by at least one of the following methods: specified by the user, randomly selected, scene matching, time matching, intelligent recommendation, etc. The song to be played can also be determined by other methods, and the embodiments of the present application do not limit this. Specified by the user means that the user selects the song to be played. Random selection means randomly selecting a song to play. Scene matching means selecting a song to play according to the current environment or user activity. Time matching means selecting a song to play according to the current time. Intelligent recommendation means automatically selecting a song to play based on the user's listening habits, historical play records, and AI (Artificial Intelligence) algorithms.
[0050] In some embodiments, playing a song can be triggered by at least one of the following methods: physical control trigger, touch operation, voice control, event trigger, time trigger, etc. It can also be triggered by other methods, and the embodiments of the present application do not limit this.
[0051] Physical control trigger means triggering the target application to play a song through a physical control. In some embodiments, the physical control can come from at least one of the following: mouse, keyboard, handle, touchpad, remote control, earphone, etc. It can also be other physical controls, and the embodiments of the present application do not limit this.
[0052] In some embodiments, in the music playback interface of the target application, a play / pause control is displayed, and the play / pause control is used to trigger the start or pause of song playback; in response to an operation on the play / pause control, the song is played.
[0053] Exemplarily, the user can click the play / pause control with a mouse to play the specified song.
[0054] Touch operation is a way for the user to interact with the target application by touching the screen or touchpad. In some embodiments, touch operations can include at least one of the following: click, double-click, long press, swipe, etc. It can also include other touch operations, and the embodiments of the present application do not limit this.
[0055] Exemplarily, the user can click the play / pause control to play the specified song.
[0056] Voice control refers to the way of interacting with a target application through voice commands. In some embodiments, the content included in the voice commands is preset by relevant technical personnel.
[0057] Exemplarily, voice commands for playing a specified song can be "Play", "Play [Song Name]", "Play the next song", "Play the previous song", etc. Among them, [Song Name] can be any song, and the embodiments of the present application do not limit this. It should be noted that the number of voice commands for playing a specified song can be multiple.
[0058] Event triggering means automatically playing a song based on a specific event without manual operation by the user. In some embodiments, the specific event includes at least one of the following types: device state change, environmental perception, system event, external device linkage, etc., and can also be other types of events, which are not limited in the embodiments of the present application.
[0059] Device state change refers to the change in the operating state of a terminal device. In some embodiments, the device state change can include at least one of the following: headphone insertion, Bluetooth device connection, device mode switching, etc., and can also include other device state changes, which are not limited in the embodiments of the present application.
[0060] Environmental perception means perceiving the current environmental changes through the sensors of the terminal device or external data and automatically playing a song based on these changes. In some embodiments, environmental perception includes physical environmental perception and user behavior perception. In some embodiments, physical environmental perception includes but is not limited to at least one of the following: light perception, noise perception, temperature perception, weather perception, etc., and can also include other physical environmental perceptions, which are not limited in the embodiments of the present application. In some embodiments, user behavior perception includes but is not limited to at least one of the following: motion state, traffic mode, location information, etc., and can also include other user behavior perceptions, which are not limited in the embodiments of the present application. In some embodiments, combining physical environmental perception and user behavior perception triggers the playing of a song. In some embodiments, when the environmental perception trigger function is in the on state, combining physical environmental perception and user behavior perception triggers the playing of a song. For example, when it is detected that the user is taking the subway, play the songs in the commuting playlist. For example, after the room gets dark at night, automatically play sleep-aid songs.
[0061] Time triggering means automatically playing a song based on a preset time or time period. In some embodiments, the played song and time can be preset by the user. For example, at 7:00 every morning, play the songs in the morning playlist. Among them, the morning playlist can be preset by the user, automatically matched by the target application, or set in other ways, which are not limited in the embodiments of the present application.
[0062] Step 220: Determine the lyrics display position in the task bar, where the lyrics display position is used to display the lyrics of a song.
[0063] The task bar is an interactive element with task management functions in an operating system (OS for short). Task management refers to the function of visually organizing, monitoring, and quickly controlling running applications and windows. In some embodiments, task management includes at least one of the following: displaying icons or titles of open windows, displaying application icons, switching and controlling tasks, previewing tasks, displaying task progress, terminating tasks, displaying status information, displaying quick operation controls, etc., and may also include other functions, which are not limited in the embodiments of this application. In some embodiments, the shape of the task bar is rectangular.
[0064] In some embodiments, the types of the above operating systems include at least one of the following: desktop operating systems, mobile operating systems, embedded systems, etc., and may also include other operating system types, which are not limited in the embodiments of this application.
[0065] A desktop operating system is an operating system for personal computers. In some embodiments, the personal computer may be a desktop computer, a laptop computer, or other personal computers, which are not limited in the embodiments of this application. In some embodiments, the desktop operating system includes at least one of the following: Windows, macOS, Linux, Chrome OS, etc., and may also include other desktop systems, which are not limited in the embodiments of this application.
[0066] Exemplarily, please refer to Figure 3 , which shows a schematic diagram of the task bar of a desktop operating system provided by an embodiment of this application. At the bottom of the user interface 30 of the desktop operating system, a task bar 31 is displayed. Elements such as the current time, the current date, icons of running applications, and quick operation controls are displayed in the task bar 31 of the desktop operating system.
[0067] A mobile operating system is an operating system for portable devices. In some embodiments, the portable devices include at least one of the following: smartphones, tablets, smart watches, smart bracelets, etc., and may also include other portable devices, which are not limited in the embodiments of this application. In some embodiments, the mobile operating system includes at least one of the following: Android, iOS, HarmonyOS, Windows Phone, Blackberry, etc., and may also include other mobile operating systems, which are not limited in the embodiments of this application.
[0068] Exemplarily, please refer to Figure 4, which shows a schematic diagram of the task bar of the mobile operating system provided by an embodiment of the present application. At the top of the user interface 40 of the mobile operating system, a task bar 41 is displayed. In the task bar 41 of the mobile operating system, the following are displayed: the current time, the wireless network status, the signal status, the battery status, etc.
[0069] An embedded system is an operating system for Internet of Things devices. In some embodiments, the Internet of Things devices include at least one of the following: smart home, industrial devices, medical devices, agricultural devices, vehicle-mounted terminals, etc., and may also include other Internet of Things devices, which are not limited in the embodiments of the present application. In some embodiments, the embedded system includes at least one of the following: ROTS (Real-Time Operating System), Linux kernel embedded system, QNX, etc., and may also include other embedded systems, which are not limited in the embodiments of the present application.
[0070] Exemplarily, please refer to Figure 5 , which shows a schematic diagram of the task bar of the embedded system provided by an embodiment of the present application. In the user interface 50 of the embedded system, a task bar 51 of the embedded system is displayed. In the task bar 51 of the embedded system, the following are displayed: weather information and menu controls.
[0071] The lyrics display position is used to indicate the position where the lyrics of the currently playing song are displayed in the task bar. Lyrics refer to the text content of a song.
[0072] In some embodiments, when the task bar lyrics function is in an enabled state, a lyrics display position is determined in the task bar, and the lyrics display position is used to display the lyrics of a song. The task bar lyrics function refers to the function of displaying the lyrics of the currently playing song in the task bar.
[0073] In some embodiments, the task bar song function can be triggered by at least one of the following ways: physical control, touch operation, voice control, etc., and can also be triggered by other ways, which are not limited in the embodiments of the present application.
[0074] In some embodiments, in the music playback interface of the target application, a task bar lyrics control is displayed, and the task bar lyrics control is used to enable or disable the task bar lyrics function. In some embodiments, in response to an operation on the task bar lyrics control, the task bar lyrics function is enabled.
[0075] Exemplarily, by clicking the task bar lyrics control with a mouse, the task bar lyrics function is switched from the off state to the on state. By clicking the task bar lyrics control with a mouse again, the task bar lyrics function is switched from the on state to the off state.
[0076] Exemplarily, by clicking the first shortcut key on the keyboard, the task bar lyrics function is switched from the closed state to the open state. The first shortcut key is the shortcut key corresponding to the task bar lyrics function. By clicking the first shortcut key on the keyboard again, the task bar lyrics function is switched from the open state to the closed state.
[0077] Exemplarily, by touching and clicking the task bar lyrics control, the task bar lyrics function is switched from the closed state to the open state. By touching and clicking the task bar lyrics again, the task bar lyrics function is switched from the open state to the closed state.
[0078] Exemplarily, by sliding the task bar lyrics control, the task bar lyrics function is switched from the closed state to the open state. By sliding the task bar lyrics control in the opposite direction, the task bar lyrics function is switched from the open state to the closed state.
[0079] Exemplarily, by the voice command "turn on the task bar lyrics function", the task bar lyrics function is switched from the closed state to the open state. By the voice command "turn off the task bar lyrics function", the task bar lyrics function is switched from the open state to the closed state. The content of the voice command is only an example, and the actual voice command used is set by relevant technical personnel, and the embodiments of the present application do not limit this.
[0080] In some embodiments, an icon of a target application program in a startup state is displayed in the task bar; in response to an operation on the icon of the target application program, the task bar lyrics function is turned on.
[0081] Exemplarily, by double-clicking the icon of the target application program, the task bar lyrics function is switched from the closed state to the open state. By double-clicking the icon of the target application program again, the task bar lyrics function is switched from the open state to the closed state.
[0082] In some embodiments, in response to an operation on the icon of the target application program, at least one selection item is displayed, and the at least one selection item includes a task bar lyrics selection item, and the task bar lyrics selection item is used to turn on or off the task bar lyrics function.
[0083] Exemplarily, right-click the icon of the target application program, display the task bar lyrics selection item, click the task bar lyrics selection item, and the task bar lyrics function is switched from the closed state to the open state. Right-click the icon of the target application program again, display the task bar lyrics selection item, and the task bar lyrics function is switched from the open state to the closed state.
[0084] In some embodiments, the occupied positions in the task bar are obtained, and the occupied positions refer to the display positions of the elements already displayed in the task bar; based on the occupied positions, the lyrics display positions are determined, and the lyrics display positions do not overlap with the occupied positions.
[0085] The elements displayed in the taskbar refer to all components visible on the taskbar. In some embodiments, the elements displayed in the taskbar may include, but are not limited to, at least one of the following: start control, icons of applications, system tray, time, date, search control, task view control, weather information, stock information, custom information, etc. Other elements may also be included, and the embodiments of the present application do not limit this. The start control is also called the start menu and is the entry to access applications, system settings, and files.
[0086] In some embodiments, the icons of applications include the icons of applications pinned to the taskbar and the icons of applications in a running state. The icons of applications pinned to the taskbar refer to the icons of applications that are continuously displayed on the taskbar. That is, even if the application is in a non-running state, the icon of the application will always be displayed on the taskbar. The icons of applications in a running state refer to the icons of applications that are running. That is, when the application is launched, the corresponding icon of the application is displayed on the taskbar.
[0087] In some embodiments, a taskbar identifier is obtained, and the taskbar identifier is used to indicate the taskbar. In some embodiments, when the operating system is Windows, the taskbar identifier is the handle of the taskbar window (Handler to Windows, abbreviated as HWND). In some embodiments, based on the taskbar identifier, taskbar information is obtained, and the taskbar information includes at least one of the following: the display position of the taskbar, the size information of the taskbar, the display mode of the taskbar, etc. Other information related to the taskbar may also be included, and the embodiments of the present application do not limit this.
[0088] The display position of the taskbar is used to indicate the position of the taskbar on the screen. In some embodiments, the display position of the taskbar can be implemented as a coordinate position. In some embodiments, the display position of the taskbar includes one of the following: the coordinate position of the upper left corner of the taskbar, the coordinate position of the lower left corner of the taskbar, the coordinate position of the upper right corner of the taskbar, the coordinate position of the lower right corner of the taskbar, the coordinate position of the center point of the taskbar, etc. Other coordinate positions may also be included, and the embodiments of the present application do not limit this.
[0089] The size information of the taskbar is used to indicate the area occupied by the taskbar on the screen. In some embodiments, the size information of the taskbar includes the height information of the taskbar and the width information of the taskbar. The height information of the taskbar is used to indicate the height of the taskbar, and the width information of the taskbar is used to indicate the width of the taskbar.
[0090] The display mode of the taskbar is used to indicate the display direction of the taskbar on the screen. In some embodiments, the display modes of the taskbar include horizontal display and vertical display. The taskbar is horizontally displayed means that the taskbar is displayed along the horizontal direction, and the elements already displayed in the taskbar are displayed from left to right or from right to left. The taskbar is vertically displayed means that the taskbar is displayed along the vertical direction, and the elements already displayed in the taskbar are displayed from top to bottom or from bottom to top.
[0091] In some embodiments, traverse the elements already displayed in the taskbar, and obtain the element information of each element already displayed in the taskbar. The element information includes at least one of the following: element identifier, display position of the element, size information of the element, etc., and may also include other information related to the element. The embodiments of the present application do not limit this. The element identifier of the element is used to uniquely identify the element. In some embodiments, when the operating system is the Windows system, the element identifier is implemented as a handle. The display position of the element is used to indicate the position where the element is displayed in the taskbar. In some embodiments, the display position of the element is implemented as the coordinate position of the element. The size information of the element is used to indicate the size of the element. In some embodiments, the size information of the element includes the height information of the element and the width information of the element. The height information of the element is used to indicate the height of the element, and the width information of the element is used to indicate the width of the element.
[0092] In some embodiments, the sizes of the elements already displayed in the taskbar may be the same or different. The embodiments of the present application do not limit this.
[0093] In some embodiments, determine the unoccupied area in the taskbar. The unoccupied area refers to the area other than the occupied positions.
[0094] In some embodiments, based on the size information of the taskbar, determine at least one candidate area; traverse the elements already displayed in the taskbar. For any one of the elements already displayed in the taskbar, according to the size information of the element, remove the candidate areas that overlap with the area where the element is located from at least one candidate area, and obtain the remaining at least one candidate area; based on the remaining at least one candidate area, determine at least one unoccupied area.
[0095] In some embodiments, the elements already displayed in the taskbar are arranged in a compact manner or in a non-compact manner. Arranging in a compact manner means that, except for the elements with fixed positions in the taskbar, the distances between the other already displayed elements are the same and as small as possible. Arranging in a non-compact manner means that, except for the elements with fixed positions in the taskbar, the distances between the other already displayed elements can be different. In some embodiments, the positions of the other already displayed elements in the taskbar are set by the user. In some embodiments, the elements with fixed positions can be at least one of the following: start control, system tray, time, date, etc.
[0096] When the elements already displayed in the taskbar are arranged in a compact manner, the number of unoccupied areas is one. When the elements already displayed in the taskbar are arranged in a non-compact manner, the number of unoccupied areas can be one or multiple.
[0097] The lyric display position is used to indicate the position where the lyrics of the currently playing song are displayed in the taskbar.
[0098] In some embodiments, in at least one of the above unoccupied areas, a target unoccupied area is determined; in the target unoccupied area, the lyric display position is determined.
[0099] By the above method, excluding the positions of the already displayed elements in the taskbar and then determining the lyric display position based on this can avoid overlapping with other elements when the lyrics are displayed in the taskbar and interfering with the normal use of the taskbar. In addition, by this method, the position of the taskbar can be reasonably utilized to enhance the visual effect of the taskbar.
[0100] In some embodiments, according to the alignment method of the lyrics, the lyric display position is determined from the area in the taskbar other than the occupied positions.
[0101] The alignment method of the lyrics refers to the sorting method in the taskbar. In some embodiments, the alignment method of the lyrics includes but is not limited to at least one of the following: left alignment, center alignment, right alignment, top alignment, bottom alignment, etc., and can also include other alignment methods, which are not limited in the embodiments of the present application. In some embodiments, the alignment method of the lyrics can be set by the user or preset by relevant technical personnel in advance. Left alignment means that the lyrics are displayed on the left side of the area in the taskbar other than the occupied positions. Right alignment means that the lyrics are displayed on the right side of the area in the taskbar other than the occupied positions. Center alignment means that the lyrics are displayed in the central area of the area in the taskbar other than the occupied positions. Top alignment means that the lyrics are displayed near the top of the area in the taskbar other than the occupied positions. Bottom alignment means that the lyrics are displayed near the bottom of the area in the taskbar other than the occupied positions.
[0102] In some embodiments, when the user uses the taskbar lyrics function for the first time, the lyrics display position is determined from the area of the taskbar other than the occupied position according to the alignment of the lyrics; when the user does not use the taskbar lyrics function for the first time, the lyrics display position is determined according to the alignment of the lyrics and the last lyrics display position. The last lyrics display position refers to the lyrics display position of the last song. In some embodiments, the lyrics display position can be set by the user during the song playback process.
[0103] In some embodiments, when the elements displayed in the taskbar are arranged in a compact manner, the lyrics display position is determined in an unoccupied area according to the alignment of the lyrics.
[0104] Take the operating system as a desktop operating system, and the elements displayed in the taskbar are arranged in a compact manner as an example. Figure 6 , which shows a schematic diagram of the taskbar of a desktop operating system provided by another embodiment of the present application. After excluding the occupied positions in the taskbar, an unoccupied area 60 is obtained. When the alignment of the lyrics is left-aligned, the lyrics display position is determined in the area to the left of the unoccupied area 60. For example, the lyrics display position is determined in the unoccupied sub-area 61 of the unoccupied area 60. When the alignment of the lyrics is right-aligned, the lyrics display position is determined in the area to the right of the unoccupied area 60. For example, the lyrics display position is determined in the unoccupied sub-area 63 of the unoccupied area 60. When the alignment of the lyrics is center-aligned, the lyrics display position is determined in the center area of the unoccupied area 60. For example, the lyrics display position is determined in the unoccupied sub-area 62 of the unoccupied area 60.
[0105] It should be noted that, based on the display mode of the displayed elements in the taskbar of different operating systems, the lyrics display position is determined in the area of the taskbar other than the occupied position based on a similar method.
[0106] Through the above method, different alignment methods are supported, and the lyrics are reasonably arranged in the taskbar according to the alignment methods, so that the lyrics can be clearly displayed in the free area of the taskbar, thereby improving readability.
[0107] Step 230, based on the lyrics display position, the lyrics are embedded in the taskbar for display.
[0108] In some embodiments, based on the lyrics display position, the lyrics window corresponding to the lyrics is embedded in the taskbar; the lyrics are displayed in the lyrics window of the taskbar. The lyrics window is an element used to display lyrics in the taskbar. In some embodiments, the lyrics window has at least one of the following characteristics: a borderless window, a transparent background, adapting to changes in the taskbar, etc., and may also include other characteristics, which are not limited in the embodiments of the present application.
[0109] In some embodiments, based on the task bar identifier and the lyric display position, the lyrics are embedded and displayed in the task bar.
[0110] In some embodiments, the display parameters of the lyrics are determined. The display parameters include at least one of the following: color parameter, portrait / landscape screen parameter, size parameter; the lyrics rendered based on the display parameters are embedded and displayed at the lyric display position in the task bar.
[0111] The display parameters of the lyrics are parameters for controlling the display manner of the lyrics in the task bar.
[0112] The color parameter is used to indicate the display color of the lyrics in the task bar. In some embodiments, the color parameter includes the background color and transparency. In some embodiments, the color parameter of the task bar is obtained; based on the color parameter of the task bar, the color parameter of the lyrics is determined. The color parameter of the task bar is used to indicate the color displayed by the task bar. In some embodiments, based on the display mode of the task bar, the color parameter of the task bar is determined. The display mode of the task bar refers to the display style of the task bar. In some embodiments, the display mode of the task bar includes a dark mode and a light mode. The dark mode means that the background color of the task bar is dark. In some embodiments, the background color corresponding to the dark mode is preset by those skilled in the art, and the embodiments of the present application do not limit this. The light mode means that the background color of the task bar is light. In some embodiments, the background color corresponding to the light mode is preset by those skilled in the art, and the embodiments of the present application do not limit this. In some embodiments, the display mode of the task bar can be preset or user-defined.
[0113] In some embodiments, according to the color parameter of the task bar, a color parameter that matches the color parameter of the task bar is determined from a preset color set as the color parameter of the lyrics. In some embodiments, the color set includes at least one group of color parameters, and each group of color parameters includes the color parameter of the task bar and the color parameter of the lyrics. In some embodiments, when the display mode of the task bar is the dark mode, the lyrics are displayed in the task bar in the light mode; when the display mode of the task bar is the light mode, the lyrics are displayed in the task bar in the dark mode. In some embodiments, the color set is preset by those skilled in the art.
[0114] In some embodiments, the color parameter of the lyrics includes the color parameter of the played lyrics and the color parameter of the unplayed lyrics.
[0115] Exemplarily, please refer to Figure 7 , which shows a schematic diagram of the display of task bar lyrics provided by an embodiment of the present application, as Figure 7As shown in sub - figure (a), the display mode of the task bar is the light mode, the background color of the task bar is white, and the color of the lyrics displayed in the task bar is a combination of gray and black. Among them, the color of the played lyrics is gray, and the color of the unplayed lyrics is black. As Figure 7 As shown in sub - figure (b), the display mode of the task bar is the dark mode, the background color of the task bar is black, and the color of the lyrics displayed in the task bar is a combination of gray and white. Among them, the color of the played lyrics is gray, and the color of the unplayed lyrics is white.
[0116] In some embodiments, the color parameters of the lyrics can be user - defined. That is, the user can customize the color of the lyrics displayed in the task bar in the target application.
[0117] The landscape - portrait parameter is used to indicate the display direction of the task bar or the display direction of the screen. In some embodiments, according to the height information and width information of the task bar, the landscape - portrait parameter of the task bar is determined. In some embodiments, when the height of the task bar is less than the width of the task bar, it is determined that the task bar is displayed in the vertical direction; when the height of the task bar is greater than the width of the task bar, it is determined that the task bar is displayed in the horizontal direction. When the task bar is displayed in the horizontal direction, the lyrics are arranged from left to right in the task bar. When the task bar is displayed in the vertical direction, the lyrics are arranged from top to bottom in the task bar.
[0118] Exemplarily, please refer to Figure 7 and Figure 8 , Figure 7 As shown in sub - figure (a) of Figure 8 and sub - figure (a) of Figure 7 The display mode of the task bar is the light mode, the background color of the task bar is white, and the color of the lyrics displayed in the task bar is a combination of gray and black. Figure 8 As shown in sub - figure (b) of Figure 7 and sub - figure (b) of Figure 8 The display mode of the task bar is the dark mode, the background color of the task bar is black, and the color of the lyrics displayed in the task bar is a combination of gray and white. In
[0119] The size parameter is used to indicate the maximum area occupied by the lyrics in the task bar. In some embodiments, the size parameter is used to indicate the height and width of the lyrics window. In some embodiments, the height of the lyrics window is equal to the height of the task bar. In some embodiments, the size parameter can be user - defined. That is, the user can customize the size of the lyrics displayed in the task bar in the target application.
[0120] In some embodiments, the display parameters further include at least one of the following: font parameters, update method, multi-line display, etc., and may further include other display parameters, which are not limited in the embodiments of the present application.
[0121] The font parameter is used to indicate the font style of the sub-graphs displayed in the task bar. In some embodiments, the font parameter includes at least one of the following: font type, font size, font bold, font italic, font shadow, etc., and may further include other font parameters, which are not limited in the embodiments of the present application.
[0122] The update method refers to the way the lyrics displayed on the task bar are updated as the song plays. In some embodiments, the update method includes at least one of the following: word-by-word highlighting, single-line scrolling, static paging, fade-in from left to right, fade-in from top to bottom, etc., and may further include other update methods, which are not limited in the embodiments of the present application.
[0123] Multi-line display is used to indicate whether the task bar supports multi-line display. In some embodiments, the number of lines of lyrics to be displayed is determined according to the height of the lyrics and the height of the task bar. The number of lines of lyrics to be displayed refers to the number of lines of lyrics that are simultaneously displayed on the task bar. In some instances, the number of lines of lyrics to be displayed is obtained by rounding down the height of the task bar divided by the height of the lyrics.
[0124] By the above method, by determining the respective display parameters of the lyrics, the lyrics can be adapted to be displayed on different task bars, effectively improving the visual experience effect of the user.
[0125] In summary, the technical solution provided by the embodiments of the present application embeds and displays the lyrics of the song in the lyrics display position of the task bar while the song is playing, enriching the way of displaying lyrics, and does not require occupying a large amount of screen space to display lyrics, effectively improving the utilization rate of the screen space.
[0126] In addition, the technical solution provided by the embodiments of the present application still displays the lyrics of the currently playing song in the task bar even when the user interface of the target application is minimized or closed, avoiding the problem that the lyrics window affects the operation of other windows, and simplifying the steps of viewing lyrics.
[0127] The process of creating and maintaining the lyrics window is introduced below.
[0128] In some embodiments, the steps of creating the lyrics window when the task bar lyrics function is enabled.
[0129] In some embodiments, a lyrics window bound with a lyrics rendering control is created. The lyrics rendering control is used to render the lyrics, and the lyrics window is used to display the lyrics; the lyrics window is associated with the handle of the task bar window to embed the lyrics window in the task bar, and the task bar window is used to display the task bar.
[0130] The lyrics window refers to a window embedded in the taskbar for displaying lyrics. The lyrics rendering control is used to draw and update the content of the lyrics in the lyrics window. For example, the lyrics rendering control is used to implement effects such as dynamic scrolling and color gradient of the lyrics. In some embodiments, the lyrics rendering control is bound to the lyrics data; based on the timestamp of the current song playback, the lyrics rendering control renders the corresponding lyrics in the lyrics window. The lyrics data refers to the information used to store and identify the lyrics of a song, including the lyrics text and its correspondence with the song playback progress. In this way, the lyrics content corresponding to the currently playing song is obtained in real time, and the synchronization between the playback progress and the lyrics display is achieved.
[0131] In some embodiments, when the taskbar lyrics function is enabled, a lyrics window bound to the lyrics rendering control is created.
[0132] In some embodiments, the lyrics are rendered and generated by the lyrics rendering control based on the display parameters of the lyrics.
[0133] The handle of the taskbar window is the same as the handle of the taskbar mentioned above. The handle of the taskbar window is used to uniquely identify the taskbar window. A handle is an abstract reference used by the operating system to identify and manage resources. It is usually a unique numerical value or pointer that represents indirect access to system resources such as windows, files, and memory blocks.
[0134] Associating the lyrics window with the handle of the taskbar window is to embed the lyrics window in the taskbar and to synchronize the lyrics display position and the behavior of the lyrics window with the taskbar. In some embodiments, the lyrics window is set as a child window of the taskbar window. That is to say, in this case, the taskbar window is the parent window of the lyrics window, which means there is a parent-child inheritance relationship between the taskbar window and the lyrics window.
[0135] In this way, the lyrics window and the taskbar window are associated, so that the lyrics window can monitor the changes of the taskbar window in real time, and adjust the lyrics window and the lyrics display position in a timely manner to automatically adapt to the changes of the taskbar.
[0136] In some embodiments, start or restart the timer; during the operation of the timer, detect whether the lyrics window meets the conditions, and the conditions include: there is a handle of the taskbar window, and the lyrics window has been associated with the handle of the taskbar window; when the lyrics window meets the conditions, perform the step of embedding the lyrics in the taskbar based on the lyrics display position, or start executing from the step of determining the lyrics display position in the taskbar.
[0137] The timer is used to periodically check and monitor the lyrics window. In some embodiments, the timing duration of the timer is preset by relevant technical personnel. For example, the timing duration of the timer is 1 second. That is, starting from the first startup of the timer, the timer is restarted every 1 second. It should be noted that the timing duration of the timer can be any time, which is set by relevant technical personnel according to requirements, and the embodiments of the present application do not limit this.
[0138] In some embodiments, during the operation of the timer, when it is detected that the lyrics window does not meet the conditions, the lyrics are not displayed in the task bar.
[0139] In some embodiments, during the operation of the timer, the handle of the task bar window is obtained; when the handle of the task bar window is obtained during the operation of the timer, it is determined that there is a handle of the task bar window; when the handle of the task bar window is not obtained during the operation of the timer, it is determined that there is no handle of the task bar window. In some embodiments, the situation where the handle of the task bar window cannot be obtained includes: the task bar is not started or not displayed due to system errors or configuration problems. For example, the process where the task bar is located crashes and has not been restored yet.
[0140] In some embodiments, during the operation of the timer, when there is a parent-child inheritance relationship between the task bar window and the lyrics window, it is determined that the lyrics window is associated with the handle of the task bar window; when there is no parent-child inheritance relationship between the task bar window and the lyrics window during the operation of the timer, it is determined that the lyrics window is not associated with the handle of the task bar window.
[0141] In some embodiments, during the timer period, the elements already displayed in the task bar are traversed; when the elements already displayed in the task bar have not changed and it is not the first startup of the timer, the step of embedding the lyrics in the task bar based on the lyrics display position is executed; when the elements already displayed in the task bar change, or it is the first startup of the timer, the step of determining the lyrics display position in the task bar is started to be executed.
[0142] In the above manner, by starting or restarting the timer to periodically determine whether the lyrics window meets the condition of being displayed in the task bar, and determining whether the lyrics display position needs to be adjusted during the operation of the timer, it helps to improve the responsiveness of the system.
[0143] In some embodiments, when a task bar crash message is received, the execution starts again from the step of creating a lyrics window bound with a lyrics rendering control, where the task bar crash message is used to indicate that an abnormality occurs in the task bar display.
[0144] The task bar crash information refers to the system global information broadcast when the task bar in the operating system malfunctions or restarts after a crash. In some embodiments, the task bar crash information is broadcast when the task bar is created or restarted.
[0145] When the task bar crashes and restarts, since the previous task bar window has been destroyed, its child windows, including the embedded lyrics window, will also be destroyed, which results in the problem that the lyrics are no longer displayed after the task bar crashes and restarts. Therefore, it is necessary to re-associate the lyrics window with the newly created task bar window.
[0146] Through the above method, after the task bar crashes, when the lyrics window receives the task bar crash information, it is re-associated with the new task bar to quickly restore the function of displaying lyrics in the task bar, reducing the negative impact on the task bar lyrics function caused by system failures.
[0147] The following introduces other functions related to the task bar lyrics function.
[0148] In some embodiments, in response to an operation on the lyrics displayed in the task bar, playback control controls are displayed in the task bar, and the playback control controls are used to control the playback of the song.
[0149] The operation on the lyrics displayed in the task bar refers to the operation that triggers the display of the playback control controls in the task bar. In some embodiments, the operation on the lyrics displayed in the task bar can be implemented by at least one of the following methods: physical control trigger, touch operation, voice control, etc. Other methods can also be used to implement the operation on the lyrics displayed in the task bar, and the embodiments of the present application do not limit this.
[0150] In some embodiments, the playback control controls include at least one of the following: the previous song control, the play / pause control, the next song control, the volume control, the playback progress bar, the playback order control, the favorite control, etc. Other controls may also be included, which are not limited in the embodiments of the present application. The previous song control is used to switch to playing the previous song. The play / pause control is used to play or pause the current song. The next song control is used to switch to playing the next song. The volume control is used to adjust the volume of the song playback. The playback progress bar is used to display the playback progress of the current song. In some embodiments, in response to an operation on the playback progress bar, the playback progress of the current song is adjusted. In some embodiments, the operation on the playback progress bar includes at least one of the following: dragging the playback progress bar with a mouse, a touch drag operation on the playback progress bar, issuing a voice command for adjusting the playback progress of the current song, inputting the playback time, etc. Other operations may also be included, which are not limited in the embodiments of the present application. The playback order control is used to control the playback mode of the songs and determine the logic of playing the next song. In some embodiments, the playback mode includes at least one of the following: sequential playback, single song loop, list playback, random playback, etc. Other playback modes may also be included, which are not limited in the embodiments of the present application. The favorite control is used to add the current song to a specified playlist. In some embodiments, the specified playlist can be a playlist pre-created by relevant technicians or a playlist created by the user.
[0151] In the above manner, the lyrics window and the playback control controls are embedded in the task bar, and the lyrics window and the playback control controls are switched and displayed according to different operations, so that the user can directly obtain the lyrics and control the song playback in the task bar without opening the user interface of the target application, improving the portability of the interaction.
[0152] In some embodiments, the operations on the lyrics include at least one of the following: the pointer of the mouse hovers over the lyrics, a touch operation on the lyrics.
[0153] In some embodiments, in response to the operation that the pointer of the mouse hovers over the lyrics, the playback control controls are displayed in the task bar.
[0154] In some embodiments, the mouse hover message is monitored. The mouse hover message is used to trigger an event for displaying the playback control controls; based on the mouse hover message, in response to the operation that the pointer of the mouse hovers over the lyrics, the playback control controls are displayed in the task bar. Mouse hover means that the pointer of the mouse stays on a certain window or control, and a specified event will be triggered after a certain period of time. For example, when the pointer of the mouse stays on the lyrics window, an event for displaying the playback control controls is triggered.
[0155] In some embodiments, the touch operations on the lyrics include at least one of the following: clicking, double - clicking, long - pressing, swiping left, swiping right, etc. Other touch operations may also be included, which are not limited in the embodiments of the present application.
[0156] Exemplarily, by clicking on the lyrics displayed in the task bar, play control controls are displayed in the task bar.
[0157] Exemplarily, by double - clicking on the lyrics displayed in the task bar, play control controls are displayed in the task bar.
[0158] Exemplarily, by long - pressing on the lyrics displayed in the task bar, play control controls are displayed in the task bar.
[0159] In some embodiments, the operations on the lyrics further include at least one of the following: operations on shortcut keys, issuing voice commands for displaying play control controls.
[0160] In some embodiments, when the operation on the lyrics ends, the lyrics are displayed in the task bar. In some embodiments, the situations where the operation on the lyrics ends include at least one of the following: the mouse pointer leaves above the lyrics, touch operations on the lyrics, operations on shortcut keys, issuing voice commands for canceling the display of play control controls, etc. Other situations may also be included, which are not limited in the embodiments of the present application.
[0161] In the above - mentioned manner, it is allowed to trigger the display of play control controls in different ways, which helps the task - bar lyrics function to be compatible with different devices and operating systems.
[0162] In some embodiments, at the lyrics display position in the task bar, the lyrics are canceled from display, and play control controls are displayed.
[0163] In some embodiments, when the operation on the lyrics ends, the play control controls are canceled from display, and the lyrics are displayed.
[0164] Exemplarily, please refer to Figure 9 , which shows a schematic diagram of play control controls provided by an embodiment of the present application. When the mouse pointer hovers above the lyrics, the lyrics 91 are canceled from display, and play control controls 92 are displayed. Among them, the play control controls 92 include a previous - song control 93, a play - pause control 94, a next - song control 95, and a favorite control 96.
[0165] In the above - mentioned manner, it is realized to switch between displaying lyrics and play control controls at the lyrics display position according to different operations, directly obtain lyrics and control operations for song playback in the task bar, effectively improving the portability of interaction.
[0166] The implementation process of the information display method under the Windows operating system is introduced below.
[0167] Please refer to Figure 10 , which shows the flowchart of the information display method provided by another embodiment of the present application.
[0168] Step 100, start.
[0169] Step 101, create a lyrics window and bind controls.
[0170] When the taskbar lyrics function is clicked to open, a lyrics window will be created. A lyrics rendering control is bound in the lyrics window. After the lyrics window is created, the Windows API (Application Programming Interface) is used to find the handle of the taskbar window. For example, the Windows FindWindow("Shell_TrayWnd", nullptr) is used to find the handle of the taskbar window. Among them, Shell_TrayWnd refers to the class name of the taskbar window.
[0171] Step 102, start the timer.
[0172] The timer is used to update the position of the lyrics window regularly to adapt to the changes in the taskbar properties.
[0173] Does the handle of the taskbar window exist? If yes, execute step 105; otherwise, execute step 104.
[0174] During the operation of the timer, first, the handle of the taskbar window will be found. If the handle does not exist (when the process explore.exe where the taskbar is located crashes and has not recovered), the taskbar lyrics will not be displayed; then it will also be detected whether the lyrics window has no parent window set. If not, it will be reset to ensure that the lyrics window is displayed on the taskbar instead of directly on the desktop.
[0175] Determine the display parameters of the lyrics. The display parameters include at least one of the following: color parameter, landscape / portrait screen parameter, and size parameter. Determine the landscape / portrait screen parameter by comparing the width and height of the taskbar window. Determine the color parameter based on the relevant registry key value SystemUsesLightTheme to judge whether the system theme color (the display mode of the taskbar) is the dark mode or the light mode. Among them, the SystemUsesLightTheme key value in the registry is used to control the light mode or dark mode of the Windows system interface (non-application). Judge whether the taskbar is centered or left-aligned and whether to display widgets based on the relevant registry key values TaskbarAl and TaskbarDa. In the case of the operating system being Windows 10, obtain the positions of the displayed elements of the taskbar by referring to the child window ReBarWindow32 of the taskbar. In the case of the operating system being Windows 11, obtain the positions of the widgets and the position of the last displayed element in the taskbar icons based on the IUIAutomation automation interface. Based on this information, the lyrics window can be moved to an appropriate position to display the lyrics.
[0176] Step 104, do not display the lyrics.
[0177] Step 105, detect and set the lyrics window as a child window, and display the lyrics.
[0178] According to different versions of the operating system (such as Window10, Windows11), embed the lyrics window onto different taskbar windows or child window handles through the SetParent function. Among them, the SetParent function is a key function in the Windows API, which is used to dynamically modify the parent-child relationship of windows, associating the specified child window with a new parent window or the desktop. By changing the hierarchical structure, window embedding, interface reorganization, or behavior control can be achieved.
[0179] In some embodiments, obtain the positions and sizes of the displayed elements in the taskbar by traversing the displayed elements in the taskbar; determine the lyrics display position based on the positions and sizes of the displayed elements in the taskbar. For example, through the GetWindowRect function, traverse the displayed elements in the taskbar to obtain the position information and size information of the displayed elements in the taskbar in the screen coordinates. By passing in the window handle (HWND), this function will return the coordinate information of each element, presented in the form of a RECT structure.
[0180] Step 106, render the lyrics based on the display parameters of the lyrics and display the lyrics at the lyrics display position.
[0181] Step 107, Is the taskbar crashed and restarted? If yes, execute Step 108.
[0182] Use the function RegisterWindowMessage("TaskbarCreated") to register a window message (taskbar crash message). After the taskbar crashes and restarts, broadcast this window message.
[0183] Step 108, Reconstruct the lyrics window (new window).
[0184] Based on this window message, recreate the lyrics window and re-embed it into the new taskbar window.
[0185] Please refer to Figure 11 , which shows a flowchart of the information display method provided by another embodiment of the present application. The execution subject of each step of this method can be a terminal device. For example, this terminal device can be Figure 1 the terminal device 10 in the solution implementation environment shown, or it can be a client running in the terminal device 10. This method can include at least one of the following steps (1110~1130):
[0186] Step 1110, Play multimedia content.
[0187] Multimedia content refers to an information carrier created, stored, and disseminated in a digital manner by integrating different media forms.
[0188] In some embodiments, the multimedia content includes a video, and the associated text includes the subtitles of the video; or, the multimedia content includes a song, and the associated text includes the associated text of the song.
[0189] In some embodiments, the types of the above-mentioned videos may include, but are not limited to, at least one of the following: movies, TV series, short videos, live broadcasts, etc., and may also include other types of videos. The embodiments of the present application do not limit this. The subtitles of the video are a kind of information that presents the video content in text form, used to convey dialogue content, sound effect descriptions, background explanations, and other information. In some embodiments, when the type of the video is a live broadcast, extract the text content in the live broadcast as the associated text of the live broadcast.
[0190] The situation where the multimedia content includes a song is the same as the taskbar lyrics display process introduced above. For relevant explanations, please refer to the above. The present application will not elaborate here.
[0191] In some embodiments, the multimedia content includes audiobooks, and the associated text includes the original text of the audiobook. An audiobook refers to multimedia content in which the written content is recited and played in audio form. The original text of an audiobook refers to the original written content corresponding to the audiobook. In some embodiments, the audiobook can be at least one of the following types: novels, essays, papers, social media articles, news, scripts, magazines, etc., and can also include other types, which are not limited in the embodiments of the present application.
[0192] In some embodiments, the multimedia content includes radio audio, and the associated text includes the subtitles of the radio audio. Radio audio refers to audio content provided by a radio station or online streaming media. In some embodiments, the radio audio can be in live form or recorded form, which is not limited in the embodiments of the present application.
[0193] Step 1120, determine the text display position in the taskbar, and the text display position is used to display the associated text of the multimedia content.
[0194] In some embodiments, obtain the occupied positions in the taskbar, where the occupied positions refer to the display positions of the elements already displayed in the taskbar; based on the occupied positions, determine the text display position, and the text display position does not overlap with the occupied positions.
[0195] In some embodiments, according to the alignment mode of the associated text, determine the text display position from the area in the taskbar other than the occupied positions.
[0196] Step 1130, based on the text display position, embed the associated text and display it in the taskbar.
[0197] In some embodiments, determine the display parameters of the associated text, and the display parameters include at least one of the following: color parameter, portrait / landscape parameter, size parameter; embed the associated text rendered based on the display parameters and display it at the text display position in the taskbar.
[0198] In some embodiments, create an associated text window bound to a text rendering control, where the text rendering control is used to render the associated text, and the associated text window is used to display the associated text; associate the associated text window to the handle of the taskbar window to embed the associated text window in the taskbar, and the taskbar window is used to display the taskbar.
[0199] In some embodiments, start or restart a timer; during the running of the timer, detect whether an associated text window meets conditions, where the conditions include: there is a handle of a taskbar window, and the associated text window has been associated with the handle of the taskbar window; in the case where the associated text window meets the conditions, perform the step of embedding the associated text in the taskbar for display based on the text display position, or start to execute from the step of determining the text display position in the taskbar.
[0200] In some embodiments, in the case of receiving a taskbar crash message, start to execute again from the step of creating an associated text window bound with a text rendering control, where the taskbar crash message is used to indicate that an abnormality occurs in the taskbar display.
[0201] In some embodiments, in response to an operation on the associated text displayed in the taskbar, display a playback control control in the taskbar, where the playback control control is used to control the playback of a song.
[0202] In some embodiments, at the text display position of the taskbar, cancel the display of the associated text and display the playback control control.
[0203] In some embodiments, the pointer of the mouse hovers over the associated text, and a touch operation acts on the associated text.
[0204] It should be noted that for the details not described in detail in this embodiment, reference may be made to other embodiments above.
[0205] In summary, the technical solution provided by the embodiment of the present application embeds and displays the associated text of the multimedia content at the text display position of the taskbar while playing the multimedia content, enriching the way of playing the multimedia content and the way of displaying the associated text of the multimedia content, without occupying a large amount of screen space to display the multimedia content or the associated text, and effectively improving the utilization rate of the screen space.
[0206] 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 the 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.
[0207] Please refer to Figure 12 , which shows a block diagram of an information display device provided by an embodiment of the present application. The device has the functions implemented in the above examples, and the functions can be implemented by hardware or by software executed by the hardware. The device can be the terminal device 10 introduced above, or can be set in the terminal device 10. As Figure 12 shown, the device 1200 may include a playback module 1210, a determination module 1220, and a display module 1230.
[0208] A playback module 1210 for playing songs.
[0209] A determination module 1220 for determining a lyrics display position in the taskbar, where the lyrics display position is used to display the lyrics of the song.
[0210] A display module 1230 for embedding the lyrics in the taskbar for display based on the lyrics display position.
[0211] In some embodiments, the device 1200 further includes a lyrics display module (not shown in Figure 12 ) for creating a lyrics window bound to a lyrics rendering control, where the lyrics rendering control is used to render the lyrics, and the lyrics window is used to display the lyrics; associating the lyrics window with the handle of the taskbar window to embed the lyrics window in the taskbar, where the taskbar window is used to display the taskbar.
[0212] In some embodiments, the device 1200 further includes a detection module (not shown in Figure 12 ) for starting or restarting a timer; during the operation of the timer, detecting whether the lyrics window meets the conditions, where the conditions include: there is a handle of the taskbar window, and the lyrics window has been associated with the handle of the taskbar window; in the case where the lyrics window meets the conditions, performing the step of embedding the lyrics in the taskbar for display based on the lyrics display position, or starting to execute from the step of determining the lyrics display position in the taskbar.
[0213] In some embodiments, the device 1200 further includes a re - execution module (not shown in Figure 12 ) for starting to execute again from the step of creating a lyrics window bound to a lyrics rendering control when receiving a taskbar crash message, where the taskbar crash message is used to indicate that an abnormality occurs in the taskbar display.
[0214] In some embodiments, the determination module 1220 is used to obtain the occupied positions in the taskbar, where the occupied positions refer to the display positions of the elements already displayed in the taskbar; based on the occupied positions, determining the lyrics display position, where the lyrics display position does not overlap with the occupied positions.
[0215] In some embodiments, the determination module 1220 is further used to determine the lyrics display position from the area in the taskbar other than the occupied positions according to the alignment mode of the lyrics.
[0216] In some embodiments, the device 1200 further includes a lyrics display module (not shown in Figure 12(not shown in the figure) for determining display parameters of the lyrics, where the display parameters include at least one of the following: color parameter, landscape / portrait screen parameter, size parameter; embedding the lyrics in the task bar for display based on the lyrics display position includes: displaying the lyrics rendered based on the display parameters at the lyrics display position in the task bar.
[0217] In some embodiments, the device 1200 further includes a control display module, configured to display play control controls in the task bar in response to an operation on the lyrics displayed in the task bar, where the play control controls are used to control the playback of the song.
[0218] In some embodiments, the control display module is configured to cancel the display of the lyrics at the lyrics display position in the task bar and display the play control controls.
[0219] In some embodiments, the operation on the lyrics includes at least one of the following: the pointer of the mouse hovering over the lyrics, a touch operation on the lyrics.
[0220] In summary, the technical solution provided by the embodiments of the present application enriches the way of displaying lyrics by embedding and displaying the lyrics of a song at the lyrics display position in the task bar while the song is being played, and does not require a large amount of screen space to display the lyrics, effectively improving the utilization rate of the screen space.
[0221] Please refer to Figure 13 , which shows a block diagram of an information display device provided by another embodiment of the present application. The device has the functions implemented in the above examples, and the functions can be implemented by hardware or by hardware executing corresponding software. The device can be the terminal device 10 introduced above or can be set in the terminal device 10. As Figure 13 shown, the device 1300 may include a playback module 1310, a determination module 1320, and a display module 1330.
[0222] The playback module 1310 is configured to play multimedia content.
[0223] The determination module 1320 is configured to determine a text display position in the task bar, where the text display position is used to display associated text of the multimedia content.
[0224] The display module 1330 is configured to embed and display the associated text in the task bar based on the text display position.
[0225] In some embodiments, the multimedia content includes a video, and the associated text includes the subtitles of the video; alternatively, the multimedia content includes a song, and the associated text includes the lyrics of the song.
[0226] In summary, the technical solution provided by the embodiments of the present application embeds and displays the associated text of the multimedia content at the text display position of the task bar while playing the multimedia content, enriching the way of playing the multimedia content and the way of displaying the associated text of the multimedia content. It does not require a large amount of screen space to display the multimedia content or the associated text, effectively improving the utilization rate of the screen space.
[0227] It should be noted that when the device provided in the above embodiments implements its functions, only the division of the above function modules is used for illustration. In actual applications, the above functions can be allocated to different function modules according to needs, that is, the internal structure of the device is divided into different function modules to complete all or part of the functions described above. In addition, the device provided in the above embodiments and the method embodiments belong to the same concept, and the specific implementation process can be seen in the method embodiments, which will not be elaborated here.
[0228] Please refer to Figure 14 , which shows a block diagram of a computer device 1400 provided by an embodiment of the present application. The computer device 1400 may be Figure 1 the terminal device 10 in the shown implementation environment, or may be Figure 1 the server 20 in the shown implementation environment, for implementing the information display method provided in the above embodiments.
[0229] Specifically:
[0230] Generally, the computer device 1400 includes a processor 1410 and a memory 1420.
[0231] The processor 1410 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. The processor 1410 may be implemented in at least one of the following hardware forms: Digital Signal Processing (DSP), Field Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1410 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the wake state, also known as the Central Processing Unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1410 may be integrated with a Graphics Processing Unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1410 may further include an AI processor, and the AI processor is used to process computational operations related to machine learning.
[0232] The memory 1420 may include one or more computer-readable storage media, and the computer-readable storage media may be non-transitory. The memory 1420 may further include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash storage devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1420 is used to store a computer program, and the computer program is configured to be executed by one or more processors to implement the above information display method.
[0233] Those skilled in the art can understand that Figure 14 the structure shown in does not constitute a limitation on the computer device 1400, and it may include more or fewer components than shown in the figure, or combine some components, or adopt a different component arrangement.
[0234] In an exemplary embodiment, a computer-readable storage medium is further provided. A computer program is stored in the storage medium, and when the computer program is executed by a processor, the above information display method is implemented. Optionally, the computer-readable storage medium may include: Read-Only Memory (ROM for short), Random Access Memory (RAM for short), Solid State Drives (SSD for short), or optical discs, etc. Among them, the random access memory may include Resistance Random Access Memory (ReRAM for short) and Dynamic Random Access Memory (DRAM for short).
[0235] In an exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program, and the computer program is stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the above information display method.
[0236] It should be noted that when collecting and processing relevant data (such as lyrics, etc.) in the practical application of this application, it should strictly comply with the requirements of relevant national laws and regulations, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing behaviors within the scope authorized by laws and regulations and the personal information subject.
[0237] It should be understood that "a plurality of" mentioned herein refers to two or more. "And / or" describes the association 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 simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after. In addition, the step numbers described in this article only exemplarily show a possible execution sequence between steps. In some other embodiments, the above steps may not be executed in the order of the numbers. For example, two steps with different numbers are executed simultaneously, or two steps with different numbers are executed in the reverse order of the illustration. The embodiments of this application do not limit this.
[0238] The above are only optional embodiments of this application and are not intended to limit this application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of this application shall be included in the protection scope of this application.
Claims
1. An information display method, characterized in that: The method comprises: Play a song; Determining a lyrics display position in the task bar, wherein the lyrics display position is used to display the lyrics of the song; Based on the lyrics display position, the lyrics are embedded in the taskbar for display.
2. The method according to claim 1, characterized in that The method further comprises: Creating a lyrics window bound to a lyrics rendering control, wherein the lyrics rendering control is used to render the lyrics, and the lyrics window is used to display the lyrics; The lyrics window is associated with the handle of the taskbar window to embed the lyrics window in the taskbar, and the taskbar window is used to display the taskbar.
3. The method according to claim 2, characterized in that The method further comprises: Start or restart the timer; During the operation of the timer, detecting whether the lyrics window meets a condition, the condition comprising: there is a handle of the taskbar window, and the lyrics window is associated with the handle of the taskbar window; When the lyrics window meets the conditions, the step of embedding the lyrics in the taskbar and displaying them based on the lyrics display position is executed, or the step of determining the lyrics display position in the taskbar is started.
4. The method according to claim 2 or 3, characterized in that: The method further comprises: In case of receiving a taskbar crash message, the step of creating a lyrics window bound to a lyrics rendering control is restarted, wherein the taskbar crash message is used to indicate that an abnormality has occurred in the taskbar display.
5. The method according to any one of claims 1 to 4, characterized in that: Determining the lyrics display position in the task bar includes: Obtaining an occupied position in the taskbar, wherein the occupied position refers to a display position of an element displayed in the taskbar; Based on the occupied position, the lyrics display position is determined, and the lyrics display position does not overlap with the occupied position.
6. The method according to claim 5, characterized in that The step of determining the lyrics display position based on the occupied position includes: According to the alignment of the lyrics, the lyrics display position is determined from the area of the task bar except the occupied position.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Determine display parameters of the lyrics, wherein the display parameters include at least one of the following: color parameters, horizontal and vertical screen parameters, and size parameters; The step of embedding the lyrics in the task bar for display based on the lyrics display position includes: The lyrics generated by rendering based on the display parameters are embedded in the lyrics display position in the taskbar for display.
8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: In response to an operation on the lyrics displayed in the task bar, a playback control is displayed in the task bar, and the playback control is used to control the playback of the song.
9. The method according to claim 8, characterized in that The displaying of the playback control in the task bar includes: At the lyrics display position of the task bar, the lyrics are canceled from being displayed, and the playback control widget is displayed.
10. The method according to claim 8 or 9, characterized in that: The operation on the lyrics includes at least one of the following: a mouse pointer hovering over the lyrics, a touch operation acting on the lyrics.
11. An information display method, characterized in that: The method comprises: Play multimedia content; Determining a text display position in the task bar, wherein the text display position is used to display the associated text of the multimedia content; Based on the text display position, the associated text is embedded in the task bar for display.
12. The method according to claim 11, characterized in that The multimedia content includes a video, and the associated text includes subtitles of the video; or, The multimedia content includes a song, and the associated text includes lyrics of the song.
13. A computer device, characterized in that: The terminal device includes a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the information display method according to any one of claims 1 to 10, or to implement the information display method according to claim 11 or 12.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is loaded and executed by a processor to implement the information display method according to any one of claims 1 to 10, or to implement the information display method according to claim 11 or 12.
15. A computer program product, characterized in that The computer program product includes a computer program, which is stored in a computer-readable storage medium. The processor reads and executes the computer program from the computer-readable storage medium to implement the information display method as described in any one of claims 1 to 10, or to implement the information display method as described in claim 11 or 12.