Methods and devices for redirecting from the list page to the playback page

By using a cross-process playback method, the playback interruption problem when navigating from the list page to the playback page was solved, achieving continuous playback and a seamless transition, thus improving the user experience.

CN117112947BActive Publication Date: 2026-01-06CHONGQING ZHAIMIAO TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311119002.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-30
Publication Date
2026-01-06
Estimated Expiration
2043-08-30

AI Technical Summary

Technical Problem

In existing technologies, when navigating from a list page to a playback page, video playback may be interrupted, resulting in discontinuous playback, delays, or even loss of playback status, thus affecting the user experience.

Method used

A cross-process playback method is adopted, in which the main process transmits the player information of the playlist page to the playback process through the cross-process connector, and switches the player in the playback process to ensure the continuity of playback.

Benefits of technology

It achieves a seamless transition to the playback page, avoiding loss of playback status and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117112947B_ABST
    Figure CN117112947B_ABST
Patent Text Reader

Abstract

This application discloses a method and apparatus for switching from a list page to a playback page, where playback is cross-process playback. The method includes: based on a user-triggered playback action of switching from a list page to a playback page, the main process transmits the player information of the list page to the playback process through a cross-process connector; the playback process determines the first player used by the list page based on the player information and switches the first player to a second player used by the playback page, so as to continue playback using the switched player. Using this invention, the main process transmits the player information of the list page to the playback process through a cross-process connector, and the playback process switches the first player used by the list page to the second player used by the playback page. Playback can continue using the original first player without creating a new player, ensuring a seamless transition to the playback page. Furthermore, the original first player already stores the playback state, so no data is lost, ensuring playback continuity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet technology, specifically to a method and apparatus for redirecting from a list page to a playback page. Background Technology

[0002] In video playback applications, users can view videos in a list page or click on a video to jump to the playback page. The current approach to navigating to the playback page involves creating a new player within the playback page, passing the playback data related to the selected video from the list to the playback page, which then resumes playback. However, this method may interrupt the currently playing video in the list page, giving users a feeling of discontinuous playback, delay, or even loss of playback status (such as playback position and buffering progress). This forces users to reload the video and find their previous viewing position, wasting time and disrupting the flow of playback.

[0003] Therefore, a method is needed to redirect from the list page to the playback page to solve the above problem. Summary of the Invention

[0004] In view of the above problems, embodiments of this application are proposed to provide a method and apparatus for jumping from a list page to a playback page to overcome the above problems or at least partially solve the above problems.

[0005] According to a first aspect of the embodiments of this application, a method for jumping from a list page to a playback page for playback is provided, wherein the playback is cross-process playback, the method comprising:

[0006] Based on the playback action triggered by the user, which jumps from the list page to the playback page, the main process transmits the player information of the list page to the playback process through the cross-process connector;

[0007] The playback process determines the first player used by the playlist page based on the player information, and switches the first player to the second player used by the playback page, so as to continue playback using the switched player.

[0008] Optionally, the method further includes:

[0009] In the main process, the first playback interface of the list page and the second playback interface of the playback page are set respectively; the first playback interface records the first player index value of the first player used by the list page; the second playback interface records the second player index value of the second player used by the playback page.

[0010] Optionally, based on the playback action triggered by the user navigating from the list page to the playback page, the main process transmits the player information of the list page to the playback process via the cross-process connector, further including:

[0011] Based on the playback action triggered by the user to jump from the list page to the playback page, the first playback interface of the list page in the main process passes the first player index value of the list page to the second playback interface of the playback page;

[0012] The second playback interface of the playback page passes the first player index value to the playback process through the cross-process connector.

[0013] Optionally, the playback process determines the first player used by the list page based on the player information, and switches the first player to the second player used by the playback page, so as to continue playback using the switched player. This further includes:

[0014] The playback process determines the first player used by the playlist page based on the index value of the first player on the playlist page.

[0015] Update the first player index value of the first player to the second player index value of the second player used by the playback page, so as to switch the first player to the second player used by the playback page.

[0016] Optionally, the method further includes:

[0017] After launching the application, a second player is created for the playback page and initialized; the initialization includes setting the playback notification parameters for the second player.

[0018] Optionally, the playback process determines the first player used by the list page based on the player information, and switches the first player to the second player used by the playback page, so as to continue playback using the switched player. This further includes:

[0019] The playback process uses the playback notification parameters of the second player to update the playback notification parameters of the first player.

[0020] Optionally, after the playback process determines the first player used by the list page based on the player information and switches the first player to the second player used by the playback page to continue playback using the switched player, the method further includes:

[0021] The playback process releases the original second player.

[0022] According to a second aspect of the embodiments of this application, an apparatus is provided for jumping from a list page to a playback page, wherein the playback is cross-process playback, and the apparatus includes:

[0023] The cross-process transfer module is suitable for transmitting the player information of the list page to the playback process through the cross-process connector when the user triggers the playback action of jumping from the list page to the playback page.

[0024] The switching module is suitable for the playback process to determine the first player used by the list page based on the player information, and switch the first player to the second player used by the playback page, so as to continue playback using the switched player.

[0025] According to a third aspect of the embodiments of this application, a computing device is provided, including: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other through the communication bus;

[0026] The memory is used to store at least one executable instruction, which causes the processor to perform the operation corresponding to the method of jumping from the list page to the playback page.

[0027] According to a fourth aspect of the present application, a computer storage medium is provided, the storage medium storing at least one executable instruction, the executable instruction causing a processor to perform an operation corresponding to the method described above for jumping from a list page to a playback page.

[0028] According to the method and apparatus for switching from a playlist page to a playback page provided in this application, the main process transmits the player information of the playlist page to the playback process through a cross-process connector. The playback process then switches the first player used by the playlist page to the second player used by the playback page. Playback can continue using the original first player without creating a new player, ensuring a seamless transition to the playback page. Furthermore, the original first player already stores the playback state, preventing data loss and ensuring playback continuity.

[0029] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description

[0030] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0031] Figure 1 A flowchart illustrating a method for navigating from a list page to a playback page according to an embodiment of this application is shown.

[0032] Figure 2 A flowchart illustrating a method for navigating from a list page to a playback page according to another embodiment of this application is shown.

[0033] Figure 3 A schematic diagram of a device for jumping from a list page to a playback page according to an embodiment of this application is shown;

[0034] Figure 4 A schematic diagram of the structure of a computing device according to an embodiment of this application is shown. Detailed Implementation

[0035] Exemplary embodiments of the present application will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this application will be thorough and complete, and will fully convey the scope of the present application to those skilled in the art.

[0036] First, the terms and concepts involved in one or more embodiments of this application will be explained.

[0037] AIDL: AIDL (Android Interface Definition Language) is a mechanism for cross-process communication on the Android platform. It allows different processes to exchange data and call methods through interfaces. AIDL defines the interface specifications for communication between clients and services, facilitating remote procedure calls and making them simpler and more reliable.

[0038] Figure 1 A flowchart illustrating a method for navigating from a list page to a playback page according to an embodiment of this application is shown, such as... Figure 1 As shown, the method includes the following steps:

[0039] In step S101, based on the playback action triggered by the user to jump from the list page to the playback page, the main process transmits the player information of the list page to the playback process through the cross-process connector.

[0040] In this embodiment, playback is cross-process playback. Specifically, the main process determines the corresponding playback data based on the playback service and passes it to the playback process through the cross-process connector. The player in the playback process then executes playback based on the playback data.

[0041] The list page can display multiple videos, which users can view in the list. Videos played on the list page are played by the playback process's player. When navigating to the playback page, the playback is still handled by the playback process's player, but the list page and playback page use different players. When a user selects any video on the list page and navigates to the playback page, the playback page needs to use a different player, causing the currently playing video on the list page to be interrupted. Playback resumes only after the playback page's player is created. To address this issue, this embodiment first, based on the user-triggered navigation from the list page to the playback page, has the main process transmit the list page's player information to the playback process via a cross-process connector. This allows the playback process to switch the list page's player to the playback page's player after receiving the list page's player information, ensuring a seamless transition from the list page to the playback page.

[0042] In step S102, the playback process determines the first player used by the list page based on the player information, and switches the first player to the second player used by the playback page, so as to continue playback using the switched player.

[0043] The playback actions on both the list page and the playback page are executed by the main process through the cross-process connector in the form of an AIDL interface, forwarded to the corresponding player in the playback process. When the two pages play videos, they use two different players: the list page uses the first player, and the playback page uses the second player. In this embodiment, the playback process can determine the first player used by the list page based on the player information and switch the first player to the second player used by the playback page. This allows playback to continue using the switched player without interruption, and eliminates the need to pass playback status and other data across processes, thus avoiding problems such as loss of playback status.

[0044] According to the method for switching from a playlist page to a playback page provided in this application, the main process transmits the player information of the playlist page to the playback process through a cross-process connector. The playback process then switches the first player used by the playlist page to the second player used by the playback page. Playback can continue using the original first player without creating a new one, ensuring a seamless transition to the playback page. Furthermore, the original first player already stores the playback state, preventing data loss and ensuring playback continuity.

[0045] Figure 2 A flowchart illustrating a method for navigating from a list page to a playback page according to an embodiment of this application is shown, such as... Figure 2 As shown, the method includes the following steps:

[0046] Step S201: In the main process, set the first playback interface of the list page and the second playback interface of the playback page respectively.

[0047] In the main process, different playback interfaces are set for the list page and the playback page. The list page uses the first playback interface, and the playback page uses the second playback interface. The first playback interface records the index value of the first player used by the first player on the list page, and the second playback interface records the index value of the second player used by the second player on the playback page. Different player index values ​​correspond to different players in the playback process. For example, if the index value of the first player is 1 and the index value of the second player is 2, 1 and 2 represent player 1 and player 2 in the corresponding playback process when using the player. The above is an example; specific settings can be configured according to the implementation situation and are not limited here.

[0048] In step S202, based on the playback action triggered by the user to jump from the list page to the playback page, the first playback interface of the list page in the main process passes the first player index value of the list page to the second playback interface of the playback page; the second playback interface of the playback page passes the first player index value to the playback process through the cross-process connector.

[0049] When a user selects any video in the list page, triggering a jump from the list page to the playback page, the first playback interface of the main process's list page passes the first player index value of the list page to the second playback interface of the playback page according to the playback operation. When jumping to the playback page, the second playback interface of the playback page passes the first player index value to the playback process through the AIDL interface of the cross-process connector.

[0050] In step S203, the playback process determines the first player used by the list page based on the first player index value of the list page; and updates the first player index value of the first player to the second player index value of the second player used by the playback page, so as to switch the first player to the second player used by the playback page.

[0051] The playback process can determine the first player used by the list page based on its index value. For example, if the index value is 1, the playback process can determine that the first player used by the list page is player 1. The second playback interface of the playback page can also pass the index value of the second player corresponding to its index value to the playback process. For example, if the index value is 2, it corresponds to player 2 in the playback process. Alternatively, the playback process may have a player manager that knows all the players and can switch between them. If the playback process determines the first player used by the list page, the manager can update its index value to match the index value of the second player used by the playback page. For instance, updating the index value of the first player to 2 means its current index value is 2, which matches the index value 2 of the second playback interface on the playback page. This switches the first player to the second player used by the playback page, allowing playback to continue using the switched first player. The first player after switching already contains the playback status of the videos on the list page, such as playback position and buffering progress. There is no need to pass this information across processes, so playback can continue according to the original playback status, ensuring playback continuity and providing a better user viewing experience.

[0052] Furthermore, since the playback page is the main playback scenario for the application, it can also play in the background. If the second player is only created and initialized when entering the playback page, it will result in a longer waiting time for the user. Therefore, in this embodiment, the second player used by the playback page is created and initialized after the application starts to improve the start-up speed of the playback page. Initialization includes setting the playback notification parameters of the second player, etc. Notification messages can be displayed in the notification bar, media control center, etc. when playing on the playback page, but not when playing on the list page. Therefore, when jumping to the playback page, the playback process also needs to update the playback notification parameters of the first player using the playback notification parameters of the second player so that the switched first player can support the display of notification messages in the notification bar, media control center, etc.

[0053] Step S204: Release the original second player during playback.

[0054] After switching, the playback page uses the switched player (the original first player), and the playback process can release the original second player used by the playback page.

[0055] According to the method for switching from a list page to a playback page provided in this application, the main process includes a first playback interface for the list page and a second playback interface for the playback page. When a user triggers a playback action to switch from the list page to the playback page, the main process passes the index value of the first player to the second playback interface of the playback page. The second playback interface of the playback page is then passed to the playback process through a cross-process connector. The playback process determines the first player used by the list page based on the index value of the first player and updates the index value of the first player to the index value of the second player used by the playback page, thereby switching the first player to the second player used by the playback page. Playback can continue using the original first player without creating a new player, ensuring a seamless transition to the playback page. Furthermore, the original first player already stores the playback state, preventing data loss and ensuring playback continuity. Further, the playback process updates the playback notification parameters of the first player using the playback notification parameters of the second player. After the switch, the first player can support displaying notification messages in the notification bar, media control center, etc., based on the playback notification parameters. After the switch, the playback process releases the original second player, and the playback page corresponds to a single player for playback.

[0056] Figure 3 This diagram illustrates the structure of a device for navigating from a list page to a playback page according to an embodiment of this application. Figure 3 As shown, the device includes:

[0057] The cross-process transmission module 310 is adapted to transmit the player information of the list page to the playback process through the cross-process connector based on the playback action triggered by the user to jump from the list page to the playback page.

[0058] The switching module 320 is adapted to determine the first player used by the list page based on the player information during the playback process, and switch the first player to the second player used by the playback page so as to continue playback using the switched player.

[0059] Optionally, the device further includes: a setting module 330, adapted to set the first playback interface of the list page and the second playback interface of the playback page respectively in the main process; wherein, the first playback interface records the first player index value of the first player used by the list page; and the second playback interface records the second player index value of the second player used by the playback page.

[0060] Optionally, the inter-process transfer module 310 is further adapted to:

[0061] Based on the playback action triggered by the user to jump from the list page to the playback page, the first playback interface of the list page in the main process passes the first player index value of the list page to the second playback interface of the playback page;

[0062] The second playback interface of the playback page passes the first player index value to the playback process through the cross-process connector.

[0063] Optionally, the switching module 320 is further adapted to:

[0064] The playback process determines the first player used by the playlist page based on the index value of the first player on the playlist page.

[0065] Update the first player index value of the first player to the second player index value of the second player used by the playback page, so as to switch the first player to the second player used by the playback page.

[0066] Optionally, the device further includes: an initialization module 340, adapted to create and initialize a second player used by the playback page after the application is launched; wherein the initialization includes setting the playback notification parameters of the second player.

[0067] Optionally, the switching module 320 is further adapted to:

[0068] The playback process uses the playback notification parameters of the second player to update the playback notification parameters of the first player.

[0069] Optionally, the device also includes a release module 350, adapted to release the original second player during playback.

[0070] The descriptions of the above modules refer to the corresponding descriptions in the method embodiments, and will not be repeated here.

[0071] According to the device for switching from a list page to a playback page provided in this application, the main process transmits the player information of the list page to the playback process through a cross-process connector. The playback process then switches the first player used on the list page to the second player used on the playback page. Playback can continue using the original first player without creating a new player, ensuring a seamless transition to the playback page. Furthermore, the original first player already stores the playback state, preventing data loss and ensuring playback continuity.

[0072] This application also provides a non-volatile computer storage medium storing at least one executable instruction that can execute the method of jumping from the list page to the playback page in any of the above method embodiments.

[0073] Figure 4 The diagram shows a structural schematic of a computing device according to an embodiment of the present application. The specific embodiments of the present application do not limit the specific implementation of the computing device.

[0074] like Figure 4As shown, the computing device may include: a processor 402, a communications interface 404, a memory 406, and a communications bus 408.

[0075] in:

[0076] The processor 402, communication interface 404, and memory 406 communicate with each other via communication bus 408.

[0077] Communication interface 404 is used to communicate with other network elements such as clients or other servers.

[0078] The processor 402 is used to execute program 410, specifically to execute the relevant steps in the above-described method embodiment for jumping from the list page to the playback page.

[0079] Specifically, program 410 may include program code that includes computer operation instructions.

[0080] Processor 402 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement this application. The computing device includes one or more processors, which may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0081] Memory 406 is used to store program 410. Memory 406 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0082] Specifically, program 410 can be used to cause processor 402 to execute the method of jumping from the list page to the playback page in any of the above method embodiments. The specific implementation of each step in program 410 can be found in the corresponding steps and units described in the embodiments of jumping from the list page to the playback page, and will not be repeated here. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the devices and modules described above can be referred to the corresponding process descriptions in the foregoing method embodiments, and will not be repeated here.

[0083] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used in conjunction with the teachings herein. The required structure for constructing such systems is apparent from the above description. Furthermore, this application is not directed to any particular programming language. It should be understood that the content of this application described herein can be implemented using various programming languages, and the above description of specific languages ​​is for the purpose of disclosing preferred embodiments of this application.

[0084] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of this application may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.

[0085] Similarly, it should be understood that, in order to simplify this application and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of this application, various features of this application are sometimes grouped together into a single embodiment, figure, or description thereof. However, this method of disclosure should not be construed as reflecting an intention that the claimed application requires more features than are expressly recited in each claim. Rather, as reflected in the following claims, inventive aspects lie in fewer than all features of a single foregoing disclosed embodiment. Therefore, the claims following the detailed description are hereby expressly incorporated into that detailed description, wherein each claim itself is a separate embodiment of this application.

[0086] Those skilled in the art will understand that modules in the device of the embodiments can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiments can be combined into a single module, unit, or component, and further, they can be divided into multiple sub-modules, sub-units, or sub-components. Except where at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all processes or units of any method or device so disclosed. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.

[0087] Furthermore, those skilled in the art will understand that although some embodiments herein include certain features included in other embodiments but not others, combinations of features from different embodiments are intended to be within the scope of this application and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.

[0088] The various component embodiments of this application can be implemented in hardware, or as software modules running on one or more processors, or a combination thereof. Those skilled in the art will understand that microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components according to this application. This application can also be implemented as a device or apparatus program (e.g., a computer program and computer program product) for performing part or all of the methods described herein. Such an implementation of this application can be stored on a computer-readable medium, or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.

[0089] It should be noted that the above embodiments are illustrative of this application and not restrictive, and those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. This application can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be construed as limiting the order of execution.

Claims

1. A method for playing a list page jumping to a play page, the playing being cross-process playing, the method comprising: setting a first play interface of the list page and a second play interface of the play page in a main process respectively; wherein the first play interface records a first player index value of a first player used by the list page; and the second play interface records a second player index value of a second player used by the play page; in response to a play action of the list page jumping to the play page triggered by a user, passing, by the first play interface of the list page of the main process, the first player index value of the list page to the second play interface of the play page; and passing, by the second play interface of the play page, the first player index value to a play process through a cross-process connector; determining, by the play process, the first player used by the list page according to the first player index value of the list page; updating the first player index value of the first player to the second player index value of the second player used by the play page, so as to switch the first player to the second player used by the play page; and releasing, by the play process, the original second player.

2. The method of claim 1, wherein, The method further comprises: after starting an application, creating and initializing the second player used by the play page; wherein the initializing comprises setting a play notification parameter of the second player.

3. The method of claim 2, wherein, The play process determines the first player used by the list page according to the player information, and switches the first player to the second player used by the play page, so as to continue playing by using the switched player, further comprising: updating, by the play process, the play notification parameter of the first player by using the play notification parameter of the second player. 4.An apparatus for playing a list page jumping to a play page, the playing being cross-process playing, the apparatus comprising: a module for setting a first play interface of the list page and a second play interface of the play page in a main process respectively; wherein the first play interface records a first player index value of a first player used by the list page; and the second play interface records a second player index value of a second player used by the play page; a cross-process passing module adapted to pass, by the first play interface of the list page of the main process, the first player index value of the list page to the second play interface of the play page in response to a play action of the list page jumping to the play page triggered by a user; and pass, by the second play interface of the play page, the first player index value to a play process through a cross-process connector; a switching module adapted to determine, by the play process, the first player used by the list page according to the first player index value of the list page; update the first player index value of the first player to the second player index value of the second player used by the play page, so as to switch the first player to the second player used by the play page; a module for releasing, by the play process, the original second player.

5. A computing device comprising: a processor, a memory, a communication interface, and a communication bus, the processor, the memory, and the communication interface being in communication with each other through the communication bus; The memory is configured to store at least one executable instruction, and the executable instruction is configured to enable the processor to perform operations corresponding to the method for enabling a list page to jump to a playing page for playing according to any one of claims 1-3.

6. A computer storage medium, the storage medium storing at least one executable instruction, and the executable instruction is configured to enable the processor to perform operations corresponding to the method for enabling a list page to jump to a playing page for playing according to any one of claims 1-3.

7. A computer program product, comprising at least one executable instruction, and the executable instruction is configured to enable the processor to perform operations corresponding to the method for enabling a list page to jump to a playing page for playing according to any one of claims 1-3.

Citation Information

Patent Citations

  • Video playing method and device

    CN106792089A

  • Network direct broadcast video loading method and terminal

    CN107920281A