Content playing processing method, apparatus, device, storage medium and program product
Patent Information
- Application Number
- CN202611057501.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-16
- Publication Date
- 2026-10-16
AI Technical Summary
然而,在基于浮窗播放应用内容时,目前技术无法同时支持通过浮窗内的滑动操作实现浮窗的移动以及所播放的应用内容的切换,存在浮窗交互方式受限而影响应用内容播放及浏览效率的技术问题
[0032] The aforementioned content playback processing method, apparatus, device, storage medium, and program product, in response to a floating window launch event in the application, display a content floating window on the application page of the application; the content floating window is used to play application content of the application; in response to a swipe operation triggered within the content floating window, if the starting direction of the swipe operation is a movement trigger direction, the content floating window is controlled to move with the swipe operation and the application content played in the content floating window is maintained; if the starting direction of the swipe operation is not a movement trigger direction, the application content played in the content floating window is switched according to the swipe direction of the swipe operation; the movement trigger direction is the direction used to trigger the movement of the content floating window. This solution determines whether the starting direction of a swipe operation within the application's floating content window is a movement trigger direction. This allows the floating content window to simultaneously support movement of the floating content window and switching of the played application content through swipe operations. When the starting direction of the swipe operation is a movement trigger direction, the floating content window moves with the swipe operation while maintaining the playing application content. This prevents the application content from switching due to possible full-screen swipe operations during the floating content window's movement. When the starting direction is not a movement trigger direction, the application content played in the floating content window can be switched according to the swipe direction, achieving the purpose of application content switching. This expands the floating window interaction methods, improves application content playback and browsing efficiency, and ultimately enhances the application user experience.
Smart Images

Figure CN122933972A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal application technology, and in particular to a content playback processing method, apparatus, device, storage medium, and program product. Background Technology
[0002] With the development of terminal and internet technologies, terminal applications can provide users with services such as application content publishing, application content browsing, and application content playback. During application use, there is a need for multi-threaded content consumption, such as viewing content from one application while browsing content from other applications within the same application.
[0003] Therefore, current technology allows terminal applications to play application content via floating windows to meet the aforementioned multi-threaded content consumption needs. However, when playing application content via floating windows, current technology cannot simultaneously support moving the floating window and switching the played application content through swiping operations within the floating window. This presents a technical problem where the limited floating window interaction methods affect the efficiency of application content playback and browsing. Summary of the Invention
[0004] Therefore, it is necessary to provide a content playback processing method, apparatus, device, storage medium, and program product to address the aforementioned technical problems.
[0005] Firstly, this application provides a content playback processing method, including:
[0006] In response to a floating window launch event in the application, a content floating window is displayed on the application page of the application; the content floating window is used to play the application content of the application;
[0007] In response to a swipe operation triggered within the content floating window, if the starting direction of the swipe operation is a movement trigger direction, the content floating window is controlled to move with the swipe operation and the application content playing in the content floating window is maintained; if the starting direction of the swipe operation is not a movement trigger direction, the application content playing in the content floating window is switched according to the swipe direction of the swipe operation; the movement trigger direction is the direction used to trigger the movement of the content floating window.
[0008] In one embodiment, the method further includes: in response to a swipe operation triggered within the content floating window, determining whether the starting direction belongs to the movement trigger direction based on whether the starting direction of the swipe operation and the movement trigger direction satisfy a direction matching condition.
[0009] In one embodiment, the step of determining whether the starting direction belongs to the movement triggering direction based on whether the starting direction of the sliding operation and the movement triggering direction satisfy a direction matching condition in response to a sliding operation triggered within the content floating window includes: determining whether the starting direction of the sliding operation and the movement triggering direction satisfy the direction matching condition based on the displacement component of the starting displacement of the sliding operation in the movement triggering direction in response to a sliding operation triggered within the content floating window.
[0010] In one embodiment, determining whether the starting direction of the sliding operation and the moving trigger direction satisfy the direction matching condition based on the displacement component of the starting displacement of the sliding operation in the moving trigger direction includes: if the displacement component of the starting displacement of the sliding operation in the moving trigger direction is greater than the displacement component of the starting displacement of the sliding operation in a direction orthogonal to the moving trigger direction, then it is determined that the starting direction of the sliding operation and the moving trigger direction satisfy the direction matching condition.
[0011] In one embodiment, the method further includes: in response to a swipe operation triggered within the content floating window, providing a movement trigger feedback signal when it is determined that the starting direction of the swipe operation belongs to the movement trigger direction; the movement trigger feedback signal is used to indicate that movement of the content floating window has been triggered.
[0012] In one embodiment, the step of switching the application content played in the content floating window according to the sliding direction of the sliding operation if the starting direction of the sliding operation does not belong to the movement triggering direction includes: if the starting direction of the sliding operation does not belong to the movement triggering direction, then if the sliding direction of the sliding operation is a first sliding direction, switching the application content played in the content floating window to a first application content; if the sliding direction of the sliding operation is a second sliding direction, switching the application content played in the content floating window to a second application content; wherein the first application content and the second application content are the same or different.
[0013] In one embodiment, displaying a content floating window on the application page in response to a floating window launch event in the application includes: displaying a playback page for playing current application content in the application; displaying the application's content page in response to the floating window launch event in the application, and displaying a content floating window on the content page; wherein the content page displays various application contents of the application; and the current application content is played in the content floating window.
[0014] In one embodiment, after displaying the application's content page in response to a floating window launch event in the application, and after displaying the content floating window on the content page, the method further includes: in response to a selection operation on the application content in the content page, switching the application content played in the content floating window to the target application content and maintaining the display of the content page; the target application content is the application content selected on the content page.
[0015] In one embodiment, the step of switching the application content played in the content floating window according to the sliding direction of the sliding operation if the starting direction of the sliding operation does not belong to the movement triggering direction includes: if the starting direction of the sliding operation does not belong to the movement triggering direction, then switching the application content played in the content floating window according to the sliding direction of the sliding operation and each application content in the content page.
[0016] In one embodiment, switching the application content played in the content floating window according to the sliding direction of the sliding operation and the application content in the content page includes: when the sliding direction of the sliding operation is a first sliding direction, switching the target application content played in the content floating window to the previous application content of the target application content in the content page; and when the sliding direction of the sliding operation is a second sliding direction, switching the target application content played in the content floating window to the next application content of the target application content in the content page.
[0017] In one embodiment, after displaying a content pop-up on the application page of the application, the method further includes: in response to a pop-up exit event in the application, displaying a playback page in the application; the playback page plays the application content that was played before the content pop-up exited.
[0018] In one embodiment, after displaying a content floating window on the application page of the application in response to a floating window launch event in the application, the method further includes: controlling the size of the content floating window to adjust with the drag operation triggered at the edge of the content floating window in response to the drag operation.
[0019] In one embodiment, after displaying a content floating window on the application page of the application in response to a floating window launch event in the application, the method further includes: displaying a floating window control component in the content floating window, or hiding the floating window control component in the content floating window.
[0020] In one embodiment, the method further includes: if no operation triggering the content floating window is detected within a target duration when the floating window control component is displayed in the content floating window, then the floating window control component is hidden; and / or, if a sliding operation with a starting direction not belonging to the movement trigger direction is detected when the floating window control component is displayed in the content floating window, then the floating window control component is hidden.
[0021] In one embodiment, the method further includes: if a component activation operation triggered on the content floating window is detected when the floating window control component is hidden in the content floating window, then displaying the floating window control component in the content floating window; and / or, if a sliding operation with a starting direction not belonging to the movement trigger direction is detected when the floating window control component is hidden in the content floating window, then keeping the floating window control component hidden.
[0022] In one embodiment, after displaying a content floating window on the application page in response to a floating window launch event in the application, the method further includes: if the usage behavior of the content floating window meets the operation guidance conditions, then displaying operation guidance information in the content floating window; the operation guidance information is used to guide the operation to be triggered when using the functions supported by the content floating window.
[0023] In one embodiment, the method further includes: determining whether the usage behavior of the content floating window meets the operation guidance conditions based on the frequency of use of the content floating window.
[0024] In one embodiment, after displaying a content floating window on the application page in response to a floating window launch event in the application, the method further includes: pausing the playback of the application content by the content floating window in response to an application exit operation of the application; and resuming the playback of the application content by the content floating window or maintaining the paused playback of the application content by the content floating window in response to an application re-entry operation of the application.
[0025] In one embodiment, displaying a content floating window on the application page in response to a floating window launch event in the application includes: closing a system floating window if a system floating window is currently displayed, and displaying a content floating window on the application page in response to a floating window launch event in the application.
[0026] Secondly, this application also provides a content playback processing apparatus, comprising:
[0027] The first response module is used to respond to a floating window launch event in the application and display a content floating window on the application page of the application; the content floating window is used to play the application content of the application;
[0028] The second response module is used to respond to a sliding operation triggered within the content floating window. If the starting direction of the sliding operation is a movement trigger direction, the module controls the content floating window to move with the sliding operation and maintains the application content playing in the content floating window. If the starting direction of the sliding operation is not a movement trigger direction, the module switches the application content playing in the content floating window according to the sliding direction of the sliding operation. The movement trigger direction is the direction used to trigger the movement of the content floating window.
[0029] Thirdly, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method.
[0030] Fourthly, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above-described method.
[0031] Fifthly, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above-described method.
[0032] The aforementioned content playback processing method, apparatus, device, storage medium, and program product, in response to a floating window launch event in the application, display a content floating window on the application page of the application; the content floating window is used to play application content of the application; in response to a swipe operation triggered within the content floating window, if the starting direction of the swipe operation is a movement trigger direction, the content floating window is controlled to move with the swipe operation and the application content played in the content floating window is maintained; if the starting direction of the swipe operation is not a movement trigger direction, the application content played in the content floating window is switched according to the swipe direction of the swipe operation; the movement trigger direction is the direction used to trigger the movement of the content floating window. This solution determines whether the starting direction of a swipe operation within the application's floating content window is a movement trigger direction. This allows the floating content window to simultaneously support movement of the floating content window and switching of the played application content through swipe operations. When the starting direction of the swipe operation is a movement trigger direction, the floating content window moves with the swipe operation while maintaining the playing application content. This prevents the application content from switching due to possible full-screen swipe operations during the floating content window's movement. When the starting direction is not a movement trigger direction, the application content played in the floating content window can be switched according to the swipe direction, achieving the purpose of application content switching. This expands the floating window interaction methods, improves application content playback and browsing efficiency, and ultimately enhances the application user experience. Attached Figure Description
[0033] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0034] Figure 1(a) is a schematic diagram of a content playback processing method, one of the related technologies;
[0035] Figure 1(b) is a schematic diagram of the content playback processing method of the second related technology;
[0036] Figure 1(c) is a schematic diagram of the content playback processing method of the third related technology;
[0037] Figure 2 This is an application environment diagram of a content playback processing method in one embodiment;
[0038] Figure 3 This is a flowchart illustrating a content playback processing method in one embodiment;
[0039] Figure 4 This is a flowchart illustrating the steps of displaying a content floating window in one embodiment;
[0040] Figure 5 This is a schematic diagram illustrating the activation of a content floating window in one embodiment;
[0041] Figure 6 This is a schematic diagram illustrating the selection of target content for playback in one embodiment;
[0042] Figure 7 This is a schematic diagram illustrating the switching of playback content in one embodiment;
[0043] Figure 8 This is a schematic diagram of exiting the content pop-up window in one embodiment;
[0044] Figure 9 This is a schematic diagram of dragging a content floating window in one embodiment;
[0045] Figure 10 This is a schematic diagram of a floating window control component in one embodiment;
[0046] Figure 11 This is a schematic diagram of a hidden floating window control component in one embodiment;
[0047] Figure 12 This is a schematic diagram of a hidden floating window control component in another embodiment;
[0048] Figure 13 This is a schematic diagram of invoking the floating window control component in one embodiment;
[0049] Figure 14 This is a schematic diagram of a hidden floating window control component in yet another embodiment;
[0050] Figure 15 This is a schematic diagram illustrating operation guidance information in one embodiment;
[0051] Figure 16 This is a structural block diagram of a content playback processing device in one embodiment;
[0052] Figure 17 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0053] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0054] Applications can provide users with services such as content publishing, browsing, and playback. These applications can run on a terminal, allowing users to publish, browse, and play content. The application can be a parent application running on the terminal's operating system, a sub-application (e.g., a mini-program), or a web-based application. Users often have multi-threaded content consumption needs while using the application, such as viewing content from one application while browsing content from other applications. This content refers to the information provided within the application, and can be of various types, including images, text, audio, video, or a combination of at least two of these types. For example, the terminal can be a mobile phone or tablet, which can have an application with content playback capabilities installed. This application can provide video content, text and images, etc. Users may want to browse text and images while watching video content, creating a "watch and browse" experience that satisfies multi-threaded content consumption needs without disrupting the immersive experience.
[0055] Therefore, current technologies allow terminal applications to play application content via floating windows to meet the aforementioned multi-threaded content consumption needs. For example, current technologies can use floating windows to allow users to browse other pages of the application while the video is playing.
[0056] However, when playing application content via a floating window, current technology cannot simultaneously support moving the floating window and switching the played application content through swiping operations within the floating window. This presents a technical problem where the limited interaction methods of the floating window affect the efficiency of application content playback and browsing. As an example, the following three related technologies illustrate this:
[0057] As shown in Figure 1(a), in one of the related technologies, a floating window button 1 can be displayed explicitly on the video interface of the application. After the user clicks the floating window button 1, he / she can jump to other pages of the application (such as video list pages, etc.). On this page, a floating window is displayed, and the video played in the video interface is displayed in the floating window. This allows the user to watch the video while selecting other videos. However, the floating window in this technology does not support functions such as video switching.
[0058] As shown in Figure 1(b), in the second related technology, a floating window button 2 can be displayed on the menu page of the video interface of the application. After the user clicks the floating window button 2, he / she can jump to other pages of the application (such as the video list page, etc.). The floating window is displayed on the page, and the video played in the video interface is displayed in the floating window. This allows the user to watch the video while selecting other videos. However, the floating window page in this technology does not support functions such as video switching.
[0059] As shown in Figure 1(c), in the third related technology, a back button can be displayed in the video interface of the application. When the user clicks the back button, the video playing in the video interface is played by default using a floating window, and the user is also redirected to the video list page of the application. The floating window does not support functions such as switching videos, and clicking the floating window at this time will redirect the user to the playback page.
[0060] Therefore, when playing application content based on a floating window, the relevant technologies cannot simultaneously support moving the floating window and switching the played application content through swiping operations within the floating window. Even if the native floating window of the terminal's operating system is used to support moving the floating window through swiping operations within the floating window, it still cannot allow users to switch application content through swiping operations within the floating window. If a swiping operation to switch application content is simply added, it will conflict with the floating window movement function and lead to user misoperation. There is a technical problem that the floating window interaction method is limited, which affects the efficiency of application content playback and browsing.
[0061] To address this, this application provides a content playback processing method. By determining whether the starting direction of a swipe operation within a content floating window in an application is a movement trigger direction, the application's content floating window can simultaneously support movement of the content floating window and switching of the played application content through swipe operations within it. When the starting direction of the swipe operation is a movement trigger direction, the content floating window can be controlled to move with the swipe operation while maintaining the application content played within it. This prevents the application content played in the content floating window from switching due to possible full-screen swipe operations during the movement of the content floating window. When the starting direction is not a movement trigger direction, the application content played in the content floating window can be switched according to the swipe direction, achieving the purpose of application content switching. This expands the floating window interaction methods, improves application content playback and browsing efficiency, and ultimately enhances the application user experience.
[0062] Before describing the embodiments of this application, it should be noted that the term "in response to" as used herein refers to a state in which a corresponding event occurs or a condition is met. It will be understood that the timing of the execution of a subsequent action performed in response to such an event or condition is not necessarily strongly correlated with the time when the event occurs or the condition is met. For example, in some cases, the subsequent action may be executed immediately upon the occurrence of the event or the fulfillment of the condition; while in other cases, the subsequent action may be executed some time after the occurrence of the event or the fulfillment of the condition. "Triggering operation" refers to an action performed by a user on a visual interface through clicking, dragging, swiping, or other interactive methods, which can be used to initiate or activate functions such as data generation, display, and playback. The terms "first," "second," etc., used in the embodiments of this application can be used to describe various objects, but these objects are not limited by these terms. These terms are only used to distinguish between the first object and the second object. The terms "comprising" and "having," and any variations thereof, used in the embodiments of this application, are intended to cover non-exclusive inclusion. The term "multiple" used in the embodiments of this application refers to two or more. The term "and / or" used in the embodiments of this application refers to one of the solutions, or any combination of multiple solutions.
[0063] The content playback processing method provided in this application embodiment can be applied to, for example, Figure 2The application environment shown is as follows. The terminal communicates with the server via a network. The terminal can run an application, which can be a parent application running on the terminal's operating system, a sub-application running within the parent application (such as a mini-program), or a web-based application. The application can have functions including, but not limited to, displaying and playing application content. The server can provide services to the terminal's application, including but not limited to displaying and playing application content. A data storage system can store the data that the server needs to process. The data storage system can be integrated on the server or located on the cloud or other network servers. The terminal can be, but is not limited to, various laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart TVs, smart in-vehicle devices, and projection devices. Portable wearable devices can include smartwatches, smart bracelets, and head-mounted devices. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, and smart glasses. The server can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server providing cloud computing services.
[0064] In one exemplary embodiment, such as Figure 3 As shown, a content playback processing method is provided, which is applied to... Figure 2 Taking a mobile terminal such as a smartphone or tablet as an example, the method may include the following steps:
[0065] Step S301: In response to the floating window launch event in the application, display a content floating window on the application page of the application.
[0066] The floating window launch event refers to an event triggered within the application to launch a content floating window. This event can be triggered in various ways, and no specific limitations are specified here. For example, a floating window launch component (a component used to launch a floating window) can be displayed within the application, and the user can trigger the event by clicking this component. Alternatively, a pre-set voice command can be included within the application, allowing the user to input it and trigger the event. A pre-set gesture command can also be included, allowing the user to input it on the application's interface and trigger the event. In this step, the terminal responds to the floating window launch event within the application by displaying a content floating window on the application's application page. The application page refers to any page that the application can display; for example, it could be the application's content page (a page used to display various application content). The content floating window refers to a floating window provided by the application for playing application content. This floating window is typically smaller than the application's interface and can also be called a small window. The content displayed in the floating window can be video content, audio content, text and images, etc., without any specific limitations.
[0067] In step S302, in response to a sliding operation triggered within the content floating window, if the starting direction of the sliding operation is a movement trigger direction, the content floating window is controlled to move with the sliding operation and the application content playing in the content floating window is maintained; if the starting direction of the sliding operation is not a movement trigger direction, the application content playing in the content floating window is switched according to the sliding direction of the sliding operation.
[0068] In this step, after displaying the content floating window in the application, the user can trigger a swipe operation within the content floating window. When the user triggers a swipe operation within the content floating window, the terminal responds by first determining whether the starting direction of the swipe operation belongs to the movement trigger direction. This movement trigger direction refers to the direction used to trigger the movement of the content floating window. This movement trigger direction can be preset in the application. As an example, the movement trigger direction can be preset to the horizontal or vertical orientation of the application interface to ensure convenient user interaction with the content floating window.
[0069] In this scenario, if the initial direction of the swipe operation is a movement trigger direction (e.g., horizontal), the terminal can determine that the swipe operation is used to control the movement of the content floating window. Therefore, the terminal controls the content floating window to move with the swipe operation and maintains the application content playing within it. The terminal can control the content floating window to move within the application's interface area with the swipe operation. This means that when the user triggers the swipe operation with their hand, the terminal can control the content floating window to move within the application's interface area based on the point of contact between the user's hand and the interface. Besides controlling the movement of the content floating window with the swipe operation, it is also necessary to maintain the application content playing within it. This is because the swipe operation can occur in any direction on the application's interface, and maintaining the application content playing within the content floating window prevents accidental application content switching caused by swipe operations in certain directions. As an example, to maintain the application content playing within the content floating window, playback can be paused and resumed when the swipe operation ends. This avoids missing information about the application content playing during the movement of the content floating window. In another embodiment, the application content in the content floating window can be played continuously, so that the user can continue to listen to and watch the application content in the content floating window while moving the content floating window.
[0070] Specifically, if the starting direction of the swipe operation is not a movement trigger direction (e.g., not horizontal), the terminal can determine that the swipe operation is used to switch the application content playing in the content floating window. Therefore, the terminal can switch the application content playing in the content floating window according to the swipe direction. In particular, a swipe operation whose starting direction is not a movement trigger direction can switch the application content playing in the content floating window to another application content according to the swipe direction.
[0071] In some embodiments, if the starting direction of the sliding operation in step S302 is not a movement trigger direction, then switching the application content played in the content floating window according to the sliding direction of the sliding operation may include:
[0072] If the starting direction of the swipe operation is not a movement trigger direction, then if the swipe direction is the first swipe direction, the application content playing in the content floating window will be switched to the first application content; if the swipe direction is the second swipe direction, the application content playing in the content floating window will be switched to the second application content.
[0073] In this embodiment, when the starting direction of the swipe operation is not a movement trigger direction, the application content playing in the content floating window can be switched to the same application content or to different application content depending on the different swipe directions of the swipe operation. Specifically, whether to switch to the same or different application content can be set by the user, thus supporting diverse swipe-to-swipe application content switching needs. Specifically, if the starting direction of the swipe operation is not a movement trigger direction, the application content playing in the content floating window is switched to either the first or second application content depending on whether the swipe direction is a first or second swipe direction. The first and second swipe directions are different, and the first and second application content can be the same or different; that is, the first and second application content can be the same or different. Specifically, the movement trigger direction can be set to the horizontal direction on the application's interface, and the starting direction of the swipe operation can be the vertical direction on the application's interface. The vertical direction can include the up and down directions. The up direction can be designated as the first swipe direction, and the down direction as the second swipe direction. Therefore, neither the first nor the second swipe direction belongs to the aforementioned movement trigger direction. When the swipe operation's swipe direction is up, the application content playing in the content floating window can be switched to the first application content. When the swipe operation's swipe direction is down, the application content playing in the content floating window can be switched to the second application content. If the user sets the application content to be switched for the first and second swipe directions to be the same, then the first application content... The content is the same as the second application content, allowing users to quickly switch between application content using multiple swipe directions, improving their browsing efficiency for subsequent application content. If the user sets different application content for the first and second swipe directions, then the first and second application content will be different, providing users with the ability to switch between different application content. For example, when the user triggers a swipe in the second direction, the application content playing in the content floating window switches from application content 1 to application content 2. When the user then triggers a swipe in the first direction, the application content playing in the content floating window can switch back from application content 2 to application content 1, achieving continuous and convenient switching between multiple application content. The content floating window in this embodiment differs from the floating window implemented by directly calling the terminal's operating system's native floating window control. It can implement playlist management within the floating window at the application layer (such as swiping up / down to switch application content), providing a function and experience similar to full-screen video browsing.
[0074] The content playback processing method of this embodiment responds to a floating window launch event in the application and displays a content floating window on the application page of the application. The content floating window is used to play the application content of the application. In response to a swipe operation triggered within the content floating window, if the starting direction of the swipe operation is a movement trigger direction, the content floating window is controlled to move with the swipe operation and the application content played in the content floating window is maintained. If the starting direction of the swipe operation is not a movement trigger direction, the application content played in the content floating window is switched according to the swipe direction of the swipe operation. The movement trigger direction is the direction used to trigger the movement of the content floating window. This solution determines whether the starting direction of a swipe operation within the application's floating content window is a movement trigger direction. This allows the floating content window to simultaneously support movement of the floating content window and switching of the played application content through swipe operations. When the starting direction of the swipe operation is a movement trigger direction, the floating content window moves with the swipe operation while maintaining the playing application content. This prevents the application content from switching due to possible full-screen swipe operations during the floating content window's movement. When the starting direction is not a movement trigger direction, the application content played in the floating content window can be switched according to the swipe direction, achieving the purpose of application content switching. This expands the floating window interaction methods, improves application content playback and browsing efficiency, and ultimately enhances the application user experience.
[0075] In one exemplary embodiment, the above method may further include the following steps:
[0076] In response to a swipe operation triggered within the content floating window, determine whether the starting direction belongs to the movement trigger direction based on whether the starting direction of the swipe operation and the movement trigger direction meet the direction matching condition.
[0077] In this embodiment, the starting direction of the swipe operation is determined to be a movement trigger direction by judging whether the starting direction of the swipe operation and the movement trigger direction meet the direction matching condition. The direction matching condition refers to the condition for determining whether the starting direction of the swipe operation matches the movement trigger direction. The direction matching condition can be set by the user or a default setting can be applied. If the starting direction of the swipe operation and the movement trigger direction meet the direction matching condition, the starting direction is determined to be a movement trigger direction. If the starting direction of the swipe operation and the movement trigger direction do not meet the direction matching condition, the starting direction is determined not to be a trigger direction. Therefore, by setting the direction matching condition, the sensitivity of the triggered content floating window movement function can be adjusted. As an example, the direction matching condition can be set so that the starting direction is exactly the same as the movement trigger direction. In this case, the user needs to ensure that the starting direction of the swipe operation is exactly the same as the movement trigger direction when triggering the swipe operation. This can be considered as having low sensitivity in triggering the content floating window movement function, requiring the user to precisely trigger the swipe operation to activate the content floating window movement function. Alternatively, the direction matching condition can be set so that the angle between the starting direction and the movement trigger direction is within a threshold such as 20°. In this case, the content floating window movement function can be considered to have high sensitivity in triggering the swipe operation, allowing the user to trigger the swipe operation with a starting direction that is approximately the same as the movement trigger direction to activate the content floating window movement function. Therefore, users can easily set the appropriate direction matching conditions based on their own operating habits and their needs for the movement and content switching functions of the content floating window.
[0078] In an exemplary embodiment, further, in response to a swipe operation triggered within a content floating window, determining whether the starting direction belongs to the movement trigger direction based on whether the starting direction of the swipe operation and the movement trigger direction satisfy a direction matching condition may include:
[0079] In response to a swipe operation triggered within the content floating window, the system determines whether the starting direction of the swipe operation and the moving trigger direction satisfy the direction matching condition based on the displacement component of the starting displacement of the swipe operation in the moving trigger direction.
[0080] In this embodiment, when a user triggers a swipe operation within the content floating window, the displacement component of the initial displacement of the swipe operation in the movement trigger direction can be used to quickly determine whether the initial direction of the swipe operation and the movement trigger direction meet the direction matching condition. This allows for a rapid response as the content floating window moves with the swipe operation. The initial displacement of the swipe operation can be obtained from the displacement of the touch point at the start of the swipe operation. Then, the displacement component of this initial displacement in the movement trigger direction is determined, and the direction matching condition is determined based on this displacement component. The initial displacement has both magnitude and direction; the magnitude of the displacement component of the initial displacement in the movement trigger direction determines whether the direction matching condition is met. For example, if the magnitude of the displacement component of the initial displacement of the swipe operation in the movement trigger direction meets a certain threshold condition (e.g., greater than 0 or other thresholds), it can be determined that the direction matching condition is met. If the threshold is not met, it can be determined that the direction matching condition is not met.
[0081] In an exemplary embodiment, further, determining whether the starting direction of the sliding operation and the moving trigger direction satisfy the direction matching condition based on the displacement component of the starting displacement of the sliding operation in the moving trigger direction, as described in the above embodiment, may include:
[0082] If the displacement component of the initial displacement of the sliding operation in the movement trigger direction is greater than the displacement component of the initial displacement of the sliding operation in the direction orthogonal to the movement trigger direction, then the initial direction of the sliding operation and the movement trigger direction are determined to satisfy the direction matching condition.
[0083] In this embodiment, the relative magnitudes of the displacement component of the initial displacement of the sliding operation in the movement trigger direction and the displacement component of the initial displacement in a direction orthogonal to the movement trigger direction can be compared to determine whether the initial direction and the movement trigger direction meet the direction matching condition. This method eliminates the need for the user to know specific numerical conditions such as the size of the angle or the magnitude of the displacement. By triggering a sliding operation with an initial displacement that is closer to or farther from the movement trigger direction, the method can accurately and conveniently determine whether the sliding operation is used to control the movement of the content floating window or switch the application content played in the content floating window. Specifically, when a swipe operation is detected, the displacement component of the initial displacement of the swipe operation in the movement trigger direction can be obtained, as well as the displacement component of the initial displacement of the swipe operation in the direction orthogonal to the movement trigger direction. Let the movement trigger direction be the horizontal direction on the application interface, then the direction orthogonal to the movement trigger direction is the vertical direction. If the displacement component of the initial displacement of the swipe operation in the horizontal direction is greater than the displacement component of the initial displacement of the swipe operation in the vertical direction, then it is determined that the initial direction of the swipe operation and the movement trigger direction meet the direction matching condition. At this time, the content floating window can be controlled to move with the swipe operation and the application content played in the content floating window can be maintained. If the displacement component of the initial displacement of the swipe operation in the horizontal direction is less than or equal to the displacement component of the initial displacement of the swipe operation in the vertical direction, then it is determined that the initial direction of the swipe operation and the movement trigger direction do not meet the direction matching condition. At this time, the application content played in the content floating window can be switched according to the swipe direction of the swipe operation.
[0084] In one exemplary embodiment, the above method may further include the following steps:
[0085] In response to a swipe action triggered within the content floating window, a movement trigger feedback signal is provided when it is determined that the starting direction of the swipe action belongs to the movement trigger direction.
[0086] In this embodiment, when a sliding operation triggered within the content floating window is detected, if it is further determined that the starting direction of the sliding operation belongs to the movement trigger direction (such as horizontal), then the movement function of the content floating window can be activated. At this time, the content floating window will be controlled to move with the sliding operation and maintain the application content playing in the content floating window. Therefore, in order to allow users to intuitively perceive that the movement of the content floating window has been triggered, this embodiment can provide a movement trigger feedback signal to the user when it is determined that the starting direction of the sliding operation belongs to the movement trigger direction. This trigger feedback signal is used to provide feedback that the movement of the content floating window has been triggered. The form of the movement trigger feedback signal can be various. As an example, the movement trigger feedback signal can be the vibration signal of the terminal. That is, when it is determined that the starting direction of the sliding operation belongs to the movement trigger direction, the terminal can provide a single vibration signal so that the user can intuitively perceive that the movement of the content floating window has been triggered.
[0087] In one exemplary embodiment, such as Figure 4 As shown, step S301, in response to a floating window launch event in the application, displays a content floating window on the application's application page, which may include:
[0088] Step S401: Display the playback page for playing the current application content in the application.
[0089] In this step, the terminal displays a playback page within the application. This playback page is used to play application content, and the application content currently playing on this page is denoted as the current application content. This playback page can be either full-screen or non-full-screen.
[0090] Step S402: In response to the floating window launch event in the application, display the application's content page and display the content floating window on the content page.
[0091] In this step, a floating window launcher component can be set up on the application's playback page. Users can trigger the floating window launch event by clicking the component. The terminal responds to this event by displaying the application's content page and a content floating window on that page. The content page displays various application content items, which users can browse. The content floating window on that page plays the currently playing application content. This allows the floating window launch event to be triggered in, for example, a full-screen playback page. The terminal can then navigate to the parent content page of the playback page, where the content floating window continues playing the currently playing application content. This approach ensures that the user's viewing of the current application content is not interrupted, while also allowing them to browse other application content within the content page.
[0092] As an example, combined Figure 5 A floating window launch component 511 can be set in the application's playback page 510. Users can trigger a floating window launch event by clicking on the floating window launch component 511. The terminal responds to the floating window launch event by displaying the application's content page 520 and a content floating window on the content page 520. The content page displays the application content of the application (such as application content 1 to 4, etc.), and the content floating window plays the currently playing application content on the playback page 510.
[0093] In an exemplary embodiment, further, in step S402, in response to a floating window launch event in the application, the application's content page is displayed. After displaying the content floating window on the content page, the above method may further include:
[0094] In response to a selection of application content on the content page, the application content displayed in the content pop-up is switched to the target application content while the content page remains displayed. The target application content is the application content selected on the content page.
[0095] In this embodiment, the user can browse various application content on the content page and simultaneously watch or listen to application content playing in the content floating window. The user can then select a specific application on the content page by clicking on it. In response to this selection, the terminal can switch the application playing in the content floating window to the target application while maintaining the displayed content page. This target application is the one selected by the user on the content page. Therefore, when the user clicks to browse the target application content (e.g., a video) on the content page, the terminal can load the target application content into the content floating window for playback without redirecting to the next playback page, thus maintaining the display of the content page. This allows the user to continue browsing the application content on the content page while simultaneously satisfying their need to watch or listen to the target application content.
[0096] As an example, combined Figure 6 Users can browse the various application content on content page 520, and watch or listen to the application content playing in the content floating window. Users can trigger selection operations such as clicking on application content 3 in content page 520. The terminal responds to the selection operation by switching the application content playing in the content floating window to application content 3 and keeping content page 520 displayed.
[0097] In an exemplary embodiment, based on the above embodiments, if the starting direction of the sliding operation in step S302 is not a movement trigger direction, then switching the application content played in the content floating window according to the sliding direction of the sliding operation may include:
[0098] If the starting direction of the swipe operation is not a movement trigger direction, then the application content played in the content floating window will be switched according to the swipe direction and the application content in the content page.
[0099] In this embodiment, users can browse various application content on the content page and simultaneously watch and listen to application content playing in the content floating window. Users can trigger selection operations such as clicking on application content on the content page. In response to this selection operation, the terminal can switch the application content playing in the content floating window to the target application content while maintaining the displayed content page. The target application content is the application content selected by the user on the content page. When a user selects an application content on the content page and plays it in the content floating window, and then triggers a swipe operation within the content floating window with a starting direction other than the movement trigger direction, the terminal will switch the application content playing in the content floating window based on the swipe direction and the various application content on the content page. That is, the terminal will determine the application content to be switched from among the various application content on the content page and play it in the content floating window. Thus, the various application content on the content page can be presented as a playlist within the content floating window, allowing users to continue playing even when temporarily leaving the content page by triggering swipe operations within the content floating window.
[0100] In an exemplary embodiment, further, the switching of the application content played in the content floating window according to the sliding direction of the sliding operation and the application content in the content page in the above embodiment may include:
[0101] When the swipe operation is performed in the first swipe direction, the target application content played in the content pop-up window is switched to the previous application content of the target application content in the content page; when the swipe operation is performed in the second swipe direction, the target application content played in the content pop-up window is switched to the next application content of the target application content in the content page.
[0102] In this embodiment, application content from the content page can be sequentially loaded into a content floating window for playback by triggering the first and second sliding directions. Specifically, assuming the first sliding direction is upward and the second sliding direction is downward, when the sliding direction is upward, the target application content played in the content floating window is switched to the application content preceding the target application content on the content page, i.e., the application content ranked before the target application content on the content page. When the sliding direction is downward, the target application content played in the content floating window is switched to the next application content on the content page, and so on. The application content played in the content floating window can be sequentially switched among the various applications on the content page using upward and downward sliding operations. As an example, combined with... Figure 6 and Figure 7Users can browse the various application content on content page 520 and watch or listen to the application content playing in the content floating window. Users can trigger selection operations such as clicking on application content 3 in content page 520. The terminal responds to the selection operation by switching the application content playing in the content floating window to application content 3 and keeping content page 520 displayed. At this time, triggering an upward swipe operation in the content floating window can switch the application content playing in the content floating window to application content 2. When the application content playing in the content floating window is application content 3, triggering a downward swipe operation in the content floating window can switch the application content playing in the content floating window to application content 4.
[0103] In an exemplary embodiment, after displaying the content floating window on the application page of the application in step S301, the above method may further include:
[0104] In response to the app's pop-up exit event, display the playback page in the app; the content played on the playback page is the app content that was played before the pop-up exited.
[0105] In this embodiment, the floating window exit event refers to an event triggered within the application to exit the content floating window. Similar to the floating window launch event, the floating window exit event can be triggered in various ways, and the specific triggering method is not limited here. For example, a floating window exit component (a component for exiting the floating window) can be displayed in the application. The user can trigger the floating window exit event by clicking this component. Alternatively, a preset voice command can be included in the application, allowing the user to trigger the event by inputting the preset voice command. A preset gesture command can also be included, allowing the user to trigger the event by inputting the preset gesture command on the application's interface. Specifically, after displaying the content floating window on the application page, the user can trigger the floating window exit event. In response, the terminal can display a playback page (which can be full-screen or non-full-screen) within the application, playing the application content that was playing before the content floating window exited. Therefore, when a user needs to view the application content playing in the content floating window on the playback page, they can trigger the floating window exit event to display the playback page and play the application content on the terminal. As an example, combined with... Figure 8 After displaying the content floating window on the application page 520, a floating window exit component 801 can be displayed in the content floating window. Users can trigger the floating window exit event by clicking on the floating window exit component 801. In response to the floating window exit event, the terminal can display a playback page 510 (which can be full screen) in the application, which plays the application content that was playing before the content floating window exited.
[0106] In an exemplary embodiment, after displaying a content floating window on the application page in response to the floating window launch event in the application in step S301, the above method may further include the following steps:
[0107] In response to a drag operation triggered at the edge of the content pop-up, the size of the content pop-up is adjusted according to the drag operation.
[0108] In this embodiment, all edges of the content floating window, or one or more specific corner markers (such as the lower left corner) of the edges, can be set to be draggable by the user. This dragging operation can be used to adjust the size of the content floating window, allowing the size to be adjusted according to the user's needs and enriching the interaction methods of the content floating window. Specifically, the user can trigger a dragging operation at the edge of the content floating window, and the terminal responds to this dragging operation by controlling the size of the content floating window to adjust accordingly. For example, the size of the content floating window can be enlarged or reduced proportionally. Specifically, the terminal can dynamically redraw the width and height of the content floating window according to the direction of the dragging operation, achieving stepless proportional scaling of the content floating window's size. As an example, combined with... Figure 9 After the content floating window is displayed on the application page 520, users can adjust the size of the content floating window by dragging the lower left corner of the content floating window.
[0109] In an exemplary embodiment, after displaying a content floating window on the application page in response to the floating window launch event in the application in step S301, the above method may further include the following steps:
[0110] Display the floating window control component in the content floating window, or hide the floating window control component in the content floating window.
[0111] In this embodiment, after displaying the content floating window on the application page, a floating window control component can be displayed within the content floating window. This allows users to directly control the content floating window using the floating window control component. Alternatively, the floating window control component can be hidden within the content floating window to avoid obscuring the application content playing within it. The floating window control component refers to various components used to control the floating window, which may include, but are not limited to: a floating window closing component (used to close the floating window and completely end playback), a floating window exit component (used to exit the floating window; the application content played before exiting can be played on the playback page, which can be full-screen or non-full-screen), a play / pause component (used to pause or resume playback of application content), a progress control component (used to control the playback progress of application content), and a size adjustment component (which can be placed at the edge or corner of the floating window to adjust its size). In a specific implementation, the content floating window can include a content rendering layer and a functional control layer. The functional control layer is located above the video rendering layer. The content rendering layer is used to play application content, and the functional control layer is used to display various floating window control components. As an example, combined with... Figure 10 For content floating window 1000, content floating window 1000 can display floating window closing component 1001 in the upper left corner, floating window exit component 801 in the upper right corner, play / pause component 1002 in the center area, etc.
[0112] In some exemplary embodiments, the above method may further include the following steps:
[0113] If the floating window control component is displayed in the content floating window, and no operation triggered on the content floating window is detected within the target duration, the floating window control component will be hidden.
[0114] In this embodiment, combined with Figure 11 When displaying floating window control components such as floating window close component 1001, floating window exit component 801, and play / pause component 1002 in the content floating window 1000, it is possible to detect whether there is an operation triggered by the content floating window (such as a click triggered by the content floating window). If no operation triggered by the content floating window is detected within a target duration (which can be preset, such as 3 seconds), the terminal can hide these floating window control components. Specifically, the function control layer can be made to automatically fade away, thereby hiding the floating window control components and avoiding interference with the user's viewing of the application content played in the content floating window 1000.
[0115] In some exemplary embodiments, the above method may further include the following steps:
[0116] When the floating window control component is displayed in the content floating window, if a swipe operation is detected whose starting direction is not a movement trigger direction, the floating window control component is hidden.
[0117] In this embodiment, combined with Figure 12 When displaying floating window control components such as floating window close component 1001, floating window exit component 801, and play / pause component 1002 in the content floating window 1000, if a sliding operation with a starting direction that is not a movement trigger direction is detected in the content floating window, that is, the application content played in the content floating window 1000 needs to be switched, the floating window control components can be hidden to avoid obstructing or interfering with the switching of application content.
[0118] In one exemplary embodiment, the above method may further include the following steps:
[0119] If the floating window control component is hidden in the content floating window, and a component wake-up operation triggered by the content floating window is detected, the floating window control component will be displayed in the content floating window.
[0120] In this embodiment, combined with Figure 13 When the floating window control components are hidden within the content floating window 1000, it is possible to detect whether a component activation operation is triggered on the content floating window. This component activation operation is used to activate the floating window control components. For example, this component activation operation could be a click or other operation triggered on the content floating window. If a click or other component activation operation is detected, a functional control layer can be activated within the content floating window 1000 to display floating window control components such as the floating window close component 1001, the floating window exit component 801, and the play / pause component 1002, so that the user can use these floating window control components to control the content floating window 1000.
[0121] In one exemplary embodiment, the above method may further include the following steps:
[0122] If the floating window control component is hidden in the content floating window, and a swipe operation whose starting direction is not a movement trigger direction is detected, the floating window control component remains hidden.
[0123] In this embodiment, combined with Figure 14 When the floating window control component is hidden in the content floating window 1000, if a sliding operation is detected whose starting direction is not the movement trigger direction, that is, if it is necessary to switch the application content played in the content floating window 1000, the floating window control component can be kept or hidden to avoid obstructing or interfering with the switching of application content.
[0124] In an exemplary embodiment, after displaying a content floating window on the application page in response to the floating window launch event in the application in step S301, the above method may further include the following steps:
[0125] If the behavior of using the content pop-up meets the operation guidance conditions, operation guidance information will be displayed in the content pop-up.
[0126] In this embodiment, after displaying a content floating window on the application page, it can be determined whether to display operation guidance information in the content floating window based on the user's usage behavior. This operation guidance information can be used to guide the operations required to use the functions supported by the content floating window. The functions supported by the content floating window can include various functions such as moving the content floating window, switching application content, and resizing. Operation guidance information can be set for one or more of these functions, and when the user's usage behavior meets the operation guidance conditions, the operation guidance information is displayed in the content floating window. For example, the user's usage behavior of the content floating window can include, but is not limited to, first use, first use after an update, non-first use, frequent use, occasional use, long-term inactivity, etc. Operation guidance conditions can be set, including but not limited to, first use, first use after an application update, and long-term inactivity. When the user's usage behavior of the content floating window meets the operation guidance conditions, the operation guidance information can be displayed in the content floating window. For example, combined with... Figure 15 After displaying the content floating window on the application page 510, when the user uses the content floating window for the first time, it can be determined that the user's behavior of using the content floating window meets the operation guidance conditions. By overlaying a mask and animation effects in the content floating window, operation guidance information such as "swipe up to switch to the next video" and "swipe down to return to the previous video" can be displayed. Operation guidance information such as "the edge of the floating window can be dragged to adjust the size" can also be displayed.
[0127] In one exemplary embodiment, the above method may further include the following steps:
[0128] Based on the frequency of use of the content pop-up, determine whether the usage behavior of the content pop-up meets the operation guidance conditions.
[0129] The solution in this embodiment can be used to determine whether a user's behavior regarding a content floating window meets the operation guidance conditions. In this embodiment, the frequency of user usage of the content floating window can be obtained, specifically the frequency of user usage within a target time period (e.g., the past six months). The usage frequency can include the number of uses and / or the usage frequency. The user's behavior regarding the content floating window can be determined to meet the operation guidance conditions based on the number of uses and / or the usage frequency. In some embodiments, the user's behavior can be determined to meet the operation guidance conditions when the number of uses is less than or equal to a threshold; it can also be determined when the number of uses is greater than a threshold and the usage frequency is less than or equal to a frequency threshold; and it can be determined when the user's behavior does not meet the operation guidance conditions when the number of uses is greater than a threshold and the usage frequency is greater than a frequency threshold.
[0130] In an exemplary embodiment, after displaying a content floating window on the application page in response to the floating window launch event in the application in step S301, the above method may further include the following steps:
[0131] In response to an application switching operation, pause the playback of application content in the content floating window; in response to an application switching back operation, resume the playback of application content in the content floating window or keep the playback of application content in the content floating window paused.
[0132] In this embodiment, considering that users may need to switch out of and back to the application, to prevent users from missing the application content playing in the content floating window, the playback of the application content in the content floating window is paused when the user switches out of the application, and automatically resumed when switching back to the application, or the playback of the application content in the content floating window remains paused so that the user can manually resume it. Specifically, after the content floating window is displayed on the application page, the user can trigger an application switch operation. This application switch operation can be used to switch from the application to the terminal's system interface, or from the application to another application. In response to the application switch operation, the playback of the application content in the content floating window is paused. Then, the user can trigger an application switch back operation. This application switch back operation can be used to switch back to the application from another application, or from the terminal's system interface. In response to the application switch back operation, the playback of the application content in the content floating window can be automatically resumed, or the playback of the application content in the content floating window can remain paused so that the user can manually resume it.
[0133] In an exemplary embodiment, step S301, which responds to a floating window launch event in the application by displaying a content floating window on the application page, may include:
[0134] In response to a floating window launch event in the application, if a system floating window is currently displayed, close the system floating window and display a content floating window on the application's application page.
[0135] In this embodiment, a system floating window may already be open on the terminal. A system floating window refers to a floating window implemented by directly calling the terminal's operating system's native floating window controls. Unlike system floating windows, the content floating window launched in this embodiment is implemented at the application layer rather than by calling the operating system's native floating window controls. Therefore, to ensure the playback of application content by the content floating window, if a system floating window is already displayed on the terminal when the floating window launch event is triggered in the application, that system floating window needs to be closed, and the content floating window needs to be displayed on the application's application page. This embodiment loads application content into a content floating window instead of a system floating window for playback, so that the interaction method with the content floating window is not limited by the operating system's native floating window controls, ensuring the efficiency of application content playback and browsing.
[0136] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.
[0137] Based on the same inventive concept, this application also provides a content playback processing apparatus for implementing the content playback processing method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more content playback processing apparatus embodiments provided below can be found in the limitations of the content playback processing method described above, and will not be repeated here.
[0138] In one exemplary embodiment, such as Figure 16 As shown, a content playback processing apparatus is provided, the apparatus 1600 may include:
[0139] The first response module 1601 is used to respond to a floating window launch event in the application and display a content floating window on the application page of the application; the content floating window is used to play the application content of the application;
[0140] The second response module 1602 is used to respond to a sliding operation triggered within the content floating window. If the starting direction of the sliding operation is a movement triggering direction, the module controls the content floating window to move with the sliding operation and maintains the application content playing in the content floating window. If the starting direction of the sliding operation is not a movement triggering direction, the module switches the application content playing in the content floating window according to the sliding direction of the sliding operation. The movement triggering direction is the direction used to trigger the movement of the content floating window.
[0141] In an exemplary embodiment, the second response module 1602 is further configured to, in response to a sliding operation triggered within the content floating window, determine whether the starting direction belongs to the moving trigger direction based on whether the starting direction of the sliding operation and the moving trigger direction satisfy a direction matching condition.
[0142] In an exemplary embodiment, the second response module 1602 is further configured to, in response to a sliding operation triggered within the content floating window, determine whether the starting direction of the sliding operation and the moving trigger direction satisfy the direction matching condition based on the displacement component of the starting displacement of the sliding operation in the moving trigger direction.
[0143] In an exemplary embodiment, the second response module 1602 is further configured to determine that the starting direction of the sliding operation and the moving trigger direction satisfy the direction matching condition if the displacement component of the starting displacement of the sliding operation in the moving trigger direction is greater than the displacement component of the starting displacement of the sliding operation in the direction orthogonal to the moving trigger direction.
[0144] In an exemplary embodiment, the second response module 1602 is further configured to, in response to a sliding operation triggered within the content floating window, provide a movement trigger feedback signal when it is determined that the starting direction of the sliding operation belongs to the movement trigger direction; the movement trigger feedback signal is used to report that the movement of the content floating window has been triggered.
[0145] In an exemplary embodiment, the second response module 1602 is configured to, if the starting direction of the sliding operation does not belong to the movement triggering direction, switch the application content played in the content floating window to the first application content when the sliding direction of the sliding operation is the first sliding direction; and switch the application content played in the content floating window to the second application content when the sliding direction of the sliding operation is the second sliding direction; wherein the first application content and the second application content are the same or different.
[0146] In an exemplary embodiment, the first response module 1601 is configured to display a playback page for playing the current application content in the application; in response to a floating window launch event in the application, display the content page of the application, and display a content floating window on the content page; wherein, the content page displays various application contents of the application; and the current application content is played in the content floating window.
[0147] In an exemplary embodiment, the first response module 1601 is further configured to, in response to a selection operation of application content in the content page, switch the application content playing in the content floating window to the target application content and maintain the display of the content page; the target application content is the application content selected in the content page.
[0148] In an exemplary embodiment, the second response module 1602 is configured to switch the application content played in the content floating window according to the sliding direction of the sliding operation and the application content in the content page if the starting direction of the sliding operation does not belong to the movement trigger direction.
[0149] In an exemplary embodiment, the second response module 1602 is configured to, when the sliding direction of the sliding operation is a first sliding direction, switch the target application content played in the content floating window to the previous application content of the target application content in the content page; and when the sliding direction of the sliding operation is a second sliding direction, switch the target application content played in the content floating window to the next application content of the target application content in the content page.
[0150] In an exemplary embodiment, the first response module 1601 is further configured to display a playback page in the application in response to a floating window exit event in the application; the playback page plays the application content that was played before the content floating window exited.
[0151] In an exemplary embodiment, the first response module 1601 is further configured to control the size of the content floating window to adjust with the drag operation in response to a drag operation triggered at the edge of the content floating window.
[0152] In an exemplary embodiment, the first response module 1601 is further configured to display the floating window control component in the content floating window, or to hide the floating window control component in the content floating window.
[0153] In an exemplary embodiment, the first response module 1601 is further configured to, when the floating window control component is displayed in the content floating window, hide the floating window control component if no operation triggered on the content floating window is detected within a target duration; and / or, the first response module 1601 is further configured to, when the floating window control component is displayed in the content floating window, hide the floating window control component if a sliding operation with a starting direction not belonging to the movement trigger direction is detected.
[0154] In an exemplary embodiment, the first response module 1601 is further configured to, when the floating window control component is hidden in the content floating window, if a component wake-up operation triggered on the content floating window is detected, then display the floating window control component in the content floating window; and / or, the first response module 1601 is further configured to, when the floating window control component is hidden in the content floating window, if a sliding operation with a starting direction not belonging to the movement trigger direction is detected, then keep the floating window control component hidden.
[0155] In an exemplary embodiment, the first response module 1601 is further configured to display operation guidance information in the content floating window if the usage behavior of the content floating window meets the operation guidance conditions; the operation guidance information is used to guide the operation to be triggered when using the functions supported by the content floating window.
[0156] In an exemplary embodiment, the first response module 1601 is further configured to determine whether the usage behavior of the content floating window meets the operation guidance conditions based on the frequency of use of the content floating window.
[0157] In an exemplary embodiment, the first response module 1601 is further configured to, in response to an application-out operation of the application, pause the playback of the application content by the content floating window; and, in response to an application-back operation of the application, resume the playback of the application content by the content floating window or keep the playback of the application content by the content floating window paused.
[0158] In an exemplary embodiment, the first response module 1601 is further configured to respond to a floating window launch event in the application, close the system floating window if a system floating window is currently displayed, and display a content floating window on the application page of the application.
[0159] Each module in the aforementioned content playback processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.
[0160] In one exemplary embodiment, a computer device is provided, which may be a terminal, specifically a mobile terminal, and its internal structure diagram may be as follows. Figure 17 As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a content playback processing method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0161] Those skilled in the art will understand that Figure 17 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0162] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0163] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.
[0164] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0165] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0166] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0167] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0168] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A content playback processing method, characterized in that, The method includes: In response to a floating window launch event in the application, a content floating window is displayed on the application page of the application; the content floating window is used to play the application content of the application; In response to a swipe operation triggered within the content floating window, if the starting direction of the swipe operation is a movement trigger direction, the content floating window is controlled to move with the swipe operation and the application content playing in the content floating window is maintained; if the starting direction of the swipe operation is not a movement trigger direction, the application content playing in the content floating window is switched according to the swipe direction of the swipe operation; the movement trigger direction is the direction used to trigger the movement of the content floating window.
2. The method according to claim 1, characterized in that, The method further includes: In response to a swipe operation triggered within the content floating window, the starting direction is determined to be the movement trigger direction based on whether the starting direction of the swipe operation and the movement trigger direction satisfy a direction matching condition.
3. The method according to claim 2, characterized in that, The step of responding to a swipe operation triggered within the content floating window, and determining whether the starting direction belongs to the movement trigger direction based on whether the starting direction of the swipe operation and the movement trigger direction satisfy a direction matching condition, includes: In response to a sliding operation triggered within the content floating window, the system determines whether the starting direction of the sliding operation and the moving trigger direction satisfy the direction matching condition based on the displacement component of the starting displacement of the sliding operation in the moving trigger direction.
4. The method according to claim 3, characterized in that, The step of determining whether the starting direction of the sliding operation and the moving trigger direction satisfy the direction matching condition based on the displacement component of the starting displacement of the sliding operation in the moving trigger direction includes: If the displacement component of the initial displacement of the sliding operation in the movement trigger direction is greater than the displacement component of the initial displacement of the sliding operation in the direction orthogonal to the movement trigger direction, then the initial direction of the sliding operation and the movement trigger direction are determined to satisfy the direction matching condition.
5. The method according to any one of claims 1 to 4, characterized in that, The method further includes: In response to a swipe operation triggered within the content floating window, a movement trigger feedback signal is provided when it is determined that the starting direction of the swipe operation belongs to the movement trigger direction; the movement trigger feedback signal is used to indicate that movement of the content floating window has been triggered.
6. The method according to claim 1, characterized in that, If the starting direction of the sliding operation is not the movement trigger direction, then switching the application content played in the content floating window according to the sliding direction of the sliding operation includes: If the starting direction of the sliding operation is not the movement trigger direction, then if the sliding direction of the sliding operation is the first sliding direction, the application content played in the content floating window is switched to the first application content; if the sliding direction of the sliding operation is the second sliding direction, the application content played in the content floating window is switched to the second application content; wherein, the first application content and the second application content are the same or different.
7. The method according to claim 1, characterized in that, The method of displaying a content floating window on the application page in response to a floating window launch event in the application includes: Displays a playback page within the application that plays the content currently being used in the application; In response to a floating window launch event in the application, the application's content page is displayed, and a content floating window is displayed on the content page; wherein, the content page displays various application contents of the application; and the current application content is played in the content floating window.
8. The method according to claim 7, characterized in that, In response to a floating window launch event in the application, the application's content page is displayed. After the content floating window is displayed on the content page, the method further includes: In response to the selection operation of application content in the content page, the application content playing in the content floating window is switched to the target application content while the content page is still displayed; the target application content is the application content selected in the content page.
9. The method according to claim 8, characterized in that, If the starting direction of the sliding operation is not the movement trigger direction, then switching the application content played in the content floating window according to the sliding direction of the sliding operation includes: If the starting direction of the sliding operation is not the movement trigger direction, then the application content played in the content floating window is switched according to the sliding direction of the sliding operation and the application content in the content page.
10. The method according to claim 9, characterized in that, The step of switching the application content played in the content floating window according to the sliding direction of the sliding operation and the application content in the content page includes: When the sliding direction of the sliding operation is the first sliding direction, the target application content played in the content floating window is switched to the previous application content of the target application content in the content page; When the sliding direction of the sliding operation is the second sliding direction, the target application content played in the content floating window is switched to the next application content of the target application content in the content page.
11. The method according to claim 1, characterized in that, After displaying a content pop-up on the application page of the application, the method further includes: In response to a floating window exit event in the application, a playback page is displayed in the application; the playback page plays the application content that was played before the floating window exited.
12. The method according to claim 1, characterized in that, After displaying a content floating window on the application page in response to a floating window launch event in the application, the method further includes: In response to a drag operation triggered at the edge of the content floating window, the size of the content floating window is controlled to adjust according to the drag operation.
13. The method according to claim 1, characterized in that, After displaying a content floating window on the application page in response to a floating window launch event in the application, the method further includes: The floating window control components can be displayed in the content floating window, or the floating window control components can be hidden in the content floating window.
14. The method according to claim 13, characterized in that, The method further includes: If the floating window control component is displayed in the content floating window, and no operation triggered on the content floating window is detected within the target duration, then the floating window control component is hidden. And / or, When the floating window control component is displayed in the content floating window, if a sliding operation with a starting direction that does not belong to the movement trigger direction is detected, the floating window control component is hidden.
15. The method according to claim 13, characterized in that, The method further includes: If the floating window control component is hidden in the content floating window, and a component wake-up operation triggered by the content floating window is detected, then the floating window control component is displayed in the content floating window. And / or, If the floating window control component is hidden in the content floating window, and a sliding operation with a starting direction that does not belong to the movement trigger direction is detected, the floating window control component remains hidden.
16. The method according to claim 1, characterized in that, After displaying a content floating window on the application page in response to a floating window launch event in the application, the method further includes: If the usage behavior of the content floating window meets the operation guidance conditions, operation guidance information is displayed in the content floating window; the operation guidance information is used to guide the operation to be triggered when using the functions supported by the content floating window.
17. The method according to claim 16, characterized in that, The method further includes: Based on the frequency of use of the content floating window, determine whether the use of the content floating window meets the operation guidance conditions.
18. The method according to claim 1, characterized in that, After displaying a content floating window on the application page in response to a floating window launch event in the application, the method further includes: In response to an application switching operation, pause the playback of the application content in the content floating window; In response to an application switch-back operation, resume playback of the application content in the content pop-up window or keep the playback of the application content in the content pop-up window paused.
19. The method according to claim 1, characterized in that, The method of displaying a content floating window on the application page in response to a floating window launch event in the application includes: In response to a floating window launch event in the application, if a system floating window is currently displayed, the system floating window is closed, and a content floating window is displayed on the application page of the application.
20. A content playback processing device, characterized in that, The device includes: The first response module is used to respond to a floating window launch event in the application and display a content floating window on the application page of the application; the content floating window is used to play the application content of the application; The second response module is used to respond to a sliding operation triggered within the content floating window. If the starting direction of the sliding operation is a movement trigger direction, the module controls the content floating window to move with the sliding operation and maintains the application content playing in the content floating window. If the starting direction of the sliding operation is not a movement trigger direction, the module switches the application content playing in the content floating window according to the sliding direction of the sliding operation. The movement trigger direction is the direction used to trigger the movement of the content floating window.
21. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 19.
22. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 19.
23. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 19.