globocom / m3u8

Python m3u8 Parser for HTTP Live Streaming (HLS) Transmissions
Other
1.98k stars 464 forks source link

Feat: add explicit 'Duration=' parameter to EXT-X-CUE-OUT #362

Closed Equipo45 closed 1 month ago

Equipo45 commented 1 month ago

Description

I have been investigating the problem with DURATION parameters.

Firstly, as you already know it isn't compulsory to establish the parameter as you can see in an example where is use and other which not. The use of the parameter will depend on some key points:

  1. Is there another parameter indicating two or more attributes about the ad break EX: #EXT-X-CUE-OUT:DURATION=195.000,BREAKID=103038
  2. Does the parser or model used for generating the manifest support it?

I see the change as an improvement for the following reasons:

  1. It adds clarity to the parameter that is being introduced by adding it explicitly.
  2. Is currently used as a standard by reference companies such as Google.

Regarding all, thank you for making the package and contributing to the open-source community.

A test has been changed for checking the new format