#4769·ZLMediaKit

[功能请求] hls的m3u8增加EXT-X-PROGRAM-DATE-TIME标签

Author: lystormenvoyCreated Jun 23, 2026Updated Jul 3, 2026
Labels意见建议

描述该功能的用处,可以提供相关资料描述该功能

标准文档的描述

[4.3.2.6](https://datatracker.ietf.org/doc/html/rfc8216#section-4.3.2.6).  EXT-X-PROGRAM-DATE-TIME

   The EXT-X-PROGRAM-DATE-TIME tag associates the first sample of a
   Media Segment with an absolute date and/or time.  It applies only to
   the next Media Segment.  Its format is:

   #EXT-X-PROGRAM-DATE-TIME:<date-time-msec>

   where date-time-msec is an ISO/IEC 8601:2004 [[ISO_8601](https://datatracker.ietf.org/doc/html/rfc8216#ref-ISO_8601)] date/time
   representation, such as YYYY-MM-DDThh:mm:ss.SSSZ.  It SHOULD indicate
   a time zone and fractional parts of seconds, to millisecond accuracy.

   For example:

   #EXT-X-PROGRAM-DATE-TIME:2010-02-19T14:54:23.031+08:00

   See Sections [6.2.1](https://datatracker.ietf.org/doc/html/rfc8216#section-6.2.1) and [6.3.3](https://datatracker.ietf.org/doc/html/rfc8216#section-6.3.3) for more information on the EXT-X-
   PROGRAM-DATE-TIME tag.

用处

  • 读取时间后便于对齐字幕流,在正确的时间点叠加字幕
  • 读取时间可以标记事件点

该功能是否用于改进项目缺陷,如果是,请描述现有缺陷

描述你期望实现该功能的方式和最终效果

希望能在hls直播流的m3u8文件里增加EXT-X-PROGRAM-DATE-TIME标签,这样可以读取到流开始的时间 方便进一步开展业务