Search

CN-122002092-A - Content playing method and device, electronic equipment and storage medium

CN122002092ACN 122002092 ACN122002092 ACN 122002092ACN-122002092-A

Abstract

The embodiment of the disclosure discloses a content playing method, a device, electronic equipment and a storage medium, wherein the method comprises the steps of responding to a playing instruction of target aggregated content, creating a target player, wherein the target aggregated content comprises at least one content data, the target player comprises a first container assembly, loading the at least one content data to at least one second container assembly, the second container assembly is contained in the first container assembly, receiving a playing setting of the at least one second container assembly through a playing control assembly of the first container assembly, and playing the content data loaded by the at least one second container assembly according to the playing setting through the target player. The method can realize flexible and diversified content playing and can improve user experience.

Inventors

  • YU ZHAOXIN
  • Ju Jinpeng
  • SUN ZIHAO
  • LIN NINGNING

Assignees

  • 北京字跳网络技术有限公司

Dates

Publication Date
20260508
Application Date
20241104

Claims (17)

  1. 1. A content playing method, comprising: Creating a target player in response to a play instruction of target aggregated content, wherein the target aggregated content comprises at least one content data; Loading the at least one content data to at least one second container assembly, wherein the second container assembly is contained in the first container assembly; receiving, by a play control component of the first container component, a play setting for the at least one second container component; And playing the content data loaded by the at least one second container component according to the playing setting by the target player.
  2. 2. The method of claim 1, wherein the second container component comprises a content component; said loading said at least one content data into at least one second container assembly comprising: acquiring a data modality of the at least one content data, and creating a content component corresponding to the data modality; and loading the at least one content data to a content component of the at least one second container component.
  3. 3. The method of claim 2, wherein the data modality includes at least one of images, audio, video, and front end pages.
  4. 4. The method of claim 1, wherein the target player further comprises a segmentation progress component, wherein a progress display status of at least one of the segmentation progress components corresponds to a play progress of the content data loaded by the at least one second container component; The content playing method further comprises the following steps: receiving, by the segmentation progress component, an operation instruction for the at least one segment of progress component; and playing the content data loaded by the at least one second container component according to the operation instruction through the target player.
  5. 5. The method of claim 4, wherein playing, by the target player, the content data loaded by the at least one second container component according to the operation instruction, comprises at least one of: Switching to the corresponding at least one second container component through the target player according to a switching instruction, and playing the content data loaded by the second container component after switching; Previewing the content data loaded by the second container component currently according to a preview instruction by the target player under the condition that the data mode of the content data currently played is a first mode, wherein the first mode comprises video and audio; and under the condition that the data mode of the currently played content data is a second mode, switching and previewing the content data loaded by the at least one second container component according to the preview instruction through the target player, wherein the second mode comprises an image and a front-end page.
  6. 6. The method of claim 5, wherein said switching previews of said content data loaded by said at least one second container component comprises: And switching and previewing the content data loaded by the at least one second container component according to a preset preview animation.
  7. 7. The method of claim 1, wherein the first container assembly further comprises a first gesture response layer and the second container assembly further comprises a second gesture response layer; The content playing method further comprises the following steps: Determining, by the target player, a target response layer from the first gesture response layer and the second gesture response layer; and identifying the operation gesture through the target response layer, and calling corresponding interaction logic according to the identification result.
  8. 8. The method of claim 1, wherein the target player further comprises a first stationary layer having a first stationary component disposed therein, wherein the second container component further comprises a second stationary layer having a second stationary component disposed therein; Wherein the first stationary component remains stationary in response to switching of the target syndicated content and the second stationary component remains stationary in response to switching of the content data.
  9. 9. The method of claim 1, wherein, in the case where the target aggregated content comprises at least two, the loading the at least one content data to at least one second container component comprises: Content data of at least two target aggregated contents are acquired, and the acquired content data are loaded to at least one second container component.
  10. 10. The method according to claim 1, further comprising, after said creating a target player, in a case where said target aggregate content includes at least two: acquiring sub-target players respectively corresponding to at least two target aggregation contents; and accessing each sub-target player to the at least one second container component.
  11. 11. The method of claim 1, wherein said loading said at least one content data into at least one second container component comprises: according to the playing progress of the target player, acquiring the at least one content data which is pulled in advance from a first storage space, and acquiring the second container component which is recovered in advance from a second storage space; loading the pre-fetched at least one content data to the pre-reclaimed at least one second container component.
  12. 12. The method of claim 1, wherein the target player further comprises a background music player; and in the process of playing the content data loaded by the at least one second container component, playing preset audio through the background music player.
  13. 13. The method according to any of claims 1-12, wherein the play setting comprises at least one of single-segment carousel, multi-segment carousel, play, pause, and mute.
  14. 14. A content playback apparatus, comprising: The player creation module is used for responding to a playing instruction of target aggregated content to create a target player, wherein the target aggregated content comprises at least one content data; The content data loading module is used for loading the at least one content data to at least one second container assembly, wherein the second container assembly is contained in the first container assembly; The play setting receiving module is used for receiving the play setting of the at least one second container component through the play control component of the first container component; And the playing module is used for playing the content data loaded by the at least one second container component according to the playing setting by the target player.
  15. 15. An electronic device, the electronic device comprising: One or more processors; Storage means for storing one or more programs, The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the content playback method of any one of claims 1-13.
  16. 16. A storage medium containing computer executable instructions for performing the content playing method according to any one of claims 1-13 when executed by a computer processor.
  17. 17. A computer program product, characterized in that the computer program product comprises a computer program which, when executed by a processor, implements the content playing method according to any of claims 1-13.

Description

Content playing method and device, electronic equipment and storage medium Technical Field The embodiment of the disclosure relates to the technical field of computers, in particular to a content playing method, a content playing device, electronic equipment and a storage medium. Background With the increasing abundance of multimedia content, diversified content playback demands are emerging. The native player of the operating system in the related art cannot meet the increasing content playing requirement, and the user experience is poor. Disclosure of Invention The embodiment of the disclosure provides a content playing method, a device, electronic equipment and a storage medium, which can realize flexible and diversified content playing and can improve user experience. In a first aspect, an embodiment of the present disclosure provides a content playing method, including: Creating a target player in response to a play instruction of target aggregated content, wherein the target aggregated content comprises at least one content data; Loading the at least one content data to at least one second container assembly, wherein the second container assembly is contained in the first container assembly; receiving, by a play control component of the first container component, a play setting for the at least one second container component; And playing the content data loaded by the at least one second container component according to the playing setting by the target player. In a second aspect, an embodiment of the present disclosure further provides a content playing device, including: The player creation module is used for responding to a playing instruction of target aggregated content to create a target player, wherein the target aggregated content comprises at least one content data; The content data loading module is used for loading the at least one content data to at least one second container assembly, wherein the second container assembly is contained in the first container assembly; The play setting receiving module is used for receiving the play setting of the at least one second container component through the play control component of the first container component; And the playing module is used for playing the content data loaded by the at least one second container component according to the playing setting by the target player. In a third aspect, embodiments of the present disclosure further provide an electronic device, including: One or more processors; Storage means for storing one or more programs, The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the content playback method as described in any one of the embodiments of the present disclosure. In a fourth aspect, the disclosed embodiments also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing the content playing method according to any of the disclosed embodiments. The technical scheme of the embodiment of the disclosure includes that a target player is created in response to a playing instruction of target aggregated content, wherein the target aggregated content comprises at least one content data, the target player comprises a first container component, the at least one content data is loaded to at least one second container component, the second container component is contained in the first container component, a playing setting of the at least one second container component is received through a playing control component of the first container component, and the content data loaded by the at least one second container component is played through the target player according to the playing setting. By constructing a first container assembly that can carry at least one second container assembly, aggregate playback of multiple content can be achieved. By disposing the play control component in the first container component, play control can be performed on at least one second container component, so that flexible and diversified content play can be realized, and user experience can be improved. Drawings The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale. Fig. 1 is a flow chart of a content playing method according to an embodiment of the disclosure; Fig. 2 is a schematic block diagram of components of a target player in a content playing method according to an embodiment of the disclosure; Fig. 3 is a schematic diagram of content playing in a content playing method according to an embodi