Medium resource display method, computer equipment and readable storage medium
By displaying the music player interface carrying media resources on the startup interface of the music application, and switching to the playback page of the target music in response to user instructions, the problem of media resource display in the prior art is solved, and the seamless integration of media resources and music players is achieved, improving the user experience.
Patent Information
- Application Number
- CN202411777711.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-05
- Publication Date
- 2025-04-15
AI Technical Summary
The display method of media resources in the prior art is not intelligent enough to achieve seamless switching, resulting in poor user experience.
By displaying the music player interface carrying media resources on the launch interface of the music application and playing the target music associated with the media resources, the music player interface is switched to the music play page displaying the target music in response to the user's triggering command, thereby achieving a seamless integration of media resources and music players.
It reduces the abruptness of switching of media resource display pages, improves the intelligence of media resource display methods, and provides a smoother user experience.
Smart Images

Figure CN119829000A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a media resource display method, a computer device, a computer-readable storage medium, and a computer program product. Background Art
[0002] With the development of computer technology, a method for displaying media resources has emerged. For example, when a user opens an application, a display page for displaying media resources is usually inserted first, and then the main page of the application is entered. In this way, media resources can be displayed.
[0003] In traditional technology, media resources are usually displayed by inserting a media resource display page, and then jumping to the application main page after the media resource display is completed. However, in this display method, the switching of the media resource display page is abrupt and seamless switching is not possible. Therefore, the current media resource display method is not smart enough. Summary of the invention
[0004] Based on this, it is necessary to provide a media resource display method, device, computer equipment, computer-readable storage medium and computer program product that can improve the intelligence level of media resource display in response to the above technical problems.
[0005] In a first aspect, the present application provides a media resource display method, which is applied to a music application, comprising:
[0006] In response to a user's operation of starting a music application, a media resource to be displayed is obtained, and if the media resource is a media resource of a preset type, a music player interface carrying the media resource is displayed on a startup interface of the music application, and target music associated with the media resource is played;
[0007] In response to a preset trigger instruction initiated by the user in the music player interface, the music player interface is switched to a music playback page displaying the target music, and the target music continues to be played in the music playback page.
[0008] In one of the embodiments, displaying a music player interface carrying the media resource on the startup interface of the music application includes: displaying resource content of the media resource and player elements associated with the media resource in the music player interface; displaying a music playback page of the target music includes: displaying player elements associated with the media resource in the music playback page of the target music.
[0009] In one embodiment, the resource content of the media resource includes a first media resource interaction control and a second media resource interaction control; in response to a preset trigger instruction initiated by the user in the music player interface, the music player interface displayed in the music application is switched to a music playback page displaying the target music, including: in response to a first trigger instruction generated by the user's trigger operation on the first media resource interaction control, the displayed music player interface is switched to a music playback page displaying the target music; or in response to a second trigger instruction generated by the user not performing a trigger operation on the second media resource interaction control within a preset time range, the displayed music player interface is switched to a music playback page displaying the target music.
[0010] In one of the embodiments, after displaying the music player interface carrying the media resource on the startup interface of the music application, it also includes: in response to a third trigger instruction generated by the user performing a trigger operation on the second media resource interactive control, ending the display of the music player interface, and displaying the application homepage of the music application in the music player interface.
[0011] In one of the embodiments, the music player interface does not display music playback controls; switching the music player interface to display a music playback page for the target music includes: switching the music player interface that does not display the music playback controls to display a music playback page for the target music that carries the music playback controls.
[0012] In one of the embodiments, the music playback page carries a resource identifier of the media resource; after the music player interface displayed in the music application is switched to a music playback page displaying the target music, it also includes: in response to a trigger operation for the resource identifier, switching the displayed music playback page to a resource details page displaying the media resource.
[0013] In one of the embodiments, the resource details page carries a page closing control; after switching the displayed music playback page to a resource details page displaying the media resource, it also includes: in response to a trigger operation on the page closing control, closing the display of the resource details page, and resuming display of the music playback page in the music application.
[0014] In one of the embodiments, after responding to the trigger operation on the resource identifier, the method further includes: canceling the display of the resource identifier in the music playback page.
[0015] In one of the embodiments, before displaying the music player interface carrying the media resource on the startup interface of the music application, it also includes: in the event that the initialization process of the music player interface fails, canceling the display of the music player interface carrying the media resource, and displaying the application homepage of the music application.
[0016] In one of the embodiments, after acquiring the media resource to be displayed, the method further includes: when the media resource is not a media resource of the preset type, displaying a media resource display page corresponding to the media resource.
[0017] In a second aspect, the present application further provides a media resource display device, which is applied to a music application, comprising:
[0018] A media resource display module, for obtaining a media resource to be displayed in response to a user's operation of starting a music application, and, if the media resource is a media resource of a preset type, displaying a music player interface carrying the media resource on a start-up interface of the music application, and playing target music associated with the media resource;
[0019] The play page display module is used to respond to a preset trigger instruction initiated by the user in the music player interface, switch the music player interface to a music play page displaying the target music, and continue to play the target music in the music play page.
[0020] In a third aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method described in any one of the embodiments of the first aspect when executing the computer program.
[0021] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of the embodiments of the first aspect.
[0022] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the method described in any one of the embodiments of the first aspect.
[0023] The above-mentioned media resource display method, apparatus, computer equipment, computer-readable storage medium and computer program product obtain the media resources to be displayed through the music application in response to the user's operation of starting the music application. When the media resource is a media resource of a preset type, a music player interface carrying the media resource is displayed on the startup interface of the music application, and the target music associated with the media resource is played; in response to a preset trigger instruction initiated by the user in the music player interface, the music player interface is switched to a music playback page displaying the target music, and the target music continues to be played in the music playback page. The media resource display method provided in this embodiment, when a user initiates the operation of starting a music application, if the media resource that needs to be displayed on the startup interface of the music application belongs to a preset type of media resource, then the music player interface carrying the media resource can be displayed on the startup interface of the music application, and the target music associated with the media resource can be played. After that, if the user initiates a preset trigger instruction in the music player interface, the music player interface can be switched to a music playback page that displays the target music, that is, the music playback page of the target music can be directly displayed, so that the target music can continue to be played through the music playback page. In this way, media resources can be displayed through the music player, and seamless integration of media resources and music player can be achieved. Therefore, the abruptness of switching the media resource display page can be reduced, and the intelligence of the media resource display method can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions 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 related drawings can be obtained based on these drawings without paying creative work.
[0025] Figure 1 is a flow chart of a method for displaying media resources in one embodiment;
[0026] Figure 2 A schematic diagram of a process of displaying a music player interface in one embodiment;
[0027] Figure 3 is a schematic diagram of an interface of a music player in one embodiment;
[0028] Figure 4 This is a schematic diagram of an interface of a music playback page in an embodiment;
[0029] Figure 5 This is a schematic diagram of an interface of a music playing page in another embodiment;
[0030] Figure 6 is a flow chart of a method for displaying media resources based on music player linkage in one embodiment;
[0031] Figure 7 is a structural block diagram of a media resource display device in an embodiment;
[0032] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0034] In one embodiment, Figure 1 As shown, a method for displaying media resources is provided. This embodiment uses the method applied to a music application as an example for illustration. It can be understood that the method can also be applied to a system including a music application and a background service, and is implemented through the interaction between the music application and the background service. In this embodiment, the method includes the following steps:
[0035] Step S101, in response to the user's operation of starting a music application, obtain the media resource to be displayed. When the media resource is a preset type of media resource, display the music player interface carrying the media resource on the startup interface of the music application, and play the target music associated with the media resource.
[0036] The media resources to be displayed refer to the media resources that need to be displayed in the music application. The media resources can be used to be displayed on the startup interface of the music application when the user starts the music application. For example, they can be splash screen ads displayed in the music application. The preset type of media resources can refer to the type of media resources that are linked with the player. In this embodiment, some media resources can be set to be linked with the player. When the media resources need to be displayed, the music player interface can be displayed, and the above media resources can be displayed on the music player interface. The target music refers to the music that is pre-associated with the media resource. The target music can be played synchronously while the media resource is displayed in the music player interface.
[0037] Specifically, when a user starts a music application, the music application can respond to the user's startup operation to determine the media resources to be displayed on the startup interface of the music application. If the media resource is a preset type of media resource, that is, a media resource linked to a music player, the music player interface can be displayed on the startup interface of the music application, and the media resources can be carried on the music player interface to achieve the display of the media resources. At the same time, the target music associated with the media resources can also be played.
[0038] Step S102, in response to a preset trigger instruction initiated by the user in the music player interface, the music player interface is switched to a music playing page displaying the target music, and the target music continues to be played in the music playing page.
[0039] The preset trigger instruction is initiated by the user in the music player interface, and is used to switch the displayed music player interface to the music playback page that displays the target music. The music playback page refers to the playback page used by the music application to play the target music. If the user initiates the preset trigger instruction in the music player interface, the music application can switch from the displayed music player interface carrying the media resources to the music playback page that displays the target music. Since the music playback page also carries player elements similar to the music player interface, the switching process can be seamless. At the same time, the target music can continue to be played in the music playback page, so the playback of the target music can also be seamlessly connected. In this way, the seamless integration of media resources and music players is achieved, thereby reducing the abruptness of switching the media resource display page and improving the intelligence of the media resource display method.
[0040] In the above-mentioned media resource display method, the music application responds to the user's operation of starting the music application to obtain the media resource to be displayed. When the media resource is a media resource of a preset type, the music player interface carrying the media resource is displayed on the startup interface of the music application, and the target music associated with the media resource is played; in response to a preset trigger instruction initiated by the user in the music player interface, the music player interface is switched to a music playback page displaying the target music, and the target music continues to be played in the music playback page. The media resource display method provided in this embodiment, when a user initiates the operation of starting a music application, if the media resource that needs to be displayed on the startup interface of the music application belongs to a preset type of media resource, then the music player interface carrying the media resource can be displayed on the startup interface of the music application, and the target music associated with the media resource can be played. After that, if the user initiates a preset trigger instruction in the music player interface, the music player interface can be switched to a music playback page that displays the target music, that is, the music playback page of the target music can be directly displayed, so that the target music can continue to be played through the music playback page. In this way, media resources can be displayed through the music player, and seamless integration of media resources and music player can be achieved. Therefore, the abruptness of switching the media resource display page can be reduced, and the intelligence of the media resource display method can be improved.
[0041] In one embodiment, Figure 2 As shown, step S101 may further include:
[0042] Step S201: displaying the resource content of the media resource and the player elements associated with the media resource in the music player interface.
[0043] In this embodiment, in addition to displaying the resource content of the media resources, the music player interface can also display player elements associated with the media resources, where the player elements associated with the media resources refer to player elements embedded with elements related to the media resources. For example, the player elements can include a record player element, which can be embedded with pictures or related logos related to the media resources, thereby forming a record player element associated with the media resources. At the same time, the player elements carried in the player sub-interface also include record album elements. Similar to the record player element, the record album element can also be embedded with pictures or related logos related to the media resources.
[0044] Specifically, when displaying the music player interface, the resource content of the media resource and the player elements associated with the media resource can be displayed at the same time, thereby further improving the display effect of the media resource.
[0045] Step S102 may further include:
[0046] Step S202: displaying a player element associated with the media resource in the music playing page of the target music.
[0047] When the music playback page of the target music is displayed, since the resource content display process of the media resource has ended at this time, the resource content display of the media resource can be canceled. At the same time, since the music playback page can also carry player elements, in order to reduce the abruptness of interface switching, the player elements associated with the media resource can continue to be displayed in the music playback page of the target music, thereby making the player sub-interface and the music playback page of the target music seamlessly connected, and also reducing the abruptness of switching the media resource display page.
[0048] In this embodiment, the resource content of the media resource and the player elements associated with the media resource can also be displayed at the same time. When the interface is switched, the player elements associated with the media resource can continue to be displayed in the music playback page of the target music. In this way, not only can the display effect of the media resource be further improved, but also a seamless connection between the music player interface and the music playback page of the target music can be achieved, further reducing the abruptness of switching the media resource display page.
[0049] Furthermore, the resource content of the media resource includes: a first media resource interaction control and a second media resource interaction control; step S102 may further include: in response to a first trigger instruction generated by a user's trigger operation on the first media resource interaction control, switching the displayed music player interface to a music playback page displaying the target music; or in response to a second trigger instruction generated by the user's failure to perform a trigger operation on the second media resource interaction control within a preset time range, switching the displayed music player interface to a music playback page displaying the target music.
[0050] Among them, the first media resource interaction control is a control for switching from the music player interface displaying the media resource to the music playback page displaying the target music, and the second media resource interaction control is a control for directly ending the display of the media resource in the music player interface. In this embodiment, the resource content of the media resource may include the first media resource interaction control and the second media resource interaction control. The preset trigger instruction for switching the music player interface to the music playback page displaying the target music may also include two types, namely the first trigger instruction and the second trigger instruction. The first trigger instruction refers to the trigger instruction generated by the user's trigger operation on the first media resource interaction control, and the second trigger instruction refers to the trigger instruction generated when the user does not perform a trigger operation on the second media resource interaction control within the preset time range.
[0051] Specifically, the user can trigger the trigger operation for the first media resource interaction control by clicking on the first media resource interaction control, thereby generating a first trigger instruction, and then the music application can respond to the first trigger instruction, thereby switching the displayed music player interface to a displayed music playback page.
[0052] In addition, the preset time range is a pre-set display time range of the music player interface, for example, it can be 5s. If the display time of the music player interface reaches 5s, and the user does not perform a trigger operation on the second media resource interaction control within the preset time range, that is, the user does not click on the second media resource interaction control for ending the display of the media resource on the music player interface within 5s, then it can be equivalent to the user sending a second trigger instruction to the music application. Therefore, the music application can also switch the displayed music player interface to a music playback page that displays the target music, that is, after displaying the music player interface for 5s, it switches to the music playback page of the target music for display.
[0053] For example, the first media resource interaction control may be a "view details" control displayed in the music player interface, and the second media resource interaction control may be a "skip" control displayed in the music player interface. When the user clicks the "view details" control displayed in the music player interface, the music application can directly enter the music playback page of the target music and continue to play the target music. Alternatively, if the user does not click the "skip" control displayed in the music player interface within 5 seconds, the music application can also enter the music playback page of the target music after displaying the music player interface for 5 seconds and continue to play the target music.
[0054] In this embodiment, the first media resource interaction control and the second resource interaction control can also be displayed in the music player interface. The user can display the music playback page of the target music by triggering the first media resource interaction control, or by not triggering the second media resource interaction control within a preset time range. In this way, the diversity of the display methods of the music playback page can be improved.
[0055] In addition, after step S101, the method may further include: in response to a third trigger instruction generated by a user performing a trigger operation on the second media resource interactive control, ending the display of the music player interface, and displaying the application homepage of the music application in the music player interface.
[0056] The third trigger instruction is a trigger instruction used to directly end the display of media resources on the music player interface, and the application homepage refers to the main page of the music application. In this embodiment, the user can also trigger the trigger operation of the second media resource interaction control by clicking on the second media resource interaction control to generate a third trigger instruction. The music application can then respond to the third trigger instruction, end the display of the music player interface used to display the media resources, and display the application homepage of the music application.
[0057] For example, when the user clicks a "skip" control displayed in the music player interface, the music application can directly cancel the display of the music player interface and display the application homepage of the music application.
[0058] In this embodiment, the user can also directly enter the main page of the music application for display by triggering the second media resource interactive control, thereby providing the user with a way to skip the media resource display and further improving the display intelligence of the media resources.
[0059] In one embodiment, the music player interface can be as follows Figure 3 As shown, the media resource may be a splash screen advertisement, which may be displayed through the music player interface. The player interface may display player elements, such as a record player element and a record album element. The record player element and the record album element may carry the content identifier of the splash screen advertisement. For example, the splash screen advertisement may be an advertisement for recommending product A, and the record player element and the record album element may carry the product identifier of product A. At the same time, the player interface may also display an "advertisement" label, a "view details" control, and a "skip" control, wherein the "advertisement" label mainly identifies that the media resource currently displayed is a splash screen advertisement, and the "view details" control may be used as the first media resource interaction control, and the user may click the control to enter the music playback page of the target music, and the "skip" control may be used as the second media resource interaction control, and the user may click the control to skip the splash screen advertisement and directly enter the main page of the music application.
[0060] In this embodiment, media resources can be displayed through a music player interface, which carries a player element, a "view details" control used as a first media resource interaction control, and a "skip" control used as a second media resource interaction control. In this way, the diversity of media resource display methods can be increased.
[0061] In one embodiment, the music player interface does not display the music playback controls; step S102 may further include: switching the music player interface that does not display the music playback controls to a music playback page that displays the target music with the music playback controls.
[0062] The music playback control is a control for controlling music playback, and may include, for example, a pause control for controlling the pause of the target music, a music switching control for switching the playback of the music, such as a control for switching the playback of the previous music or the next music, and a progress bar for adjusting the progress of the music playback, etc. In this embodiment, the above-mentioned music playback control is not displayed in the music player interface, but in the music playback page of the target music, the above-mentioned music playback control can be displayed. Therefore, when the music player interface is switched to the music playback page displaying the target music, the music player interface that does not display the music playback control can be switched to the music playback page displaying the target music with the music playback control.
[0063] For example, the music playback page of the target music can be as follows Figure 4 As shown, the player element can be Figure 3 The player elements in the game are adapted to the same format as the player elements in the game. Figure 3 The music player interface shown, Figure 4 The music playback page shown also adds music playback controls for controlling the playback of the target music, which may include a playback progress bar that represents the playback progress of the target music and is used to adjust the playback progress of the target music, a pause control for pausing the playback of the target music, and a music switching control for switching to play the next music or the previous music, etc.
[0064] In this embodiment, the music player interface does not display the music player controls, but after switching to the music player page displaying the target music, the music player controls can be carried in the music player page. In this way, it can more clearly indicate to the user that the music application has switched from displaying the music player interface carrying the media resources to the music player page displaying the target music, thereby improving the visualization effect of the interface switching.
[0065] In one embodiment, the music playback page carries a resource identifier of a media resource. After step S102, the method may further include: in response to a trigger operation on the resource identifier, switching the displayed music playback page to a resource details page displaying the media resource.
[0066] Among them, the resource identifier is displayed in the music playback page, and is an identifier control for identifying the resource content of the media resource. The identifier control can be used by the user to enter the resource details page of the media resource. The resource details page can be a page for introducing the detailed information of the media resource. In this embodiment, the music playback page of the target music can also carry the resource identifier of the media resource. The user can click on the resource identifier to trigger the operation, and the music application can respond to the trigger operation, thereby switching to display the resource details page of the media resource.
[0067] For example, Figure 4 As shown, at the top of the music playback page, a "resource identifier" is added. The "resource identifier" can be a control for entering the resource details page of the media resource. The user can switch to the resource details page by clicking the "resource identifier".
[0068] In this embodiment, the resource identifier of the media resource can also be carried in the displayed music playback page. The user can perform a trigger operation on the resource identifier to display the resource details page for the media resource. This method can improve the efficiency of users viewing the details of media resources.
[0069] In addition, the resource details page carries a page close control; after displaying the resource details page of the media resource, it also includes: responding to a trigger operation for the page close control, closing the display of the resource details page, and resuming display of the music playback page in the music application.
[0070] The page close control is a control used to close the resource details page. This control can be displayed in the resource details page. In this embodiment, while displaying the resource details page, a page close control for closing the resource details page can also be displayed. When the user needs to close the display of the resource details page, the user can click on the page close control to trigger the operation to close the display of the resource details page and restore the display of the music playback page.
[0071] In this embodiment, a page close control can also be added to the resource details page. When the user needs to close the displayed resource details page, the user can click the page close control to close the display of the resource details page. This method can improve the efficiency of the user closing the resource details page display.
[0072] Furthermore, after responding to the trigger operation on the resource identifier, the method further includes: canceling the display of the resource identifier in the music playback page.
[0073] In this embodiment, after the user completes the triggering operation on the resource identifier, the resource identifier displayed on the music playback page will also be cancelled. Therefore, when the display of the resource details page is closed and the display of the music playback page is restored, the above resource identifier will not be displayed. The display of the music playback page can be restored as follows: Figure 5 As shown, compared to Figure 4 The music playback page shown, Figure 5 The music playback page in the example reduces the display of resource identifiers at the top of the page, which can improve the page display utilization rate of the music playback page.
[0074] In this embodiment, after the resource identifier is triggered, the display of the resource identifier in the music playing page can be cancelled. In this way, the page display utilization rate of the music playing page can be improved.
[0075] In addition, before displaying the music player interface carrying media resources on the startup interface of the music application, it can also include: in the case that the music player initialization process fails, canceling the display of the music player interface carrying media resources and displaying the application homepage of the music application.
[0076] In the process of displaying the music player interface carrying media resources on the startup interface of the music application, the music player needs to be initialized first. If the initialization result of the music player is a failure, for example, the music player fails to start, or the player fails to initialize, the music application can cancel the display of the music player interface carrying media resources, and directly display the application homepage of the music application, that is, skip the display of the splash screen advertisement and directly display the application homepage.
[0077] If the music player initialization process fails, the music application can also cancel the display of media resources, thereby directly displaying the application homepage of the music application. This ensures that the application can run smoothly even if the media resource playback fails, thereby improving the stability of the music application.
[0078] In one embodiment, after the media resource to be displayed is obtained, the method may further include: if the media resource is not a media resource of a preset type, displaying a media resource display page corresponding to the media resource.
[0079] If the media resource to be displayed is not a media resource of a preset type, that is, the media resource to be displayed is not a media resource linked through a player, the music application can display the media resource in a normal way, that is, through a media resource display page.
[0080] Specifically, if the media resource is not a preset type of media resource, the music application may display a media resource display page corresponding to the media resource, thereby realizing the display of the media resource through the media resource display page.
[0081] In this embodiment, for media resources that are not of the preset type, the music application can display the media resources through the media resource display page, thereby ensuring that various types of media resources can be displayed on the music application, further increasing the diversity of media resource display methods.
[0082] In one embodiment, a method for displaying media resources based on music player linkage is also provided, which combines the music player with the media resources, uses the music player to replace the pictures and video materials of the media resources, and realizes the seamless integration of the media resources and the player. Figure 6 As shown, the method may include the following steps:
[0083] Step 1: Request media resources.
[0084] Step 2: Determine whether it is a playback linkage media resource type.
[0085] Step 3: If you are playing linked media resources, the music player will be silently launched in the background.
[0086] Step 3.1: The player is initialized successfully and the player interface is constructed.
[0087] Step 3.2: Add a transparent container on top of the player.
[0088] Step 3.3: Call back to the resource side, which can add media resources to the transparent container to isolate the player from the media resources.
[0089] Step 3.4: If the player initialization fails, the resource side is called back to end the media resource.
[0090] Step 3.5: After entering the media resource, if the user clicks skip, they will also be directed to the home page.
[0091] Step 3.6: After entering the media resource, if the user does not take any action or clicks "View Details", they will naturally enter the playback page to continue playing the song. At the same time, the media resource logo will be displayed at the top of the playback page, and you can click it to enter the media resource details page.
[0092] Step 4: If it is determined that the linked media resource is not to be played, ordinary media resources are displayed.
[0093] In this embodiment, a music player is combined with media resources, and the music player is used to replace the pictures and video materials of the media resources, so as to achieve seamless integration of the media resources and the player.
[0094] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0095] Based on the same inventive concept, the embodiment of the present application also provides a media resource display device for implementing the media resource display method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more media resource display device embodiments provided below can refer to the limitations of the media resource display method above, and will not be repeated here.
[0096] In one embodiment, Figure 7 As shown, a media resource display device is provided, including: a media resource display module 701 and a play page display module 702, wherein:
[0097] The media resource display module 701 is used to obtain the media resource to be displayed in response to the user's operation of starting the music application program, and when the media resource is a media resource of a preset type, display the music player interface carrying the media resource on the start-up interface of the music application program, and play the target music associated with the media resource;
[0098] The play page display module 702 is used to respond to a preset trigger instruction initiated by the user in the music player interface, switch the music player interface to a music play page displaying the target music, and continue to play the target music in the music play page.
[0099] Each module in the above-mentioned media resource display device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0100] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a method for displaying media resources is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0101] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0102] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0103] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0104] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0105] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0106] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0107] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0108] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A media resource display method, characterized in that: Applied to a music application, the method comprises: In response to a user's operation of starting a music application, a media resource to be displayed is obtained, and if the media resource is a media resource of a preset type, a music player interface carrying the media resource is displayed on a startup interface of the music application, and target music associated with the media resource is played; In response to a preset trigger instruction initiated by the user in the music player interface, the music player interface is switched to a music playback page displaying the target music, and the target music continues to be played in the music playback page.
2. The method according to claim 1, characterized in that The step of displaying a music player interface carrying the media resource on the startup interface of the music application program includes: Displaying the resource content of the media resource and the player elements associated with the media resource in the music player interface; The music playing page displaying the target music includes: The player element associated with the media resource is displayed in the music playing page of the target music.
3. The method according to claim 2, characterized in that The resource content of the media resource includes a first media resource interaction control and a second media resource interaction control; the step of switching the music player interface displayed in the music application to a music playback page displaying the target music in response to a preset trigger instruction initiated by the user in the music player interface includes: In response to a first trigger instruction generated by the user's trigger operation on the first media resource interactive control, switching the displayed music player interface to a music playback page displaying the target music; or In response to the second trigger instruction generated by the user not performing a trigger operation on the second media resource interaction control within a preset time range, the displayed music player interface is switched to a music playback page displaying the target music.
4. The method according to claim 3, characterized in that After displaying the music player interface carrying the media resource on the startup interface of the music application, the method further includes: In response to a third trigger instruction generated by the user performing a trigger operation on the second media resource interaction control, the display of the music player interface is ended, and the application homepage of the music application is displayed in the music player interface.
5. The method according to any one of claims 1 to 4, characterized in that: The music player interface does not display a music playback control; the music player interface is switched to a music playback page displaying the target music, including: The music player interface that does not display the music playback controls is switched to a music playback page that displays the target music with the music playback controls.
6. The method according to any one of claims 1 to 4, characterized in that: The music playing page carries the resource identifier of the media resource; after the music player interface displayed in the music application is switched to the music playing page displaying the target music, the method further includes: In response to a trigger operation on the resource identifier, the displayed music playback page is switched to a resource details page displaying the media resource.
7. The method according to claim 6, characterized in that The resource details page carries a page closing control; after the displayed music playback page is switched to a resource details page displaying the media resource, the method further includes: In response to a trigger operation on the page close control, the display of the resource details page is closed, and the display of the music playing page is restored in the music application.
8. The method according to claim 7, characterized in that After the trigger operation for the resource identifier is responded to, the method further includes: The display of the resource identifier in the music playing page is cancelled.
9. The method according to claim 1, characterized in that: Before displaying the music player interface carrying the media resource on the startup interface of the music application, the method further includes: In the case where the initialization process of the music player interface fails, the display of the music player interface carrying the media resource is canceled, and the application homepage of the music application is displayed.
10. The method according to claim 1, characterized in that After obtaining the media resource to be displayed, the method further includes: In the case where the media resource is not a media resource of the preset type, a media resource display page corresponding to the media resource is displayed on the startup interface of the music application.
11. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 10 are implemented.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.