Multimedia playing method and device, equipment and storage medium

By obtaining the header data of the multimedia file and the current playback progress information, determining the next download data frame and synchronously downloading and playing, the problem of traditional downloaders need to wait for the download to start playback before starting, improving the video/audio playback efficiency and user experience.

CN119922355APending Publication Date: 2025-05-02BEIJING QIHOOD TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510065506.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-15
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

Traditional downloaders need to wait until the file is fully downloaded before starting playback, resulting in low video/audio playback efficiency.

Method used

By responding to the user's multimedia playback instructions, the header data of the multimedia file to be played is obtained, the header information and media segment data are determined, the current playback progress information is obtained, the next download data frame is determined based on this information, and the data is downloaded and played.

Benefits of technology

It realizes the synchronization of video/audio data download and playback, without waiting for the download to be completed, improving the video/audio playback efficiency and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119922355A_ABST
    Figure CN119922355A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of multimedia playing control, and discloses a multimedia playing method and device, equipment and a storage medium, and the method comprises the steps: obtaining the head data of a to-be-played multimedia file in response to a multimedia playing instruction of a user, and determining the head information based on the head data; determining media segment data of a multimedia file to be played based on the header information; obtaining current playing progress information, and determining a next downloading data frame based on the current playing progress information and the media segment data; and carrying out data downloading and data playing on the next downloaded data frame. According to the invention, synchronous downloading and playing of the video / audio data can be realized without waiting for downloading completion, and the playing efficiency of the video / audio can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of multimedia playback control technology, and in particular to a multimedia playback method, device, equipment and storage medium. Background Art

[0002] With the rapid development of network technology, users' demand for accessing and downloading online resources has increased year by year. When downloading large files (such as video files), traditional downloaders usually need to wait until the file is completely downloaded before starting to play, which is a big limitation for users who pursue instant experience. Especially when the network speed fluctuates or the bandwidth is limited, the file download time is long, resulting in low video / audio playback efficiency and poor user experience.

[0003] Therefore, how to achieve the synchronization of video / audio data downloading and playback and improve the video / audio playback efficiency is a problem that urgently needs to be solved.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present application is to provide a multimedia playback method, device, equipment and storage medium, aiming to solve the technical problem that traditional downloaders usually need to wait until the file is completely downloaded before starting to play, resulting in low video / audio playback efficiency.

[0006] To achieve the above object, the present application proposes a multimedia playback method, the method comprising:

[0007] In response to a multimedia play instruction from a user, obtaining header data of a multimedia file to be played, and determining header information based on the header data;

[0008] Determine media segment data of the multimedia file to be played based on the header information;

[0009] Acquire current playback progress information, and determine the next download data frame based on the current playback progress information and the media segment data;

[0010] Data downloading and data playing are performed on the next download data frame.

[0011] In one embodiment, the obtaining of current playback progress information and determining the next download data frame based on the current playback progress information and the media segment data includes:

[0012] Acquire current playback progress information, and determine a current playback data frame and a time position of the current playback data frame based on the current playback progress information;

[0013] Determine the time position of each data frame in the target data block according to the currently played data frame and the media segment data;

[0014] The next download data frame is determined according to the time position of the currently played data frame and the time positions of each of the data frames.

[0015] In one embodiment, determining the next download data frame according to the time position of the currently played data frame and the time positions of each of the data frames includes:

[0016] Prioritizing each of the data frames according to the time position of the currently played data frame and the time position of each of the data frames to obtain a data frame sorting result;

[0017] The data frame with the highest priority in the sorting result is used as the next download data frame.

[0018] In one embodiment, the priority ordering of the data frames according to the time position of the currently played data frame and the time position of each of the data frames to obtain a sequence result of the data frames includes:

[0019] Determine the time difference between the currently played data frame and each data frame according to the time position of the currently played data frame and the time position of each data frame;

[0020] Determining the priority of each data frame according to the time difference;

[0021] The data frames are prioritized according to the priorities to obtain a sequence result of the data frames.

[0022] In one embodiment, determining the time position of each data frame in the target data block according to the currently played data frame and the media segment data includes:

[0023] Determine the target data block where the current playing data frame is located according to the current playing data frame and the media segment data;

[0024] The time position of each data frame in the target data block is determined according to the media segment data and the target data block.

[0025] In one embodiment, determining the media segment data of the multimedia file to be played based on the header information includes:

[0026] Determine non-media segment data of the multimedia file to be played based on the header information;

[0027] The media segment data of the multimedia file to be played is determined according to the non-media segment data.

[0028] In one embodiment, determining the non-media segment data of the multimedia file to be played based on the header information includes:

[0029] Determining file format information and metadata information based on the header information;

[0030] The non-media segment data of the multimedia file to be played is determined based on the file format information and the metadata information.

[0031] In one embodiment, determining the non-media segment data of the multimedia file to be played based on the file format information and the metadata information includes:

[0032] Locating the non-media segment in the multimedia file to be played according to the file format information;

[0033] Determine a data frame timestamp table and a frame data offset table of the non-media segment according to the metadata information;

[0034] The non-media segment data of the multimedia file to be played is determined according to the data frame timestamp table and the frame data offset table.

[0035] In one embodiment, determining the media segment data of the to-be-played multimedia file according to the non-media segment data includes:

[0036] Determine a plurality of data blocks in a media segment and a time position of each data frame in each of the data blocks according to the non-media segment data;

[0037] The media segment data of the multimedia file to be played is determined according to the multiple data blocks and the time position of each data frame in each data block.

[0038] In one embodiment, in response to a multimedia playback instruction from a user, obtaining header data of a multimedia file to be played, and determining header information based on the header data includes:

[0039] In response to a multimedia play instruction from a user, obtaining header data of a multimedia file to be played;

[0040] Determine a file header segment and a metadata segment based on the header data;

[0041] Parsing the file header segment and the metadata segment respectively to obtain file format information and metadata information;

[0042] Header information is determined according to the file format information and the metadata information.

[0043] In addition, to achieve the above-mentioned purpose, the present application also proposes a multimedia playback device, the multimedia playback device comprising:

[0044] An acquisition module, configured to acquire header data of a multimedia file to be played in response to a multimedia play instruction of a user, and determine header information based on the header data;

[0045] A determination module, configured to determine media segment data of a multimedia file to be played based on the header information;

[0046] The acquisition module is further used to acquire current playback progress information, and determine the next download data frame based on the current playback progress information and the media segment data;

[0047] The playing module is used for downloading and playing data of the next downloaded data frame.

[0048] In one embodiment, the acquisition module is further used to acquire current playback progress information, and determine the current playback data frame and the time position of the current playback data frame based on the current playback progress information;

[0049] Determine the time position of each data frame in the target data block according to the currently played data frame and the media segment data;

[0050] The next download data frame is determined according to the time position of the currently played data frame and the time positions of each of the data frames.

[0051] In one embodiment, the acquisition module is further used to prioritize the data frames according to the time position of the currently played data frame and the time position of each data frame to obtain a data frame sorting result;

[0052] The data frame with the highest priority in the sorting result is used as the next download data frame.

[0053] In one embodiment, the acquisition module is further used to determine the time difference between the currently played data frame and each data frame according to the time position of the currently played data frame and the time position of each data frame;

[0054] Determining the priority of each data frame according to the time difference;

[0055] The data frames are prioritized according to the priorities to obtain a sequence result of the data frames.

[0056] In one embodiment, the acquisition module is further used to determine the target data block where the current playback data frame is located according to the current playback data frame and the media segment data;

[0057] The time position of each data frame in the target data block is determined according to the media segment data and the target data block.

[0058] In one embodiment, the determination module is further used to determine non-media segment data of the multimedia file to be played based on the header information;

[0059] The media segment data of the multimedia file to be played is determined according to the non-media segment data.

[0060] In one embodiment, the determination module is further used to determine file format information and metadata information based on the header information;

[0061] The non-media segment data of the multimedia file to be played is determined based on the file format information and the metadata information.

[0062] In one embodiment, the determination module is further used to locate the non-media segment in the multimedia file to be played according to the file format information;

[0063] Determine a data frame timestamp table and a frame data offset table of the non-media segment according to the metadata information;

[0064] The non-media segment data of the multimedia file to be played is determined according to the data frame timestamp table and the frame data offset table.

[0065] In addition, to achieve the above-mentioned purpose, the present application also proposes a multimedia playback device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the multimedia playback method described above.

[0066] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the multimedia playback method described above are implemented.

[0067] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the multimedia playback method described above are implemented.

[0068] The present application provides a multimedia playback method, which first responds to a user's multimedia playback instruction, obtains header data of a to-be-played multimedia file, and determines header information based on the header data; determines media segment data of the to-be-played multimedia file based on the header information; obtains current playback progress information, and determines a next download data frame based on the current playback progress information and the media segment data; and downloads and plays data for the next download data frame, thereby achieving simultaneous downloading and playback of video / audio data without waiting for download completion, and effectively improving video / audio playback efficiency.

[0069] In summary, the present application can correctly identify the structure of the file and efficiently decode the header information by obtaining the header data of the multimedia file to be played in response to the user's multimedia playback command, and then accurately extract the media segment data of the multimedia file to be played according to the header information. By obtaining the current playback progress information, the current playback progress can be accurately understood, and the appropriate next data frame can be accurately selected in combination with the current playback progress and the media segment data, thereby avoiding invalid or redundant data loading, reducing the waste of network bandwidth, and improving the response speed, and then downloading and playing data for the next downloaded data frame, realizing downloading and playing of video / audio, effectively improving the playback efficiency of video / audio, thereby ensuring that users do not interrupt watching while waiting for data, improving user experience, overcoming the technical defect that traditional downloaders usually need to wait for the file to be completely downloaded before starting to play, resulting in low video / audio playback efficiency, and can realize the simultaneous download and playback of video / audio data without waiting for the download to be completed, which can effectively improve the playback efficiency of video / audio. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0071] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0072] Figure 1 A flowchart of the first embodiment of the multimedia playback method of the present application is provided;

[0073] Figure 2 A schematic diagram of the process of downloading and playing MP4 file data provided in an embodiment of the multimedia playback method of the present application;

[0074] Figure 3 A flowchart of the second embodiment of the multimedia playback method of the present application is provided;

[0075] Figure 4 A flowchart of the third embodiment of the multimedia playback method of the present application is provided;

[0076] Figure 5 This is a schematic diagram of the module structure of the multimedia playback device according to an embodiment of the present application;

[0077] Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the multimedia playback method of the embodiment of the present application.

[0078] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0079] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0080] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0081] The main solution of the embodiment of the present application is: in response to the user's multimedia playback instruction, obtain the header data of the multimedia file to be played, and determine the header information based on the header data; determine the media segment data of the multimedia file to be played based on the header information; obtain the current playback progress information, and determine the next download data frame based on the current playback progress information and the media segment data; download and play data for the next download data frame.

[0082] With the rapid development of network technology, users' access to and downloading of online resources has increased year by year. When downloading large files (such as video files), traditional downloaders usually need to wait for the file to be completely downloaded before starting to play, which is a major limitation for users who pursue instant experience. Especially in the case of network speed fluctuations or limited bandwidth, the file download time is long, resulting in low video / audio playback efficiency and poor user experience. Therefore, how to achieve the synchronization of video / audio data download and playback and improve the video / audio playback efficiency is a problem that needs to be solved urgently.

[0083] The present application obtains the header data of the multimedia file to be played in response to the user's multimedia playback instruction, can correctly identify the structure of the file and efficiently decode the header information, and then accurately extracts the media segment data of the multimedia file to be played according to the header information, and can accurately understand the current playback progress by obtaining the current playback progress information, so as to accurately select the appropriate next data frame in combination with the current playback progress and the media segment data, avoid invalid or redundant data loading, reduce the waste of network bandwidth, and improve the response speed, and then download and play data for the next downloaded data frame, thereby realizing the simultaneous download and playback of video / audio, effectively improving the video / audio playback efficiency, thereby ensuring that the user does not interrupt the viewing while waiting for data, improving the user experience, overcoming the technical defect that traditional downloaders usually need to wait for the file to be completely downloaded before starting to play, resulting in low video / audio playback efficiency, and can realize the simultaneous download and playback of video / audio data without waiting for the download to be completed, which can effectively improve the video / audio playback efficiency.

[0084] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a multimedia playback device, etc. The following takes a multimedia playback device as an example to illustrate this embodiment and the following embodiments.

[0085] Based on this, the embodiment of the present application provides a multimedia playback method, referring to Figure 1 , Figure 1 This is a flowchart diagram of the first embodiment of the multimedia playback method of the present application.

[0086] In this embodiment, the multimedia playback method includes steps S10 to S40:

[0087] Step S10, in response to a multimedia play instruction from a user, obtaining header data of the multimedia file to be played, and determining header information based on the header data.

[0088] It should be noted that the multimedia play instruction refers to a request initiated by a user through an operation interface or a program interface to play a specific multimedia file (such as video, audio, etc.). The download and play process of the multimedia file to be played can be triggered according to the media play instruction.

[0089] It is understandable that the multimedia file to be played can be a video / audio file, for example, an MP4 file. The header data is usually located at the beginning of the multimedia file, for example, usually located in the ftyp and moov segments, and includes header information such as the structure, encoding format, metadata information, etc. of the multimedia file.

[0090] In the specific implementation, after receiving the multimedia play instruction, the header data of the multimedia file to be played is located and read. The header data is an important part of the multimedia file, which contains the file's structure information, encoding method, metadata, etc. By parsing the header data, the header information can be obtained.

[0091] In a feasible implementation, step S10 may include: in response to a user's multimedia playback instruction, obtaining header data of the multimedia file to be played; determining a file header segment and a metadata segment based on the header data; parsing the file header segment and the metadata segment respectively to obtain file format information and metadata information; and determining header information based on the file format information and the metadata information.

[0092] It should be noted that the multimedia play instruction can be triggered by the user clicking a play button, inputting a play command, or selecting a specific file. After receiving the play instruction, the storage location of the multimedia file to be played is located, and the header data of the file is read. The multimedia file to be played is usually stored on a remote server, so it needs to be downloaded before playing.

[0093] It is understandable that the header data of the multimedia file to be played contains a file header segment (ftyp) and a metadata segment (moov). The file header segment is usually located at the beginning of the file and is used to identify the type and format of the file to ensure that the player can correctly identify and decode the file. The metadata segment contains all metadata information of the media file.

[0094] It is worth noting that the file header segment (ftyp) is parsed to determine the file format information, such as the encoding format, resolution, bit rate, etc. At the same time, the metadata segment (moov) is parsed to obtain the metadata information of the media file, such as the size and offset of the key frame. The file format information and metadata information are used as header information for subsequent downloading and playback.

[0095] Step S20: determining the media segment data of the multimedia file to be played based on the header information.

[0096] It should be noted that a media segment refers to the part of a multimedia file that stores actual audio or video data. A media segment consists of multiple data blocks, each of which contains a segment of audio or video data, that is, each data block contains different data frames. A data frame is the basic unit of media data and usually contains information about a specific time period of audio or video. Media segment data includes information such as each data block in the media segment and the time position of each data frame in each data block.

[0097] It is understandable that after the header information is obtained, the media segment can be located according to the file format and metadata information, thereby accurately extracting the media segment data to be played.

[0098] Step S30, obtaining current playback progress information, and determining the next download data frame based on the current playback progress information and the media segment data.

[0099] It should be noted that the current playback progress information refers to the data frame currently being played and the time position information of the data frame, which can be obtained based on factors such as user playback operations (such as play, pause, fast forward, fast rewind, etc.) and playback time. The next download data frame refers to the data frame that needs to be downloaded and played after the current playback position. By obtaining the current playback progress information in real time, the position of the media content currently being watched by the user can be determined, and then combined with the time position information in the media segment data, the next download data frame can be accurately selected.

[0100] It is understandable that by monitoring the player's playback status and obtaining the current playback progress information, it is possible to understand which data frame is currently being played and the time position of the data frame in the media segment, and then determine the next data frame to be downloaded based on the time position information in the media segment data. By accurately determining the next data frame to be downloaded, invalid or redundant data loading can be avoided, reducing the waste of network bandwidth and improving response speed.

[0101] Step S40, downloading and playing data for the next download data frame.

[0102] It should be noted that after determining the next download data frame, the multimedia playback device will immediately start the data download task and prepare for data playback at the same time. The data download task is performed by the downloader, which will request and download the corresponding data block from the remote server according to the time position of the next download data frame. At the same time, the decoder will use the downloaded media segment data (including the previously downloaded and cached data frames) for playback to ensure that the user can watch or listen to the media content smoothly.

[0103] It is understandable that the downloader immediately hands the data over to the decoder for parsing and playback after the data block is downloaded, and ensures smooth playback through segmented downloading and decoding collaboration.

[0104] It is worth noting that in order to achieve the synchronization of data download and playback, multimedia playback devices can use a buffer mechanism, which will dynamically adjust the download speed and playback speed according to factors such as the current network status, playback progress, and the processing capacity of the device to ensure the coordination between the two. In addition, in order to further improve the playback efficiency, some optimization strategies can also be adopted, such as preloading a certain number of data frames, intelligently adjusting the size of the playback buffer, etc., to minimize the waste of network bandwidth and the processing burden of the device while ensuring the smoothness of playback.

[0105] like Figure 2 As shown, Figure 2 The figure is a flowchart of MP4 file data download and playback. When starting to download an MP4 file, obtain the MP4 file header (ftyp), then download and parse the metadata segment (moov), and then locate the video data storage segment (mdat). Request data blocks based on the metadata, and then download the required data blocks first, download I frames (key frames) first, decode and play them in real time, and download subsequent data on demand until playback is completed.

[0106] The present embodiment provides a multimedia playback method, which first responds to the user's multimedia playback instruction, obtains header data of the multimedia file to be played, and determines header information based on the header data; determines media segment data of the multimedia file to be played based on the header information; obtains current playback progress information, and determines the next download data frame based on the current playback progress information and the media segment data; and downloads and plays data for the next download data frame, thereby realizing synchronous downloading and playback of video / audio data without waiting for download completion, and can effectively improve video / audio playback efficiency.

[0107] In summary, this embodiment can correctly identify the structure of the file and efficiently decode the header information by obtaining the header data of the multimedia file to be played in response to the user's multimedia playback instruction, and then accurately extract the media segment data of the multimedia file to be played according to the header information. By obtaining the current playback progress information, the current playback progress can be accurately understood, so as to accurately select the appropriate next data frame in combination with the current playback progress and the media segment data, avoid invalid or redundant data loading, reduce the waste of network bandwidth, and improve the response speed, and then download and play data for the next downloaded data frame, thereby realizing the video / audio downloading and playing, effectively improving the video / audio playback efficiency, thereby ensuring that the user does not interrupt the viewing while waiting for data, improving the user experience, overcoming the technical defect that the traditional downloader usually needs to wait for the file to be completely downloaded before starting to play, resulting in low video / audio playback efficiency, and can realize the simultaneous download and playback of video / audio data without waiting for the download to be completed, which can effectively improve the video / audio playback efficiency.

[0108] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can refer to the above introduction, and will not be repeated later. Figure 3 , the step S30 further includes steps S301-S303:

[0109] Step S301, obtaining current playback progress information, and determining a current playback data frame and a time position of the current playback data frame based on the current playback progress information.

[0110] It should be noted that the current playback progress information refers to the specific data frame currently being played by the player and its corresponding time position. By monitoring the playback state of the player in real time, the current playback data frame and its time position in the entire media content can be accurately obtained.

[0111] It is understood that the currently playing data frame refers to the data frame currently being decoded and output by the player, which is the content currently being watched or listened to. The time position of the currently playing data frame refers to the specific position of the data frame on the overall timeline of the media content, usually expressed in seconds or milliseconds. By determining the currently playing data frame and its time position, the multimedia playback device can control the playback progress more accurately and provide users with a smoother playback experience.

[0112] Step S302: determining the time position of each data frame in the target data block according to the currently played data frame and the media segment data.

[0113] It should be noted that the target data block refers to the continuous data block where the currently playing data frame is located, which includes the currently playing data frame and a series of data frames to be played later. By determining the time position of each data frame in the target data block, it is possible to know in advance which data frames are about to be played, so as to download and cache them in advance to reduce delays and freezes during playback.

[0114] In a feasible implementation, step S302 may include: determining the target data block where the currently played data frame is located according to the currently played data frame and the media segment data; and determining the time position of each data frame in the target data block according to the media segment data and the target data block.

[0115] It should be noted that the media segment data includes multiple data blocks of the media segment and the time position of each data frame in each data block. The target data block in the multiple data segments of the media segment is determined according to the currently played data frame, and the target data block is a continuous data block containing the currently played data frame and its subsequent data frame to be played. By parsing the media segment data, the specific range of the target data block can be determined, and the time position of each data frame therein can be further determined, so that according to the time position of these data frames, the corresponding data can be downloaded and cached in advance to ensure the smoothness of playback.

[0116] It is understandable that the target data block in the multiple data segments of the media segment can be determined according to the currently played data frame by comparing the time position of the currently played data frame with the time range of each data block in the media segment data. If the time position of the currently played data frame is within a certain data block, then the data block is the target data block, thereby further determining the specific time position of each data frame therein.

[0117] Step S303: determining the next download data frame according to the time position of the currently played data frame and the time positions of each of the data frames.

[0118] It should be noted that the next download data frame refers to a data frame that is predetermined and prepared for downloading according to the playback progress and media segment data after the current playback data frame. By comparing the time position of the current playback data frame with the time position of each data frame in the target data block, the next data frame to be downloaded, i.e., the next download data frame, can be determined, thereby ensuring the continuity and smoothness of playback. By predicting and downloading the data frame to be played in advance, delays and freezes during playback are avoided.

[0119] It is understandable that after determining the next download data frame, data downloading and data playback can be started for the data frame, thereby achieving downloading and playing of video / audio simultaneously, further improving playback efficiency.

[0120] In a feasible implementation, step S303 may include: prioritizing each of the data frames according to the time position of the currently played data frame and the time position of each of the data frames to obtain a data frame sorting result; and using the data frame with the highest priority in the sorting result as the next downloaded data frame.

[0121] It should be noted that the data frames are prioritized according to the time position of the currently playing data frame and the time position of each data frame. Comprehensive consideration can be given to factors such as the time distance between the data frame and the currently playing data frame, the size of the data frame, and the encoding complexity of the data frame. For example, the closer the data frame is to the currently playing data frame, the higher its priority; the smaller the data frame size and the lower the encoding complexity, the less time it takes to download and play, and therefore it can also be given a higher priority. Through such a sorting method, it can be ensured that the most needed data frames are downloaded and played first, thereby further improving the continuity and smoothness of the playback.

[0122] It is understandable that the data frame with the highest priority in the sorting result is the data frame that is most in need of downloading and playing at present. Downloading and playing it as the next download data frame can minimize the delay and jamming during playback and improve playback efficiency. After determining the next download data frame, data downloading for the data frame can be started. At the same time, the player continues to play the current data frame. After the current playback data frame is played, it immediately switches to the next download data frame that has just been downloaded for playback. This cycle repeats, realizing the download and playback of video / audio, so that users can watch or listen to content continuously while waiting for data download, which greatly improves the user experience.

[0123] It is worth noting that after determining the next download data frame, the download order of subsequent frame data can be dynamically adjusted in combination with the intelligent acceleration downloader to further improve the download speed and playback efficiency. The intelligent acceleration downloader can dynamically adjust the download order of data frames according to factors such as the current network environment, server load, data frame size and encoding complexity, and give priority to downloading the most needed data frames, thereby ensuring the continuity and smoothness of playback.

[0124] In a feasible implementation manner, the data frames are prioritized according to the time position of the currently played data frame and the time position of each of the data frames to obtain a sequence result of the data frames, including: determining the time difference between the currently played data frame and each of the data frames according to the time position of the currently played data frame and the time position of each of the data frames; determining the priority of each of the data frames according to the time difference; and prioritizing each of the data frames according to the priority to obtain a sequence result of the data frames.

[0125] It should be noted that the time difference refers to the difference between the time position of the current playing data frame and the time position of each data frame, which reflects the distance of each data frame from the current playing data frame. The smaller the time difference, the closer the data frame is to the current playing data frame, the higher the correlation with the current playing progress, and the greater the possibility of being played, so it should be given a higher priority. By calculating the time difference between the current playing data frame and each data frame, the priority order of each data frame can be preliminarily determined.

[0126] It is understandable that, when determining the priority of each data frame, in addition to considering the time difference factor, factors such as the size of the data frame and the encoding complexity can also be comprehensively considered. The smaller the data frame size and the lower the encoding complexity, the less time it takes to download and play, and thus it can also be given a higher priority. This embodiment does not impose specific restrictions on this. Through such comprehensive considerations, the priority order of each data frame can be determined more accurately, thereby ensuring that the most needed data frame is downloaded and played first.

[0127] It is worth noting that after obtaining the priority order of each data frame, each data frame can be prioritized according to the order to obtain a sequence result of the data frame. In the sorted data frame sequence, the data frame with the highest priority is the data frame that is most in need of downloading and playing at present, and it is downloaded and played as the next downloaded data frame. Through such a sorting and selection method, the delay and jamming during playback can be minimized, the playback efficiency can be improved, and the user can watch or listen to the content continuously while waiting for the data to be downloaded, so as to obtain a better viewing experience.

[0128] In this embodiment, the currently played data frame and the time position of the currently played data frame can be accurately determined based on the current playback progress information, and the target data block can be quickly located and the time position of each data frame in the target data block can be determined based on the currently played data frame and the media segment data. Therefore, the next downloaded data frame can be accurately determined in combination with the time position of the currently played data frame, and then downloaded and cached in advance, avoiding delays and freezes during playback and improving the continuity and smoothness of playback.

[0129] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. Figure 4 , the step S20 further includes steps S201-S202:

[0130] Step S201: determining non-media segment data of a multimedia file to be played based on the header information.

[0131] It should be noted that the non-media segment, i.e., the control information segment other than the mdat segment (video data storage segment), refers to the part used to describe and control various parameters and information of media playback in a multimedia file, such as a file header, an index table, metadata, etc., wherein the mdat segment (audio / video data storage segment) is also a media segment. The non-media segment data may include a timestamp table of audio / video frames, a frame data offset table, etc., which record key information such as the time position of a video frame and the position of frame data in a file.

[0132] In a feasible implementation, step S201 may include: determining file format information and metadata information based on the header information; and determining non-media segment data of the multimedia file to be played based on the file format information and the metadata information.

[0133] It should be noted that the header information is composed of file format information and metadata information. Non-media can be accurately located according to the file format information, and then the non-media segment data can be determined according to the metadata information.

[0134] It is understandable that the file format information is binary, which records the basic structure and organization of multimedia files and is the basis for parsing and playing multimedia files. The metadata information includes the size and offset of key frames. In this embodiment, the size and offset of key frames in the metadata information exist in the form of data tables, for example, stsz table, which is used for the size of each data frame and is used to locate the video frame; stco table or co64 table, stco table stores the offset of each data block, which can be used to find the position of video frame data in the file, and co64 table is similar to stco table, but uses 64-bit offset, which is suitable for large files.

[0135] In a feasible implementation manner, determining the non-media segment data of the multimedia file to be played based on the file format information and the metadata information includes: locating the non-media segment in the multimedia file to be played according to the file format information; determining a data frame timestamp table and a frame data offset table of the non-media segment according to the metadata information; and determining the non-media segment data of the multimedia file to be played according to the data frame timestamp table and the frame data offset table.

[0136] It should be noted that by parsing the file format information in the header information, key information such as the type of multimedia file, encoding method, and organizational structure of data blocks can be determined, thereby accurately locating the position of non-media segment data in the file.

[0137] It can be understood that, based on the parsed metadata information (such as stsz, stco or co64 table), priority is given to requesting control information segments other than the mdat segment (video data storage segment), that is, data of non-media segments, such as data frame timestamp table, frame data offset table, etc.

[0138] It is worth noting that the data frame timestamp table can be a timestamp table of video frames, which records the playback time point of each video frame and is used to synchronize audio and video streams to ensure the accuracy and consistency of playback. The frame data offset table records the storage location of each video frame data in the file. Through this table, the video frame data can be quickly located for reading and playback. After obtaining the non-media segment data, the media segment data can be parsed and playback controlled based on this data to achieve smooth playback of multimedia files.

[0139] Step S202: determining the media segment data of the multimedia file to be played according to the non-media segment data.

[0140] It should be noted that the media segment, i.e., the mdat segment (audio / video data storage segment), contains multiple actual media data blocks. For the audio / video frame data in the mdat segment, the specific position of the key frame (I frame) in each database is parsed according to the data frame timestamp table and the frame data offset table, so as to give priority to downloading the frame data related to the current playback progress and reduce delay.

[0141] In a feasible implementation, step S202 may include: determining multiple data blocks in the media segment and the time position of each data frame in each of the data blocks based on the non-media segment data; determining the media segment data of the multimedia file to be played based on the multiple data blocks and the time position of each data frame in each of the data blocks.

[0142] It should be noted that the number of data blocks in the media segment and the time positions of the data frames in each data block can be determined based on the data frame timestamp table and the frame data offset table in the non-media segment data. The data blocks in the media segment and the time positions of the data frames in each data block are used as the media segment data of the multimedia file to be played.

[0143] It can be understood that by parsing the timestamp table and offset table in the non-media segment data, the starting position and ending position of each data block in the media segment are obtained; the media segment is traversed and each data block is divided according to the starting position and the ending position; each data block is parsed and the time position of each data frame in each data block is determined according to the data frame timestamp table and the frame data offset table, so that the time position of each data block in the media segment and each data frame in each data block can be accurately obtained.

[0144] In this embodiment, the non-media segment of the multimedia file to be played is accurately located according to the header information and the non-media segment data is determined, and then the media segment data of the multimedia file to be played is quickly parsed according to the non-media segment data, so as to quickly determine the next downloaded data frame, thereby effectively improving the audio / video playback efficiency.

[0145] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the multimedia playback method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0146] This application also provides a multimedia playback device, please refer to Figure 5 , the multimedia playback device comprises:

[0147] The acquisition module 10 is used to acquire the header data of the multimedia file to be played in response to the multimedia play instruction of the user, and determine the header information based on the header data.

[0148] A determination module 20, configured to determine media segment data of a to-be-played multimedia file based on the header information;

[0149] The acquisition module 10 is further configured to acquire current playback progress information, and determine the next download data frame based on the current playback progress information and the media segment data.

[0150] The playing module 30 is used for downloading and playing the next downloaded data frame.

[0151] The present embodiment provides a multimedia playback device. In response to a user's multimedia playback instruction, the present embodiment obtains header data of a multimedia file to be played, and determines header information based on the header data; determines media segment data of the multimedia file to be played based on the header information; obtains current playback progress information, and determines a next download data frame based on the current playback progress information and the media segment data; and performs data download and data playback on the next download data frame, thereby achieving simultaneous download and playback of video / audio data without waiting for download completion, and effectively improving video / audio playback efficiency.

[0152] In summary, this embodiment can correctly identify the structure of the file and efficiently decode the header information by obtaining the header data of the multimedia file to be played in response to the user's multimedia playback instruction, and then accurately extract the media segment data of the multimedia file to be played according to the header information. By obtaining the current playback progress information, the current playback progress can be accurately understood, so as to accurately select the appropriate next data frame in combination with the current playback progress and the media segment data, avoid invalid or redundant data loading, reduce the waste of network bandwidth, and improve the response speed, and then download and play data for the next downloaded data frame, thereby realizing the video / audio downloading and playing, effectively improving the video / audio playback efficiency, thereby ensuring that the user does not interrupt the viewing while waiting for data, improving the user experience, overcoming the technical defect that the traditional downloader usually needs to wait for the file to be completely downloaded before starting to play, resulting in low video / audio playback efficiency, and can realize the simultaneous download and playback of video / audio data without waiting for the download to be completed, which can effectively improve the video / audio playback efficiency.

[0153] Optionally, the acquisition module 10 is also used to obtain current playback progress information, and determine the current playback data frame and the time position of the current playback data frame based on the current playback progress information; determine the time position of each data frame in the target data block according to the current playback data frame and the media segment data; determine the next download data frame according to the time position of the current playback data frame and the time position of each of the data frames.

[0154] Optionally, the acquisition module 10 is further used to prioritize each data frame according to the time position of the currently played data frame and the time position of each data frame to obtain a data frame sorting result; and use the data frame with the highest priority in the sorting result as the next downloaded data frame.

[0155] Optionally, the acquisition module 10 is also used to determine the time difference between the currently played data frame and each data frame based on the time position of the currently played data frame and the time position of each data frame; determine the priority of each data frame based on the time difference; and prioritize each data frame according to the priority to obtain a sequence result of the data frame.

[0156] Optionally, the acquisition module 10 is further used to determine the target data block where the current playback data frame is located according to the current playback data frame and the media segment data; and determine the time position of each data frame in the target data block according to the media segment data and the target data block.

[0157] Optionally, the determination module 20 is further configured to determine non-media segment data of the multimedia file to be played based on the header information; and determine media segment data of the multimedia file to be played based on the non-media segment data.

[0158] Optionally, the determination module 20 is further configured to determine file format information and metadata information based on the header information; and determine non-media segment data of the multimedia file to be played based on the file format information and the metadata information.

[0159] Optionally, the determination module 20 is also used to locate the non-media segment in the multimedia file to be played according to the file format information; determine the data frame timestamp table and frame data offset table of the non-media segment according to the metadata information; and determine the non-media segment data of the multimedia file to be played according to the data frame timestamp table and frame data offset table.

[0160] Optionally, the determination module 20 is also used to determine multiple data blocks in the media segment and the time position of each data frame in each data block based on the non-media segment data; determine the media segment data of the multimedia file to be played based on the multiple data blocks and the time position of each data frame in each data block.

[0161] Optionally, the acquisition module 10 is also used to respond to the user's multimedia playback instruction to obtain header data of the multimedia file to be played; determine the file header segment and the metadata segment based on the header data; parse the file header segment and the metadata segment respectively to obtain file format information and metadata information; determine the header information based on the file format information and the metadata information.

[0162] The multimedia playback device provided by the present application adopts the multimedia playback method in the above embodiment, which can solve the technical problem that the traditional downloader usually needs to wait until the file is completely downloaded before starting to play, resulting in low video / audio playback efficiency. Compared with the prior art, the beneficial effects of the multimedia playback device provided by the present application are the same as the beneficial effects of the multimedia playback method provided by the above embodiment, and other technical features in the multimedia playback device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0163] The present application provides a multimedia playback device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the multimedia playback method in the above-mentioned embodiment 1.

[0164] Reference below Figure 6 , which shows a schematic diagram of the structure of a multimedia playback device suitable for implementing the embodiments of the present application. The multimedia playback device in the embodiments of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The multimedia playback device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0165] like Figure 6As shown, the multimedia playback device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the multimedia playback device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the multimedia player to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a multimedia player with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0166] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes 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 device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0167] The multimedia playback device provided by the present application adopts the multimedia playback method in the above embodiment, which can solve the technical problem that the traditional downloader usually needs to wait for the file to be completely downloaded before starting to play, resulting in low video / audio playback efficiency. Compared with the prior art, the beneficial effects of the multimedia playback device provided by the present application are the same as the beneficial effects of the multimedia playback method provided by the above embodiment, and other technical features in the multimedia playback device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0168] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0169] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0170] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the multimedia playback method in the above-mentioned embodiment.

[0171] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, 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 this embodiment, the 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, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0172] The computer-readable storage medium may be included in the multimedia playback device; or may exist independently without being assembled into the multimedia playback device.

[0173] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the multimedia playback device, the multimedia playback device: responds to the user's multimedia playback instruction, obtains the header data of the multimedia file to be played, and determines the header information based on the header data; determines the media segment data of the multimedia file to be played based on the header information; obtains the current playback progress information, and determines the next download data frame based on the current playback progress information and the media segment data; and downloads and plays data for the next download data frame.

[0174] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0175] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the 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 square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / 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.

[0176] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0177] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned multimedia playback method, and can solve the technical problem that traditional downloaders usually need to wait until the file is completely downloaded before starting to play, resulting in low video / audio playback efficiency. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the multimedia playback method provided by the above-mentioned embodiment, and will not be repeated here.

[0178] The present application also provides a computer program product, including a computer program, which implements the steps of the multimedia playback method as described above when executed by a processor.

[0179] The computer program product provided by the present application can solve the technical problem that the traditional downloader usually needs to wait until the file is completely downloaded before starting to play, resulting in low video / audio playback efficiency. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the multimedia playback method provided by the above embodiment, which will not be repeated here.

[0180] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

[0181] The present invention discloses A1. a multimedia playing method, the method comprising:

[0182] In response to a multimedia play instruction from a user, obtaining header data of a multimedia file to be played, and determining header information based on the header data;

[0183] Determine media segment data of the multimedia file to be played based on the header information;

[0184] Acquire current playback progress information, and determine the next download data frame based on the current playback progress information and the media segment data;

[0185] Data downloading and data playing are performed on the next download data frame.

[0186] A2. The method as described in A1, wherein obtaining the current playback progress information and determining the next download data frame based on the current playback progress information and the media segment data include:

[0187] Acquire current playback progress information, and determine a current playback data frame and a time position of the current playback data frame based on the current playback progress information;

[0188] Determine the time position of each data frame in the target data block according to the currently played data frame and the media segment data;

[0189] The next download data frame is determined according to the time position of the currently played data frame and the time positions of each of the data frames.

[0190] A3. The method as described in A2, wherein the next downloaded data frame is determined based on the time position of the currently played data frame and the time position of each of the data frames, comprising:

[0191] Prioritizing each of the data frames according to the time position of the currently played data frame and the time position of each of the data frames to obtain a data frame sorting result;

[0192] The data frame with the highest priority in the sorting result is used as the next download data frame.

[0193] A4. The method as described in A3, wherein the priority of each data frame is sorted according to the time position of the currently played data frame and the time position of each data frame to obtain a sequence result of the data frame, including:

[0194] Determine the time difference between the currently played data frame and each data frame according to the time position of the currently played data frame and the time position of each data frame;

[0195] Determining the priority of each data frame according to the time difference;

[0196] The data frames are prioritized according to the priorities to obtain a sequence result of the data frames.

[0197] A5. The method as described in A2, wherein the time position of each data frame in the target data block is determined according to the currently played data frame and the media segment data, comprising:

[0198] Determine the target data block where the current playing data frame is located according to the current playing data frame and the media segment data;

[0199] The time position of each data frame in the target data block is determined according to the media segment data and the target data block.

[0200] A6. The method as described in A1, wherein determining the media segment data of the multimedia file to be played based on the header information comprises:

[0201] Determine non-media segment data of the multimedia file to be played based on the header information;

[0202] The media segment data of the multimedia file to be played is determined according to the non-media segment data.

[0203] A7. The method as described in A6, wherein the non-media segment data of the multimedia file to be played based on the header information comprises:

[0204] Determining file format information and metadata information based on the header information;

[0205] The non-media segment data of the multimedia file to be played is determined based on the file format information and the metadata information.

[0206] A8. The method as described in A7, wherein determining the non-media segment data of the multimedia file to be played based on the file format information and the metadata information comprises:

[0207] Locating the non-media segment in the multimedia file to be played according to the file format information;

[0208] Determine a data frame timestamp table and a frame data offset table of the non-media segment according to the metadata information;

[0209] The non-media segment data of the multimedia file to be played is determined according to the data frame timestamp table and the frame data offset table.

[0210] A9. The method as described in A6, wherein determining the media segment data of the multimedia file to be played based on the non-media segment data comprises:

[0211] Determine a plurality of data blocks in a media segment and a time position of each data frame in each of the data blocks according to the non-media segment data;

[0212] The media segment data of the multimedia file to be played is determined according to the multiple data blocks and the time position of each data frame in each data block.

[0213] A10. The method as described in A1, wherein in response to a multimedia playback instruction of a user, header data of a multimedia file to be played is obtained, and header information is determined based on the header data, including:

[0214] In response to a multimedia play instruction from a user, obtaining header data of a multimedia file to be played;

[0215] Determine a file header segment and a metadata segment based on the header data;

[0216] Parsing the file header segment and the metadata segment respectively to obtain file format information and metadata information;

[0217] Header information is determined according to the file format information and the metadata information.

[0218] The present invention also discloses B11. a multimedia playback device, the multimedia playback device comprising:

[0219] An acquisition module, configured to acquire header data of a multimedia file to be played in response to a multimedia play instruction of a user, and determine header information based on the header data;

[0220] A determination module, configured to determine media segment data of a multimedia file to be played based on the header information;

[0221] The acquisition module is further used to acquire current playback progress information, and determine the next download data frame based on the current playback progress information and the media segment data;

[0222] The playing module is used for downloading and playing data of the next downloaded data frame.

[0223] B12. The apparatus as described in B11, wherein the acquisition module is further used to obtain the current playback progress information, and determine the time position of the current playback data frame and the current playback data frame based on the current playback progress information;

[0224] Determine the time position of each data frame in the target data block according to the currently played data frame and the media segment data;

[0225] The next download data frame is determined according to the time position of the currently played data frame and the time positions of each of the data frames.

[0226] B13. The apparatus as described in B12, wherein the acquisition module is further configured to prioritize each of the data frames according to the time position of the currently playing data frame and the time position of each of the data frames to obtain a sorting result of the data frame;

[0227] The data frame with the highest priority in the sorting result is used as the next download data frame.

[0228] B14. The apparatus as described in B13, wherein the acquisition module is further used to determine the time difference between the currently played data frame and each data frame according to the time position of the currently played data frame and the time position of each data frame;

[0229] Determining the priority of each data frame according to the time difference;

[0230] The data frames are prioritized according to the priorities to obtain a sequence result of the data frames.

[0231] B15. The apparatus as described in B12, wherein the acquisition module is further used to determine the target data block where the current playback data frame is located according to the current playback data frame and the media segment data;

[0232] The time position of each data frame in the target data block is determined according to the media segment data and the target data block.

[0233] B16. The apparatus as described in B11, wherein the determining module is further used to determine the non-media segment data of the multimedia file to be played based on the header information;

[0234] The media segment data of the multimedia file to be played is determined according to the non-media segment data.

[0235] B17. The apparatus as described in B16, wherein the determination module is further used to determine the file format information and metadata information based on the header information;

[0236] The non-media segment data of the multimedia file to be played is determined based on the file format information and the metadata information.

[0237] 18. The device according to 17, wherein the determining module is further used to locate the non-media segment in the multimedia file to be played according to the file format information;

[0238] Determine a data frame timestamp table and a frame data offset table of the non-media segment according to the metadata information;

[0239] The non-media segment data of the multimedia file to be played is determined according to the data frame timestamp table and the frame data offset table.

[0240] The present invention also discloses C19. a multimedia playback device, comprising: a memory, a processor, and a multimedia playback program stored in the memory and executable on the processor, wherein the multimedia playback program is configured to implement the multimedia playback method as described above.

[0241] The present invention also discloses D20. a storage medium, on which a multimedia playback program is stored, and when the multimedia playback program is executed by a processor, the multimedia playback method as described above is implemented.

Claims

1. A multimedia playback method, characterized in that: The method comprises: In response to a multimedia play instruction from a user, obtaining header data of a multimedia file to be played, and determining header information based on the header data; Determine media segment data of the multimedia file to be played based on the header information; Acquire current playback progress information, and determine the next download data frame based on the current playback progress information and the media segment data; Data downloading and data playing are performed on the next download data frame.

2. The method according to claim 1, characterized in that The obtaining of current playback progress information and determining the next download data frame based on the current playback progress information and the media segment data includes: Acquire current playback progress information, and determine a current playback data frame and a time position of the current playback data frame based on the current playback progress information; Determine the time position of each data frame in the target data block according to the currently played data frame and the media segment data; The next download data frame is determined according to the time position of the currently played data frame and the time positions of each of the data frames.

3. The method according to claim 2, characterized in that The step of determining the next download data frame according to the time position of the currently played data frame and the time positions of each of the data frames comprises: Prioritize each of the data frames according to the time position of the currently played data frame and the time position of each of the data frames to obtain a data frame sorting result; The data frame with the highest priority in the sorting result is used as the next download data frame.

4. The method according to claim 3, characterized in that The step of prioritizing the data frames according to the time position of the currently played data frame and the time positions of the data frames to obtain a sequence result of the data frames includes: Determine the time difference between the currently played data frame and each data frame according to the time position of the currently played data frame and the time position of each data frame; Determining the priority of each data frame according to the time difference; The data frames are prioritized according to the priorities to obtain a sequence result of the data frames.

5. The method according to claim 2, characterized in that The step of determining the time position of each data frame in the target data block according to the currently played data frame and the media segment data includes: Determine the target data block where the current playing data frame is located according to the current playing data frame and the media segment data; The time position of each data frame in the target data block is determined according to the media segment data and the target data block.

6. The method according to claim 1, characterized in that The determining the media segment data of the multimedia file to be played based on the header information includes: Determining non-media segment data of the multimedia file to be played based on the header information; The media segment data of the multimedia file to be played is determined according to the non-media segment data.

7. The method according to claim 6, characterized in that The determining the non-media segment data of the multimedia file to be played based on the header information includes: Determining file format information and metadata information based on the header information; The non-media segment data of the multimedia file to be played is determined based on the file format information and the metadata information.

8. A multimedia playback device, characterized in that: The multimedia playback device comprises: An acquisition module, configured to acquire header data of a multimedia file to be played in response to a multimedia play instruction of a user, and determine header information based on the header data; A determination module, configured to determine media segment data of a multimedia file to be played based on the header information; The acquisition module is further used to acquire current playback progress information, and determine the next download data frame based on the current playback progress information and the media segment data; The playing module is used for downloading and playing data of the next downloaded data frame.

9. A multimedia playback device, characterized in that: The multimedia playback device comprises: a memory, a processor, and a multimedia playback program stored in the memory and executable on the processor, wherein the multimedia playback program is configured to implement the multimedia playback method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium stores a multimedia playback program, and when the multimedia playback program is executed by the processor, the multimedia playback method according to any one of claims 1 to 7 is implemented.