From 8e434e60b083305849727c23e1cb500bea165839 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Fri, 3 Dec 2021 22:44:35 +0100 Subject: [PATCH] add VideoKeyframes for master playlist. #26 --- internal/api/hlsvod.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/api/hlsvod.go b/internal/api/hlsvod.go index c3ecc8b..7476c62 100644 --- a/internal/api/hlsvod.go +++ b/internal/api/hlsvod.go @@ -41,7 +41,8 @@ func (a *ApiManagerCtx) HlsVod(r chi.Router) { // serve master profile if hlsResource == "index.m3u8" { data, err := hlsvod.New(hlsvod.Config{ - MediaPath: vodMediaPath, + MediaPath: vodMediaPath, + VideoKeyframes: a.config.Vod.VideoKeyframes, Cache: a.config.Vod.Cache, CacheDir: a.config.Vod.CacheDir,