Audio floating window playing control method and related device

Through the audio floating window playback control method, the problems of audio playback discontinuity and resource occupation are solved, seamless playback between the audio playback page and the audio floating window is realized, and user experience is improved.

CN120144818APending Publication Date: 2025-06-13BEIJING SOHU NEW MOMENTUM INFORMATION TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202510623860.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-15
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

In the audio playback scenario, after the audio playback page exits, the audio playback is discontinuous, and the audio is still on the audio playback page after the audio floating window is hidden, occupying system resources and consuming memory.

Method used

An audio floating window play control method is provided. By receiving a play switching command, a player instance is associated with a target audio play component from the current audio play component to the target audio play component, and the current audio play component is destroyed, and the player instance is added to the play control view of the target audio play component to realize play control.

Benefits of technology

It realizes seamless playback between the audio playback page and the audio floating window by the player instance, improves the continuity of playback, avoids system resource usage and memory consumption, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120144818A_ABST
    Figure CN120144818A_ABST
Patent Text Reader

Abstract

The invention discloses an audio floating window playing control method and a related device, and relates to the technical field of audio playing, a playing switching instruction for a current audio playing component is received, and the playing switching instruction can indicate a to-be-switched target audio playing component; associating the player instance from the current audio playing component to the target audio playing component, and destroying the current audio playing component; and adding the player instance to a playing control view of the target audio playing component, and performing playing control on the player instance based on the playing control view. According to the method and the device, the player instance can be transmitted between the two audio playing components, namely the audio playing page and the audio floating window, so that the seamless playing capability is realized, the playing continuity is facilitated, the normal life cycles of the audio playing page and the audio floating window are not influenced, the occupation of system resources is avoided, the memory consumption is reduced, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of audio playback, and in particular, to an audio floating window playback control method and related devices. Background Art

[0002] In mobile video application products, a convenient and smooth playback function can greatly improve user activity and stickiness within the application. In the audio playback scenario, after the audio playback page exits, if there is no audio rendering window, it will cause the audio playback to be discontinuous. Even if there is an audio floating window, it only hides the audio playback page, and the audio playback still occurs on the audio playback page, which greatly occupies system resources and consumes memory. Summary of the Invention

[0003] In view of the above problems, this application provides an audio floating window playback control method and related devices to achieve the purpose of seamless playback of the player instance between the audio playback page and the audio floating window. The specific solutions are as follows: In a first aspect of this application, an audio floating window playback control method is provided. The audio floating window playback control method includes: Receiving a playback switching instruction for the current audio playback component, where the playback switching instruction can indicate the target audio playback component to be switched; Associating the player instance from the current audio playback component to the target audio playback component, and destroying the current audio playback component; Adding the player instance to the playback control view of the target audio playback component, and performing playback control on the player instance based on the playback control view.

[0004] In a possible implementation, the associating the player instance from the current audio playback component to the target audio playback component and destroying the current audio playback component includes: When the current audio playback component is the audio playback page and the target audio playback component is the audio floating window, calling back the page removal status of the audio playback page, and passing the player instance to the interface of the audio floating window so that the player instance is associated with the audio floating window; Calling back the page destruction status of the audio playback page and destroying the audio playback page.

[0005] In a possible implementation, the associating the player instance from the current audio playback component to the target audio playback component and destroying the current audio playback component includes: When the current audio playback component is the audio floating window and the target audio playback component is the audio playback page, creating and jumping to the audio playback page; Pass the player instance to the interface of the audio playback page so that the player instance is associated with the audio playback page; Destroy the audio floating window.

[0006] In a possible implementation, the playing control of the player instance based on the playback control view includes: Receive a playback control instruction for the player instance through the playback control view, where the playback control instruction includes a progress adjustment instruction, a play start / stop instruction, and a first close instruction; If the playback control instruction is the progress adjustment instruction, adjust the playback progress of the player instance; If the playback control instruction is the play start / stop instruction, control the player instance to start playing / stop playing; If the playback control instruction is the first close instruction, control the player instance to stop playing and destroy the target audio playback component and the player instance.

[0007] In a possible implementation, the audio floating window playback control method further includes: Receive a second close instruction for the current audio playback component; Control the player instance to stop playing and destroy the current audio playback component and the player instance.

[0008] A second aspect of the present application provides an audio floating window playback control device, where the audio floating window playback control device includes: A play switching module, configured to receive a play switching instruction for the current audio playback component, where the play switching instruction can indicate a target audio playback component to be switched; associate the player instance from the current audio playback component to the target audio playback component, and destroy the current audio playback component; A play control module, configured to add the player instance to the playback control view of the target audio playback component and perform play control on the player instance based on the playback control view.

[0009] In a possible implementation, the play switching module for associating the player instance from the current audio playback component to the target audio playback component and destroying the current audio playback component is specifically configured to: When the current audio playback component is an audio playback page and the target audio playback component is an audio floating window, call back the page removal state of the audio playback page, pass the player instance to the interface of the audio floating window so that the player instance is associated with the audio floating window; call back the page destruction state of the audio playback page and destroy the audio playback page.

[0010] In a third aspect of the present application, a computer program product is provided, including computer-readable instructions, which, when running on an electronic device, enable the electronic device to implement the audio floating window playback control method according to the first aspect or any implementation manner of the first aspect.

[0011] In a fourth aspect of the present application, an electronic device is provided, including at least one processor and a memory connected to the processor, wherein: The memory is used to store a computer program; The processor is used to execute the computer program so that the electronic device can implement the audio floating window playback control method according to the first aspect or any implementation manner of the first aspect.

[0012] In a fifth aspect of the present application, a computer storage medium is provided. The storage medium carries one or more computer programs, which, when executed by an electronic device, can enable the electronic device to implement the audio floating window playback control method according to the first aspect or any implementation manner of the first aspect.

[0013] By means of the above technical solutions, an audio floating window playback control method and related devices provided by the present application receive a playback switching instruction for the current audio playback component, and the playback switching instruction can indicate the target audio playback component to be switched; associate the player instance from the current audio playback component to the target audio playback component, and destroy the current audio playback component; add the player instance to the playback control view of the target audio playback component, and perform playback control on the player instance based on the playback control view. The present application can transfer the player instance between two audio playback components, namely the audio playback page and the audio floating window, realizing the ability of seamless playback, contributing to the continuity of playback, and not affecting the normal life cycles of both, avoiding occupying system resources, reducing memory consumption, and improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In combination with the accompanying drawings and with reference to the following specific embodiments, the above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic, and the original elements and elements are not necessarily drawn to scale.

[0015] Figure 1 It is a schematic flowchart of an audio floating window playback control method provided by an embodiment of the present application; Figure 2 It is a partial flowchart of an audio floating window playback control method provided by an embodiment of the present application; Figure 3Another schematic diagram of the process of an audio floating window playback control method provided by an embodiment of the present application; Figure 4 Another schematic diagram of the process of an audio floating window playback control method provided by an embodiment of the present application; Figure 5 Schematic diagram of the structure of an audio floating window playback control device provided by an embodiment of the present application; Figure 6 Schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0016] The embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. The terms used in the implementation manners part of the present application are only used to explain the specific embodiments of the present application, rather than to limit the present application.

[0017] The embodiments of the present application will be described below with reference to the accompanying drawings. Those of ordinary skill in the art will know that with the development of technology and the emergence of new scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.

[0018] The terms "first", "second", etc. in the specification, claims and above-mentioned drawings of the present application are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that such terms can be interchanged under appropriate circumstances, which is only a way of distinguishing objects with the same attributes when describing the embodiments of the present application. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion, so that a process, method, system, product or device comprising a series of units does not have to be limited to those units, but may include other units that are not clearly listed or are inherent to these processes, methods, products or devices.

[0019] See Figure 1 , Figure 1 Schematic diagram of the process of an audio floating window playback control method provided by an embodiment of the present application. As Figure 1 shown, an audio floating window playback control method provided by an embodiment of the present application, which is applied to the scenario of playing audio using a player on the iOS side, may include steps S101 to S103, and these steps will be described in detail below.

[0020] S101, receive a playback switching instruction for the current audio playback component, and the playback switching instruction can indicate the target audio playback component to be switched.

[0021] In the embodiments of the present application, the current audio playback component can be one of the audio playback page and the audio floating window, and the target audio playback component is the other of the audio playback page and the audio floating window. That is to say, when the current audio playback component is the audio playback page, the target audio playback component is the audio floating window; when the current audio playback component is the audio floating window, the target audio playback component is the audio playback page.

[0022] The current audio playback component is already associated with a player instance, and audio can be played through this player instance. Through interaction operations with the user, a playback switching instruction for the current audio playback component is received, that is, an instruction indicating that the playback entity is switched from the current audio playback component to the target audio playback component. For example, when the current audio playback component is the audio playback page, the user clicks the button for exiting the audio playback page, which triggers the generation of the playback switching instruction. After receiving this playback switching instruction, it is determined to switch from the audio playback page to the audio floating window. Continuing with the example, when the current audio playback component is the audio floating window, the user clicks the jump button, which triggers the generation of the playback switching instruction. After receiving this playback switching instruction, it is determined to switch from the audio floating window to the audio playback page.

[0023] S102, associate the player instance from the current audio playback component to the target audio playback component, and destroy the current audio playback component.

[0024] In the embodiments of the present application, in the initial state, the player instance is already associated with the current audio playback component. In response to the playback switching instruction, the association between the player instance and the current audio playback component is released, and the player instance is associated with the target audio playback component. Specifically, an interface can be added to support the incoming of the player instance.

[0025] After associating the player instance with the target audio playback component, the current audio playback component is destroyed to release the system resources occupied by the current audio playback component and reduce memory consumption.

[0026] In a possible implementation, the transfer of the player instance from the audio playback page to the audio floating window can be achieved based on the exit process of the audio playback page. Refer to Figure 2 , Figure 2 which is a partial flowchart of a method for controlling audio floating window playback provided by the embodiments of the present application. As Figure 2 shown, for a method for controlling audio floating window playback provided by the embodiments of the present application, where step S102 "associate the player instance from the current audio playback component to the target audio playback component, and destroy the current audio playback component" can include steps S201 to S202, and these steps will be described in detail below.

[0027] S201. When the current audio playback component is the audio playback page and the target audio playback component is the audio floating window, callback the page removal status of the audio playback page and pass the player instance to the interface of the audio floating window, so that the player instance is associated with the audio floating window.

[0028] In the embodiment of the present application, the current audio playback component is the audio playback page and the target audio playback component is the audio floating window. During the process of the audio playback page exiting, first callback the page removal status (i.e., the didmove status) of the audio playback page. At this time, the audio playback page is removed from the screen. When the audio playback page is completely removed from the screen, pass the player instance to the interface of the audio floating window, which can pass the player instance to the audio floating window and associate the player instance with the audio floating window. It should be noted that in the actual scenario, the audio playback page is designed with multiple instances, that is, multiple audio playback pages can run at the same time. The embodiment of the present application only performs playback switching on the topmost audio playback page.

[0029] S202. Callback the page destruction status of the audio playback page and destroy the audio playback page.

[0030] In the embodiment of the present application, after associating the player instance with the audio floating window, further callback the page destruction status (i.e., the dealloc status) of the audio playback page and destroy the audio playback page to release the system resources occupied by the audio playback page. In addition, at this time, no playback end call is made to the player instance, which can enable the player instance to continue playing in the audio floating window.

[0031] In a possible implementation, the audio playback page can be recreated after the audio floating window jumps, so as to implement the transfer of the player instance from the audio floating window to the audio playback page. See Figure 3 , Figure 3 is another part of the flowchart of the audio floating window playback control method provided by the embodiment of the present application. As Figure 3 shown, the embodiment of the present application provides an audio floating window playback control method, wherein step S102 "associate the player instance from the current audio playback component with the target audio playback component and destroy the current audio playback component" can include steps S301 to S303, and these steps will be described in detail below.

[0032] S301. When the current audio playback component is the audio floating window and the target audio playback component is the audio playback page, create and jump to the audio playback page.

[0033] In the embodiment of the present application, the current audio playback component is the audio floating window and the target audio playback component is the audio playback page. After the audio floating window jumps, create the audio playback page and perform the jump.

[0034] S302, Pass the player instance to the interface of the audio playback page so that the player instance is associated with the audio playback page.

[0035] In the embodiments of the present application, passing the player instance to the interface of the audio playback page can transfer the player instance to the audio playback page. It should be noted that in the actual scenario, the audio floating window is designed as a single instance, that is, only one audio floating window can run at the same time.

[0036] S303, Destroy the audio floating window.

[0037] In the embodiments of the present application, after the player instance is associated with the audio playback page, the audio floating window can be destroyed to release the system resources occupied by the audio floating window. In addition, at this time, no end-of-play call is made to the player instance, which allows the player instance to continue playing on the audio playback page.

[0038] S103, Add the player instance to the playback control view of the target audio playback component and perform playback control on the player instance based on the playback control view.

[0039] In the embodiments of the present application, after the player instance is associated with the target audio playback component, since the playback control view of the player instance on the audio playback page is larger than that on the audio floating window, the player instance needs to adjust the view size before being added to the playback control view of the target audio playback component, thus completing the seamless playback process of the player instance from the current audio playback component to the target audio playback component.

[0040] In a possible implementation, the player instance can be dynamically controlled through the playback control view, such as progress adjustment, play start / stop, or closing. Refer to Figure 4 , Figure 4 which is another schematic flowchart of the process of the audio floating window playback control method provided by the embodiments of the present application. As Figure 4 shown, for the audio floating window playback control method provided by the embodiments of the present application, in step S103, "performing playback control on the player instance based on the playback control view" may include steps S401 to S404, and these steps will be described in detail below.

[0041] S401, Receive a playback control instruction for the player instance through the playback control view, where the playback control instruction includes a progress adjustment instruction, a play start / stop instruction, and a first close instruction.

[0042] In the embodiments of the present application, the user can input a playback control instruction to the playback control view to perform playback control on the player instance. Specifically, the playback control instruction may include a progress adjustment instruction, a play start / stop instruction, and a close instruction (i.e., the first close instruction).

[0043] S402, if the play control instruction is a progress adjustment instruction, adjust the play progress of the player instance.

[0044] In the embodiment of the present application, if the play control instruction is a progress adjustment instruction, the play progress of the player instance can be adjusted according to the progress adjustment instruction, and the play continues.

[0045] S403, if the play control instruction is a play start / stop instruction, control the player instance to start playing / stop playing.

[0046] In the embodiment of the present application, if the play control instruction is a play start / stop instruction, the player instance can be controlled to start playing (i.e., from the paused state to the started state) or stop playing (i.e., from the started state to the paused state) according to the play start / stop instruction.

[0047] S404, if the play control instruction is a first close instruction, control the player instance to stop playing and destroy the target audio playback component and the player instance.

[0048] In the embodiment of the present application, if the play control instruction is a first close instruction, the player instance can be controlled to stop playing based on the first close instruction, and the target audio playback component and the player instance are destroyed, that is, the system resources occupied by the target audio playback component and the player instance are released.

[0049] In a possible implementation, the user can also directly close the current audio playback component. In this regard, an audio floating window play control method provided by the embodiment of the present application further includes the following steps: Receive a second close instruction for the current audio playback component; control the player instance to stop playing and destroy the current audio playback component and the player instance.

[0050] In the embodiment of the present application, when the user clicks the button for closing the current audio playback component, a close instruction (i.e., the second close instruction) is triggered to be generated. Thus, after receiving the second close instruction, the player instance is controlled to stop playing, and the current audio playback component and the player instance are destroyed, that is, the system resources occupied by the current audio playback component and the player instance are released.

[0051] Through the above description, an audio floating window playback control method provided by an embodiment of the present application can achieve seamless playback when mutually jumping between an audio playback page and an audio floating window. When the user exits the audio playback page, the audio floating window can be automatically opened after the audio playback page completely disappears, and the player instance is handed over to the floating window for management. When the audio playback page is destroyed, the player instance is not ended for playback operation, and the player instance can continue to play under the audio floating window without audio playback interruption; when the user clicks on the audio floating window, the audio playback page of the currently played audio is initialized and then jumped to, and the player instance is handed over to the audio playback page for management. When the audio floating window is closed, the player instance is not ended for playback operation, and the player instance can continue to play under the audio playback page without audio playback interruption.

[0052] The above introduced an audio floating window playback control method provided by an embodiment of the present application. Next, a device for executing the above audio floating window playback control method will be introduced.

[0053] See Figure 5 , Figure 5 which is a schematic structural diagram of an audio floating window playback control device provided by an embodiment of the present application. As Figure 5 shown, an audio floating window playback control device provided by an embodiment of the present application includes: A playback switching module 501, configured to receive a playback switching instruction for a current audio playback component, where the playback switching instruction can indicate a target audio playback component to be switched; associate the player instance from the current audio playback component to the target audio playback component, and destroy the current audio playback component; A playback control module 502, configured to add the player instance to the playback control view of the target audio playback component, and perform playback control on the player instance based on the playback control view.

[0054] In a possible implementation, the playback switching module 501 for associating the player instance from the current audio playback component to the target audio playback component and destroying the current audio playback component is specifically configured to: When the current audio playback component is an audio playback page and the target audio playback component is an audio floating window, call back the page removal state of the audio playback page, pass the player instance into the interface of the audio floating window, so that the player instance is associated with the audio floating window; call back the page destruction state of the audio playback page, and destroy the audio playback page.

[0055] In a possible implementation, the playback switching module 501 for associating the player instance from the current audio playback component to the target audio playback component and destroying the current audio playback component is specifically configured to: When the current audio playback component is an audio floating window and the target audio playback component is an audio playback page, create and jump to the audio playback page; pass the player instance to the interface of the audio playback page so that the player instance is associated with the audio playback page; destroy the audio floating window.

[0056] In a possible implementation, the playback control module 502 for performing playback control on the player instance based on the playback control view is specifically configured to: Receive a playback control instruction for the player instance through the playback control view. The playback control instruction includes a progress adjustment instruction, a playback start / stop instruction, and a first close instruction; if the playback control instruction is a progress adjustment instruction, adjust the playback progress of the player instance; if the playback control instruction is a playback start / stop instruction, control the player instance to start playing / stop playing; if the playback control instruction is a first close instruction, control the player instance to stop playing and destroy the target audio playback component and the player instance.

[0057] In a possible implementation, the playback control module 502 is further configured to: Receive a second close instruction for the current audio playback component; control the player instance to stop playing and destroy the current audio playback component and the player instance.

[0058] It should be noted that for the detailed functions of each module in the embodiments of the present application, reference can be made to the corresponding disclosed parts in the embodiments of the above audio floating window playback control method, which will not be elaborated here.

[0059] An electronic device is also provided in the embodiments of the present application. Refer to Figure 6 , Figure 6 is a schematic structural diagram of an electronic device provided in the embodiments of the present application. The electronic device in the embodiments of the present application may include, but is not limited to, fixed terminals such as mobile phones, laptop computers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), desktop computers, and the like. Figure 6 The electronic device shown is only an example and should not impose any limitation on the functions and usage scope of the embodiments of the present application.

[0060] As Figure 6 shown, the electronic device may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0061] Typically, the following devices can be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a memory card, a hard disk, etc.; and a communication device 609. The communication device 609 can allow the electronic device to communicate with other devices wirelessly or wiredly to exchange data. Although Figure 6 an electronic device with various devices is shown, it should be understood that it is not required to implement or have all the shown devices. Instead, more or fewer devices can be implemented or had.

[0062] An embodiment of the present application also provides a computer program product including computer-readable instructions, which, when running on an electronic device, enable the electronic device to implement any one of the audio floating window playback control methods provided by the embodiments of the present application.

[0063] An embodiment of the present application also provides a computer-readable storage medium carrying one or more computer programs, which, when executed by an electronic device, can enable the electronic device to implement any one of the audio floating window playback control methods provided by the embodiments of the present application.

[0064] In addition, it should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the device embodiments provided in the present application, the connection relationships between the modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines.

[0065] Through the description of the above embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general hardware. Of course, it can also be implemented by dedicated hardware including application-specific integrated circuits, dedicated CPUs, dedicated memories, dedicated components, etc. Generally, functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structures for implementing the same function can also be diverse, such as analog circuits, digital circuits, or dedicated circuits, etc. However, for this application, in more cases, software program implementation is a better implementation method. Based on such an understanding, the technical solution of this application, in essence, or the part that makes a contribution to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk, or optical disc of a computer, etc., and includes several instructions to enable a computer device (which can be a personal computer, training device, or network device, etc.) to execute the methods described in various embodiments of this application.

[0066] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product.

[0067] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of this application are generated in whole or in part. The computer can be a general-purpose computer, a dedicated computer, a computer network, or other programmable devices. 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, computer, training device, or data center to another website, computer, training device, or data center in a wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) manner. The computer-readable storage medium can be any available medium that a computer can store, or a data storage device such as a training device or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state drive (SSD)).

Claims

1. A method for controlling audio floating window playback, characterized in that: The audio floating window playback control method comprises: Receiving a playback switching instruction for a current audio playback component, wherein the playback switching instruction can indicate a target audio playback component to be switched; Associating the player instance from the current audio playback component to the target audio playback component, and destroying the current audio playback component; The player instance is added to the play control view of the target audio playback component, and the play of the player instance is controlled based on the play control view.

2. The audio floating window playback control method according to claim 1, characterized in that: The step of associating the player instance from the current audio playback component to the target audio playback component and destroying the current audio playback component includes: When the current audio playback component is an audio playback page and the target audio playback component is an audio floating window, the page removal state of the audio playback page is called back, and the player instance is passed to the interface of the audio floating window, so that the player instance is associated with the audio floating window; Call back the page destruction status of the audio playback page and destroy the audio playback page.

3. The audio floating window playback control method according to claim 1, characterized in that: The step of associating the player instance from the current audio playback component to the target audio playback component and destroying the current audio playback component includes: When the current audio playback component is an audio floating window and the target audio playback component is an audio playback page, create and jump to the audio playback page; Passing the player instance to the interface of the audio playback page so that the player instance is associated with the audio playback page; Destroy the audio floating window.

4. The audio floating window playback control method according to claim 1, characterized in that: The performing playback control on the player instance based on the playback control view includes: Receiving a playback control instruction for the player instance through the playback control view, the playback control instruction including a progress adjustment instruction, a playback start and stop instruction, and a first closing instruction; If the playback control instruction is the progress adjustment instruction, adjusting the playback progress of the player instance; If the playback control instruction is the playback start / stop instruction, control the player instance to start / stop playback; If the playback control instruction is the first closing instruction, the player instance is controlled to stop playing, and the target audio playback component and the player instance are destroyed.

5. The audio floating window playback control method according to claim 1, characterized in that: The audio floating window playback control method further includes: Receiving a second closing instruction for the current audio playback component; Control the player instance to stop playing, and destroy the current audio playback component and the player instance.

6. An audio floating window playback control device, characterized in that: The audio floating window playback control device comprises: A play switching module, configured to receive a play switching instruction for a current audio playback component, wherein the play switching instruction can indicate a target audio playback component to be switched; associate a player instance from the current audio playback component to the target audio playback component, and destroy the current audio playback component; The playback control module is used to add the player instance to the playback control view of the target audio playback component and perform playback control on the player instance based on the playback control view.

7. The audio floating window playback control device according to claim 6, characterized in that: The player instance is associated with the target audio player component from the current audio player component, and the play switching module of the current audio player component is destroyed, specifically used for: When the current audio playback component is an audio playback page and the target audio playback component is an audio floating window, the page removal status of the audio playback page is called back, and the player instance is passed to the interface of the audio floating window to associate the player instance with the audio floating window; the page destruction status of the audio playback page is called back to destroy the audio playback page.

8. A computer program product, characterized in that It includes computer-readable instructions, and when the computer-readable instructions are executed on an electronic device, the electronic device implements the audio floating window playback control method as described in any one of claims 1 to 5.

9. An electronic device, characterized in that: The method comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the audio floating window playback control method as described in any one of claims 1 to 5.

10. A computer storage medium, characterized in that: The storage medium carries one or more computer programs, and when the one or more computer programs are executed by an electronic device, the electronic device can implement the audio floating window playback control method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Video playing method and equipment

    CN108712673A

  • Player state acquisition method and device

    CN108882041A

  • Audio and video player resource management method and device, intelligent television, and storage medium

    CN109068177A

  • Video playing method and device, terminal and storage medium

    CN110582017A

  • Live video processing method and device, terminal and storage medium

    CN110891193A