Now adds EXT-X-PROGRAM-DATE-TIME to m3u8 for player syncing

This commit is contained in:
Muaz Ahmad 2023-08-21 18:44:12 +05:00
parent e026a83d06
commit 21fc4a5816

View file

@ -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 + "/"