A display method and player for playing progress of hls media files
A media file and playback progress technology, applied in the information field, can solve problems such as inconsistent playback progress, wrong calculation of playback progress, PTS cannot correspond to the correct time, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0038] Embodiments of the present invention provide a method for displaying the playback progress of an HLS media file, such as figure 1 shown, including:
[0039] Step 101, receiving a media file playing instruction.
[0040] Step 102: Play the media file and start a timer, the timer is used to start timing from the moment when the media file starts playing.
[0041] Step 103, acquiring player control instructions.
[0042] Step 104, judging the type of the control instruction.
[0043] Step 105, if the control instruction is a jump play instruction, then from the media file, find the media file segment that matches the jump moment contained in the jump play instruction and play it, and determine that the media file is in the The playing progress T1 of the first specific moment is also displayed, and indicates that the timer counts again from the moment when the media file fragment is played; wherein, the first specific moment is the moment when the media file fragment is ...
Embodiment 2
[0049] Specifically, the embodiment of the present invention provides a method for displaying the playback progress of an HLS media file, which is applied to a player. The HLS media file is an audio file or a video file. The method specifically includes:
[0050] Step 201, receiving a media file play instruction. Execute step 202.
[0051] HLS media files can be audio files or video files, and mainly include three parts: an m3u(8) index file, TS (Transport Stream, transport stream) media fragment file and key (key) encrypted string file. It should be noted that the m3u(8) refers to the format of the index file. The m3u(8) index file only stores the multimedia playlist and provides an index pointing to other audio and video files. The player plays the For the file pointed to by the index, when you open the m3u(8) file, you can view the address of the file pointed to by the index and the attributes of the file, such as the duration of the segment corresponding to the index. The...
Embodiment 3
[0084] The embodiment of the present invention provides a player 40, such as Figure 4 shown, including:
[0085] A receiving unit 401, configured to receive a media file playback instruction;
[0086] The playback unit 402 is used to play the media file and start a timer, which is used to start counting from the moment when the media file starts playing;
[0087] An acquisition unit 403, configured to acquire player control instructions;
[0088] a judging unit 404, configured to judge the type of the control instruction;
[0089] The first processing unit 405 is configured to, when the control instruction is a jump play instruction, find and play a media file segment matching the jump moment contained in the jump play instruction from the media file, and Determine the playing progress T1 of the media file at the first specific moment and display it, and indicate that the timer counts again from the moment of playing the media file segment; wherein, the first specific mome...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


