Methods, devices, electronic devices, and storage media for invoking music playback functions

By obtaining the trigger command of the music playback function in the first APP and starting the second APP to play music works in the background, the problem of high APP development cost is solved, low-cost music playback function calls are realized, and the risk of music resource caching is reduced. Protected copyright.

CN113517010BActive Publication Date: 2024-12-31GUANGZHOU KUGOU COMP TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110886710.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-03
Publication Date
2024-12-31
Estimated Expiration
2041-08-03

AI Technical Summary

Technical Problem

In the prior art, APP calls the audio playback functions provided by other application services to require developers to manually design and develop music playback pages, resulting in high R&D costs.

Method used

By obtaining the trigger command of the music playback function in the first APP, the media information display page obtained from the second APP server is displayed, and based on the music playback command selected by the user, the second APP plays the target music work in the background, reducing the APP R&D costs.

Benefits of technology

It realizes that the music playback function is called without specializing in the development of music playback pages, which reduces the R&D cost of the APP, and reduces the risk of music resource caching in the second APP, and protects music copyright.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113517010B_ABST
    Figure CN113517010B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention provide a method, device, electronic device and storage medium for calling a music playback function. The method for calling a music function provided by the embodiments of the present invention is that after the first APP obtains the trigger instruction of the music playback function, it can display the media information display page obtained from the server corresponding to the second APP, and then obtain the music playback instruction for the target music work sent by the media information display page, and based on the music playback instruction, start the second APP in the background to play the target music work. In the embodiments of the present invention, if the first APP wants to play music, it can obtain the media information display page from the server corresponding to the second APP for display, and open the second APP in the background to realize the music playback function. It is not necessary to develop a corresponding music playback page and interface specifically for the music playback interface provided by other application service providers when developing the first APP, which reduces the research and development cost of the APP that calls the music playback function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet application technology, and in particular to a method, device, electronic device and storage medium for calling a music playing function. Background Art

[0002] At present, some network applications (APPs) need to call the music playback function during operation. For example, a news APP needs to call the audio playback function provided by other application services.

[0003] In the prior art, an APP calls the audio playback function provided by other application services. The usual method is that other application service providers provide interfaces such as music search, music information, and music playback links to the APP developers, who then design and develop the corresponding music playback page and add it to the APP, which results in a large R&D cost. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a method, device, electronic device and storage medium for calling a music playback function, so as to reduce the R&D cost of an APP that calls a music playback function. The specific technical solution is as follows:

[0005] An embodiment of the present invention provides a method for calling a music playback function, which is applied to a first APP in an electronic device; the electronic device also has a second APP installed, and the second APP is a music playback APP; the method includes:

[0006] Get the trigger instruction of the music playing function;

[0007] Displaying a media information display page obtained from the server corresponding to the second APP; the media information display page includes: identification information of a music work for the user to select;

[0008] Obtaining a music playing instruction for a target music work sent by the media information display page; the target music work is selected by a user based on identification information of the music work in the media information display page;

[0009] Based on the music playing instruction, the second APP is started in the background to play the target music work.

[0010] In one embodiment of the present invention, the step of obtaining a trigger instruction for a music playing function includes:

[0011] When it is detected that the title bar, icon or button for identifying the music playing function in the preset page of the first APP is selected by the user, a trigger instruction of the music playing function is obtained.

[0012] In one embodiment of the present invention, the media information display page is a web page of H5 standard;

[0013] The step of obtaining the music playing instruction for the target music work sent by the media information display page includes:

[0014] The music playing instruction for the target music work is received through a first communication interface between a preset media information display page and the first APP; the music playing instruction is: the media information display page is generated based on the target identifier of the target music work selected by the user.

[0015] In an embodiment of the present invention, the step of starting the second APP in the background to play the target music work based on the music playing instruction includes:

[0016] The music playing instruction is sent to the second APP through the second communication interface preset between the first APP and the second APP, so as to start the second APP in the background to play the target music work.

[0017] In one embodiment of the present invention, the method further comprises:

[0018] receiving, through the second communication interface, a playback result returned by the second APP;

[0019] Returning the playback result to the media information display page through the first communication interface;

[0020] The media information display page displays the playback result.

[0021] In an embodiment of the present invention, the media information display page also displays a music player interface; the method further includes:

[0022] Receiving, through the first communication interface, a play control instruction sent by the media information display page, wherein the play control instruction is generated by the media information display page after receiving an operation of a user on a target music work on the music player interface;

[0023] The playback control result information corresponding to the playback control instruction sent by the second APP is received through the second communication interface, and the playback control result information is returned to the media information display page.

[0024] In one embodiment of the present invention, the step of obtaining the music playing instruction for the target music work sent by the media information display page, and the step of starting the second APP in the background to play the target music work based on the music playing instruction, are implemented by an SDK module for calling the second APP set in the first APP;

[0025] The first communication interface is a communication interface between the media information display page and the SDK module;

[0026] The second communication interface is a direct communication interface between the SDK module and the second APP.

[0027] The embodiment of the present invention further provides a device for invoking a music playback function, which is applied to a first APP in an electronic device; the electronic device also has a second APP installed therein, and the second APP is a music playback APP; the device comprises:

[0028] A trigger instruction acquisition module is used to obtain a trigger instruction for a music playing function;

[0029] A display page display module, used to display a media information display page obtained from the server corresponding to the second APP; the media information display page includes: identification information of music works for users to select;

[0030] A playing instruction acquisition module, used to obtain a music playing instruction for a target music work sent by the media information display page; the target music work is selected by the user based on the identification information of the music work in the media information display page;

[0031] The music work playing module is used to start the second APP in the background to play the target music work based on the music playing instruction.

[0032] In one embodiment of the present invention, the trigger instruction acquisition module is specifically used to obtain the trigger instruction of the music playback function when it is detected that the title bar or icon or button used to identify the music playback function in the preset page of the first APP is selected by the user.

[0033] In one embodiment of the present invention, the media information display page is a web page of H5 standard;

[0034] The playback instruction acquisition module is specifically used to receive the music playback instruction for the target music work through the first communication interface between the preset media information display page and the first APP; the music playback instruction is: the media information display page is generated based on the target identifier of the target music work selected by the user.

[0035] In one embodiment of the present invention, the music work playing module is specifically used to send the music playing instruction to the second APP through a second communication interface preset between the first APP and the second APP, so as to start the second APP in the background to play the target music work.

[0036] In one embodiment of the present invention, the device further comprises:

[0037] A playback result receiving module, used to receive the playback result returned by the second APP through the second communication interface;

[0038] A playback result returning module, used to return the playback result to the media information display page through the first communication interface;

[0039] The playback result display module is used to display the playback result on the media information display page.

[0040] In an embodiment of the present invention, the media information display page also displays a music player interface; the device further includes:

[0041] A control instruction receiving module, used to receive a play control instruction sent by a media information display page through the first communication interface, wherein the play control instruction is generated by the media information display page after receiving an operation of a user on a target music work on the music player interface;

[0042] The control result receiving module is used to receive the playback control result information corresponding to the playback control instruction sent by the second APP through the second communication interface, and return the playback control result information to the media information display page.

[0043] An embodiment of the present invention further provides an electronic device, in which a first APP and a second APP are installed, wherein the second APP is a music playing APP; the electronic device includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus;

[0044] Memory, used to store computer programs;

[0045] The processor is used to implement any of the above-mentioned steps of the calling method for the music playing function when executing the program stored in the memory.

[0046] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the calling method of any of the above-mentioned music playback functions are implemented.

[0047] An embodiment of the present invention also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute any of the above-mentioned methods for calling a music playback function.

[0048] Beneficial effects of the embodiments of the present invention:

[0049] The music function calling method provided in the embodiment of the present invention can display the media information display page obtained from the server corresponding to the second APP after the first APP obtains the trigger instruction of the music playing function, and then obtains the music playing instruction for the target music work sent by the media information display page, and based on the music playing instruction, starts the second APP in the background to play the target music work. In the embodiment of the present invention, if the first APP wants to play music, it can obtain the media information display page from the server corresponding to the second APP for display, and open the second APP in the background to realize the music playing function. It is not necessary to develop the corresponding music playing page and interface specifically for the music playing interface provided by other application service providers when developing the first APP, which reduces the R&D cost of the APP that calls the music playing function.

[0050] Of course, it is not necessary to achieve all of the advantages described above at the same time to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0052] Figure 1 A flow chart of a method for calling a music playing function provided by an embodiment of the present invention;

[0053] Figure 2 A second flow chart of a method for calling a music playing function provided by an embodiment of the present invention;

[0054] Figure 3 A third flow chart of a method for calling a music playing function provided by an embodiment of the present invention;

[0055] Figure 4 A fourth flow chart of a method for calling a music playing function provided by an embodiment of the present invention;

[0056] Figure 5 A fifth flow chart of a method for calling a music playing function provided by an embodiment of the present invention;

[0057] Figure 6Schematic diagram of the interaction between the media information display page, the SDK module and the second APP in an embodiment of the present invention;

[0058] Figure 7 A schematic diagram of a structure of a device for invoking a music playing function provided by an embodiment of the present invention;

[0059] Figure 8 A second structural diagram of a device for invoking a music playing function provided by an embodiment of the present invention;

[0060] Fig. 9 A third structural diagram of a device for invoking a music playing function provided by an embodiment of the present invention;

[0061] Fig.10 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0062] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field based on this application belong to the scope of protection of the present invention.

[0063] In order to reduce the R&D cost of an APP that calls a music function, an embodiment of the present invention provides a method, an apparatus, an electronic device, and a storage medium for calling a music playback function.

[0064] The music function calling method provided in the embodiment of the present invention is applied to a first APP in an electronic device; the electronic device also has a second APP installed, and the second APP is a music playing APP. The first APP may be a news APP, a social APP, a video APP, or other APP that needs to call the music playing function.

[0065] See also Figure 1 , Figure 1 1 is a flowchart of a method for calling a music playback function provided by an embodiment of the present invention. The method may specifically include the following steps:

[0066] Step S110, obtaining a trigger instruction for a music playing function;

[0067] Step S120: displaying a media information display page obtained from the server corresponding to the second APP; the media information display page includes: identification information of music works for the user to select;

[0068] Step S130: obtaining a music playing instruction for a target music work sent by the media information display page; the target music work is selected by the user based on identification information of the music work in the media information display page;

[0069] Step S140: Based on the music playing instruction, start the second APP in the background to play the target music work.

[0070] The music function calling method provided in the embodiment of the present invention can display the media information display page obtained from the server corresponding to the second APP after the first APP obtains the trigger instruction of the music playing function, and then obtains the music playing instruction for the target music work sent by the media information display page, and based on the music playing instruction, starts the second APP in the background to play the target music work. In the embodiment of the present invention, if the first APP wants to play music, it can obtain the media information display page from the server corresponding to the second APP for display, and open the second APP in the background to realize the music playing function. It is not necessary to develop the corresponding music playing page and interface specifically for the music playing interface provided by other application service providers when developing the first APP, which reduces the R&D cost of the APP that calls the music playing function.

[0071] In an embodiment of the present invention, the trigger instruction of the music playing function can be issued by the user clicking on the title bar, icon or button used to identify the music playing function in the preset page of the first APP. For example, if the first APP is a social APP, the user can click on the "play" button or icon in its page to issue the trigger instruction of the music playing function, or click on the "music" title bar in the sidebar of its page to issue the trigger instruction of the music playing function, and no specific limitation is made here.

[0072] The first APP detects that the title bar, icon or button used to identify the music playback function in its preset page is selected by the user, that is, after obtaining the trigger instruction of the music playback function, the media information display page obtained from the server corresponding to the second APP can be displayed. As a specific implementation, the first APP can pre-store the link address information of the media information display page provided by the server corresponding to the second APP. The above media information display page can be a page for displaying music work information.

[0073] As described above, the above-mentioned media information display page includes identification information of music works for users to select. In an embodiment of the present invention, the above-mentioned music identification information may be the music name of each music. In an embodiment of the present invention, the above-mentioned media information display page may display music works displayed on the homepage selected according to preset rules, such as the latest and most popular music works, or different playlists may be displayed. Each playlist may include music works selected according to preset rules that match the playlist. For example, the playlist may be Chinese songs, English songs, etc. In an embodiment of the present invention, there is no limitation on the specific music works displayed on the media information display page.

[0074] Correspondingly, the target music work selected by the user in the above media information display page can be a single song or a playlist containing multiple songs for playback. When the user selects a music work, a music playback instruction for the target music is issued. After receiving the music playback instruction, the media information display page can send the music playback instruction to the first APP.

[0075] As a specific implementation of the embodiment of the present invention, the above-mentioned media information display page can be a web page of H5 standard.

[0076] H5 pages are pages that meet the HTML5 standard. HTML5 stands for HyperText Markup Language 5. It is a language description method for building Web content and an Internet standard that allows users to access the same programs and cloud-based information from any terminal, including personal computers, laptops, smartphones or tablets. H5 pages can achieve a variety of functions including image drawing and multimedia playback.

[0077] Accordingly, based on Figure 1 ,like Figure 2 As shown, Figure 2 This is a second flow chart of the method for calling the music playing function provided by the embodiment of the present invention. The above step S130 can be refined as follows:

[0078] Step S131, receiving the music playing instruction for the target music work through the first communication interface between the preset media information display page and the first APP; the music playing instruction is: the media information display page is generated based on the target identifier of the target music work selected by the user.

[0079] In an embodiment of the present invention, a user can select a target music work to be played based on the music title. For example, a user can select a target music work by selecting "Song Title 1" in the media information display page and issue a music playback instruction, which includes the above-mentioned music title.

[0080] As a specific implementation of an embodiment of the present invention, the above step S130, obtaining the music playback instruction for the target music work sent by the media information display page, can be implemented by an SDK module set in the first APP for calling the second APP. SDK (Software Development Kit) generally refers to a collection of development tools used by software engineers to build application software for specific software packages, software frameworks, hardware platforms, operating systems, etc.

[0081] As mentioned above, the above-mentioned media information display page can be a web page of H5 standard, and the above-mentioned music playback instruction can be obtained from the media information display page through the SDK module set in the first APP for calling the second APP. Therefore, the above-mentioned first communication interface can be the communication interface between the above-mentioned media information display page and SDK.

[0082] As a specific implementation of an embodiment of the present invention, the first APP can read and load the H5 media information display page from the server corresponding to the second APP through Webview, which is a web view, and is a control for displaying web pages. Correspondingly, the first communication interface can be JSBridge, which can realize two-way communication between APP / SDK and H5 page.

[0083] In the embodiment of the present invention, it is not necessary to design a special media information display page when developing the first APP. It is only necessary to obtain an H5 page for displaying media information during application, which greatly reduces the cost of APP development.

[0084] In addition, for the second APP, the media information display page used to display the music work in the first APP is obtained from the server corresponding to the second APP, and the second APP starts playing the target music work in the background, which greatly reduces the risk of music resources in the second APP being cached and used, and better protects the music copyright.

[0085] As a specific implementation of the embodiment of the present invention, based on Figure 1 , see Figure 3 , the above step S140 can be refined as follows:

[0086] Step S141, sending the music playing instruction to the second APP through the second communication interface preset between the first APP and the second APP, so as to start the second APP in the background to play the target music work.

[0087] Similar to the above step S130, the above step S140, based on the music playing instruction, starts the second APP in the background, and makes the second APP play the target music work in the background, and can also be achieved by setting an SDK module in the first APP for calling the second APP.

[0088] After receiving the music playing instruction sent by the media information display page, the first APP can send the music playing instruction to the second APP through the SDK module.

[0089] The second communication interface is a communication interface for direct communication between the SDK module and the second APP. As a specific implementation of the embodiment of the present invention, the second communication interface may be an API.

[0090] API (Application Programming Interface) is a set of predefined interfaces (such as functions, HTTP interfaces) used to provide applications and developers with a set of routines that can be accessed based on certain software or hardware. The above SDK can call different functions through different API interfaces. For music playback, the above SDK module sends the music playback instruction to the second APP through the API, and the second APP can be opened in the background. The second APP can play the target music based on the identifier of the target music work in the above music playback instruction, and return the playback result to the first APP.

[0091] As a specific implementation of the embodiment of the present invention, based on Figure 3 , see Figure 4 After the above step S141, the method may further include the following steps:

[0092] Step S450, receiving the playback result returned by the second APP through the second communication interface;

[0093] Step S460, returning the playback result to the media information display page through the first communication interface;

[0094] The above steps S450 and S460 can be implemented by the above SDK module, that is, the above SDK module receives the playback result returned by the second APP through the above second communication interface, and the playback result can be playback success, playback failure, etc. After the SDK module receives the above playback result, it can send the playback result to the above media information display page through the above first communication interface.

[0095] Step S470: the media information display page displays the playback result.

[0096] If the above-mentioned playback result is a successful playback, the media information display page can display "Now Playing" or a preset icon corresponding to a successful playback at a preset position. If the above-mentioned playback result is a failed playback, a prompt message such as "Playback Failed" can be displayed on the page.

[0097] As a specific implementation of an embodiment of the present invention, a music player interface may also be displayed in the above-mentioned media information display page. The music player interface may be the same as or different from the music playback interface of the second APP, which is not specifically limited here.

[0098] Accordingly, based on Figure 4 , see Figure 5 After the above step S470, the method may further include the following steps:

[0099] Step S580, receiving a play control instruction sent by the media information display page through the first communication interface, wherein the play control instruction is generated by the media information display page after receiving an operation of the user on the target music work on the music player interface;

[0100] In the embodiment of the present invention, the playback control instructions may include playing, pausing, switching songs, switching playback modes (such as random playback, list loop playback, single song loop playback, etc.), collecting songs, etc. After receiving the playback control instruction input by the user, the media information display page may send the control instruction to the first APP through the first communication interface, specifically, to the SDK module in the first APP.

[0101] Step S590: receiving, through the second communication interface, the playback control result information corresponding to the playback control instruction sent by the second APP, and returning the playback control result information to the media information display page.

[0102] The first APP can send the playback control instruction to the second APP through the second communication interface, and the second APP can perform corresponding operations based on the playback control instruction, such as play, pause, switch songs, switch playback modes, collect songs, etc., and return the execution results of the above operations to the first APP through the second communication interface. The first APP can send the above results to the media information display page for display.

[0103] For example, a user can issue a control command to pause playback by clicking the pause button on the music player interface. The media information display page sends the control command to the first APP, and the first APP sends the command to the second APP. The second APP can pause the song and return the result of the operation to the first APP, which then returns the result to the media information display page. The media information display page can display the result in the music player interface, such as switching the icon of the playback state to the icon of the paused playback state.

[0104] See also Figure 6 , Figure 6 This is a schematic diagram of the interaction between a media information display page, an SDK module in a first APP for calling the second APP, and the second APP in an embodiment of the present invention.

[0105] like Figure 6 As shown, after the "Music" column of the first APP is triggered by the user, the media information display page can be displayed, and the user can determine the specific content to be displayed on the media information display page by selecting the title bar. Figure 6 The figure shows the music information displayed on the media information display page after the user selects the "Music" column. Figure 6 The media information display page in is specifically a music work information display page. Figure 6 A and B refer to other columns that users can select, such as articles, videos, etc. Correspondingly, the media information display page can display the corresponding articles, videos and other information.

[0106] The music work information display page may display preset display contents, such as preset columns, and each column may display music works belonging to the column. Figure 6 As shown, the above columns may include "New Song Release", "Hot Song Recommendation", "Hot Song Playlist", etc. The above music works may be displayed in the form of a single song or in the form of a playlist (i.e., a song list). For example, the above "New Song Release" column may display music work 1, music work 2, and music work 3, the "Hot Song Recommendation" column may display music work 4, music work 5, and music work 6, and the "Hot Song Playlist" column may display the corresponding playlist 1, playlist 2, and playlist 3.

[0107] The user can issue a music play instruction by selecting the icon of the target music piece he wants to listen to. The above target music piece can be a single song or multiple songs. Figure 6 What is shown in the figure is that the user has selected a song list (multiple songs) for playing in the music work information display page, and the corresponding instruction is the music playing instruction for playing the song list.

[0108] The above-mentioned instructions can be sent to the SDK module for calling the second APP in the first APP through the above-mentioned first communication interface. The above-mentioned SDK module can correspondingly send the instructions to the second APP through the above-mentioned second communication interface. For the above-mentioned music playback instructions, the instructions sent by the SDK to the second APP can be instructions for the second APP to play the song list in the background.

[0109] After the second APP completes the operation of playing the song list, it can notify the SDK module of the playback result, such as playback success, playback failure, etc., through the second communication interface. Correspondingly, the SDK module can notify the music work information display page of the playback result by monitoring events through the first communication interface, and the above-mentioned music work information display page displays the playback result.

[0110] Of course, the above instructions can also be query instructions, such as querying the information of the currently playing song, querying the collection status, querying the play mode, etc. The above monitoring events can also include result feedback of changes in the playing status of the music work, changes in the playing song, changes in the progress, etc. The process is similar to the processing process of the above music playing instruction, and will not be repeated here.

[0111] The embodiment of the present invention further provides a device for invoking a music playback function, which is applied to a first APP in an electronic device; the electronic device also has a second APP installed therein, and the second APP is a music playback APP; Figure 7 As shown, the device may include:

[0112] A trigger instruction acquisition module 710 is used to obtain a trigger instruction for a music playing function;

[0113] The display page display module 720 is used to display the media information display page obtained from the server corresponding to the second APP; the media information display page includes: identification information of the music work for the user to select;

[0114] The playing instruction acquisition module 730 is used to obtain the music playing instruction for the target music piece sent by the media information display page; the target music piece is selected by the user based on the identification information of the music piece in the media information display page;

[0115] The music work playing module 740 is used to start the second APP in the background to play the target music work based on the music playing instruction.

[0116] The method for calling the music playback function provided in the embodiment of the present invention is that after the first APP obtains the trigger instruction of the music playback function, it can display the media information display page obtained from the server corresponding to the second APP, and then obtain the music playback instruction for the target music work sent by the music work display page, and based on the music playback instruction, start the above-mentioned second APP in the background to play the target music work. In the embodiment of the present invention, if the first APP wants to play music, it can obtain the media information display page from the server corresponding to the second APP for display, and open the second APP in the background to realize the music playback function. It is not necessary to develop the corresponding music playback page and interface specifically for the music playback interface provided by other application service providers when developing the first APP, which reduces the R&D cost of the APP that calls the music playback function.

[0117] As a specific implementation of an embodiment of the present invention, the trigger instruction acquisition module 710 is specifically used to obtain the trigger instruction of the music playback function when it is detected that the title bar or icon or button used to identify the music playback function in the preset page of the first APP is selected by the user.

[0118] As a specific implementation of the embodiment of the present invention, the media information display page is a web page of H5 standard;

[0119] The playback instruction acquisition module 730 is specifically used to receive the music playback instruction for the target music work through the first communication interface between the preset media information display page and the first APP; the music playback instruction is: the media information display page is generated based on the target identifier of the target music work selected by the user.

[0120] Correspondingly, as a specific implementation of an embodiment of the present invention, the music work playing module 740 is specifically used to send the music playing instruction to the second APP through the second communication interface preset between the first APP and the second APP, so as to start the second APP in the background to play the target music work.

[0121] As a specific implementation of the embodiment of the present invention, based on Figure 7 , see Figure 8 , the device may further include:

[0122] The playback result receiving module 850 is used to receive the playback result returned by the second APP through the second communication interface;

[0123] A playback result returning module 860, configured to return the playback result to the media information display page via the first communication interface;

[0124] The playback result display module 870 is used to display the playback result on the media information display page.

[0125] As a specific implementation of the embodiment of the present invention, the media information display page also displays a music player interface; based on Figure 7 , Figure 8 , see Fig. 9 , the device may further include:

[0126] The control instruction receiving module 980 is used to receive the play control instruction sent by the media information display page through the first communication interface, and the play control instruction is generated by the media information display page after receiving the user's operation on the target music work in the music player interface;

[0127] The control result receiving module 990 is used to receive the playback control result information corresponding to the playback control instruction sent by the second APP through the second communication interface, and return the playback control result information to the media information display page.

[0128] The specific implementation process of each module function in the above-mentioned music playing function has been described in detail in the method embodiment and will not be repeated here.

[0129] An embodiment of the present invention further provides an electronic device, in which a first APP and a second APP are installed, and the second APP is a music playing APP; Fig.10 As shown, the electronic device includes a processor 1001, a communication interface 1002, a memory 1003 and a communication bus 1004, wherein the processor 1001, the communication interface 1002, and the memory 1003 communicate with each other through the communication bus 1004.

[0130] Memory 1003, used for storing computer programs;

[0131] The processor 1001 is used to execute the program stored in the memory 1003, and implements the following steps:

[0132] Get the trigger instruction of the music playing function;

[0133] Displaying a media information display page obtained from the server corresponding to the second APP; the media information display page includes: identification information of a music work for the user to select;

[0134] Obtaining a music playing instruction for a target music work sent by the media information display page; the target music work is selected by a user based on identification information of the music work in the media information display page;

[0135] Based on the music playing instruction, the second APP is started in the background to play the target music work.

[0136] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0137] The communication interface is used for communication between the above electronic device and other devices.

[0138] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0139] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0140] In another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of the calling method of any of the above-mentioned music playback functions are implemented.

[0141] In another embodiment of the present invention, a computer program product including instructions is provided, which, when executed on a computer, enables the computer to execute a method for calling any music playback function in the above embodiments.

[0142] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0143] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0144] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, electronic device, storage medium and program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0145] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A method for calling a music playing function, characterized in that: The first APP used in electronic devices; The electronic device also has a second APP installed therein, the second APP being a music playing APP; The method comprises: Get the trigger instruction of the music playing function; Displaying a media information display page obtained from the server corresponding to the second APP; the media information display page includes: identification information of music works for users to select, and the music works for users to select include at least one of the following works: newly released works, popular works, and works included in the playlist; the first APP pre-stores the link address information of the media information display page provided by the server corresponding to the second APP; Obtaining a music playing instruction for a target music work sent by the media information display page; the target music work is selected by a user based on identification information of the music work in the media information display page; Based on the music playing instruction, starting the second APP in the background to play the target music work; The step of starting the second APP to play the target music work in the background based on the music playing instruction includes: The music playing instruction is sent to the second APP through a second communication interface preset between the first APP and the second APP, so as to start the second APP in the background to play the target music work, and the second communication interface is an application programming interface API.

2. The method according to claim 1, characterized in that The step of obtaining a trigger instruction for a music playing function comprises: When it is detected that the title bar, icon or button for identifying the music playing function in the preset page of the first APP is selected by the user, a trigger instruction of the music playing function is obtained.

3. The method according to claim 1, characterized in that The media information display page is a web page of H5 standard; The step of obtaining the music playing instruction for the target music work sent by the media information display page includes: The music playing instruction for the target music work is received through a first communication interface between a preset media information display page and the first APP; the music playing instruction is: the media information display page is generated based on the target identifier of the target music work selected by the user.

4. The method according to claim 1, characterized in that: The method further comprises: receiving, through the second communication interface, a playback result returned by the second APP; Returning the playback result to the media information display page through the first communication interface; The media information display page displays the playback result.

5. The method according to claim 4, characterized in that The media information display page also displays a music player interface; the method further includes: Receiving, through the first communication interface, a play control instruction sent by the media information display page, wherein the play control instruction is generated by the media information display page after receiving an operation of a user on a target music work on the music player interface; The playback control result information corresponding to the playback control instruction sent by the second APP is received through the second communication interface, and the playback control result information is returned to the media information display page.

6. The method according to claim 1, characterized in that The step of obtaining the music playing instruction for the target music work sent by the media information display page, and the step of starting the second APP in the background to play the target music work based on the music playing instruction, are implemented by an SDK module for calling the second APP set in the first APP; The first communication interface is a communication interface between the media information display page and the SDK module; The second communication interface is a direct communication interface between the SDK module and the second APP.

7. A device for calling a music playing function, characterized in that: A first APP is applied to an electronic device; the electronic device also has a second APP installed therein, the second APP being a music playing APP; the device comprises: A trigger instruction acquisition module is used to obtain a trigger instruction for a music playing function; a display page display module, configured to display a media information display page obtained from a server corresponding to the second APP; the media information display page includes: identification information of music works for user selection, the music works for user selection including at least one of the following works: newly launched works, popular works, and works included in a playlist; the first APP pre-stores link address information of the media information display page provided by the server corresponding to the second APP; A playing instruction acquisition module, used to obtain a music playing instruction for a target music work sent by the media information display page; the target music work is selected by the user based on the identification information of the music work in the media information display page; A music work playing module, used for starting the second APP in the background to play the target music work based on the music playing instruction; The music work playing module is specifically used to send the music playing instruction to the second APP through the second communication interface preset between the first APP and the second APP, so as to start the second APP to play the target music work in the background, and the second communication interface is an application programming interface API.

8. The device according to claim 7, characterized in that The trigger instruction acquisition module is specifically used to obtain the trigger instruction of the music playback function when it is detected that the title bar or icon or button used to identify the music playback function in the preset page of the first APP is selected by the user.

9. The device according to claim 7, characterized in that The media information display page is a web page of H5 standard; The playback instruction acquisition module is specifically used to receive the music playback instruction for the target music work through the first communication interface between the preset media information display page and the first APP; the music playback instruction is: the media information display page is generated based on the target identifier of the target music work selected by the user.

10. The device according to claim 7, characterized in that The device also includes: A playback result receiving module, used to receive the playback result returned by the second APP through the second communication interface; A playback result returning module, used to return the playback result to the media information display page through the first communication interface; The playback result display module is used to display the playback result on the media information display page.

11. The device according to claim 10, characterized in that The media information display page also displays a music player interface; the device also includes: A control instruction receiving module, used to receive a play control instruction sent by the media information display page through the first communication interface, wherein the play control instruction is generated by the media information display page after receiving an operation of a user on a target music work on the music player interface; The control result receiving module is used to receive the playback control result information corresponding to the playback control instruction sent by the second APP through the second communication interface, and return the playback control result information to the media information display page.

12. An electronic device, characterized in that: The electronic device has a first APP and a second APP installed, and the second APP is a music playing APP; It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 6 when executing a program stored in a memory.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 6 are implemented.