From 21fc4a5816da07bfaedcadfac2f4d38f51c3c2d6 Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Mon, 21 Aug 2023 18:44:12 +0500 Subject: [PATCH] Now adds EXT-X-PROGRAM-DATE-TIME to m3u8 for player syncing --- rtmp/flv/writer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rtmp/flv/writer.go b/rtmp/flv/writer.go index 711a1b7..a2703c6 100644 --- a/rtmp/flv/writer.go +++ b/rtmp/flv/writer.go @@ -25,6 +25,7 @@ func NewFLVWriter(stream_key string) (*FLVWriter, error) { "-hls_list_size", "4", "-hls_base_url", "/vid/" + stream_key + "/", "-hls_flags", "delete_segments", + "-hls_flags", "+program_date_time", "stream.m3u8", ) transcoder.Dir = base_dir + "/live/" + stream_key + "/"