Video playback method, device and computer readable storage medium

By using the touch operation of the playback progress bar in video playback to determine the target video file, the problem of cumbersome video file switching in the prior art is solved, and efficient video file switching and playback is achieved.

CN115734033BActive Publication Date: 2024-12-20TENCENT TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111014287.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-31
Publication Date
2024-12-20
Estimated Expiration
2041-08-31

Smart Images

  • Figure CN115734033B_ABST
    Figure CN115734033B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a video playback method, device and computer-readable storage medium, which relate to the field of Internet technology; by displaying a video to be played; receiving a touch operation on a current progress control; determining a target interval in which a target progress coordinate falls, and calling a target video file corresponding to the target interval for playback. In this way, by receiving a user's touch operation on a current progress control according to a playback progress bar of a video to be played, and then determining a target interval in which the target progress coordinate falls according to the target progress coordinate carried in the touch operation, the video file corresponding to the target interval is called and played, so as to realize playback of multiple video files and jump playback across video files, simplify the playback process of multiple video files, improve the switching efficiency of video files, and further improve the efficiency of video playback.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a video playback method, device, and computer-readable storage medium. Background Art

[0002] With the continuous development of Internet technology, streaming media technology and related applications have developed rapidly. The way of watching videos anytime and anywhere is deeply loved by education, entertainment and other industries. Streaming media technology is widely used in various industries. People can watch streaming media on demand and live programs through various web pages to enrich their spare time.

[0003] However, in the prior art, during the cross-file playback of different video files, the next video file is played after the current video file is played. This switching method is relatively cumbersome, resulting in low video playback efficiency. Summary of the invention

[0004] The embodiments of the present application provide a video playback method, device, and computer-readable storage medium, which can simplify the playback process of multiple video files, improve the switching efficiency of video files, and further improve the efficiency of video playback.

[0005] The present application provides a video playback method, including:

[0006] Displaying a video to be played, wherein the video to be played is composed of multiple video files, wherein a playback progress bar of the video to be played is composed of multiple intervals formed by multiple marking controls, and each interval is determined by a video file;

[0007] Receive a touch operation on the current progress control, where the touch operation carries the target progress coordinates;

[0008] Determine the target interval in which the target progress coordinates fall, and call the target video file corresponding to the target interval for playback.

[0009] Accordingly, an embodiment of the present application provides a video playback device, including:

[0010] A display unit, used for displaying a video to be played, wherein the video to be played is composed of a plurality of video files, wherein a playback progress bar of the video to be played is composed of a plurality of intervals formed by a plurality of marking controls, and each interval is determined by a video file;

[0011] A receiving unit, configured to receive a touch operation on a current progress control, wherein the touch operation carries target progress coordinates;

[0012] The playing unit is used to determine the target interval in which the target progress coordinates fall, and call the target video file corresponding to the target interval for playing.

[0013] In one embodiment, the receiving unit includes:

[0014] A touch control receiving subunit is used to receive a touch control operation on a current progress control on the playback progress bar, where the current progress control indicates a current playback coordinate of the video to be played;

[0015] The response dragging subunit is used to respond to the touch operation and drag the current progress control from the current playback coordinate to the target progress coordinate.

[0016] In one embodiment, the display unit comprises:

[0017] The response display subunit is used to respond to the playback request of the video to be played and display the video to be played;

[0018] An acquisition subunit, used to acquire the playing time of each video file in the video to be played;

[0019] A combining subunit, used to generate a playing progress bar of the video to be played in combination with the playing time of each video file;

[0020] The position information determination subunit is used to determine the position information of the mark control corresponding to each video file according to the playing time of each video file for display.

[0021] In one embodiment, the video playback device further includes:

[0022] An acquisition unit, configured to receive a playback request for a video to be played, and acquire a target file list corresponding to the video to be played according to the playback request;

[0023] A downloading unit, used for downloading and parsing a play list of each video file in the target file list to obtain a play time of each video file;

[0024] A calculation unit, used to calculate the start time of each video file in the video to be played according to the play order and play duration of each video file, and determine the file index value of each video file;

[0025] The construction unit is used to construct the file information of each video file according to the file index value, the playing time, the download address of the play list and the starting time of each video file and store it in the file information list.

[0026] In one embodiment, the playback unit includes:

[0027] A traversal subunit, configured to traverse each file information in the file information list based on the target progress coordinate;

[0028] A determination subunit, used to determine a target video file matching the target progress coordinates according to the traversal result;

[0029] The playing subunit is used to play the target video file according to the target file information corresponding to the target video file and the target progress coordinates.

[0030] In one embodiment, the determining subunit comprises:

[0031] A first acquisition module, configured to acquire a target file index value corresponding to the target start time when a target start time matching the target progress coordinate is found in the file information list;

[0032] The determination module is used to search for the target file information corresponding to the target file index value, and determine the target video file matching the target progress coordinate according to the target file information.

[0033] In one embodiment, the playback subunit includes:

[0034] A second acquisition module, used to acquire a target download address of a playlist according to target file information corresponding to the target video file;

[0035] A third acquisition module, used to acquire a play list of a target video file according to the target download address;

[0036] The download module is used to download the target media file corresponding to the target progress coordinate based on the play list of the target video file, and play the target media file.

[0037] In one embodiment, the video playback device further includes:

[0038] A to-be-played video file determining unit, configured to determine the to-be-played video file in the file information list according to a playback order when the currently played video file in the to-be-played video file is finished playing;

[0039] A to-be-played video file downloading unit, configured to download a play list corresponding to the to-be-played video file according to the file information list;

[0040] The to-be-played video file playing unit is used to play the to-be-played video file according to the play list corresponding to the to-be-played video file.

[0041] In addition, an embodiment of the present application further provides a computer-readable storage medium, which stores a plurality of instructions, and the instructions are suitable for a processor to load to execute the steps in any one of the video playback methods provided in the embodiment of the present application.

[0042] In addition, an embodiment of the present application further provides a computer device, including a processor and a memory, wherein the memory stores an application program, and the processor is used to run the application program in the memory to implement the video playback method provided in the embodiment of the present application.

[0043] The embodiment of the present application also provides a computer program product or a computer program, wherein the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the video playback method provided in the embodiment of the present application.

[0044] The embodiment of the present application displays the video to be played; receives the touch operation on the current progress control; determines the target interval in which the target progress coordinates fall, and calls the target video file corresponding to the target interval for playback. In this way, by receiving the user's touch operation on the current progress control according to the playback progress bar of the video to be played, and then determining the target interval in which the target progress coordinates fall according to the target progress coordinates carried in the touch operation, the video file corresponding to the target interval is called and played, so as to realize the playback of multiple video files and the jump playback across video files, simplify the playback process of multiple video files, improve the switching efficiency of video files, and further improve the efficiency of video playback. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0046] Figure 1 This is a schematic diagram of an implementation scenario of a video playback method provided in an embodiment of the present application;

[0047] Figure 2 It is a flowchart of a video playback method provided in an embodiment of the present application;

[0048] Figure 3 It is a schematic diagram of a playback screen of a video playback method provided in an embodiment of the present application;

[0049] Figure 4It is a specific flow chart of a video playback method provided in an embodiment of the present application;

[0050] Figure 5 is another flow chart of a video playback method provided by an embodiment of the present application;

[0051] Figure 6 is a structural schematic diagram of a video playback device provided in an embodiment of the present application;

[0052] Figure 7 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0054] The embodiment of the present application provides a video playback method, device and computer-readable storage medium. The video playback device can be integrated in a computer device, which can be a server or a terminal.

[0055] In order to better illustrate the embodiments of the present application, please refer to the following terms for reference:

[0056] HLS: An adaptive bitrate streaming media transmission protocol based on the Hyper Text Transfer Protocol (HTTP), including an M3U8 index file, TS media segment files and key encryption string files. HLS is a new generation of streaming media transmission protocol. Its basic implementation principle is to segment a large media file, record the segment file resource path in an M3U8 file (i.e., playlist), and attach some additional descriptions (such as the multi-bandwidth information of the resource) to provide to the client. The client can obtain the corresponding media resources based on the M3U8 file and play it.

[0057] M3u8 file: refers to the M3U (Moving Picture Experts Group AudioLayer 3Uniform Resource Locator) file in UTF-8 encoding format. The M3U file is a plain text file that records an index. When you open it, the playback software does not play it, but finds the network address of the corresponding audio and video file based on its index for online playback. M3U8 is a common streaming media format, mainly in the form of a file list, which supports both live broadcast and on-demand playback, and is most commonly used on platforms such as Android and iOS.

[0058] TS: HD movie encapsulation format. TS (Transport Stream, TS for short) is the encapsulation format used by Japanese HD cameras. Its full name is MPEG2-TS. It is sent in packets, each of which is 188 bytes long. The packet structure is 4 bytes for the header and 184 bytes for the payload. Many types of data can be filled in the TS stream, such as video, audio, custom information, etc. MPEG2-TS is mainly used for real-time transmission programs, such as real-time broadcast TV programs. The characteristic of the MPEG2-TS format is that it requires that any segment of the video stream can be independently decoded.

[0059] See also Figure 1 , taking the video playback device integrated into the computer device as an example, Figure 1 A schematic diagram of an implementation scenario of the video playback method provided in an embodiment of the present application includes a server A and a terminal B, wherein server A can be an independent physical server, or 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 communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), and big data and artificial intelligence platforms.

[0060] Terminal B can be any computer device capable of playing videos, such as a smart phone, tablet computer, laptop computer, desktop computer, smart watch, etc., but is not limited thereto. Terminal B can display the video to be played; receive a touch operation on the current progress control; determine the target interval in which the target progress coordinate falls, and call the target video file corresponding to the target interval for playing.

[0061] Terminal B and server A may be directly or indirectly connected via wired or wireless communication, and server A may obtain data uploaded by terminal B to perform corresponding video playback operations, which is not limited in this application.

[0062] It should be noted that Figure 1 The schematic diagram of the implementation environment scenario of the video playback method shown is only an example. The implementation environment scenario of the video playback method described in the embodiment of the present application is to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided by the embodiment of the present application. It is known to those skilled in the art that with the evolution of video playback and the emergence of new business scenarios, the technical solution provided by the present application is also applicable to similar technical problems.

[0063] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.

[0064] This embodiment will be described from the perspective of a video playback device. The video playback device may be integrated into a computer device, which may be a terminal. This application does not limit this.

[0065] See also Figure 2 , Figure 2 : is a flow chart of a video playback method provided in an embodiment of the present application. The video playback method can be executed by a terminal, wherein the video playback method includes:

[0066] In step 101, the video to be played is displayed.

[0067] With the continuous development of Internet technology, streaming media technology and related applications have developed rapidly. The way of watching videos anytime and anywhere is deeply loved by education, entertainment and other industries. Streaming media technology is widely used in various industries. People can watch streaming media on demand and live programs through various web pages to enrich their leisure and entertainment life.

[0068] However, in the prior art, when playing different video files across different files, most of the time, the next video file is played after the currently played video file is finished, or the currently played video file needs to be exited, and the file list consisting of multiple video files is returned to, and then the next video file to be played is selected for playback. This switching method is relatively cumbersome, especially for programs such as TV series. When the user wants to watch the previous or next episodes of the video, it is necessary to re-select the corresponding video file in the file list and then jump to play. Therefore, the switching efficiency of multiple video files is low, which leads to low video playback efficiency.

[0069] In order to solve the above problems, the embodiment of the present application provides a video playback method, which receives a touch operation of the current progress control triggered by the user based on the playback progress bar of the video to be played, and then determines the target interval in which the target progress coordinates fall according to the target progress coordinates carried in the touch operation, thereby calling the video file corresponding to the target interval and playing it, so as to realize the playback of multiple video files and jump playback across video files, simplify the playback process of multiple video files, improve the switching efficiency of video files, and further improve the efficiency of video playback. The video playback method provided by the present application is described in detail below.

[0070] First, the video to be played can be displayed.

[0071] The video to be played may be composed of multiple video files, and the playback progress bar of the video to be played is composed of multiple intervals formed by multiple mark controls, and each interval is determined by a video file.

[0072] Specifically, after receiving a play request for a video to be played, the video to be played can be obtained and displayed, and a play progress bar can be displayed according to the video to be played, and a mark control corresponding to each video file and a current progress control can be displayed in the play progress bar. The current progress control indicates the current play progress of the video to be played, for example, indicating that the video to be played is played to the 10th minute, or the 10th second of the 10th minute, etc. In this way, the user can know the play progress of the current video to be played through the current progress control, and can know the corresponding interval of each video file in the play progress bar through the mark control, and then can jump to play different video files through the play progress bar according to the mark control corresponding to each video file.

[0073] Among them, the currently displayed video to be played can be the first video file in the videos to be played, or a video file determined according to the user's viewing history, or any video file in the videos to be played selected by the user, which is not limited here.

[0074] In one embodiment, after receiving a play request for a video to be played, the play request for the video to be played can be responded to and the video to be played can be displayed. At the same time, the play duration of each video file in the video to be played can be obtained, and a play progress bar of the video to be played can be generated in combination with the play duration of each video file, so that the position information of the mark control corresponding to each video file can be determined according to the play duration of each video file for display.

[0075] For example, see Figure 3 , Figure 3A schematic diagram of a playback screen of a video playback method provided in an embodiment of the present application, assuming that the videos to be played include video file 1, video file 2 and video file 3, and assuming that the playback time of video file 1 is 50 minutes, the playback time of video file 2 is 50 minutes, and the playback time of video file 3 is 40 minutes. At this time, video file 1 among the videos to be played is displayed, wherein the playback progress bar of the video to be played can be generated by combining video file 1, video file 2 and video file 3, and the total duration of the playback progress bar is the accumulation of the playback time of video file 1, video file 2 and video file 3, that is, the total duration of the playback progress bar is 50+50+40=140 minutes. At the same time, the position information of the mark control corresponding to each video file can be determined according to the playback time of video file 1, video file 2 and video file 3 for display. Specifically, the mark control 1 corresponding to video file 1 can be displayed at the 0th minute in the playback progress bar, that is, at the starting position of the playback progress bar. Since the playback progress bar The starting point position in the play progress bar already has the function of a distinguishing mark, therefore, mark control 1 need not be displayed. Accordingly, mark control 2 corresponding to video file 2 can be displayed at the 50th minute in the play progress bar, and mark control 3 corresponding to video file 3 can be displayed at the 100th minute in the play progress bar. In this way, the interval formed by mark control 1 and mark control 2 is the interval corresponding to video file 1, the interval formed by mark control 1 and mark control 2 is the interval corresponding to video file 1, the interval formed by mark control 2 and mark control 3 is the interval corresponding to video file 2, and the interval formed by mark control 3 and the end position of the play progress bar is the interval corresponding to video file 3.

[0076] In one embodiment, the user can pre-set the number of mark controls displayed in the playback progress bar of the video to be played, that is, the number of video files. For example, assuming that the video to be played consists of 10 video files, the user can set the mark controls corresponding to 3 video files to be displayed in the playback progress bar of the video to be played. The user can also set the mark controls corresponding to all video files to be displayed in the playback progress bar of the video to be played, that is, the mark controls of 10 video files are displayed in the playback progress bar of the video to be played. The specific settings can be customized according to the actual situation such as the user's preferences and needs, and are not limited here.

[0077] In step 102, a touch operation on the current progress control is received.

[0078] Among them, the touch operation (Seek) can be an operation triggered by the user dragging the current progress control through the playback progress bar. The touch operation carries the target progress coordinate (SeekToPosition). The target progress coordinate can be the playback progress of the video to be played that the user wants to jump to, for example, the 10th minute of the video to be played, or the 10th second of the 3rd minute, etc. The interval where the target progress coordinate is located can be different from the interval where the current playback coordinate is located, that is, the video file corresponding to the target progress coordinate can be different from the video file corresponding to the current playback coordinate. For example, assuming that the video to be played is currently playing the video screen of the 10th minute, and assuming that the user wants to start watching from the 20th minute of the video to be played, at this time, the user can trigger the touch operation to jump the current playback progress from the 10th minute to the 20th minute, then the target progress coordinate is the position corresponding to the 20th minute in the playback progress bar, wherein the user can trigger the touch operation by selecting the current progress control and moving the current progress control to the target progress coordinate, or can trigger the touch operation by clicking the position corresponding to the target progress coordinate in the playback progress bar, etc.

[0079] In one embodiment, a touch operation for the current progress control on the playback progress bar can be received, and the current progress control indicates the current playback coordinates of the video to be played; in response to the touch operation, the current progress control is dragged from the current playback coordinates to the target progress coordinates. Wherein, the current playback coordinates can be the corresponding position of the current progress control in the playback progress bar, for example, assuming that the content of the tenth minute of the video to be played is currently being played, the current playback coordinates are the tenth minute of the video to be played. At this time, the current progress control indicates that the content of the tenth minute of the video to be played is currently being played, for example, assuming that the picture of the video to be played currently is the picture of the 10th minute in the playback progress bar, and assuming that the target progress coordinates are the position corresponding to the 60th minute in the playback progress bar, then the current progress control indicates that the current playback coordinates are the position corresponding to the 10th minute in the playback progress bar, after receiving the touch operation for the current progress control on the playback progress bar, the touch operation can be responded to, and then the current progress control can be dragged from the position of the 10th minute in the playback progress bar to the position of the 60th minute corresponding to the target progress coordinates.

[0080] In step 103, the target interval in which the target progress coordinates fall is determined, and the target video file corresponding to the target interval is called for playback.

[0081] After determining the target progress coordinates of the jump play operation of the video to be played, the target video file corresponding to the target interval can be called for play according to the target interval in which the target progress coordinates fall, so as to achieve jump play across video files. The target interval is the interval formed by the interval between two adjacent mark controls in the play progress bar, and the target interval can be different from the interval where the current progress control is located.

[0082] In one embodiment, in order to determine the target interval in which the target progress coordinates fall, so as to determine the corresponding target video file for playback, an index table can be constructed according to the file information and index value of each video file. Specifically, after receiving a playback request for the video to be played, a target file list corresponding to the video to be played can be obtained, and the target file list includes a play list (M3U8 file) corresponding to each video file in the video to be played. The M3U8 file of each video file in the target file list is downloaded and parsed, and the playback duration of each video file can be obtained. Furthermore, the start time of each video file in the video to be played can be calculated according to the playback order and playback duration of each video file, and the file index value of each video file can be determined, so that the file information of each video file can be constructed according to the file index value, playback duration, download address and start time of the play list of each video file and stored in the file information list. Among them, the file information of each video file may not only include the file index value, playback duration, download address and start time of each video file, but the information included in the file information of each video file may be determined according to actual conditions and is not limited here. For example, it may also include the starting display timestamp of each video file, which may be the presentation time stamp (PTS) of the first video frame of each video file.

[0083] The file index value may be determined according to the playback order of each video file. For example, for the videos to be played in the playback order of video file 1, video file 2, and video file 3, the file index value of video file 1 may be 1, the file index value of video file 2 may be 2, the file index value of video file 3 may be 3, and so on. The file index value may also be determined by other methods, which are not limited here.

[0084] Among them, the M3U8 file of each video file may include multiple media files of the video file, that is, TS files. The TS files in the M3U8 file of each video file can be parsed to obtain the playback time of each video file. For example, assuming that each TS file in the M3U8 file of video file 1 is a video clip with a duration of 1 minute, and the M3U8 file of video file 1 includes 50 TS files with a duration of 1 minute, after parsing the TS files in the M3U8 file of video file 1, it can be obtained that the playback time of video file 1 is 50 minutes.

[0085] The download address of the playlist can be the download address corresponding to the playlist of each video file in the video to be played, that is, the download address corresponding to the M3U8 file of each video file. The corresponding M3U8 file in the target file list can be found and downloaded through the download address.

[0086] The start time may be the relative start time of each video file in the video to be played, for example, assuming that the video to be played includes video file 1, video file 2 and video file 3, and assuming that the playing time of video file 1 is 50 minutes, the playing time of video file 2 is 50 minutes, and the playing time of video file 3 is 40 minutes. Then the start time of video file 1 in the video to be played is 0, the start time of video file 2 in the video to be played is 50 minutes, and the start time of video file 3 in the video to be played is 100 minutes.

[0087] In one embodiment, the current playback coordinates of the current progress control can be determined by the start time of the video file corresponding to the interval where the current progress control is located, the display timestamp of the currently played video frame, and the start display timestamp of the video file. For example, assuming that the start time of the video file corresponding to the interval where the current progress control is located is 30 minutes, the display timestamp of the currently played video frame is 16 minutes, and the start display timestamp of the video file is 10 minutes, then the current playback coordinates of the current progress control can be 30+(16-10)=36 minutes.

[0088] After the file information of each video file is constructed and stored in the file information list, the corresponding video file can be found in the file information list according to the file information of each video, so as to realize the jump playback across video files. Specifically, the step of determining the target interval in which the target progress coordinate falls and calling the target video file corresponding to the target interval for playback may include:

[0089] (1) traverse each file information in the file information list based on the target progress coordinate;

[0090] (2) determining a target video file that matches the target progress coordinates according to the traversal result;

[0091] (3) Play the target video file according to the target file information corresponding to the target video file and the target progress coordinates.

[0092] Among them, each file information in the file information list can be traversed according to the target progress coordinates carried by the touch operation. When a target start time matching the target progress coordinates is found in the file information list, that is, a certain video file is found, so that the target progress coordinates are in the start time interval formed by the start time of the video file and the corresponding playback end time, the start time of the video file can be determined as the target start time. The start time interval is composed of the time interval between the start time of a certain video file and the corresponding playback end time, so that the target file index value corresponding to the target start time can be obtained, and the target file information corresponding to the target file index value can be searched according to the target file index value, and the target video file matching the target progress coordinates is determined according to the target file information.

[0093] Among them, the playback end time can be the sum of the start time of any video file and the playback time of the video file. For example, assuming that the start time of video file 4 in the video to be played is 140 minutes and the playback time is 50 minutes, then the playback end time is 140+50=190 minutes.

[0094] For example, it can be assumed that the videos to be played include video file 1, video file 2 and video file 3, the playing time of video file 1 is 50 minutes, the file index value is 1, the playing time of video file 2 is 50 minutes, the file index value is 2, and the playing time of video file 3 is 40 minutes, the file index value is 3. Then the starting time of video file 1 in the videos to be played is 0, the starting time of video file 2 in the videos to be played is 50 minutes, and the starting time of video file 3 in the videos to be played is 100 minutes. At the same time, it can be assumed that the user moves the current progress control to the position corresponding to the video content of the 60th minute along the play progress bar, that is, the target progress coordinate is the position corresponding to the video content of the 60th minute in the play progress bar. At this time, the file information of video file 1, video file 2 and video file 3 can be traversed in the file information list of the video to be played, and the starting time interval of the target progress coordinate 60 minutes can be found in the traversal process. Since the starting time interval formed by the start time of video file 1 and the corresponding playback end time is (0, 50 minutes), the starting time interval formed by the start time of video file 2 and the corresponding playback end time is (50 minutes, 100 minutes), and the starting time interval formed by the start time of video file 3 and the corresponding playback end time is (100 minutes, 140 minutes), it can be found that the target progress coordinate 60 minutes is in the target interval (50 minutes, 100 minutes), and then the starting time 50 minutes in the target interval can be determined as the target starting time, so that the target file index value 2 corresponding to the target starting time 50 minutes can be found in the file information list, and the target file information corresponding to the target file index value 2 is searched, and the target video file matching the target progress coordinate 60 minutes, that is, video file 2, is determined according to the target file information.

[0095] In one embodiment, the step of playing the target video file according to the target file information corresponding to the target video file and the target progress coordinates may include:

[0096] (1) obtaining a target download address of the playlist according to the target file information corresponding to the target video file;

[0097] (2) obtaining a playlist of the target video file according to the target download address;

[0098] (3) Downloading the target media file corresponding to the target progress coordinate based on the play list of the target video file, and playing the target media file.

[0099] Among them, the target file information can be the file information of the target video file, the target download address can be the download address (Uniform Resource Locator, URL for short) of the play list of the target video file in the target file information, the target media file can be the media file corresponding to the target progress coordinates in the play list of the target video file, the media file can be a media segment resource, and the media segment resource can be a TS file.

[0100] Specifically, the target download address of the playlist can be found in the target file information corresponding to the target video file, and the playlist of the target video file can be downloaded according to the target download address, that is, the M3U8 file. The media segment resources of the target video file can be recorded in the M3U8 file, that is, the TS file. Then, the target media file corresponding to the target progress coordinate can be found in the TS file recorded in the M3U8 file of the target video file and downloaded. Then, the target media file can be played to play the content corresponding to the target progress coordinate in the video to be played, so as to realize the jump and playback of multiple video files. For example, assuming that the playback time of the target video file is 30 minutes, the starting time in the video to be played is 40 minutes, and assuming that the M3U8 file of the target video file records 30 TS files, each TS file is a media segment with a duration of 1 minute, and each TS file can be named in order:

[0101] Target video file_1min.ts

[0102] Target video file_2min.ts

[0103] Target video file_3min.ts ......

[0105] Target video file_29min.ts

[0106] Target video file_30min.ts

[0107] Assuming the target progress coordinate is 59 minutes, the TS file 59-30=29, i.e., target video file_29min.ts, can be found in the TS file recorded in the M3U8 file, and the TS file can be downloaded for playback. When the file is played, the next TS file, i.e., target video file_30min.ts, can be played in sequence.

[0108] Specifically, when the target progress coordinate is 59 minutes and 10 seconds, the target media file target video file_29min.ts can be found in the TS file recorded in the M3U8 file, and the target video frame corresponding to the 10th second in the target media file can be determined according to the display timestamp (PTS) of each video frame in the target media file, and the target video file is played based on the target video frame, so as to realize the playback of the video to be played jumping from the current playback coordinates to the target progress coordinates.

[0109] In one embodiment, when the video file currently being played in the video to be played is finished, the video file to be played can be determined in the file information list according to the play order. For example, assuming that the current progress control is at the 50th minute position in the play progress bar, that is, video file 1 is finished playing, the video file to be played can be determined to be video file 2 according to the play order of the video to be played, and then the play list corresponding to the video file to be played can be downloaded according to the file information list, and the video file to be played can be played according to the play list corresponding to the video file to be played. Specifically, when the video file currently being played is finished playing, the next video file of the video file currently being played can be determined in the file information list according to the play order of each video file in the video to be played, that is, the video file to be played, and the download address of the M3U8 file of the video file to be played can be found through the file information of the video file to be played stored in the file information list, and then the M3U8 file corresponding to the video file to be played can be downloaded according to the download address, so that the TS file recorded in the M3U8 file of the video file to be played can be obtained, and each TS file is downloaded and played in order, so as to achieve the playback of the video file to be played.

[0110] As can be seen from the above, the embodiment of the present application displays the video to be played; receives the touch operation on the current progress control; determines the target interval in which the target progress coordinates fall, and calls the target video file corresponding to the target interval for playback. In this way, by receiving the user's touch operation on the current progress control according to the playback progress bar of the video to be played, and then determining the target interval in which the target progress coordinates fall according to the target progress coordinates carried in the touch operation, the video file corresponding to the target interval is called and played, so as to realize the playback of multiple video files and the jump playback across video files, simplifying the playback process of multiple video files, improving data processing efficiency, and further improving video switching efficiency.

[0111] According to the method described in the above embodiment, the following is further described in detail with examples.

[0112] In this embodiment, the video playback device is specifically integrated into a computer device as an example for description. The video playback method is specifically described with a terminal as the execution subject. For details, please refer to Figure 4 , Figure 4 A schematic diagram of a specific process of a video playback method provided in an embodiment of the present application.

[0113] To better describe the embodiments of this application, please refer to Figure 4 and Figure 5 .like Figure 5 As shown, Figure 5 This is another flow chart of the video playback method provided in the embodiment of the present application. The specific flow is as follows:

[0114] In step 201, the terminal receives a play request for a video to be played, obtains a target file list corresponding to the video to be played according to the play request, downloads and parses a play list of each video file in the target file list, and obtains the play duration of each video file.

[0115] The video to be played includes at least one video file, and the target file list includes a play list (M3U8 file) of each video file in the video to be played. Each M3U8 file records the media segment resources of the target video file, that is, a TS file.

[0116] In order to determine the target interval within which the target progress coordinates fall, so as to determine the corresponding target video file for playback, an index table can be constructed based on the file information and index value of each video file. Specifically, after receiving a playback request for a video to be played, the terminal can obtain a target file list corresponding to the video to be played, the target file list including a play list corresponding to each video file in the video to be played, download the M3U8 file of each video file in the target file list, parse the TS file recorded in the M3U8 file of each video file, obtain the segment duration of each TS file, and accumulate the segment duration of each video file to obtain the playback duration of each video file.

[0117] In step 202, the terminal calculates the start time of each video file in the video to be played according to the play order and play duration of each video file, and determines the file index value of each video file, and constructs the file information of each video file according to the file index value, play duration, download address of the play list and start time of each video file and stores it in the file information list.

[0118] Specifically, the terminal can calculate the start time of each video file in the video to be played according to the play order and play duration of each video file, and determine the file index value of each video file according to the play order of each video file, so that the file information of each video file can be constructed according to the file index value, play duration, download address of the play list and the start time of each video file and stored in the file information list. Among them, the file information of each video file may not only include the file index value, play duration, download address and start time of each video file, and the information included in the file information of each video file can be determined according to the actual situation, which is not limited here. For example, it can also include the start display timestamp of each video file, and the start display timestamp can be the presentation time stamp (PTS) of the first video frame of each video file.

[0119] The file index value may be determined according to the playback order of each video file. For example, for the videos to be played in the playback order of video file 1, video file 2, and video file 3, the file index value of video file 1 may be 1, the file index value of video file 2 may be 2, the file index value of video file 3 may be 3, and so on. The file index value may also be determined by other methods, which are not limited here.

[0120] Among them, the M3U8 file of each video file can include multiple media files of the video file, that is, TS files. The terminal can parse the TS files in the M3U8 file of each video file to obtain the playback time of each video file. For example, assuming that each TS file in the M3U8 file of video file 1 is a video clip with a duration of 1 minute, and the M3U8 file of video file 1 includes 50 TS files with a duration of 1 minute, after parsing the TS files in the M3U8 file of video file 1, it can be obtained that the playback time of video file 1 is 50 minutes.

[0121] The download address of the playlist can be the download address corresponding to the playlist of each video file in the video to be played, that is, the download address corresponding to the M3U8 file of each video file. The corresponding M3U8 file in the target file list can be found and downloaded through the download address.

[0122] The start time may be the relative start time of each video file in the video to be played, for example, assuming that the video to be played includes video file 1, video file 2 and video file 3, and assuming that the playing time of video file 1 is 50 minutes, the playing time of video file 2 is 50 minutes, and the playing time of video file 3 is 40 minutes. Then the start time of video file 1 in the video to be played is 0, the start time of video file 2 in the video to be played is 50 minutes, and the start time of video file 3 in the video to be played is 100 minutes.

[0123] In one embodiment, the file information of each video file may be constructed in the form of a data structure, for example, it may be:

[0124]

[0125] In step 203, the terminal responds to the playback request of the video to be played, displays the video to be played, obtains the playback duration of each video file in the video to be played, generates a playback progress bar for the video to be played based on the playback duration of each video file, and determines the position information of the mark control corresponding to each video file according to the playback duration of each video file for display.

[0126] The video to be played currently displayed by the terminal may be the first video file in the videos to be played, or may be a video file determined according to the user's viewing history, or may be any video file in the videos to be played selected by the user, which is not limited here.

[0127] Specifically, after receiving a playback request for a video to be played, the terminal can respond to the playback request for the video to be played and display the video to be played. At the same time, it can obtain the playback duration of each video file in the video to be played, and generate a playback progress bar for the video to be played in combination with the playback duration of each video file, so that the position information of the mark control corresponding to each video file can be determined according to the playback duration of each video file for display.

[0128] For example, please refer to Figure 3, assuming that the videos to be played include video file 1, video file 2 and video file 3, and assuming that the playing time of video file 1 is 50 minutes, the playing time of video file 2 is 50 minutes, and the playing time of video file 3 is 40 minutes. At this time, video file 1 among the videos to be played is displayed, wherein the playing progress bar of the video to be played can be generated by combining video file 1, video file 2 and video file 3, and the total duration of the playing progress bar is the accumulation of the playing time of video file 1, video file 2 and video file 3, that is, the total duration of the playing progress bar is 50+50+40=140 minutes. At the same time, the position information of the mark control corresponding to each video file can be determined according to the playing time of video file 1, video file 2 and video file 3 for display. Specifically, the mark control 1 corresponding to video file 1 can be displayed at the 0th minute in the playing progress bar, that is, the starting position of the playing progress bar. Since the playing progress bar The starting point position in the play progress bar already has the function of a distinguishing mark, therefore, mark control 1 need not be displayed. Accordingly, mark control 2 corresponding to video file 2 can be displayed at the 50th minute in the play progress bar, and mark control 3 corresponding to video file 3 can be displayed at the 100th minute in the play progress bar. In this way, the interval formed by mark control 1 and mark control 2 is the interval corresponding to video file 1, the interval formed by mark control 1 and mark control 2 is the interval corresponding to video file 1, the interval formed by mark control 2 and mark control 3 is the interval corresponding to video file 2, and the interval formed by mark control 3 and the end position of the play progress bar is the interval corresponding to video file 3.

[0129] In one embodiment, the user can pre-set the number of mark controls displayed in the playback progress bar of the video to be played, that is, the number of video files. For example, assuming that the video to be played consists of 10 video files, the user can set the mark controls corresponding to 3 video files to be displayed in the playback progress bar of the video to be played. The user can also set the mark controls corresponding to all video files to be displayed in the playback progress bar of the video to be played, that is, the mark controls of 10 video files are displayed in the playback progress bar of the video to be played. The specific settings can be customized according to the actual situation such as the user's preferences and needs, and are not limited here.

[0130] In step 204, the terminal receives a touch operation on the current progress control on the play progress bar, and in response to the touch operation, drags the current progress control from the current play coordinate to the target progress coordinate.

[0131] Among them, the terminal can receive a touch operation on the current progress control on the playback progress bar, and the current progress control indicates the current playback coordinates of the video to be played, and then the terminal can respond to the touch operation and drag the current progress control from the current playback coordinates to the target progress coordinates. For example, assuming that the picture of the video to be played currently being played is the picture of the 10th minute in the playback progress bar, and assuming that the target progress coordinates are the position corresponding to the 60th minute in the playback progress bar, then the current progress control indicates that the current playback coordinates are the position corresponding to the 10th minute in the playback progress bar. After receiving the touch operation on the current progress control on the playback progress bar, the terminal can respond to the touch operation, and then the current progress control can be dragged from the 10th minute position in the playback progress bar to the 60th minute position corresponding to the target progress coordinates.

[0132] In step 205, the terminal traverses each file information in the file information list based on the target progress coordinates, and when a target start time matching the target progress coordinates is found in the file information list, the target file index value corresponding to the target start time is obtained.

[0133] Specifically, the terminal can traverse each file information in the file information list according to the target progress coordinates carried by the touch operation. When a target start time matching the target progress coordinates is found in the file information list, that is, a certain video file is found, so that the target progress coordinates are in the start time interval formed by the start time of the video file and the corresponding playback end time, the start time of the video file can be determined as the target start time. The start time interval is composed of the time interval between the start time of a certain video file and the corresponding playback end time, so that the target file index value corresponding to the target start time can be obtained.

[0134] Among them, the playback end time can be the sum of the start time of any video file and the playback time of the video file. For example, assuming that the start time of video file 4 in the video to be played is 140 minutes and the playback time is 50 minutes, then the playback end time is 140+50=190 minutes.

[0135] For example, it can be assumed that the videos to be played include video file 1, video file 2 and video file 3, the playing time of video file 1 is 50 minutes, the file index value is 1, the playing time of video file 2 is 50 minutes, the file index value is 2, and the playing time of video file 3 is 40 minutes, the file index value is 3. Then the starting time of video file 1 in the videos to be played is 0, the starting time of video file 2 in the videos to be played is 50 minutes, and the starting time of video file 3 in the videos to be played is 100 minutes. At the same time, it can be assumed that the user moves the current progress control to the position corresponding to the video content of the 60th minute along the play progress bar, that is, the target progress coordinate is the position corresponding to the video content of the 60th minute in the play progress bar. At this time, the file information of video file 1, video file 2 and video file 3 can be traversed in the file information list of the video to be played, and the starting time interval of the target progress coordinate 60 minutes can be found in the traversal process. Since the starting time interval formed by the start time of video file 1 and the corresponding playback end time is (0, 50 minutes), the starting time interval formed by the start time of video file 2 and the corresponding playback end time is (50 minutes, 100 minutes), and the starting time interval formed by the start time of video file 3 and the corresponding playback end time is (100 minutes, 140 minutes), it can be found that the target progress coordinate 60 minutes is in the target interval (50 minutes, 100 minutes), and then the starting time 50 minutes in the target interval can be determined as the target starting time, so that the target file index value 2 corresponding to the target starting time 50 minutes can be found in the file information list, and the target file information corresponding to the target file index value 2 is searched, and the target video file matching the target progress coordinate 60 minutes, that is, video file 2, is determined according to the target file information.

[0136] In step 206, the terminal searches for target file information corresponding to the target file index value, and determines a target video file matching the target progress coordinates according to the target file information.

[0137] After obtaining the target file index value, the terminal can search for the target file information with the file index value of the target file index value in the file information list according to the target file index value, and can determine the target video file matching the target progress coordinates according to the target file information.

[0138] In step 207, the terminal obtains the target download address of the play list according to the target file information corresponding to the target video file, obtains the play list of the target video file according to the target download address, downloads the target media file corresponding to the target progress coordinate based on the play list of the target video file, and plays the target media file.

[0139] Among them, the target file information can be the file information of the target video file, the target download address can be the download address (Uniform Resource Locator, URL for short) of the play list of the target video file in the target file information, the target media file can be the media file corresponding to the target progress coordinates in the play list of the target video file, the media file can be a media segment resource, and the media segment resource can be a TS file.

[0140] Specifically, the terminal can search for the target download address of the playlist in the target file information corresponding to the target video file, and download the playlist of the target video file according to the target download address, that is, the M3U8 file. The M3U8 file records the media segment resources of the target video file, that is, the TS file. Then, the target media file corresponding to the target progress coordinate can be searched and downloaded in the TS file recorded in the M3U8 file of the target video file, and then the target media file can be played to play the content corresponding to the target progress coordinate in the video to be played, so as to realize the jump and playback of multiple video files. For example, assuming that the playback time of the target video file is 30 minutes, the starting time in the video to be played is 40 minutes, and assuming that the M3U8 file of the target video file records 30 TS files, each TS file is a media segment with a duration of 1 minute, and each TS file can be named in order:

[0141] Target video file_1min.ts

[0142] Target video file_2min.ts

[0143] Target video file_3min.ts ......

[0145] Target video file_29min.ts

[0146] Target video file_30min.ts

[0147] Assuming the target progress coordinate is 33 minutes, the 33rd-30th=3rd TS file, i.e., the target video file_3min.ts, can be found in the TS file recorded in the M3U8 file, and the TS file can be downloaded for playback. When the file is played, the next TS file can be played in sequence, i.e., the target video file_4min.ts.

[0148] Specifically, when the target progress coordinate is 3 minutes and 10 seconds, the terminal can find the target media file (target video file_3min.ts) in the TS file recorded in the M3U8 file, and determine the target video frame corresponding to the 10th second in the target media file according to the display timestamp of each video frame in the target media file, and play the target video file based on the target video frame, thereby realizing the jump from the current playback coordinates to the playback of the video to be played at the target progress coordinates.

[0149] As can be seen from the above, the embodiment of the present application receives a play request for a video to be played through a terminal, obtains a target file list corresponding to the video to be played according to the play request, downloads a play list of each video file in the target file list and parses it to obtain the play time of each video file; the terminal calculates the start time of each video file in the video to be played according to the play order and play time of each video file, and determines the file index value of each video file, constructs the file information of each video file according to the file index value, play time, download address of the play list and the start time of each video file, and stores it in the file information list; the terminal responds to the play request for the video to be played, displays the video to be played, obtains the play time of each video file in the video to be played, generates a play progress bar for the video to be played in combination with the play time of each video file, and determines the position information of the mark control corresponding to each video file according to the play time of each video file for display; the terminal receives the play request for the video to be played, obtains the play time of each video file in the video to be played, generates a play progress bar for the video to be played in combination with the play time of each video file, and displays the position information of the mark control corresponding to each video file according to the play time of each video file; In response to a touch operation on the current progress control on the playback progress bar, the current progress control is dragged from the current playback coordinate to the target progress coordinate; the terminal traverses each file information in the file information list based on the target progress coordinate, and when a target start time matching the target progress coordinate is found in the file information list, the target file index value corresponding to the target start time is obtained; the terminal searches for the target file information corresponding to the target file index value, and determines the target video file matching the target progress coordinate according to the target file information, and plays the target video file according to the target file information corresponding to the target video file and the target progress coordinate; the terminal obtains a target download address of a playlist according to the target file information corresponding to the target video file, obtains a playlist of the target video file according to the target download address, downloads the target media file corresponding to the target progress coordinate based on the playlist of the target video file, and plays the target media file. In this way, by receiving a play request for a video to be played, a target file list of the video to be played is obtained, and then the file information of each video file is constructed according to the target file list and stored in the file information list. When the user touches the current progress control according to the play progress bar of the video to be played, the target video file corresponding to the target progress coordinates can be determined according to the target progress coordinates carried in the touch operation and the file information of each video file in the file information list, so as to play the target video file according to the download address of the play list in the file information of the target video file, so as to realize the playback of multiple video files and jump playback across video files, simplify the playback process of multiple video files, improve the switching efficiency of video files, and further improve the efficiency of video playback.

[0150] In order to better implement the above method, an embodiment of the present invention further provides a video playback device, which can be integrated in a terminal.

[0151] For example, Figure 6 As shown, it is a schematic diagram of the structure of a video playback device provided in an embodiment of the present application. The video playback device may include a display unit 301, a receiving unit 302 and a playback unit 303, as follows:

[0152] The display unit 301 is used to display the video to be played, which is composed of multiple video files, wherein the playback progress bar of the video to be played is composed of multiple intervals formed by multiple marking controls, and each interval is determined by a video file;

[0153] The receiving unit 302 is used to receive a touch operation on the current progress control, where the touch operation carries the target progress coordinates;

[0154] The playing unit 303 is used to determine the target interval in which the target progress coordinates fall, and call the target video file corresponding to the target interval for playing.

[0155] In one embodiment, the receiving unit 302 includes:

[0156] A touch control receiving subunit is used to receive a touch control operation on a current progress control on the playback progress bar, where the current progress control indicates a current playback coordinate of the video to be played;

[0157] The response dragging subunit is used to respond to the touch operation and drag the current progress control from the current playback coordinate to the target progress coordinate.

[0158] In one embodiment, the display unit 301 includes:

[0159] The response display subunit is used to respond to the playback request of the video to be played and display the video to be played;

[0160] An acquisition subunit is used to acquire the playing time of each video file in the video to be played;

[0161] A combining subunit, used to generate a playing progress bar of the video to be played in combination with the playing time of each video file;

[0162] The position information determination subunit is used to determine the position information of the mark control corresponding to each video file according to the playing time of each video file for display.

[0163] In one embodiment, the video playback device further includes:

[0164] An acquisition unit, configured to receive a playback request for a video to be played, and acquire a target file list corresponding to the video to be played according to the playback request;

[0165] A download unit, used for downloading and parsing a play list of each video file in the target file list to obtain a play time of each video file;

[0166] A calculation unit, used to calculate the start time of each video file in the video to be played according to the play order and play duration of each video file, and determine the file index value of each video file;

[0167] The construction unit is used to construct the file information of each video file according to the file index value, the playing time, the download address of the play list and the starting time of each video file and store it in the file information list.

[0168] In one embodiment, the playback unit 303 includes:

[0169] A traversal subunit, used for traversing each file information in the file information list based on the target progress coordinate;

[0170] A determination subunit, used to determine a target video file matching the target progress coordinate according to the traversal result;

[0171] The playing subunit is used to play the target video file according to the target file information corresponding to the target video file and the target progress coordinates.

[0172] In one embodiment, the determining subunit comprises:

[0173] A first acquisition module is used to acquire a target file index value corresponding to the target start time when a target start time matching the target progress coordinate is found in the file information list;

[0174] The determination module is used to find the target file information corresponding to the target file index value, and determine the target video file matching the target progress coordinate according to the target file information.

[0175] In one embodiment, the playback subunit includes:

[0176] A second acquisition module is used to acquire a target download address of a playlist according to target file information corresponding to the target video file;

[0177] A third acquisition module is used to acquire a play list of a target video file according to the target download address;

[0178] The download module is used to download the target media file corresponding to the target progress coordinate based on the play list of the target video file, and play the target media file.

[0179] In one embodiment, the video playback device further includes:

[0180] A to-be-played video file determination unit, configured to determine the to-be-played video file in the file information list according to a playback order when the currently played video file in the to-be-played video file is finished playing;

[0181] A to-be-played video file downloading unit, used for downloading a playlist corresponding to the to-be-played video file according to the file information list;

[0182] The to-be-played video file playing unit is used to play the to-be-played video file according to the play list corresponding to the to-be-played video file.

[0183] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.

[0184] As can be seen from the above, the embodiment of the present application displays the video to be played through the display unit 301; the receiving unit 302 receives the touch operation on the current progress control; the playing unit 303 determines the target interval where the target progress coordinates fall, and calls the target video file corresponding to the target interval for playing. In this way, by receiving the user's touch operation on the current progress control according to the play progress bar of the video to be played, and then determining the target interval where the target progress coordinates fall according to the target progress coordinates carried in the touch operation, the video file corresponding to the target interval is called and played, so as to realize the playback of multiple video files and the jump playback across video files, simplifying the playback process of multiple video files, improving the switching efficiency of video files, and further improving the efficiency of video playback.

[0185] The present application also provides a computer device, such as Figure 7 As shown, it shows a schematic diagram of the structure of a computer device involved in an embodiment of the present application, and the computer device may be a terminal. Specifically:

[0186] The computer device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that Figure 7 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:

[0187] The processor 401 is the control center of the computer device. It uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 402 and calling data stored in the memory 402, it executes various functions of the computer device and processes data, thereby performing overall detection of the computer device. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.

[0188] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and video playback by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.

[0189] The computer device also includes a power supply 403 for supplying power to various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 403 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0190] The computer device may further include an input unit 404, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0191] Although not shown, the computer device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 401 in the computer device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application programs stored in the memory 402, thereby realizing various functions, as follows:

[0192] Obtain page jump relationship data of each page in the client, and construct a page jump structure tree according to the page jump relationship data; determine the first node position of the target current page in the page jump structure tree; perform path traversal based on the first node position to determine the target path; determine the target page jump control identifier of the target current page according to the target path; send the target page jump control identifier to the client, so that the client performs page jump according to the target page jump control corresponding to the target page jump control identifier.

[0193] The specific implementation of each of the above operations can be found in the previous embodiments, which will not be described in detail here. It should be noted that the computer device provided in the embodiment of the present application and the video playback method in the above embodiment belong to the same concept, and its specific implementation process is detailed in the above method embodiment, which will not be described in detail here.

[0194] As can be seen from the above, the embodiment of the present application displays the video to be played; receives the touch operation on the current progress control; determines the target interval in which the target progress coordinates fall, and calls the target video file corresponding to the target interval for playback. In this way, by receiving the user's touch operation on the current progress control according to the playback progress bar of the video to be played, and then determining the target interval in which the target progress coordinates fall according to the target progress coordinates carried in the touch operation, the video file corresponding to the target interval is called and played, so as to realize the playback of multiple video files and the jump playback across video files, simplifying the playback process of multiple video files, improving the switching efficiency of video files, and further improving the efficiency of video playback.

[0195] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0196] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the video playback methods provided in the embodiments of the present application. For example, the instructions can execute the following steps:

[0197] Display the video to be played; receive a touch operation on the current progress control; determine the target interval in which the target progress coordinates fall, and call the target video file corresponding to the target interval for playback.

[0198] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0199] Since the instructions stored in the computer-readable storage medium can execute the steps in any video playback method provided in the embodiments of the present application, the beneficial effects that can be achieved by any video playback method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0200] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are 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 the various optional implementations provided in the above embodiments.

[0201] The above is a detailed introduction to a video playback method, device and computer-readable storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A video playback method, characterized in that: include: The terminal receives a play request for a video to be played, obtains a target file list corresponding to the video to be played according to the play request, downloads a play list of each video file in the target file list and parses it to obtain a play time of each video file; wherein the play list adopts an M3U8 streaming media format; The terminal calculates the start time of each video file in the video to be played according to the play order and play duration of each video file, and determines the file index value of each video file, and constructs the file information of each video file according to the file index value, play duration, download address of the play list and the start time of each video file and stores it in the file information list; Displaying a video to be played, including: the terminal responding to a playback request of the video to be played, displaying the video to be played, obtaining the playback time of each video file in the video to be played, generating a playback progress bar of the video to be played in combination with the playback time of each video file, and determining the position information of a mark control corresponding to each video file according to the playback time of each video file for display; the video to be played is composed of multiple video files, wherein the playback progress bar of the video to be played is composed of multiple intervals formed by multiple mark controls, and each interval is determined by one video file; Receive a touch operation on the current progress control, where the touch operation carries the target progress coordinates; The target interval into which the target progress coordinates fall is determined according to the file information list, and the target video file corresponding to the target interval is called for playback.

2. The video playback method according to claim 1, wherein: The receiving a touch operation on the current progress control includes: Receiving a touch operation on a current progress control on the playback progress bar, wherein the current progress control indicates a current playback coordinate of the video to be played; In response to the touch operation, the current progress control is dragged from the current playback coordinates to the target progress coordinates.

3. The video playback method according to claim 1, wherein: The determining the target interval in which the target progress coordinates fall, and calling the target video file corresponding to the target interval for playing, includes: Traversing each file information in the file information list based on the target progress coordinate; Determine a target video file that matches the target progress coordinates according to the traversal result; The target video file is played according to the target file information corresponding to the target video file and the target progress coordinates.

4. The video playback method according to claim 3, characterized in that: The step of determining the target video file matching the target progress coordinates according to the traversal result includes: When a target start time matching the target progress coordinate is found in the file information list, a target file index value corresponding to the target start time is obtained; The target file information corresponding to the target file index value is searched, and the target video file matching the target progress coordinate is determined according to the target file information.

5. The video playback method according to claim 3, characterized in that: The playing the target video file according to the target file information corresponding to the target video file and the target progress coordinates includes: Acquire a target download address of the playlist according to the target file information corresponding to the target video file; Obtain a playlist of the target video file according to the target download address; The target media file corresponding to the target progress coordinate is downloaded based on the play list of the target video file, and the target media file is played.

6. The video playback method according to claim 1, wherein: After displaying the video to be played, the method further includes: When the currently played video file in the to-be-played videos is finished playing, determining the to-be-played video file in the file information list according to the playing order; Downloading a playlist corresponding to the video file to be played according to the file information list; The video file to be played is played according to the play list corresponding to the video file to be played.

7. A video playback device, characterized in that: include: An acquisition unit, configured to receive a playback request for a video to be played, and acquire a target file list corresponding to the video to be played according to the playback request; A download unit, used for downloading a playlist of each video file in the target file list and parsing it to obtain the play time of each video file; wherein the playlist adopts the M3U8 streaming media format; A calculation unit, used to calculate the start time of each video file in the video to be played according to the play order and play duration of each video file, and determine the file index value of each video file; A construction unit, used to construct the file information of each video file according to the file index value, play duration, download address of the play list and start time of each video file and store it in the file information list; A display unit, used for displaying a video to be played, comprising: a terminal responding to a playback request of the video to be played, displaying the video to be played, obtaining the playback time of each video file in the video to be played, generating a playback progress bar of the video to be played in combination with the playback time of each video file, and determining the position information of a mark control corresponding to each video file according to the playback time of each video file for display; the video to be played is composed of a plurality of video files, wherein the playback progress bar of the video to be played is composed of a plurality of intervals formed by a plurality of mark controls, and each interval is determined by a video file; A receiving unit, configured to receive a touch operation on a current progress control, wherein the touch operation carries target progress coordinates; The playing unit is used to determine the target interval in which the target progress coordinates fall according to the file information list, and call the target video file corresponding to the target interval for playing.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the video playback method according to any one of claims 1 to 6.

9. A computer device, characterized in that: It comprises a processor and a memory, wherein the memory stores an application program, and the processor is used to run the application program in the memory to implement the video playback method according to any one of claims 1 to 6.