Video playing method and device, electronic equipment and storage medium

By using the same video player in the information flow page, responding to the page switching operation, cross-page video playback is achieved, which solves the problem of large resource occupancy in the existing technology and improves the video playback efficiency.

CN119697413APending Publication Date: 2025-03-25JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311235706.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-22
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

In the prior art, in order to make the terminal automatically play multiple videos in the information flow page, the server needs to add a video player to each video, resulting in a large resource occupancy.

Method used

By using the same target video player in the information flow page, in response to the page switching operation, the video player is removed from one page and added to another page, enabling cross-page video playback.

Benefits of technology

It saves resources occupied by video playback, improves the efficiency of video playback, and realizes cross-page video playback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119697413A_ABST
    Figure CN119697413A_ABST
Patent Text Reader

Abstract

The invention provides a video playing method and device, electronic equipment and a storage medium. The method comprises the following steps: displaying a first information flow page, wherein the first information flow page comprises a first target video played through a target video player; and in response to a page switching operation, skipping to a second information flow page from the first information flow page, removing the target video player from the first information flow page, adding the target video player to a playing position of a second target video in the second information flow page, and playing the second target video in the second information flow page. And playing the second target video through the target video player.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a video playback method, a video playback device, an electronic device, and a storage medium. Background Art

[0002] In short video applications or other information applications, video content is an important medium for information dissemination.

[0003] In the related art, in order to enable a terminal to automatically play multiple videos in an information flow page, a server usually adds a video player for each video in the information flow page, resulting in a large amount of resource usage.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] The disclosed embodiments provide a video playback method, a video playback device, an electronic device, and a storage medium. The method can use the same video player across pages, save resources occupied by video playback, and improve the efficiency of video playback.

[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0007] An embodiment of the present disclosure provides a video playback method, including: displaying a first information flow page, the first information flow page including a first target video played by a target video player; in response to a page switching operation, jumping from the first information flow page to a second information flow page, removing the target video player from the first information flow page, adding the target video player to the playback position of the second target video in the second information flow page, and playing the second target video through the target video player.

[0008] In some exemplary embodiments of the present disclosure, the first information flow page includes a first floor and a second floor arranged in a first direction, the first target video is located on the first floor, and the second floor includes a plurality of videos to be played arranged in a second direction, and the first direction and the second direction are different; the method also includes: in response to a sliding operation along the first direction on the first information flow page, when the second floor is located in a preset area of ​​the first information flow page, determining a third target video from the plurality of videos to be played in the second floor, removing the target video player from the first floor, adding the target video player to the playback position of the third target video in the second floor, and playing the third target video through the target video player.

[0009] In some exemplary embodiments of the present disclosure, after playing the third target video through the target video player, it also includes: in response to a sliding operation along the second direction on the second floor, determining a fourth target video from a plurality of videos to be played on the second floor, and playing the fourth target video through the target video player.

[0010] In some exemplary embodiments of the present disclosure, the first information flow page includes a plurality of videos to be played arranged in the form of a waterfall flow; the method further includes: in response to a sliding operation on the first information flow page, determining and playing a target video to be played that meets a playback condition from the plurality of videos to be played according to a sliding direction of the sliding operation and a visible area of ​​the first information flow page; after the target video to be played has been played for a preset time, automatically playing the next video to be played of the target video to be played according to the order of the waterfall flow.

[0011] In some exemplary embodiments of the present disclosure, the method also includes: in response to a trigger operation on the first target video in the first information flow page, displaying the details page of the first target video, removing the target video player from the first information flow page, adding the target video player to the details page, and playing the first target video in the details page through the target video player.

[0012] In some exemplary embodiments of the present disclosure, playing the first target video in the details page by the target video player includes: obtaining the current playback position of the first target video in the first information flow page; and continuing to play the first target video in the details page based on the current playback position by the target video player.

[0013] In some exemplary embodiments of the present disclosure, the first information stream page includes a first information stream and a second information stream, the first target video is located in the first information stream, and the first information stream is located in a visible area of ​​the first information stream page; the method further includes: in response to an information stream switching operation, when the second information stream is located in the visible area, removing the target video player from the first information stream, adding the video player to the playback position of the fifth target video in the second information stream, and playing the fifth target video through the target video player.

[0014] An embodiment of the present disclosure provides a video playback device, including: a display module, used to display a first information flow page, the first information flow page including a first target video played by a target video player; a playback module, used to jump from the first information flow page to a second information flow page in response to a page switching operation, remove the target video player from the first information flow page, add the target video player to the playback position of the second target video in the second information flow page, and play the second target video through the target video player.

[0015] An embodiment of the present disclosure provides an electronic device, comprising: at least one processor; and a storage device for storing at least one program, wherein when the at least one program is executed by the at least one processor, the at least one processor implements any one of the above-mentioned video playback methods.

[0016] An embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements any of the above-mentioned video playback methods when executed by a processor.

[0017] The video playback method provided by the embodiment of the present disclosure displays a first information flow page, which includes a first target video played by a target video player; in response to a page switching operation, the first information flow page jumps to a second information flow page, removes the target video player from the first information flow page, adds the target video player to the playback position of the second target video in the second information flow page, and plays the second target video through the target video player; this method can realize the use of the same video player across pages, save resources occupied by video playback, and improve the efficiency of video playback.

[0018] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0020] Figure 1 A schematic diagram showing an exemplary system architecture to which the video playback method according to an embodiment of the present disclosure can be applied.

[0021] Figure 2 is a flowchart of a video playing method in an exemplary embodiment of the present disclosure.

[0022] Figure 3 It is a schematic diagram of an information flow including nested lists in an exemplary embodiment of the present disclosure.

[0023] Figure 4 is a schematic diagram of another information flow including nested lists in an exemplary embodiment of the present disclosure.

[0024] Figure 5 is a flowchart of a video playing method in another exemplary embodiment of the present disclosure.

[0025] Figure 6 It is a schematic diagram of an information flow in the form of a waterfall flow in an exemplary embodiment of the present disclosure.

[0026] Figure 7 is a block diagram of a video playback device in an exemplary embodiment of the present disclosure.

[0027] Figure 8 is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0028] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.

[0029] The features, structures or characteristics described in the present disclosure may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known methods, devices, implementations or operations are not shown or described in detail to avoid blurring the various aspects of the present disclosure.

[0030] The accompanying drawings are only schematic diagrams of the present disclosure, and the same reference numerals in the drawings represent the same or similar parts, so their repeated description will be omitted. Some block diagrams shown in the accompanying drawings do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in at least one hardware module or integrated circuit, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0031] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and steps, nor must they be executed in the order described. For example, some steps can be decomposed, and some steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0032] In addition, in the description of the present disclosure, the terms "a", "an", "the", "said" and "at least one" are used to indicate the presence of at least one element or component; the terms "comprising", "including" and "having" are used to express an open-ended inclusion and mean that additional elements or components may exist in addition to the listed elements or components; the terms "first", "second" and "third" etc. are used only as labels and are not intended to limit the quantity of their objects.

[0033] Figure 1 A schematic diagram showing an exemplary system architecture to which the video playback method according to an embodiment of the present disclosure can be applied.

[0034] like Figure 1 As shown, the system architecture may include a server 101, a network 102, a terminal device 103, a terminal device 104, and a terminal device 105. The network 102 is used to provide a medium for a communication link between the terminal device 103, the terminal device 104, or the terminal device 105 and the server 101. The network 102 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0035] The server 101 may be a server that provides various services, such as a background management server that provides support for devices operated by users using the terminal device 103, the terminal device 104, or the terminal device 105. The background management server may analyze and process the received request and other data, and feed back the processing results to the terminal device 103, the terminal device 104, or the terminal device 105.

[0036] Terminal device 103, terminal device 104 and terminal device 105 can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a wearable smart device, a virtual reality device, an augmented reality device, etc., but are not limited thereto.

[0037] In an embodiment of the present disclosure, a terminal device may: display a first information flow page, wherein the first information flow page includes a first target video played by a target video player; in response to a page switching operation, jump from the first information flow page to a second information flow page, remove the target video player from the first information flow page, add the target video player to the playback position of the second target video in the second information flow page, and play the second target video through the target video player.

[0038] It should be understood that Figure 1 The number of terminal devices 103, terminal devices 104, terminal devices 105, networks 102 and servers 101 are merely illustrative. Server 101 may be a physical server, a server cluster consisting of multiple servers, or a cloud server. Depending on actual needs, any number of terminal devices, networks and servers may be provided.

[0039] Below, each step of the video playback method in the exemplary embodiment of the present disclosure will be described in more detail with reference to the accompanying drawings and embodiments.

[0040] Figure 2 is a flowchart of a video playback method in an exemplary embodiment of the present disclosure. The method provided in the embodiment of the present disclosure can be executed by any electronic device with computing processing capabilities, such as Figure 1 The terminal device shown is executed, but the present disclosure is not limited to this.

[0041] like Figure 2 As shown, the video playback method provided by the embodiment of the present disclosure may include the following steps.

[0042] In step S202, a first information flow page is displayed, wherein the first information flow page includes a first target video played by a target video player.

[0043] In the embodiments of the present disclosure, an information stream is a data form that continuously provides content to users, and the information stream may include multiple information stream elements; wherein an information stream element refers to each piece of information / content in the information stream, for example, taking a video information stream as an example, each video therein is an information stream element.

[0044] In the disclosed embodiment, the information flow page refers to a page in a terminal device for displaying information flow, and the information flow client can control the display order and timing of each information flow element according to the operation input by the user.

[0045] In the disclosed embodiment, the video player is used to carry and display information flow elements of the video type. If the information flow element currently browsed by the user is of the video type, the corresponding video content can be displayed in the information flow page through the video player; the target video player refers to a specific video player.

[0046] In the embodiment of the present disclosure, the first information flow page may include the first target video being played, or the first target video that has been played; wherein the first target video is played through a target video player.

[0047] In the disclosed embodiment, the video player may play videos based on a predefined player behavior protocol, which may include but is not limited to: video play, video pause, video stop, player addition, player removal, setting cover image, etc.; the player behavior protocol may control a real video player, control a playback controller, and play other similar player interactive behaviors, such as playing animated images.

[0048] In step S204, in response to the page switching operation, the first information flow page jumps to the second information flow page, the target video player is removed from the first information flow page, the target video player is added to the playback position of the second target video in the second information flow page, and the second target video is played through the target video player.

[0049] In the embodiments of the present disclosure, a page switching operation refers to an operation triggered by a user to switch from a first information flow page to a second information flow page, such as a sliding operation performed in a specific area of ​​the page (e.g., the bottom area), or an operation of sliding the page upward to a specific area (e.g., the middle area) and staying there for a preset time before releasing it.

[0050] In an embodiment of the present disclosure, the second information flow page includes a second target video, wherein the video content of the second target video and the first target video may be the same or different, and the present disclosure does not limit this; the playback position of the second target video refers to the current position of the second target video in the second information flow page.

[0051] In the disclosed embodiment, when the first target video is being played using the target video player in the first information flow page, or after the first target video has been played, the user can trigger a page switching operation, and at this time jump from the first information flow page to the second information flow page, remove the target video player from the first information flow page, add the target video player to the playback position of the second target video in the second information flow page, and play the second target video through the target video player; wherein, playing the second target video through the target video player can be automatically starting to play the second target video through the target video player after jumping to the second information flow page, or can be playing the second target video through the target video player in response to the user's trigger operation on the second target video.

[0052] In the disclosed embodiment, before the video is played, the network status of the terminal device can be judged to determine whether to play the video to be played; for example, the video to be played can be automatically played when the network status switches from a mobile network to Wi-Fi; during the video playback process, the network status of the terminal device can be judged to determine whether to stop playing the video, for example, the video to be played can be stopped when the network status switches from Wi-Fi to a mobile network.

[0053] The video playback method provided by the embodiment of the present disclosure displays a first information flow page, which includes a first target video played by a target video player; in response to a page switching operation, the first information flow page jumps to a second information flow page, removes the target video player from the first information flow page, adds the target video player to the playback position of the second target video in the second information flow page, and plays the second target video through the target video player; this method can realize the use of the same video player across pages, save resources occupied by video playback, and improve the efficiency of video playback.

[0054] In some embodiments, an information flow page may include one or more information flows. The following description takes the first information flow page including two information flows (referred to as the first information flow and the second information flow) as an example, but the present disclosure is not limited to this.

[0055] In an exemplary embodiment, the first target video is located in a first information stream, and the first information stream is located in a visible area of ​​the first information stream page.

[0056] Specifically, the first information flow page may include a visible area and an invisible area, wherein the visible area refers to an area displayed on the screen of the terminal device, and the invisible area refers to an area other than the visible area.

[0057] In an exemplary embodiment, the above method may also include: in response to an information stream switching operation, when the second information stream is located in the visible area, removing the target video player from the first information stream, adding the video player to the playback position of the fifth target video in the second information stream, and playing the fifth target video through the target video player.

[0058] In the embodiment of the present disclosure, the information stream switching operation refers to an operation triggered by a user in the first information stream page so that the second information stream is located in the visible area of ​​the first information stream page, such as a sliding operation performed in the page.

[0059] In an embodiment of the present disclosure, the second information stream includes a fifth target video, wherein the video content of the fifth target video and the first target video may be the same or different, and the present disclosure does not limit this; the playback position of the fifth target video refers to the current position of the fifth target video in the second information stream.

[0060] In the disclosed embodiment, when a first target video in a first information stream is being played using a target video player in a first information stream page, or after the first target video has been played, a user can trigger an information stream switching operation so that at least part of the content of the second information stream is located in a visible area, remove the target video player from the first information stream, add the target video player to the playback position of a fifth target video in the second information stream, and play the fifth target video through the target video player; wherein, playing the fifth target video through the target video player can be automatically starting to play the fifth target video through the target video player after the second information stream is located in the visible area, or can be playing the fifth target video through the target video player in response to a user trigger operation on the fifth target video.

[0061] The video playback method provided by the embodiment of the present disclosure can enable multiple information streams in the same-level page to use the same video player, thereby saving resources occupied by video playback and improving the efficiency of video playback.

[0062] In some embodiments, the information flow page may include multiple floors arranged in a first direction, and at least one of the multiple floors includes multiple videos to be played arranged in a second direction, wherein the first direction and the second direction are different, for example, the first direction is a vertical direction, and the second direction is a horizontal direction.

[0063] The following is an example in which the first information flow page includes the first floor and the second floor arranged in a vertical direction (and may also include the third floor, the fourth floor, etc.), the first target video is located on the first floor, and the second floor includes multiple videos to be played arranged in a horizontal direction, but the present invention is not limited to this.

[0064] Figure 3 It is a schematic diagram of an information flow including nested lists in an exemplary embodiment of the present disclosure.

[0065] refer to Figure 3 The first information flow page 30 includes a first floor 301, a second floor 302 and a third floor 303 arranged in a vertical direction, and the second floor 302 includes multiple videos to be played arranged in a horizontal direction (i.e., horizontally). That is to say, in the first information flow page 30, there are horizontally nested floors in the vertical information flow. This information flow can be called an information flow including a nested list.

[0066] In the disclosed embodiment, the nested list may include a playback controller for controlling the playback logic of the list itself. At the same time, the playback controller itself may also implement a playback protocol. The playback controller may control the playback controller of the nested list through the playback protocol, thereby controlling the video playback in the nested list.

[0067] refer to Figure 3 The first floor includes a first target video, and the play status of the first target video may be playing.

[0068] In an exemplary embodiment, the above method may also include: in response to a sliding operation along a first direction on the first information flow page, when the second floor is located in a preset area of ​​the first information flow page, determining a third target video from multiple videos to be played in the second floor, removing the target video player from the first floor, adding the target video player to the playback position of the third target video in the second floor, and playing the third target video through the target video player.

[0069] In the disclosed embodiment, when the first direction is a vertical direction, the sliding operation along the first direction may be an upward sliding operation or a downward sliding operation; when sliding upward for the first information flow page, the preset area may be the top area of ​​the visible area, that is, the next video to be played is determined from the top area; when sliding downward for the first information flow page, the preset area may be the bottom area of ​​the visible area, that is, the next video to be played is determined from the bottom area.

[0070] The following is an example in which the sliding operation on the first information flow page is an upward sliding operation and the preset area can be the top area of ​​the visible area.

[0071] In an embodiment of the present disclosure, the first information flow page is slid upward, and when the second floor is located in the top area of ​​the first information flow page, a third target video is determined from multiple videos to be played in the second floor, the target video player is removed from the first floor, the target video player is added to the playback position of the third target video in the second floor, and the third target video is played through the target video player.

[0072] Among them, the third target video is determined from multiple videos to be played on the second floor. The third target video can be determined according to the current positions of each video to be played on the second floor. For example, the leftmost video to be played in the visible area can be selected as the third target video, or the video to be played in the middle of the visible area can be selected as the third target video.

[0073] Figure 4 is a schematic diagram of another information flow including nested lists in an exemplary embodiment of the present disclosure.

[0074] For example, refer to Figure 3 and Figure 4 ,exist Figure 3 When the first information flow page 30 is slid upward, when the second floor 302 is located in the top area of ​​the first information flow page, as shown in FIG. Figure 4 As shown, the video to be played 3021 is determined as the third target video from the multiple videos to be played in the second floor 302, the target video player is removed from the first floor 301, the target video player is added to the playback position of the video to be played 3021 in the second floor 302, and the video to be played 3021 is played through the target video player.

[0075] In an exemplary embodiment, after playing the third target video through the target video player, the above method may also include: in response to a sliding operation along the second direction on the second floor, determining a fourth target video from a plurality of videos to be played on the second floor, and playing the fourth target video through the target video player.

[0076] In the disclosed embodiment, when the second direction is a horizontal direction, the sliding operation along the second direction may be a sliding operation to the left or a sliding operation to the right; when sliding to the left with respect to the second floor, the next video to be played may be determined from the left area; when sliding to the right with respect to the second floor, the next video to be played may be determined from the right area.

[0077] The following description will be made by taking the sliding operation on the second floor, which is sliding to the left, as an example.

[0078] For example, refer to Figure 4 , slide the second floor to the left, when at least part of the video 3021 to be played is not in the visible area, determine that the video 3022 to be played is the fourth target video, and play the video 3022 to be played through the target video player.

[0079] The video playback method provided by the embodiment of the present disclosure can realize the linkage playback management of videos in the nested list, that is, it can realize the linkage playback management of the videos in the information stream list of the first direction (for example, vertical) and the inserted information stream list of the second direction (for example, horizontal).

[0080] Figure 5 is a flowchart of a video playing method in another exemplary embodiment of the present disclosure.

[0081] In the disclosed embodiment, Figure 5 The video playing method shown may include the following steps.

[0082] In step S502, a first information flow page is displayed, which includes a first target video and multiple videos to be played arranged in a waterfall flow, and the first target video is being played through a target video player.

[0083] Among them, the waterfall flow can also be called the waterfall flow layout, which is usually displayed on the terminal in the form of multiple rows and columns. The column widths of each column are equal, and the line spacing of each row is different. Visually, it appears uneven, like a flowing waterfall.

[0084] In step S504, in response to a sliding operation on the first information stream page, a target video to be played that meets the playback condition is determined and played from a plurality of videos to be played according to the sliding direction of the sliding operation and the visible area of ​​the first information stream page.

[0085] In the disclosed embodiment, the sliding operation on the first information flow page can be an upward sliding operation or a downward sliding operation; when the sliding operation on the first information flow page is an upward sliding operation, the playback condition may include that the proportion of the area occupied by the video to be played in the visible area is greater than a preset proportion, and the video to be played is located at the top of the visible area; when the sliding operation on the first information flow page is a downward sliding operation, the playback condition may include that the proportion of the area occupied by the video to be played in the visible area is greater than a preset proportion, and the video to be played is located at the bottom of the visible area, where the preset proportion can be set according to actual conditions, for example, set to 50%.

[0086] Figure 6 It is a schematic diagram of an information flow in the form of a waterfall flow in an exemplary embodiment of the present disclosure.

[0087] For example, refer to Figure 6 After sliding the first information flow page upward, the video to be played 601 is located at the top of the visible area, and the area occupied by the video to be played 601 is located in the visible area. The video to be played 601 can be used as the target video to be played and played.

[0088] In step S506, after the target video to be played is played for a preset time, the next video to be played after the target video to be played is automatically played according to the order of the waterfall flow.

[0089] In the disclosed embodiment, the preset duration can be a preset fixed duration, or it can be the video length of the target video to be played; that is, it can be after the target video to be played has been played for a fixed duration (for example, 5 seconds), or it can be after the target video to be played has been played to completion, the next video to be played of the target video to be played automatically according to the order of the waterfall flow.

[0090] In the disclosed embodiment, when the target video to be played is located in the left column of the waterfall flow, the video to be played at the lower right of the target video to be played is determined as the next video to be played; when the target video to be played is located in the right column of the waterfall flow, the video to be played at the lower left of the target video to be played is determined as the next video to be played.

[0091] For example, continue to refer to Figure 6 After the to-be-played video 601 is played for a preset time length, the to-be-played video 602 at the lower left thereof can be used as the next to-be-played video.

[0092] The video playback method provided by the embodiment of the present disclosure can realize automatic playback of videos in an information flow in the form of a waterfall flow, thereby improving the video playback efficiency; the video playback duration can be set as needed, thereby improving the video playback effect.

[0093] In an exemplary embodiment, the above method may also include: in response to a trigger operation on the first target video in the first information flow page, displaying the details page of the first target video, removing the target video player from the first information flow page, adding the target video player to the details page, and playing the first target video in the details page through the target video player.

[0094] In the embodiment of the present disclosure, the trigger operation may be, for example, a click operation, a double-click operation, a long press operation, etc., and the details page of the first target video may be a page including the details information of the first target video.

[0095] For example, when a user is browsing a first information flow page, he clicks on the first target video in the first information flow page. In response to the click operation, the user jumps to the details page of the first target video. At this time, the target video player can be removed from the first information flow page, and the target video player can be added to the details page, and the first target video can be played in the details page through the target video player.

[0096] In an exemplary embodiment, playing the first target video in the details page through the target video player includes: obtaining the current playback position of the first target video in the first information flow page; and continuing to play the first target video based on the current playback position in the details page through the target video player.

[0097] In an embodiment of the present disclosure, in response to a trigger operation on a first target video in a first information flow page, the current playback position of the first target video in the first information flow page can be obtained, and the current playback position refers to the playback position of the first target video when the trigger operation occurs; after jumping to the details page of the first target video, the first target video can continue to be played from the current playback position.

[0098] In the disclosed embodiment, in response to a return operation on the details page, you can return to the first information flow page and continue playing the first target video based on the playback position of the first target video in the details page.

[0099] The video playback method provided by the embodiment of the present disclosure can continue to play the first target video based on the playback position of the first target video in the first information flow page after entering the detail page of the first target video from the first information flow page, thereby realizing the video resume function, and can ensure that the playback of the video is not interrupted during the process of switching from the information flow page to the detail page, thereby realizing seamless switching between pages during video playback.

[0100] It should also be understood that the above is only to help those skilled in the art better understand the embodiments of the present disclosure, and is not intended to limit the scope of the embodiments of the present disclosure. Based on the above examples given, those skilled in the art can obviously make various equivalent modifications or changes. For example, some steps in the above method may not be necessary, or some new steps may be added. Or a combination of any two or any multiple embodiments of the above. Such modifications, changes or combined solutions also fall within the scope of the embodiments of the present disclosure.

[0101] It should also be understood that the above description of the embodiments of the present disclosure focuses on emphasizing the differences between the various embodiments, and the same or similar points that are not mentioned can be referenced to each other. For the sake of brevity, they will not be repeated here.

[0102] It should also be understood that the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present disclosure.

[0103] It should also be understood that in the various embodiments of the present disclosure, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their internal logical relationships.

[0104] The above text describes in detail an example of a video playback method provided by the present disclosure. It is understandable that, in order to implement the above functions, the computer device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present disclosure.

[0105] The following are embodiments of the device disclosed herein, which can be used to execute the method embodiments disclosed herein. For details not disclosed in the device embodiments disclosed herein, please refer to the method embodiments disclosed herein.

[0106] Figure 7 is a block diagram of a video playback device in an exemplary embodiment of the present disclosure.

[0107] like Figure 7 As shown, the video playback device 700 may include: a display module 702 and a playback module 704 .

[0108] Among them, the display module 702 is used to display the first information flow page, which includes the first target video played by the target video player; the playback module 704 is used to jump from the first information flow page to the second information flow page in response to the page switching operation, remove the target video player from the first information flow page, add the target video player to the playback position of the second target video in the second information flow page, and play the second target video through the target video player.

[0109] In some exemplary embodiments of the present disclosure, the first information flow page includes a first floor and a second floor arranged in a first direction, the first target video is located on the first floor, and the second floor includes a plurality of videos to be played arranged in a second direction, and the first direction and the second direction are different; the playback module 704 is also used to: in response to a sliding operation along the first direction on the first information flow page, when the second floor is located in a preset area of ​​the first information flow page, determine a third target video from the plurality of videos to be played in the second floor, remove the target video player from the first floor, add the target video player to the playback position of the third target video in the second floor, and play the third target video through the target video player.

[0110] In some exemplary embodiments of the present disclosure, the playback module 704 is also used to: in response to a sliding operation along the second direction on the second floor, determine a fourth target video from multiple videos to be played on the second floor, and play the fourth target video through the target video player.

[0111] In some exemplary embodiments of the present disclosure, the first information flow page includes a plurality of videos to be played arranged in the form of a waterfall flow; the playback module 704 is also used to: in response to a sliding operation on the first information flow page, determine and play a target video to be played that meets the playback conditions from the plurality of videos to be played according to the sliding direction of the sliding operation and the visible area of ​​the first information flow page; after the target video to be played has been played for a preset time, automatically play the next video to be played of the target video to be played according to the order of the waterfall flow.

[0112] In some exemplary embodiments of the present disclosure, the playback module 704 is also used to: in response to a trigger operation on the first target video in the first information flow page, display the details page of the first target video, remove the target video player from the first information flow page, add the target video player to the details page, and play the first target video in the details page through the target video player.

[0113] In some exemplary embodiments of the present disclosure, the playback module 704 is also used to: obtain the current playback position of the first target video in the first information flow page; and continue to play the first target video based on the current playback position in the details page through the target video player.

[0114] In some exemplary embodiments of the present disclosure, the first information stream page includes a first information stream and a second information stream, the first target video is located in the first information stream, and the first information stream is located in a visible area of ​​the first information stream page; the playback module 704 is also used to: in response to an information stream switching operation, when the second information stream is located in the visible area, remove the target video player from the first information stream, add the video player to the playback position of the fifth target video in the second information stream, and play the fifth target video through the target video player.

[0115] It should be noted that the block diagrams shown in the above figures are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor terminal devices and / or microcontroller terminal devices.

[0116] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0117] Figure 8 is a schematic diagram showing a structure of an electronic device suitable for implementing an exemplary embodiment of the present disclosure according to an exemplary embodiment. It should be noted that: Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0118] like Figure 8 As shown, the electronic device 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the system 800 are also stored. The CPU 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0119] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that a computer program read therefrom is installed into the storage section 808 as needed.

[0120] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 809, and / or installed from a removable medium 811. When the computer program is executed by a central processing unit (CPU) 801, the above-mentioned functions defined in the system of the present disclosure are executed.

[0121] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0122] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0123] The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. The described units may also be provided in a processor, for example, may be described as: a processor includes a sending unit, an acquisition unit, a determination unit, and a first processing unit. Among them, the names of these units do not constitute a limitation on the units themselves in certain cases, for example, the sending unit may also be described as "a unit that sends a picture acquisition request to the connected server."

[0124] As another aspect, the present disclosure further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment. For example, the electronic device may implement the method described in the above embodiment. Figure 2 The steps shown.

[0125] According to one aspect of the present disclosure, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in various optional implementations of the above-mentioned embodiments.

[0126] It should be understood that any number of elements in the drawings of the present disclosure is for illustration rather than limitation, and any naming is only for distinction rather than having any limiting meaning.

[0127] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0128] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A video playback method, characterized in that: include: Displaying a first information flow page, wherein the first information flow page includes a first target video played by a target video player; In response to a page switching operation, the first information flow page jumps to the second information flow page, the target video player is removed from the first information flow page, the target video player is added to the playback position of the second target video in the second information flow page, and the second target video is played through the target video player.

2. The method according to claim 1, characterized in that The first information flow page includes a first floor and a second floor arranged in a first direction, the first target video is located on the first floor, and the second floor includes a plurality of videos to be played arranged in a second direction, and the first direction and the second direction are different; The method further comprises: In response to a sliding operation along the first direction on the first information flow page, when the second floor is located in a preset area of ​​the first information flow page, a third target video is determined from multiple videos to be played in the second floor, the target video player is removed from the first floor, the target video player is added to the playback position of the third target video in the second floor, and the third target video is played through the target video player.

3. The method according to claim 2, characterized in that After playing the third target video through the target video player, the method further includes: In response to a sliding operation along the second direction on the second floor, a fourth target video is determined from a plurality of videos to be played on the second floor, and the fourth target video is played through the target video player.

4. The method according to claim 1, characterized in that: The first information flow page includes a plurality of videos to be played arranged in a waterfall flow; The method further comprises: In response to a sliding operation on the first information stream page, determining and playing a target to-be-played video that meets a playback condition from among the multiple to-be-played videos according to a sliding direction of the sliding operation and a visible area of ​​the first information stream page; After the target video to be played is played for a preset time, the next video to be played after the target video to be played is automatically played according to the order of the waterfall flow.

5. The method according to claim 1, characterized in that: Also includes: In response to a trigger operation on the first target video in the first information flow page, the details page of the first target video is displayed, the target video player is removed from the first information flow page, the target video player is added to the details page, and the first target video is played in the details page through the target video player.

6. The method according to claim 5, characterized in that Playing the first target video on the detail page by using the target video player includes: Obtaining the current playback position of the first target video in the first information flow page; The first target video continues to be played based on the current playback position in the details page through the target video player.

7. The method according to claim 1, characterized in that The first information stream page includes a first information stream and a second information stream, the first target video is located in the first information stream, and the first information stream is located in a visible area of ​​the first information stream page; The method further comprises: In response to the information stream switching operation, when the second information stream is located in the visible area, the target video player is removed from the first information stream, the video player is added to the playback position of the fifth target video in the second information stream, and the fifth target video is played through the target video player.

8. A video playback device, characterized in that: include: A display module, used for displaying a first information flow page, wherein the first information flow page includes a first target video played by a target video player; A playback module is used to respond to a page switching operation, jump from the first information flow page to the second information flow page, remove the target video player from the first information flow page, add the target video player to the playback position of the second target video in the second information flow page, and play the second target video through the target video player.

9. An electronic device, characterized in that: include: at least one processor; A storage device, used to store at least one program, when the at least one program is executed by the at least one processor, enables the at least one processor to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having computer-executable instructions stored thereon, characterized in that: When the executable instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Control method and device for player in application, and video playing device

    CN110611844A

  • Video playing method and device and electronic equipment

    CN110996154A

  • Information display method and device, equipment and medium

    CN114416261A

  • Information display method and device, equipment and medium

    CN114416262A