Multimedia playing control method, device and system, electronic equipment and storage medium
By automatically restoring the audio playback of the first player through the floating window after the second player stops playing, the problem of the user requiring manual mute is solved, and the player's application convenience is improved.
Patent Information
- Application Number
- CN202311671422.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-06
- Publication Date
- 2025-06-06
AI Technical Summary
After the new player playback is over, the user needs to manually turn off the mute, making the player's application less convenient.
After the second player stops playing, the audio playback of the first player is automatically resumed through the floating window.
No need for the user to manually turn off mute, which improves the player's application convenience and user experience.
Smart Images

Figure CN120111297A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of multimedia playback technology, and specifically relates to a multimedia playback control method, device, system, electronic device and storage medium. Background Art
[0002] With the continuous development of Internet technology, long videos, short videos, live videos, etc. have become well known to users and are frequently used. When the current player is playing a video, you may need to open a new player to play new content. Based on the idea of saving resources, when you open a new player to play a video, the current player can continue to play with sound or mute in a floating window, or stop playing. When the new player finishes playing, the current player that continues to play will continue to play, the current player that stopped playing will still stop, the current player that played silently will still play silently, or stop playing.
[0003] However, as an end user, after the new player finishes playing, if you want to play the current player that was previously playing in silence with sound, you need to manually turn off the mute, which makes the application convenience of the player poor.
[0004] It should be noted that the above statements are only used to provide background technical information related to the present application and do not necessarily constitute prior art. Summary of the invention
[0005] The present application proposes a multimedia playback control method, device, system, electronic device and storage medium, which can automatically resume the audio playback of a floating window after the second player stops playing.
[0006] The first embodiment of the present application provides a multimedia playback control method, including:
[0007] When a first player is playing a multimedia message, a playback request from a second player is received, and a floating window is used to silently play the multimedia message being played by the first player on the audio playback page of the second player;
[0008] Detecting whether the second player releases the audio focus;
[0009] When the second player releases the audio focus, the multimedia information being played by the first player is played with sound through the floating window.
[0010] In some embodiments of the present application, the step of silently playing the multimedia information being played by the first player through a floating window on the audio playback page of the second player includes:
[0011] Creating a floating window of the first player on the audio playback page of the second player; the first player and the second player have independent player cores;
[0012] Modify the value of the preset kernel playback parameter of the first player to a first parameter value indicating silent playback;
[0013] Based on the first parameter value, the multimedia information being played by the first player is played silently in the floating window.
[0014] In some embodiments of the present application, detecting whether the second player releases the audio focus includes:
[0015] Detecting whether an event of releasing audio focus occurs in the audio playback page;
[0016] Based on detecting the event of releasing the audio focus, it is determined that the second player releases the audio focus.
[0017] In some embodiments of the present application, before the second player releases the audio focus, there are multiple players in an open state, and the method further includes:
[0018] When the second player releases the audio focus, determining a target player with the highest audio playback priority among the players in the turned-on state;
[0019] Restores the audio focus of the target player.
[0020] In some embodiments of the present application, determining the target player with the highest audio playback priority among all the players in the turned-on state includes:
[0021] Get the start time and current play status of each player in the start state;
[0022] Based on the start time and current play status of each of the players, a target player with the highest audio play priority among the players is determined.
[0023] In some embodiments of the present application, the step of determining the target player with the highest audio playback priority among the players in the turned-on state further includes:
[0024] Get the target application to which the current display page of the terminal device belongs;
[0025] If it is detected that there is a player among the players whose multimedia information being played belongs to the target application, the player is determined as the target player with the highest priority.
[0026] In some embodiments of the present application, the playing of the multimedia information being played by the first player with sound through the floating window includes:
[0027] Modifying the value of the preset kernel playback parameter of the first player to a second parameter value indicating audio playback;
[0028] Based on the second parameter value, the multimedia information being played by the first player is played with sound in the floating window.
[0029] In some embodiments of the present application, after the multimedia information being played by the first player is played silently in the floating window, the method further includes:
[0030] Based on the message queue telemetry transmission protocol, subscribing to the resource service information of the multimedia information being played by the first player;
[0031] Based on the subscribed resource service information, the multimedia information being played in the floating window is controlled for playing.
[0032] In some embodiments of the present application, the method further includes:
[0033] Before receiving the play request from the second player, if there is a floating window corresponding to the third player on the play page of the first player, then after receiving the play request from the second player, the floating window corresponding to the third player is hidden, or the floating window corresponding to the third player and the floating window corresponding to the first player are displayed on the audio playback page of the second player.
[0034] The second aspect of the present application provides a multimedia playback control device, the device comprising:
[0035] A silent play module, configured to receive a play request from a second player when a first player is playing, and silently play the multimedia information being played by the first player through a floating window on the audio play page of the second player;
[0036] A focus detection module, used to detect whether the second player releases the audio focus;
[0037] The audio playback module is used to play the multimedia information being played by the first player with audio through the floating window when the second player releases the audio focus.
[0038] An embodiment of the third aspect of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method described in the first aspect above.
[0039] An embodiment of the fourth aspect of the present application provides a computer-readable storage medium on which a computer program is stored, and the program is executed by a processor to implement the method described in the first aspect above.
[0040] The technical solution provided in the embodiments of the present application has at least the following technical effects or advantages:
[0041] In an embodiment of the present application, when the first player is playing multimedia information with sound, if a play request of the second player is received, the multimedia information being played by the first player can be played silently through a floating window on the sound play page of the second player. Then, it is detected in real time whether the second player releases the audio focus, and when the second player releases the audio focus, the audio focus is obtained, so that the multimedia information being played by the first player can be played directly with sound through the floating window. In this way, when the first player plays the multimedia information silently on the sound play page of the second player through the floating window, the audio focus can be obtained in time after the second player releases the audio focus, and the sound can be played directly in the floating window, without the user having to manually turn off the mute, which is more convenient for user operation and improves user satisfaction.
[0042] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] By reading the detailed description of the preferred embodiment below, various other advantages and benefits will become clear to those of ordinary skill in the art. The accompanying drawings are only used for the purpose of illustrating the preferred embodiment and are not considered to be limitations of the present application. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings.
[0044] In the attached picture:
[0045] Figure 1 A schematic diagram showing a flow chart of a multimedia playback control method provided in some embodiments of the present application;
[0046] Figure 2 A specific flow chart of step S1 in some embodiments of the present application is shown;
[0047] Figure 3 A schematic diagram of the architecture of a first player in some embodiments of the present application is shown;
[0048] Figure 4 A schematic diagram showing the architecture of a first player in some other embodiments of the present application is shown;
[0049] Figure 5 A specific flow chart of step S2 in some embodiments of the present application is shown;
[0050] Figure 6 A schematic diagram of the management process of audio focus in some embodiments of the present application is shown;
[0051] Figure 7 A schematic diagram showing the structure of a multimedia playback control device provided in some embodiments of the present application is shown;
[0052] Figure 8 A schematic diagram of an electronic device provided by an embodiment of the present application is shown;
[0053] Fig. 9 A schematic diagram of a storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0054] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0055] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by technicians in the field to which this application belongs.
[0056] In the related art, during the process of the first player playing multimedia information with sound, if the second player requests to play other multimedia information, in response to the play request of the second player, the first player can adopt the suspension mode and perform silent play on the sound play page of the second player, so that the first player can keep playing and reduce the occupation of kernel resources. After the second player finishes playing, the first player will continue to adopt the suspension mode to perform silent play on the currently opened page (which can be the page of other players except the first player and the second player, or other page resources). If the user wants to watch the sound multimedia information of the first player, he needs to manually turn off the mute switch of the first player, which makes the application of the first player inconvenient and reduces the satisfaction of user experience.
[0057] Based on the above problems, an embodiment of the present application provides a multimedia playback control method. When a first player is playing multimedia information with sound, if a playback request of a second player is received, the method can play the multimedia information being played by the first player silently through a floating window on the audio playback page of the second player. Then, it is detected in real time whether the second player releases the audio focus, and when the second player releases the audio focus, the audio focus is obtained, so that the multimedia information being played by the first player can be played directly through the floating window with sound. In this way, when the first player plays the multimedia information silently on the audio playback page of the second player through the floating window, the audio focus can be obtained in time after the second player releases the audio focus, and the audio playback can be performed directly in the floating window without the user having to manually turn off the mute, which is more convenient for user operation and improves user satisfaction.
[0058] The multimedia information may be various audio information or video information, a live broadcast image or an on-demand image, which is not specifically limited in this embodiment.
[0059] The executor of the method can be various terminal devices, such as mobile phones, tablets, computers, smart TVs, etc., or it can be a multimedia playback control device on the terminal device for controlling the playback of multimedia information. The multimedia playback control device can be an independent functional module or integrated in a multimedia player. This embodiment does not make specific limitations on this.
[0060] The multimedia playback control method provided in the embodiment of the present application is described in detail below by taking a multimedia playback control device as an example and combining with the accompanying drawings.
[0061] See also Figure 1 , is a flow chart of a multimedia playback control method provided in an embodiment of the present application, such as Figure 1 As shown, the multimedia playback control method may include the following steps:
[0062] Step S1, when a first player is playing multimedia information with sound, a play request from a second player is received, and the multimedia information being played by the first player is played silently through a floating window on the audio play page of the second player.
[0063] The first player and the second player can be video players or music players, which are not specifically limited in this embodiment. The multimedia information being played with sound by the first player can be a live screen or an on-demand screen.
[0064] As a terminal device, after receiving the playback request from the second player, the content of the second player can be played first, and the first player can continue to play the multimedia information it is playing silently through a floating window, so that the first player can continue to output while minimizing core power consumption, and the user can receive multimedia information played by two players at the same time.
[0065] Specifically, the terminal device or multimedia playback control apparatus may be provided with an audio focus manager. When the first player holds the sound, if the audio focus manager receives a focus request from the second player, the first player may be notified to lose the audio focus, and the second player may hold the audio focus so as to perform audio playback.
[0066] When the first player / the second player plays multimedia information with sound, it can be considered that the first player / the second player holds the audio focus.
[0067] In some embodiments, Figure 2 As shown, the above-mentioned step of silently playing the multimedia information being played by the first player through a floating window on the audio playback page of the second player may include the following specific steps: step S11, creating a floating window of the first player on the audio playback page of the second player; the first player and the second player have independent player cores; step S12, modifying the value of the preset core playback parameter of the first player to a first parameter value indicating silent playback; step S13, based on the first parameter value, silently playing the multimedia information being played by the first player in the floating window.
[0068] Among them, the preset kernel playback parameters may include any parameters involved in the process of the player playing multimedia information. By adjusting the value of the rewritten parameter, different playback effects can be achieved, such as audio playback, silent playback, page playback, and floating mode playback. For example, setting the value of the preset kernel playback parameter to the first parameter value can achieve the effect of silent playback in the floating window. It can be understood that the first parameter value here does not only refer to a single value, it can be a single value, and it can also include a group of values. As long as the preset kernel playback parameter is modified to the first parameter value, the effect of silent playback of multimedia information in the floating window can be achieved.
[0069] In this embodiment, after the second player plays the audio, an independent window can be created on the audio playback page of the second player. The window is located above the page to implement the floating playback mode of the floating window. In this embodiment, the first player and the second player are provided with independent player kernels, so that the floating window of the first player can use an independent player kernel to avoid kernel resource grabbing with other players, so that multiple players can play their respective multimedia information at the same time. In addition, this embodiment achieves the purpose of modifying the playback mode by modifying the kernel playback parameters of the player, and can achieve a smooth playback mode conversion effect without any user operation.
[0070] Specifically, Figure 3 As shown, the first player may include a player body and a suspension container, wherein the player body may include an independent player kernel, a kernel encapsulation layer, and a player plug-in layer, and the independent player kernel may be used to play multimedia information. The kernel encapsulation layer may register and manage the plug-ins applied to the player, and may cache multimedia information, adjust playback parameters, callback player events, and manage player plug-ins. The player plug-in layer may include multiple plug-ins, such as a playback control plug-in, an abnormal prompt plug-in, and an audio focus plug-in, wherein the playback control plug-in is used to implement playback control functions, including but not limited to pause, fast forward, adjust playback speed and picture quality, etc. The abnormal prompt plug-in is used to implement abnormal prompt functions, including but not limited to network abnormalities, multimedia information abnormalities, etc. The audio focus plug-in is used to communicate with the audio focus manager, and timely obtain the release audio focus notification and the audio focus holding notification issued by the sound manager. For example, when the first player plays multimedia resources with sound, if the second player seizes the audio focus, the audio focus management may send a notification of releasing the audio focus to the audio focus plug-in of the first player, and after receiving the notification, the first player releases the audio focus and plays silently. After the second player turns off the sound or stops playing, the audio focus manager can notify the first player to hold the audio focus, and the first player can play with sound.
[0071] The floating container is used to implement the floating mode playback of the first player, so that the multimedia information can be played in a floating window on the audio playback page of the second player. Specifically, the player view can be added to the floating container to realize the accompanying display of the multimedia information. Gestures can also be added to the floating container to support the free dragging of the floating window.
[0072] Furthermore, after the multimedia information being played by the first player is played silently through the floating window, the following processing may also be included: based on the message queue telemetry transmission protocol, subscribing to the resource service information of the multimedia information being played by the first player; based on the subscribed resource service information, controlling the playback of the multimedia information being played in the floating window.
[0073] The resource service information of the multimedia information may include but is not limited to the address resource and data stream resource of the multimedia information. The above-mentioned playing control of the multimedia information includes but is not limited to stopping playing, changing the multimedia data stream and address stream, etc.
[0074] In this embodiment, the resource service information of the multimedia information being played by the first player can be subscribed to based on the MQTT (Message Queuing Telemetry Transport) protocol, so as to obtain the resource service information of the player in a timely manner, so as to facilitate timely playback control of the multimedia information when the obtained resource service information is different from the information of the current application. For example, when a live stream change message is received, the new stream address can be used to restart the broadcast; when a live stream end message is received, the broadcast can be stopped.
[0075] Specifically, if Figure 4 As shown, the player plug-in layer of the first player can also include an MQTT (Message Queuing Telemetry Transport) message processing plug-in. Multiple players can listen to the same MQTT message through the MQTT message processing plug-in, and the listening process of each other is not interfered with. When a player is logged out, the player plug-in will unsubscribe from the MQTT message. If there are still other subscribers, the MQTT channel will not be disconnected to ensure that other message subscription processes can proceed normally; when the last subscriber unsubscribes, the MQTT channel will be disconnected to reduce CPU and memory resource consumption.
[0076] In other embodiments, if a floating window corresponding to a third player exists on the playback page of the first player before the playback request of the second player is received, the method may also include the following processing: after receiving the playback request of the second player, hiding the floating window corresponding to the third player, or displaying the floating window corresponding to the third player and the floating window corresponding to the first player on the audio playback page of the second player.
[0077] Hiding the floating window means that the multimedia information in the floating window is played in the background mode, and the window screen cannot be seen on the currently displayed page, but the user can open it manually.
[0078] In this embodiment, when the first player plays multimedia information with sound on the currently displayed page, a floating window of a third player may be displayed on the audio playback page of the first player. When the second player requests to play, the floating window corresponding to the third player may be hidden to prevent the floating window of the third player from affecting the playback quality of the floating window of the first player, and to reduce the impact of the floating window on the audio playback page. The floating window corresponding to the third player and the floating window corresponding to the first player may also be displayed on the audio playback page of the second player, so that three or even more multimedia information can be played simultaneously.
[0079] Step S2, detecting whether the second player releases the audio focus.
[0080] Here, releasing the audio focus can be understood as switching the player that is playing audio to a silent playback mode, or shutting down the player.
[0081] In this embodiment, it is possible to detect in real time whether the second player releases the audio focus, so as to restore the audio focus of the first player in time after the second player releases the audio focus.
[0082] Furthermore, if Figure 5 As shown, the above step S2 may include the following specific steps: step S21, detecting whether an event of releasing the audio focus occurs in the audio playback page; step S22, determining that the second player releases the audio focus based on detecting the event of releasing the audio focus.
[0083] The event of releasing the audio focus may include turning off the sound of the audio playing page, or turning off the audio playing screen, or logging off the second player.
[0084] In actual applications, whether the second player releases the audio focus can be detected by detecting whether an event of releasing the audio focus occurs in the audio playback page. After the second player releases the audio focus, it can send a focus release notification to the audio focus manager. After receiving the notification, the audio focus manager can notify the first player to restore the audio focus, so that the first player holds the audio focus.
[0085] Step S3, when the second player releases the audio focus, the multimedia information being played by the first player is played with sound through the floating window.
[0086] In this embodiment, after the second player releases the audio focus, the audio focus of the first player can be restored, so that the first player holds the audio focus, and the multimedia information being played by the first player can continue to be played with sound through the floating window.
[0087] Specifically, this embodiment can be based on Figure 6The audio focus management mechanism shown performs the following audio focus management process on the audio focus: when the first player holds the audio focus for audio playback, the audio focus manager receives the focus request from the second player and can notify the first player that the audio focus is lost. After that, the first player releases the audio focus and continues to play in silent mode. The second player can hold the audio focus and play the multimedia information in audio mode. After the second player stops playing or turns off the sound, it can notify the audio focus manager that the audio focus has been released. After receiving the notification that the second player has released the audio focus, the audio focus manager can notify the first player to restore the audio focus, and the first player can hold the audio focus and continue to play the multimedia information in audio mode.
[0088] Furthermore, the step of playing the multimedia information currently being played by the first player with sound in a floating window may specifically include the following processing: modifying the value of the preset kernel playback parameter of the first player to a second parameter value indicating audio playback; based on the second parameter value, playing the multimedia information currently being played by the first player with sound in the floating window.
[0089] Among them, the second parameter value is similar to the limitation of the first parameter value, and it does not refer to a single numerical value. It can be a numerical value or a group of numerical values. As long as the preset kernel playback parameter is modified to the second parameter value, the effect of playing multimedia information with sound in the floating window can be achieved.
[0090] In this embodiment, after the second player releases the audio focus, the preset kernel playback parameter can be modified to the second parameter value. By modifying the kernel playback parameter of the player, the silent playback mode can be directly switched to audio playback, thereby achieving a smooth playback mode conversion effect without the need for the user to perform any operation.
[0091] In some embodiments, if there are multiple players in an open state before the second player releases the audio focus, the method may also include the following specific processing: when the second player releases the audio focus, determining the target player with the highest audio playback priority among the players in an open state; and restoring the audio focus of the target player.
[0092] The player in the open state can be understood as a player that has not been logged out after being opened, and can be in a paused playback state, a silent playback state, or a background playback state. Its playback mode can be current page playback, floating window playback, or background window playback, and this embodiment does not make specific restrictions on this. The audio playback priority can be understood as the priority of obtaining audio focus.
[0093] In actual applications, there may not only be two players in the first and second states at the same time. If there are multiple players in the open state, after the second player releases the audio focus, it is necessary to sort the audio playback priorities of the players in the open state, select the target player with the highest audio playback priority, and then restore the audio focus of the target player. In this way, the audio playback of multiple players can be reasonably managed so that multiple players can play in an orderly manner.
[0094] Specifically, the audio playback priority of each player can be determined according to the most recent start-up time of each player, that is, the above step of determining the target player with the highest audio playback priority among all the players in the turned-on state can include the following processing: obtaining the start-up time and current playback status of each player in the turned-on state; based on the start-up time and current playback status of each player, determining the target player with the highest audio playback priority among all the players.
[0095] The opening time of each player can be understood as the most recent opening time, and the shorter the opening time is from the moment when the second player releases the audio focus, the higher the audio playback priority of the corresponding player. The playback status may include play, pause, and hide (background opening status).
[0096] In practical applications, each operation time of the player can be recorded, including but not limited to the opening time, the pause time and the closing time, etc., so as to facilitate service performance analysis and user analysis, etc. This embodiment can obtain the most recent opening time and current playing state of each player in the opening state based on the principle of higher priority for later playback, and then based on the opening time and current playing state of each player, the player in the playing state and the player whose opening time is closest to the current moment is determined as the target player with the highest priority for audio playback. If there is only one player currently playing among the players in the opening state, the player currently playing is directly determined as the target player with the highest priority for audio playback. If there is no player currently playing among the players in the opening state, the player whose opening time is closest to the current moment is determined as the target player with the highest priority for audio playback. In this way, the user's playback needs can be better obtained, and based on the user's playback needs, the audio focus of the player that the user most wants to restore can be restored as much as possible.
[0097] For example, before receiving the play request of the second player, there is a floating window corresponding to the third player on the play page of the first player. After the second player starts playing audio, the first and third players can both use the floating window for silent playback. After the second player releases the audio focus, when determining the audio playback priority of each player, given that the floating window of the third player is above the audio playback interface of the first player, it can be understood that the start time of the first player is later and the start time of the third player is earlier, so the audio playback priority of the first player is higher than the audio playback priority of the third player. However, during the audio playback of the second player, the user may pause the playback of the first player or the third player, such as pausing the first player, then the audio playback priority of the third player is higher than the audio playback priority of the first player.
[0098] It is understandable that the above-mentioned method of determining the audio playback priority is only one implementation method of this embodiment. This embodiment is not limited to this. For example, the audio playback priority of the player can also be determined according to the user's current operation. Specifically, the target application to which the page currently displayed by the terminal device belongs can be obtained; if it is detected that there is a player in each player that plays multimedia information belonging to the target application, then the player is determined as the target player with the highest priority. In this way, based on the page currently displayed by the terminal device, the target application to which the page belongs is obtained, which to a certain extent indicates that the user wants to obtain the content of the target application. Then, the player corresponding to the target application can be determined as the target player with the highest audio playback priority, so as to give priority to restoring the audio focus of the player. In this way, opening the player of the same application as the currently displayed page not only facilitates the user to obtain related content, but also saves the kernel resources of the terminal device.
[0099] In summary, the multimedia playback control provided by this embodiment, when the first player is playing multimedia information with sound, if a playback request of the second player is received, the multimedia information being played by the first player can be played silently through a floating window on the audio playback page of the second player. Then, it is detected in real time whether the second player releases the audio focus, and when the second player releases the audio focus, the audio focus is obtained, so that the multimedia information being played by the first player can be played directly with sound through the floating window. In this way, when the first player plays the multimedia information silently on the audio playback page of the second player through the floating window, the audio focus can be obtained in time after the second player releases the audio focus, and the audio playback can be performed directly in the floating window without the user having to manually turn off the mute, which is more convenient for user operation and improves user satisfaction.
[0100] Some embodiments of the present application further provide a multimedia playback control device, which is used to execute the multimedia playback control method provided in any of the above embodiments. Figure 7 A schematic diagram of the multimedia playback control device is shown. Figure 7 As shown, the multimedia playback control device includes:
[0101] A silent playback module, for receiving a playback request from a second player when a first player is playing, and silently playing the multimedia information being played by the first player through a floating window on the audio playback page of the second player;
[0102] A focus detection module, used to detect whether the second player releases the audio focus;
[0103] The audio playback module is used to play the multimedia information being played by the first player with audio through a floating window when the second player releases the audio focus.
[0104] It can be understood that the multimedia playback control device provided in this embodiment and the multimedia playback control method provided in the embodiment of the present application are based on the same inventive concept, and can at least achieve the same beneficial effects of the multimedia playback control method, and the various implementation methods of the multimedia playback control method embodiment are also applicable to the embodiment of the multimedia playback control device, which will not be repeated here.
[0105] It should be noted that the data involved in this application (including but not limited to data used for model training, stored data, displayed data, etc.) 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 laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0106] The present application also provides an electronic device to execute the above-mentioned multimedia playback control method or multimedia playback control method. Figure 8 , which shows a schematic diagram of an electronic device provided by some embodiments of the present application. Figure 8 As shown, the electronic device 4 includes: a processor 400, a memory 401, a bus 402 and a communication interface 403. The processor 400, the communication interface 403 and the memory 401 are connected via the bus 402; the memory 401 stores a computer program that can be run on the processor 400, and when the processor 400 runs the computer program, it executes the multimedia playback control method or the multimedia playback control method provided in any of the aforementioned embodiments of the present application.
[0107] The memory 401 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the device network element and at least one other network element is realized through at least one communication interface 403 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.
[0108] The bus 402 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 401 is used to store programs, and the processor 400 executes the programs after receiving the execution instructions. The multimedia playback control method or the multimedia playback control method disclosed in any implementation of the aforementioned embodiment of the present application may be applied to the processor 400, or implemented by the processor 400.
[0109] The processor 400 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 400. The above processor 400 can be a general-purpose processor, including a processor (Central Processing Unit, referred to as CPU), a network processor (Network Processor, referred to as NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a readily available programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 401, and the processor 400 reads the information in the memory 401 and completes the steps of the above method in combination with its hardware.
[0110] The electronic device provided in the embodiment of the present application and the multimedia playback control method or multimedia playback control method provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented therein.
[0111] The present application also provides a computer-readable storage medium corresponding to the multimedia playback control method or multimedia playback control method provided in the above-mentioned embodiment. Fig. 9 The computer-readable storage medium shown is a CD 50 on which a computer program (i.e., a program product) is stored. When the computer program is run by the processor, it will execute the multimedia playback control method or the multimedia playback control method provided by any of the aforementioned embodiments.
[0112] It should be noted that examples of computer-readable storage media may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.
[0113] An embodiment of the present application also provides a computer program product, including a computer program, which is executed by a processor to implement the multimedia playback control method or the multimedia playback control method of any of the above embodiments.
[0114] The computer-readable storage medium and computer program product provided in the above-mentioned embodiments of the present application are based on the same inventive concept as the multimedia playback control method or multimedia playback control method provided in the embodiments of the present application, and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.
[0115] It should be noted that:
[0116] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known structures and technologies are not shown in detail so as not to obscure the understanding of this description.
[0117] Similarly, it should be understood that in order to streamline the present application and aid in understanding one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be interpreted as reflecting the following schematic diagram: the claimed application requires more features than the features explicitly recited in the individual claims. More specifically, as reflected in the claims below, the inventive aspects are less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present application.
[0118] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present application and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0119] The above is only a preferred specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A multimedia playback control method, It is characterized in that include: When a first player is playing a multimedia message, a playback request from a second player is received, and a floating window is used to silently play the multimedia message being played by the first player on the audio playback page of the second player; Detecting whether the second player releases the audio focus; When the second player releases the audio focus, the multimedia information being played by the first player is played with sound through the floating window.
2. The method according to claim 1, It is characterized in that The method of silently playing the multimedia information being played by the first player through a floating window on the audio playing page of the second player includes: Creating a floating window of the first player on the audio playback page of the second player; the first player and the second player have independent player cores; Modify the value of the preset kernel playback parameter of the first player to a first parameter value indicating silent playback; Based on the first parameter value, the multimedia information being played by the first player is played silently in the floating window.
3. The method according to claim 1, It is characterized in that The detecting whether the second player releases the audio focus comprises: Detecting whether an event of releasing audio focus occurs in the audio playback page; Based on detecting the event of releasing the audio focus, it is determined that the second player releases the audio focus.
4. The method according to claim 1, It is characterized in that Before the second player releases the audio focus, there are multiple players in an open state, and the method further includes: When the second player releases the audio focus, determining a target player with the highest audio playback priority among the players in the turned-on state; Restores the audio focus of the target player.
5. The method according to claim 4, It is characterized in that The step of determining the target player with the highest audio playback priority among all the players in the enabled state includes: Get the start time and current play status of each player in the start state; Based on the start time and current play status of each of the players, a target player with the highest audio play priority among the players is determined.
6. The method according to claim 5, It is characterized in that The step of determining the target player with the highest audio playback priority among the players in the enabled state further includes: Get the target application to which the current display page of the terminal device belongs; If it is detected that there is a player among the players whose multimedia information being played belongs to the target application, the player is determined as the target player with the highest priority.
7. The method according to claim 1, It is characterized in that The step of playing the multimedia information being played by the first player with sound through the floating window includes: Modifying the value of the preset kernel playback parameter of the first player to a second parameter value indicating audio playback; Based on the second parameter value, the multimedia information being played by the first player is played with sound in the floating window.
8. The method according to claim 1, It is characterized in that After the multimedia information being played by the first player is played silently in the floating window, the method further includes: Based on the message queue telemetry transmission protocol, subscribing to the resource service information of the multimedia information being played by the first player; Based on the subscribed resource service information, the multimedia information being played in the floating window is controlled for playing.
9. The method according to claim 1, It is characterized in that The method further comprises: Before receiving the play request from the second player, if there is a floating window corresponding to the third player on the play page of the first player, then after receiving the play request from the second player, the floating window corresponding to the third player is hidden, or the floating window corresponding to the third player and the floating window corresponding to the first player are displayed on the audio playback page of the second player.
10. A multimedia playback control device, It is characterized in that include: A silent play module, configured to receive a play request from a second player when a first player is playing, and silently play the multimedia information being played by the first player through a floating window on the audio play page of the second player; A focus detection module, used to detect whether the second player releases the audio focus; The audio playback module is used to play the multimedia information being played by the first player with audio through the floating window when the second player releases the audio focus.
11. An electronic device, It is characterized in that The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method according to any one of claims 1 to 9.
12. A computer-readable storage medium having a computer program stored thereon, It is characterized in that The program is executed by a processor to implement the method according to any one of claims 1 to 9.