Multimedia content playing method, apparatus, device, and storage medium

HK40093793BActive Publication Date: 2026-08-28TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
HK42023081863
Authority / Receiving Office
HK · HK
Patent Type
Patents
Current Assignee / Owner
Filing Date
2023-10-31
Publication Date
2026-08-28

AI Technical Summary

Technical Problem

When the application switches from a dynamic page to a non-dynamic page, the video on the dynamic page cannot maintain rendering on the non-dynamic page, causing the video to fail to play.

Method used

By switching components using containers, a second native container node is created in the node tree corresponding to the non-dynamic page. The association between the content node and the first native container node is removed, and the association between the content node and the second native container node is established, thereby rendering and playing the target multimedia content in the non-dynamic page.

Benefits of technology

This allows the target multimedia content to continue rendering and playing in a non-dynamic page after page switching, thus improving the viewing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

This application provides a multimedia content playback method, apparatus, device, and storage medium, applicable to various scenarios such as cloud technology, intelligent transportation, maps, and in-vehicle systems. The method includes: playing multimedia content in a first dynamic page, where a first node tree of the first dynamic page includes content nodes corresponding to the multimedia content and a first native container node associated with the content nodes. In response to a page switching operation triggered in the first dynamic page, a second native container node is created in a second node tree of a non-dynamic page using a container switching component. The association between the content node and the first native container node is then severed, and the association between the content node and the second native container node is established. The content node is rendered in the non-dynamic page using the second native container node, and the rendered multimedia content is played, enabling continued rendering and playback of multimedia content after switching to a non-dynamic page, thereby improving the viewing experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a multimedia content playback method, apparatus, device and storage medium. Background Technology

[0002] With the development of internet technology, the types and number of applications are increasing, and their functions are becoming more and more abundant. In order to meet the development needs of different application functions within an application, under relevant technologies, a hybrid development approach using native application frameworks and cross-platform dynamic frameworks is adopted. This allows the application to include both dynamic pages developed using cross-platform dynamic frameworks and non-dynamic pages (also known as native pages) developed using native application frameworks.

[0003] For video playback functionality within an application, if videos need to be played on dynamic pages, corresponding content nodes must be embedded within those pages. Because these embedded content nodes are heavily reliant on a cross-platform dynamic framework and cannot exist independently of the dynamic page, when the application switches from a dynamic page to a non-dynamic page, the video on the dynamic page cannot maintain rendering on the non-dynamic page, thus preventing playback. Summary of the Invention

[0004] This application provides a multimedia content playback method, apparatus, device, and storage medium, which allows the video on the dynamic page to continue playing on the non-dynamic page when switching from a dynamic page to a non-dynamic page, thereby improving the viewing experience.

[0005] On one hand, embodiments of this application provide a multimedia content playback method, the method comprising:

[0006] Play target multimedia content in the first dynamic page of the target application, wherein the first node tree corresponding to the first dynamic page includes a content node corresponding to the target multimedia content and a first native container node associated with the content node;

[0007] In response to a page switching operation triggered in the first dynamic page, a non-dynamic page is created;

[0008] By using the container switching component, a second native container node is created in the second node tree corresponding to the non-dynamic page, and the association between the content node and the first native container node is removed, and the association between the content node and the second native container node is established.

[0009] The content node is rendered in the non-dynamic page using the second native container node, and the rendered target multimedia content is played.

[0010] On one hand, embodiments of this application provide a multimedia content playback device, the device comprising:

[0011] The playback module is used to play target multimedia content in the first dynamic page of the target application. The first node tree corresponding to the first dynamic page includes a content node corresponding to the target multimedia content and a first native container node associated with the content node.

[0012] A switching module is used to create a non-dynamic page in response to a page switching operation triggered in the first dynamic page.

[0013] The processing module is used to create a second native container node in the second node tree corresponding to the non-dynamic page by switching the container component, and to remove the association between the content node and the first native container node, and to establish the association between the content node and the second native container node.

[0014] The playback module is used to render the content node in the non-dynamic page through the second native container node, and play the rendered target multimedia content.

[0015] Optionally, the playback module is specifically used for:

[0016] Using the second native container node, the content node is rendered in the non-dynamic page according to the display attribute information, and the target multimedia content is played in the non-dynamic page according to the display attribute information.

[0017] Optionally, the display attribute information includes a minimized video playback mode and a first display position, and the target multimedia content is a target video;

[0018] The playback module is specifically used for:

[0019] The target video is played in the minimized playback mode at the first display position on the non-dynamic page.

[0020] Optionally, the playback module is specifically used for:

[0021] In response to a playback operation triggered in the target application for the target multimedia content, the first dynamic page is created;

[0022] Using the container switching component, based on the playback source information of the target multimedia content, the content node and the first native container node are created in the first node tree;

[0023] The content node is rendered in the first dynamic page using the first native container node, and the rendered target multimedia content is played.

[0024] Optionally, the switching module is further configured to:

[0025] After rendering the content node in the non-dynamic page and playing the rendered target multimedia content through the second native container node, in response to the page restoration operation triggered in the non-dynamic page, the first dynamic page is created based on the page restoration information saved in the container switching component.

[0026] The processing module is also used for:

[0027] The container switching component creates the first native container node in the first node tree, removes the association between the content node and the second native container node, and establishes the association between the content node and the first native container node.

[0028] The playback module is also used for:

[0029] The content node is rendered in the first dynamic page using the first native container node, and the rendered target multimedia content is played.

[0030] Optionally, the processing module is further configured to:

[0031] By using the container switching component, based on the playback source information of the target multimedia content, before creating the content node and the first native container node in the first node tree, the first dynamic page is parsed to obtain the multimedia tags corresponding to the target multimedia content;

[0032] The playback source information of the target multimedia content and the page restoration information of the first dynamic page are obtained from the multimedia tag, and the playback source information and the page restoration information are transmitted to the container switching component.

[0033] Optionally, the processing module is further configured to:

[0034] After creating the content node and the first native container node in the first node tree based on the playback source information of the target multimedia content through the container switching component, the target index information of the content node is obtained based on the target position of the content node in the first node tree, and the target index information of the content node is stored in the container switching component.

[0035] The processing module is also used for:

[0036] Before disconnecting the content node from the first native container node and establishing the association between the content node and the second native container node, the content node is obtained from the first node tree by the container switching component based on the target index information.

[0037] Optionally, the switching module is further configured to:

[0038] In response to a page switching operation triggered in the first dynamic page, a second dynamic page is created;

[0039] The playback module is also used for:

[0040] The content node is rendered in the second dynamic page using the first native container node, and the rendered target multimedia content is played.

[0041] Optionally, the target multimedia content is a target video;

[0042] The playback module is specifically used for:

[0043] Using the first native container node, the content node is rendered in the second dynamic page according to the minimized video playback mode and the second display position;

[0044] The target video, rendered and displayed in the second display position on the second dynamic page, is played in the minimized video playback mode.

[0045] On one hand, embodiments of this application provide a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the above-described multimedia content playback method.

[0046] On one hand, embodiments of this application provide a computer-readable storage medium storing a computer program executable by a computer device, which, when run on the computer device, causes the computer device to perform the steps of the multimedia content playback method described above.

[0047] On one hand, embodiments of this application provide a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions, which, when executed by a computer device, cause the computer device to perform the steps of the above-described multimedia content playback method.

[0048] In this embodiment, when a switch from a first dynamic page to a non-dynamic page is triggered, a second native container node is created in the second node tree corresponding to the non-dynamic page through the container switching component. The association between the content node and the first native container node is removed, and the association between the content node and the second native container node is established. Therefore, when rendering the non-dynamic page based on the second node tree, the content node can be rendered in the non-dynamic page through the second native container node, so as to continue rendering and playing the target multimedia content in the non-dynamic page after the page switch, thereby improving the viewing experience of the object. Attached Figure Description

[0049] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0050] Figure 1 A schematic diagram of a system architecture provided for an embodiment of this application;

[0051] Figure 2 A schematic diagram of a workbench page provided in an embodiment of this application;

[0052] Figure 3 An illustration of a learning page provided in an embodiment of this application. Figure 1 ;

[0053] Figure 4 A schematic diagram of a video playback page provided in an embodiment of this application;

[0054] Figure 5 An illustration of a learning page provided in an embodiment of this application. Figure 2 ;

[0055] Figure 6 A schematic diagram of a workbench page provided in an embodiment of this application. Figure 2 ;

[0056] Figure 7 A flowchart illustrating a multimedia content playback method provided in this application embodiment. Figure 1 ;

[0057] Figure 8 A schematic diagram of a cross-platform dynamic framework provided in an embodiment of this application;

[0058] Figure 9 This is a schematic diagram of the structure of a first node tree provided in an embodiment of this application;

[0059] Figure 10 A schematic diagram illustrating a node tree switching process provided in an embodiment of this application;

[0060] Figure 11a A schematic diagram illustrating a page switching process provided in an embodiment of this application;

[0061] Figure 11b A schematic diagram illustrating a page recovery process provided in an embodiment of this application;

[0062] Figure 12 A flowchart illustrating a multimedia content playback method provided in this application embodiment. Figure 2 ;

[0063] Figure 13 This is a schematic diagram of the structure of a multimedia content playback device provided in an embodiment of this application;

[0064] Figure 14 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0065] To make the objectives, technical solutions, and beneficial effects of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0066] For ease of understanding, the terms used in the embodiments of this invention are explained below.

[0067] Cross-platform dynamic technology, also known as cross-platform dynamic framework, has become a hot technology in mobile application development in recent years. "Cross-platform" means that a single application codebase can run on multiple mobile devices (iOS / Android, etc.); "dynamic" means that updated application code can be dynamically downloaded to mobile devices to update the application, thus eliminating the need for new versions of the application to update its functionality. In practical applications, cross-platform dynamic technologies include H5 (dynamically interpreted JavaScript code + cross-platform WebView rendering), mini-programs (H5 combined with native system controls for rendering), and React Native (dynamically interpreted JavaScript code + native control rendering), among others.

[0068] Flutter: A cross-platform mobile UI (interface) framework. Its biggest feature is that all UI elements in Flutter are self-drawn (rather than using the respective system's application programming interfaces or controls), thus ensuring identical UI visuals on Android and iOS. Furthermore, Flutter boasts excellent rendering performance, with smoothness comparable to native system controls, making it widely used in cross-platform mobile solutions.

[0069] Video Minimization: Playing a video in a minimized mode is also commonly known as a video pop-up. For example, when a video is playing on the first page of an application, in response to a page switching operation, the content of the second page is displayed, while the video continues to play in a minimized mode in a corner of the second page, achieving a good experience of browsing the content of the second page and the video simultaneously.

[0070] Support for embedded native control technology: This means that the cross-platform dynamic framework supports passing in a native control, which is then used as a base rendering node and arranged and rendered together with other dynamic nodes. The size and position of this native control on the dynamic page can be specified by the dynamic page developer. It can also override other dynamic components and interact with the page, such as responding to list scrolling, gestures, and touch operations.

[0071] Dynamic pages: Pages developed using a cross-platform dynamic framework.

[0072] Non-dynamic pages: Pages developed using native application frameworks. Non-dynamic pages can also be called native pages.

[0073] Node tree: A tree structure used to represent XML documents, consisting of multiple nodes with hierarchical relationships between them, described using parent, child, and sibling nodes. Common node trees include DOM trees and Flutter widget trees.

[0074] Container nodes: A control node or view node can be wrapped in a parent node, which determines the rendering position, size, and lifecycle of the control or view node. Simultaneously, a control or view node can also be re-rendered by switching from one parent node to another. Such a parent node is called a container node. Examples include the div node in HTML and the UIView node in native iOS controls.

[0075] The design concept of the embodiments of this application will be introduced below.

[0076] To meet the development needs of different application functions within an application, the relevant technologies employ a hybrid approach of native application frameworks and cross-platform dynamic frameworks for application development. This results in an application that includes both dynamic pages developed using the cross-platform dynamic framework and non-dynamic pages (also known as native pages) developed using the native application framework.

[0077] For video playback functionality within an application, if videos need to be played on dynamic pages, corresponding content nodes must be embedded within those pages. Because these embedded content nodes are heavily reliant on a cross-platform dynamic framework and cannot exist independently of the dynamic page, when the application switches from a dynamic page to a non-dynamic page, the video on the dynamic page cannot maintain rendering on the non-dynamic page, thus preventing playback.

[0078] In view of this, this application provides a multimedia content playback method, which includes: playing target multimedia content in a first dynamic page of a target application, wherein a first node tree corresponding to the first dynamic page includes a content node corresponding to the target multimedia content and a first native container node associated with the content node. In response to a page switching operation triggered in the first dynamic page, a non-dynamic page is created. Then, through a container switching component, a second native container node is created in a second node tree corresponding to the non-dynamic page, and the association between the content node and the first native container node is removed, and the association between the content node and the second native container node is established. Then, through the second native container node, the content node is rendered in the non-dynamic page, and the rendered target multimedia content is played.

[0079] In this embodiment, when a switch from a first dynamic page to a non-dynamic page is triggered, a second native container node is created in the second node tree corresponding to the non-dynamic page through the container switching component. The association between the content node and the first native container node is removed, and the association between the content node and the second native container node is established. Therefore, when rendering the non-dynamic page based on the second node tree, the content node can be rendered in the non-dynamic page through the second native container node, so as to continue rendering and playing the target multimedia content in the non-dynamic page after the page switch, thereby improving the viewing experience of the object.

[0080] refer to Figure 1 This is a system architecture diagram applicable to the embodiments of this application. The system architecture includes at least terminal device 101 and server 102. The number of terminal devices 101 can be one or more, and the number of servers 102 can also be one or more. This application does not specifically limit the number of terminal devices 101 and servers 102.

[0081] The terminal device 101 has a pre-installed target application with multimedia content playback capabilities. The target application can be a client application, a mini-program application, etc. Specifically, the target application can be an instant messaging application, an office application, a short video application, a live streaming application, a map application, etc. The terminal device 101 can be a smartphone, tablet computer, laptop computer, desktop computer, smart home appliance, smart voice interaction device, smart vehicle device, aircraft, etc., but is not limited to these.

[0082] Server 102 is the backend server of the target application. Server 102 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. Terminal device 101 and server 102 can be connected directly or indirectly through wired or wireless communication, which is not limited herein.

[0083] The multimedia content playback method in this application embodiment can be executed by the terminal device 101, or it can be executed by the interaction between the terminal device 101 and the server 102.

[0084] Taking the multimedia content playback method in the embodiments of this application executed by terminal device 101 as an example, it includes the following steps:

[0085] Terminal device 101 plays target multimedia content in the first dynamic page of the target application, wherein the first node tree corresponding to the first dynamic page includes a content node corresponding to the target multimedia content and a first native container node associated with the content node.

[0086] In response to a page switching operation triggered in the first dynamic page, terminal device 101 creates a non-dynamic page. Using a container switching component, it creates a second native container node in the second node tree corresponding to the non-dynamic page, removes the association between the content node and the first native container node, and establishes the association between the content node and the second native container node. Then, using the second native container node, it renders the content node in the non-dynamic page and plays the rendered target multimedia content.

[0087] In practical applications, the multimedia content playback method in this application embodiment can be applied to scenarios where multimedia content is played in various applications such as instant messaging applications, office applications, short video applications, live streaming applications, and map applications.

[0088] For example, to play videos in an office application, see [link to relevant documentation]. Figure 2 This is a workbench page for an office application provided in an embodiment of this application. The workbench page is a non-dynamic page.

[0089] In response to a view operation triggered by the "Learning Corner" icon on the workbench page, the user switches from the workbench page to the learning page, which appears as follows: Figure 3 As shown, the learning page is a dynamic page, which includes course video 1, course video 2, course video 3, and course video 4.

[0090] In response to a playback action triggered on course video 1 on the learning page, the page switches to the video playback page, which appears as follows: Figure 4 As shown, the video playback page is a dynamic page. The video playback page includes a video playback area 401, in which course video 1 is played, and other areas display relevant information about course video 1.

[0091] In response to a page switching action triggered on the video playback page, the user switches from the video playback page to the learning page. This page switching action can be achieved by clicking the minimize button in the upper left corner of the video playback page. At this point, the learning page appears as follows: Figure 5 As shown, the video is played in a minimized playback mode in the lower right corner of the learning page, that is, the course video 1 is played in the minimized window 501. The minimized window 501 also includes a page restore button in the upper left corner and a close button in the upper right corner.

[0092] In response to a page switching action triggered on the learning page, the user switches from the learning page to the workbench page. At this time, the workbench page appears as follows: Figure 6 As shown, the video is played in the minimized playback mode in the lower right corner of the workbench page, that is, the course video 1 is played in the minimized window 601. The minimized window 601 also includes a page restore button in the upper left corner and a close button in the upper right corner.

[0093] In response to a page restore operation triggered in the workbench page, switching from the workbench page to the video playback page can be achieved by clicking the page restore button in the minimized window 601. At this time, the video playback page appears as follows: Figure 4 As shown, the video playback page includes a video playback area 401, in which course video 1 is played, and in other areas, relevant information about course video 1 is displayed.

[0094] based on Figure 1 The system architecture diagram shown in this application illustrates a flowchart of a multimedia content playback method. Figure 7As shown, the process of this method is executed by a computer device, which can be... Figure 1 The terminal device 101 and / or server 102 shown include the following steps:

[0095] Step S701: Play the target multimedia content on the first dynamic page of the target application.

[0096] Specifically, the first node tree corresponding to the first dynamic page includes content nodes corresponding to the target multimedia content, and a first native container node associated with the content node. The content node is also a native node. The multimedia content can be video, audio, etc., and correspondingly, the content node can be a video node, audio node, etc.

[0097] In this embodiment, the target application includes a cross-platform dynamic framework, which is used to implement the relevant functions of dynamic pages. To embed native container nodes and content nodes, etc., into the dynamic pages, the cross-platform dynamic framework supports embedded native control technology.

[0098] In practical applications, cross-platform dynamic frameworks support embedded native control technologies such as same-layer rendering in mini-programs and PlatformView technology in the JS+Flutter framework. The following section provides a detailed introduction to the JS+Flutter framework and its PlatformView technology.

[0099] Specifically, the JS+Flutte framework is a cross-platform dynamic framework, and its structural diagram is shown below. Figure 8 As shown, it includes: JS layer, cross-platform abstraction layer and Flutter layer.

[0100] The JS layer engine parses the dynamic JS / CSS code from developers and generates a node tree (DOM tree) within the JS layer. Then, a cross-platform abstraction layer converts the DOM tree into an abstract node tree, maps the abstract node tree to the Widget tree within the Flutter layer, and completes the rendering through the Flutter rendering framework.

[0101] The PlatformView technology in the JS+Flutter framework refers to: using the system's native rendering capabilities to render a single native node, obtaining the raw data from the graphics processing unit (GPU), and adding the obtained raw data to Flutter's own rendering process using GPU mapping, thereby achieving the effect of combining native nodes with Flutter's own node rendering, and thus enabling support for embedded native controls.

[0102] In the aforementioned JS+Flutter framework, the first node tree in this embodiment is a Flutter Widget tree, and the content nodes are native nodes. The content nodes and the first native container node are embedded into the first node tree using PlatformView technology. Therefore, when rendering the first node tree, the first native container node can be rendered accordingly, followed by the rendering of the content nodes, and the rendered target multimedia content is displayed on the first dynamic page.

[0103] Step S702: In response to a page switching operation triggered in the first dynamic page, a non-dynamic page is created.

[0104] Specifically, page switching operations can include clicks, double-clicks, swipes, etc. When creating a non-dynamic page, a corresponding second node tree is created. Since the non-dynamic page is a native page, the second node tree is a DOM tree.

[0105] Step S703: By switching the container component, a second native container node is created in the second node tree corresponding to the non-dynamic page, and the association between the content node and the first native container node is removed, and the association between the content node and the second native container node is established.

[0106] Specifically, the container switching component pre-registers page rollout notifications within the cross-platform dynamic framework. When the first dynamic page switches to a non-dynamic page, the container switching component receives the page rollout notification from the cross-platform dynamic framework. Since the non-dynamic page is a native page, the corresponding second node tree itself supports native nodes. Therefore, the container switching component can directly create a second native container node in the second node tree corresponding to the non-dynamic page. Then, it retrieves the content node from the first node tree, removes the association between the content node and the first native container node, and establishes the association between the content node and the second native container node, that is, switches the parent node of the content node from the first native container node to the second native container node.

[0107] For example, such as Figure 9 As shown, the first node tree corresponding to the first dynamic page is the Flutter Widget tree. Before the page switches, the first node tree includes the Widget root node, N Widget nodes, and the first native container node and video node embedded through PlatformView technology. The first native container node is the parent node of the video node.

[0108] See Figure 10In response to a page switching operation triggered in the first dynamic page, a non-dynamic page is created. Using a container switching component, a second native container node is created in the second node tree corresponding to the non-dynamic page. The association between the content node and the first native container node is severed, and the association between the content node and the second native container node is established. At this point, the first node tree does not include the video node, and the second node tree is a DOM tree, including the native root node, N native nodes, the second native container node, and the video node. The second native container node is the parent node of the video node.

[0109] Step S704: Render the content node in the non-dynamic page using the second native container node, and play the rendered target multimedia content.

[0110] Specifically, the second node tree is rendered according to the node tree rendering rules. When rendering the second native container node in the second node tree, the rendering of the content node is automatically triggered, and the rendered target multimedia content is displayed on the non-dynamic page.

[0111] In this embodiment, when a switch from a first dynamic page to a non-dynamic page is triggered, a second native container node is created in the second node tree corresponding to the non-dynamic page through the container switching component. The association between the content node and the first native container node is removed, and the association between the content node and the second native container node is established. Therefore, when rendering the non-dynamic page based on the second node tree, the content node can be rendered in the non-dynamic page through the second native container node, so as to continue playing the target multimedia content in the non-dynamic page after the page switch, thereby improving the viewing experience of the object.

[0112] Optionally, in step S701 above, the second native container node carries the display attribute information of the target multimedia content in the non-dynamic page. Through the second native container node, the content node is rendered in the non-dynamic page according to the display attribute information, and the target multimedia content is played in the non-dynamic page according to the display attribute information.

[0113] Specifically, the display attributes of the target multimedia content on a non-dynamic page can be preset, including display position, playback mode, display size, etc.

[0114] One possible implementation is that the target multimedia content is a target video, and the display attribute information includes the video minimized playback mode and the first display position.

[0115] During rendering, the content node is rendered in the non-dynamic page according to the minimized video playback mode and the first display position through the second native container node, and the target video is played in the first display position of the non-dynamic page according to the minimized video playback mode.

[0116] Taking multimedia content, specifically video, as an example, see [link to video content]. Figure 11a This is a schematic diagram of a page switching process in a video application provided in an embodiment of this application. The first dynamic page includes a video playback area 1101, in which a target video is played and in other areas, relevant information of the target video is displayed. The first dynamic page is in the form of a webpage and is loaded and displayed by a browser embedded in the video application.

[0117] In response to a page switching operation triggered in the first dynamic page, a non-dynamic page is displayed. At the first display position 1102 of the non-dynamic page, the target video is played in minimized video playback mode. The non-dynamic page is a native page, which is directly loaded and displayed through the video application.

[0118] In this embodiment of the application, when switching from a dynamic page to a non-dynamic page in the target application, the target video playing on the dynamic page can still be rendered on the non-dynamic page and played in a minimized video playback mode. This avoids the target video from obscuring the original content on the non-dynamic page, while allowing the user to continue watching the target video, thereby improving the user experience.

[0119] Optionally, in step S701 above, the embodiments of this application obtain the target multimedia content played in the first dynamic page at least in the following ways:

[0120] In response to a playback operation triggered by the target multimedia content in the target application, a first dynamic page is created. Then, using a container switching component, based on the playback source information of the target multimedia content, a content node and a first native container node are created in the first node tree. Finally, using the first native container node, the content node is rendered in the first dynamic page, and the rendered target multimedia content is played.

[0121] Specifically, a special multimedia tag is pre-registered with the cross-platform dynamic framework according to the embedding protocol of the dynamic framework. This embedding protocol includes the specific tag type. Developers can specify the use of this special multimedia tag in the corresponding dynamic page and specify the relevant parameters of the multimedia tag, such as playback source information, display position, display size, playback mode, page recovery information, etc.

[0122] In practical applications, after creating the first dynamic page, a cross-platform dynamic framework parses the page to obtain the multimedia tags corresponding to the target multimedia content. Then, the playback source information and page recovery information of the target multimedia content are retrieved from these tags and passed to the container switching component. Simultaneously, display attribute information such as display position, display size, and playback mode can also be passed to the container switching component.

[0123] In practice, page restoration information includes the identifier and path of the first dynamic page. For example, when the first dynamic page is an H5 page, the page restoration information is the Uniform Resource Locator (URL) of the H5 page. As another example, when the first dynamic page is a dynamic page within a mini-program, the page restoration information is the program ID and page path. And as yet another example, when the first dynamic page is a dynamic page within an application (APP), the page restoration information is the APP ID and page path.

[0124] After obtaining the playback source information of the multimedia content and the page restoration information of the first dynamic page, the playback source information and page restoration information are passed through to the container switching component via JavaScript. The container switching component stores the playback source information and page restoration information of the first dynamic page. Then, based on the playback source information of the target multimedia content, the container switching component creates a content node and a first native container node in the first node tree, and attaches the content node to the first native container node in the first node tree. The first native container node carries the display attribute information of the target multimedia content in the first dynamic page, such as the display position, display size, and playback mode.

[0125] During the rendering of the first node tree, according to the rendering rules of the node tree, when rendering the first native container node in the first node tree in the cross-platform dynamic framework, the node tree rendering process of the native rendering system will be automatically triggered. That is, according to the display attribute information of the content node, the content node under the first native container node is rendered, and then the target multimedia content obtained by rendering is presented in the first dynamic page according to the display attribute information.

[0126] In this embodiment, a native container node is embedded in the first node tree of the first dynamic page. By rendering the first native container node, the native content node is rendered in the first dynamic page, thereby ensuring that the target multimedia content corresponding to the content node is played normally in the first dynamic page.

[0127] One possible implementation involves using a container switching component to create a content node and a first native container node in the first node tree based on the playback source information of the target multimedia content. Then, based on the target position of the content node in the first node tree, the target index information of the content node is obtained and stored in the container switching component, meaning the container switching component retains a weak reference to the content node. This way, when switching from a first dynamic page to a non-dynamic page, the container switching component can retrieve the content node from the first node tree based on the target index information. Then, the association between the content node and the first native container node is broken, and the association between the content node and the second native container node is established. At this point, the target index information of the content node stored in the container switching component can be updated to the target position of the content node in the second node tree.

[0128] Furthermore, the second native container node carries the display attribute information of the target multimedia content in the non-dynamic page. This display attribute information can be the same as or different from the display attribute information of the target multimedia content in the first dynamic page. Then, the second node tree is rendered according to the node tree rendering rules. When rendering the second native container node, the content node is automatically triggered to render according to the display attribute information, and the rendered target multimedia content is displayed in the non-dynamic page according to the displayed attribute information.

[0129] In this embodiment, the target index information of the content node is obtained based on the target position of the content node in the first node tree, and the target index information of the content node is stored in the container switching component. Therefore, when switching pages, based on the target index information of the content node, the container switching component can quickly locate the position of the content node in the first node tree, separate the content node from the first native container node, and establish an association between the content node and the second native container node, thereby improving the efficiency of page rendering during page switching and thus improving the viewing experience of the viewing object.

[0130] Optionally, after rendering the content node and playing the rendered target multimedia content in the non-dynamic page using the second native container node, in response to a page restoration operation triggered in the non-dynamic page, a first dynamic page is created based on the page restoration information saved in the container switching component. Then, using the container switching component, a first native container node is created in the first node tree, and the association between the content node and the second native container node is removed, while the association between the content node and the first native container node is established. Afterwards, the content node is rendered in the first dynamic page using the first native container node, and the rendered target multimedia content is played.

[0131] Specifically, when switching from the first dynamic page to a non-dynamic page, the first dynamic page is destroyed accordingly. Therefore, when restoring the page, the first dynamic page needs to be recreated. The first dynamic page is parsed using a cross-platform dynamic framework to obtain the multimedia tags corresponding to the target multimedia content. Then, the playback source information and page restoration information of the target multimedia content are obtained from the multimedia tags, and these information are passed to the container switching component.

[0132] At this point, since the container switching component stores the target index information of the content node—that is, the target position of the content node in the second node tree—it is not necessary to create a new content node; instead, only the first native container node is created again. Then, the container switching component, based on the target index information, queries the second node tree to retrieve the content node, disassociates the content node from the second native container node, and establishes the association between the content node and the first native container node. Finally, the target index information of the content node stored in the container switching component is updated again to the target position of the content node in the first node tree.

[0133] Based on the rendering rules of the node tree, the first native container node and content node in the first node tree are rendered in the cross-platform dynamic framework. Then, the target multimedia content obtained from the rendering is presented in the first dynamic page according to the display attribute information.

[0134] For example, taking multimedia content such as video as an example, see [link to video content]. Figure 11b This is a schematic diagram of a page restoration process provided in an embodiment of this application. In the first display position 1102 of the non-dynamic page, the target video is played in a minimized video playback mode, while the original content of the non-dynamic page is displayed in other areas of the non-dynamic page.

[0135] In response to clicking the page restore button on a non-dynamic page, a first dynamic page is displayed. The second dynamic page includes a video playback area 1101, in which the target video is played, and in other areas, relevant information about the target video is displayed.

[0136] In this embodiment, after switching from a dynamic page to a non-dynamic page, the page can still be restored from the non-dynamic page to the dynamic page in response to the page restoration operation. At the same time, the rendering of the target multimedia content is maintained on the dynamic page, so that the target multimedia content can continue to play on the dynamic page, ensuring the smoothness of the video viewing and thus improving the viewing experience.

[0137] Optionally, in addition to supporting the rendering of multimedia content when switching from a dynamic page to a non-dynamic page, the target application in this application embodiment also supports the rendering of multimedia content when switching from one dynamic page to another, as detailed below:

[0138] In response to a page switching operation triggered in the first dynamic page, a second dynamic page is created. Then, through the first native container node, the content node is rendered in the second dynamic page, and the rendered target multimedia content is played.

[0139] Specifically, since the first and second dynamic pages correspond to the same cross-platform dynamic framework, they share the first node tree. Therefore, when switching from the first dynamic page to the second dynamic page, it's not necessary to create additional native container nodes using a container switching component. The first native container node and content node in the first node tree can be reused, while modifying the display attribute information of the target multimedia content carried in the first native container node. Then, according to the modified display attribute information of the target multimedia content, the content node is rendered, and the rendered target multimedia content is displayed according to the modified display attribute information.

[0140] One possible implementation is that the target multimedia content is a target video, and the modified display attribute information of the target multimedia content is a second display position and a minimized video playback mode.

[0141] Using the first native container node, the content node is rendered in the second dynamic page according to the minimized video playback mode and the second display position. Then, the rendered target video is played in the second display position of the second dynamic page according to the minimized video playback mode.

[0142] Specifically, during the rendering of the first node tree, according to the rendering rules of the node tree, when rendering the first native container node in the first node tree in the cross-platform dynamic framework, the node tree rendering process of the native rendering system will be automatically triggered. That is, according to the display attribute information of the target video, the content nodes under the first native container node are rendered, and then the rendered target video is presented in the second dynamic page according to the display attribute information.

[0143] In this embodiment of the application, when switching from one dynamic page to another in the target application, the target video playing on one dynamic page can still be rendered on the other dynamic page and played in the minimized video playback mode. This avoids the target video from obscuring the original content on the other dynamic page, while allowing the user to continue watching the target video, thereby improving the user experience.

[0144] It should be noted that after switching from the first dynamic page to the second dynamic page, one can continue to switch from the second dynamic page to a non-dynamic page. Then, in response to the page restore operation on the non-dynamic page, the system can directly restore from the non-dynamic page to the first dynamic page, or restore to the second dynamic page. In other words, in this application, the switching and restore relationships between pages in the target application can be set according to actual needs, and this application does not impose specific limitations on this.

[0145] To better explain the embodiments of this application, the following describes a multimedia content playback method provided by the embodiments of this application in conjunction with a specific implementation scenario. The process of this method can be described as follows: Figure 1 The terminal device 101 shown executes, such as Figure 12 As shown, this includes the following page switching phase and page recovery phase.

[0146] The page transition phase includes the following steps:

[0147] Step S1201: In response to a playback operation triggered for the target video in the target application, create a first dynamic page.

[0148] Using a cross-platform dynamic framework, the first dynamic page is parsed to obtain the video tags corresponding to the target video. Then, the playback source information of the target video and the page restoration information of the first dynamic page are obtained from the video tags, and the playback source information and page restoration information are passed to the container switching component.

[0149] Step S1202: Using the container switching component, a video node and a first native container node are created in the first node tree based on the playback source information of the target video.

[0150] Based on the target position of the video node in the first node tree, the target index information of the video node is obtained and stored in the container switching component.

[0151] Step S1203: Render the video node in the first dynamic page using the first native container node, and play the rendered target video.

[0152] Step S1204: In response to a page switching operation triggered in the first dynamic page, a non-dynamic page is created.

[0153] Step S1205: By switching components using containers, a second native container node is created in the second node tree corresponding to the non-dynamic page.

[0154] Step S1206: By switching the container, the association between the video node and the first native container node is terminated, and the association between the video node and the second native container node is established.

[0155] Specifically, by switching components within a container, the video node is retrieved from the first node tree based on the target index information. Then, the association between the video node and the first native container node is broken, and the association between the video node and the second native container node is established. Finally, the target index information is updated to reflect the target position of the video node in the second node tree.

[0156] In step S1207, the video node is rendered in the non-dynamic page through the second native container node, and the rendered target video is played.

[0157] The page recovery phase includes the following steps:

[0158] Step S1208: In response to a page recovery operation triggered in a non-dynamic page, a first dynamic page is created based on the page recovery information stored in the container switching component.

[0159] Using a cross-platform dynamic framework, the first dynamic page is parsed to obtain the video tags corresponding to the target video. Then, the playback source information of the target video and the page restoration information of the first dynamic page are obtained from the video tags, and the playback source information and page restoration information are passed to the container switching component.

[0160] Step S1209: By switching components through containers, create the first native container node in the first node tree.

[0161] Step S1210: Disconnect the video node from the second native container node and establish the association between the video node and the first native container node.

[0162] Specifically, by switching components within a container, the video node is retrieved from the second node tree based on the target index information. Then, the association between the video node and the second native container node is broken, and the association between the video node and the first native container node is established. The target index information is then updated to reflect the target position of the video node within the first node tree.

[0163] Step S1211: Render the video node in the first dynamic page using the first native container node, and play the rendered target video.

[0164] In this embodiment, when a switch from a first dynamic page to a non-dynamic page is triggered, a second native container node is created in the second node tree corresponding to the non-dynamic page through the container switching component. The association between the video node and the first native container node is removed, and the association between the video node and the second native container node is established. Therefore, when rendering the non-dynamic page based on the second node tree, the video node can be rendered in the non-dynamic page through the second native container node, so as to continue rendering and playing the target video in the non-dynamic page after the page switch, thereby improving the viewing experience of the object.

[0165] Based on the same technical concept, this application provides a schematic diagram of the structure of a multimedia content playback device, such as... Figure 13 As shown, the multimedia content playback device 1300 includes:

[0166] The playback module 1301 is used to play target multimedia content in a first dynamic page of the target application. The first node tree corresponding to the first dynamic page includes a content node corresponding to the target multimedia content and a first native container node associated with the content node.

[0167] The switching module 1302 is used to create a non-dynamic page in response to a page switching operation triggered in the first dynamic page;

[0168] The processing module 1303 is used to create a second native container node in the second node tree corresponding to the non-dynamic page through the container switching component, and to remove the association between the content node and the first native container node, and to establish the association between the content node and the second native container node.

[0169] The playback module 1301 is used to render the content node in the non-dynamic page through the second native container node and play the rendered target multimedia content.

[0170] Optionally, the playback module 1301 is specifically used for:

[0171] Using the second native container node, the content node is rendered in the non-dynamic page according to the display attribute information, and the target multimedia content is played in the non-dynamic page according to the display attribute information.

[0172] Optionally, the display attribute information includes a minimized video playback mode and a first display position, and the target multimedia content is a target video;

[0173] The playback module 1301 is specifically used for:

[0174] The target video is played in the minimized playback mode at the first display position on the non-dynamic page.

[0175] Optionally, the playback module 1301 is specifically used for:

[0176] In response to a playback operation triggered in the target application for the target multimedia content, the first dynamic page is created;

[0177] Using the container switching component, based on the playback source information of the target multimedia content, the content node and the first native container node are created in the first node tree;

[0178] The content node is rendered in the first dynamic page using the first native container node, and the rendered target multimedia content is played.

[0179] Optionally, the switching module 1302 is further configured to:

[0180] After rendering the content node in the non-dynamic page and playing the rendered target multimedia content through the second native container node, in response to the page restoration operation triggered in the non-dynamic page, the first dynamic page is created based on the page restoration information saved in the container switching component.

[0181] The processing module 1303 is also used for:

[0182] The container switching component creates the first native container node in the first node tree, removes the association between the content node and the second native container node, and establishes the association between the content node and the first native container node.

[0183] The playback module 1301 is also used for:

[0184] The content node is rendered in the first dynamic page using the first native container node, and the rendered target multimedia content is played.

[0185] Optionally, the processing module 1303 is further configured to:

[0186] By using the container switching component, based on the playback source information of the target multimedia content, before creating the content node and the first native container node in the first node tree, the first dynamic page is parsed to obtain the multimedia tags corresponding to the target multimedia content;

[0187] The playback source information of the target multimedia content and the page restoration information of the first dynamic page are obtained from the multimedia tag, and the playback source information and the page restoration information are transmitted to the container switching component.

[0188] Optionally, the processing module 1303 is further configured to:

[0189] After creating the content node and the first native container node in the first node tree based on the playback source information of the target multimedia content through the container switching component, the target index information of the content node is obtained based on the target position of the content node in the first node tree, and the target index information of the content node is stored in the container switching component.

[0190] The processing module 1303 is also used for:

[0191] Before disconnecting the content node from the first native container node and establishing the association between the content node and the second native container node, the content node is obtained from the first node tree by the container switching component based on the target index information.

[0192] Optionally, the switching module 1302 is further configured to:

[0193] In response to a page switching operation triggered in the first dynamic page, a second dynamic page is created;

[0194] The playback module 1301 is also used for:

[0195] The content node is rendered in the second dynamic page using the first native container node, and the rendered target multimedia content is played.

[0196] Optionally, the target multimedia content is a target video;

[0197] The playback module 1301 is specifically used for:

[0198] Using the first native container node, the content node is rendered in the second dynamic page according to the minimized video playback mode and the second display position;

[0199] The target video, rendered and displayed in the second display position on the second dynamic page, is played in the minimized video playback mode.

[0200] In this embodiment, when a switch from a first dynamic page to a non-dynamic page is triggered, a second native container node is created in the second node tree corresponding to the non-dynamic page through the container switching component. The association between the video node and the first native container node is removed, and the association between the video node and the second native container node is established. Therefore, when rendering the non-dynamic page based on the second node tree, the video node can be rendered in the non-dynamic page through the second native container node, so as to continue rendering and playing the target video in the non-dynamic page after the page switch, thereby improving the viewing experience of the object.

[0201] Based on the same technical concept, embodiments of this application provide a computer device, which can be... Figure 1 The terminal devices and / or servers shown, such as Figure 14 As shown, it includes at least one processor 1401 and a memory 1402 connected to at least one processor. In this embodiment, the specific connection medium between the processor 1401 and the memory 1402 is not limited. Figure 14 Taking the connection between processor 1401 and memory 1402 via a bus as an example, the bus can be divided into address bus, data bus, control bus, etc.

[0202] In this embodiment of the application, the memory 1402 stores instructions that can be executed by at least one processor 1401. By executing the instructions stored in the memory 1402, at least one processor 1401 can perform the steps of the above-described multimedia content playback method.

[0203] The processor 1401 is the control center of the computer device. It can connect to various parts of the computer device using various interfaces and lines. It enables multimedia content playback by running or executing instructions stored in the memory 1402 and calling data stored in the memory 1402. Optionally, the processor 1401 may include one or more processing units. The processor 1401 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 1401. In some embodiments, the processor 1401 and the memory 1402 can be implemented on the same chip; in some embodiments, they can also be implemented on separate chips.

[0204] Processor 1401 can be a general-purpose processor, such as a central processing unit (CPU), digital signal processor, application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.

[0205] Memory 1402, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. Memory 1402 may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic storage, magnetic disk, optical disk, etc. Memory 1402 can be any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer device, but is not limited thereto. In the embodiments of this application, memory 1402 may also be a circuit or any other device capable of implementing storage functions for storing program instructions and / or data.

[0206] Based on the same inventive concept, embodiments of this application provide a computer-readable storage medium storing a computer program executable by a computer device, which, when run on the computer device, causes the computer device to perform the steps of the above-described multimedia content playback method.

[0207] Based on the same inventive concept, this application provides a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions, which, when executed by a computer device, cause the computer device to perform the steps of the above-described multimedia content playback method.

[0208] Those skilled in the art will understand that embodiments of the present invention can be provided as methods or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0209] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0210] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0211] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0212] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention.

[0213] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.

Claims

1. A method of playing multimedia content, characterized by, include: Play target multimedia content in the first dynamic page of the target application. The first node tree corresponding to the first dynamic page includes the content node corresponding to the target multimedia content and the first native container node associated with the content node. The first dynamic page is developed using a cross-platform dynamic framework, and the first node tree is a Flutter Widget tree. Based on the target position of the content node in the first node tree, the target index information of the content node is obtained, and the target index information is stored in the container switching component; In response to a page switching operation triggered in the first dynamic page, a non-dynamic page is created, wherein the non-dynamic page is developed using a native application framework; Through the container switching component, a second native container node is created in the second node tree corresponding to the non-dynamic page, and the content node is obtained from the first node tree based on the target index information. The association between the content node and the first native container node is removed, and the association between the content node and the second native container node is established. The second node tree is a DOM tree. The target index information stored in the container switching component is updated to the target position of the content node in the second node tree, and the container switching component is independent of the first node tree and the second node tree; The content node is rendered in the non-dynamic page using the second native container node, and the rendered target multimedia content is played.

2. The method of claim 1, wherein, The second native container node carries the display attribute information of the target multimedia content in the non-dynamic page; The step of rendering the content node in the non-dynamic page through the second native container node and playing the rendered target multimedia content includes: Using the second native container node, the content node is rendered in the non-dynamic page according to the display attribute information, and the target multimedia content is played in the non-dynamic page according to the display attribute information.

3. The method of claim 2, wherein, The display attribute information includes the video minimized playback mode and the first display position, and the target multimedia content is the target video; Playing the target multimedia content according to the display attribute information on the non-dynamic page includes: The target video is played in the minimized playback mode at the first display position on the non-dynamic page.

4. The method of claim 1, wherein, Playing target multimedia content in the first dynamic page of the target application includes: In response to a playback operation triggered in the target application for the target multimedia content, the first dynamic page is created; Using the container switching component, based on the playback source information of the target multimedia content, the content node and the first native container node are created in the first node tree; The content node is rendered in the first dynamic page using the first native container node, and the rendered target multimedia content is played.

5. The method of claim 4, wherein, After rendering the content node in the non-dynamic page through the second native container node and playing the rendered target multimedia content, the method further includes: In response to a page recovery operation triggered in the non-dynamic page, the first dynamic page is created based on the page recovery information stored in the container switching component; The container switching component creates the first native container node in the first node tree, removes the association between the content node and the second native container node, and establishes the association between the content node and the first native container node. The content node is rendered in the first dynamic page using the first native container node, and the rendered target multimedia content is played.

6. The method of claim 5, wherein, Before creating the content node and the first native container node in the first node tree based on the playback source information of the target multimedia content through the container switching component, the method further includes: The first dynamic page is parsed to obtain the multimedia tags corresponding to the target multimedia content; The playback source information of the target multimedia content and the page restoration information of the first dynamic page are obtained from the multimedia tag, and the playback source information and the page restoration information are transmitted to the container switching component.

7. The method of claim 4, wherein, Also includes: In response to a page switching operation triggered in the first dynamic page, a second dynamic page is created; The content node is rendered in the second dynamic page using the first native container node, and the rendered target multimedia content is played.

8. The method of claim 7, wherein, The target multimedia content is the target video; The step of rendering the content node in the second dynamic page through the first native container node and playing the rendered target multimedia content includes: Using the first native container node, the content node is rendered in the second dynamic page according to the minimized video playback mode and the second display position; The target video, rendered and displayed in the second display position on the second dynamic page, is played in the minimized video playback mode.

9. A multimedia content playback device, characterized in that, include: The playback module is used to play target multimedia content in the first dynamic page of the target application. The first node tree corresponding to the first dynamic page includes a content node corresponding to the target multimedia content and a first native container node associated with the content node. The first dynamic page is developed using a cross-platform dynamic framework, and the first node tree is a Flutter Widget tree. Based on the target position of the content node in the first node tree, the target index information of the content node is obtained, and the target index information is stored in the container switching component; A switching module is used to create a non-dynamic page in response to a page switching operation triggered in the first dynamic page. The non-dynamic page is developed using a native application framework. The processing module is used to create a second native container node in the second node tree corresponding to the non-dynamic page through the container switching component, and to obtain the content node from the first node tree based on the target index information, and to remove the association between the content node and the first native container node, and to establish the association between the content node and the second native container node, wherein the second node tree is a DOM tree; The target index information stored in the container switching component is updated to the target position of the content node in the second node tree, and the container switching component is independent of the first node tree and the second node tree; The playback module is used to render the content node in the non-dynamic page through the second native container node, and play the rendered target multimedia content.

10. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that, It stores a computer program executable by a computer device, which, when run on the computer device, causes the computer device to perform the steps of the method according to any one of claims 1 to 8.

12. A computer program product, characterized in that, The computer program product includes a computer program stored on a computer-readable storage medium, the computer program including program instructions that, when executed by a computer device, cause the computer device to perform the steps of the method according to any one of claims 1-8.