Unlock instant, AI-driven research and patent intelligence for your innovation.

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.

Active Publication Date: 2018-04-27
LE SHI ZHI ZIN ELECTRONIC TECHNOLOGY (TIANJIN) LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the Android system, when the player plays HLS media files, it usually displays the playback progress of the currently playing audio and video through the progress bar. The time displayed by the progress bar is based on the PTS (presentation timestamp, display timestamp) of the currently playing audio and video It is obtained by conversion, but because the PTS is discontinuous, when there is a more complicated playback requirement, the playback progress time obtained by using the timestamp conversion does not match the displayed playback progress
For example, when the user instructs the player to seek to play, because the PTS of the played media file is not continuous, the obtained PTS may not correspond to the correct time after the play, resulting in an error in the calculation of the playback progress, so the progress bar Disorder between displayed playback progress and actual playback time

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A display method and player for playing progress of hls media files
  • A display method and player for playing progress of hls media files
  • A display method and player for playing progress of hls media files

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and player for displaying the playing progress of an HLS media file, which relate to the field of information technology and can avoid confusion between the playing progress displayed by the progress bar and the real playing time. Including: receiving a media file play command; playing the media file and starting a timer; obtaining a player control command; judging the type of the control command; Display, and indicate that the timer restarts timing from the moment of playing the media file segment; if the control command is a pause playback command, pause the playback of the media file, and determine the playback progress T2 of the media file at the second specific moment and display; if the control command is Pause the termination instruction, continue to play the media file, and determine and display the playback progress T3 of the media file at the third specific moment. The method for displaying the playing progress of the HLS media file and the player are used for playing the media file.

Description

technical field [0001] The invention relates to the field of information technology, in particular to a method for displaying the progress of playing HLS media files and a player. Background technique [0002] At present, the player of the Android system supports the playback of HLS (HTTP Live Streaming, an HTTP-based streaming media network transmission protocol) media files. Through HLS, it can provide the client with near real-time audio and video streams, but in the process of using HLS, it uses Standard HTTP (Hypertext transfer protocol, hypertext transfer protocol), so as long as HLS is used, audio and video on-demand and live broadcast can be directly provided on ordinary HTTP applications. [0003] In the Android system, when the player plays HLS media files, it usually displays the playback progress of the currently playing audio and video through the progress bar. The time displayed by the progress bar is based on the PTS (presentation timestamp, display timestamp)...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04N21/81H04N21/8547H04N21/845
Inventor 平凯
Owner LE SHI ZHI ZIN ELECTRONIC TECHNOLOGY (TIANJIN) LTD