From cdae513fc9a3a1d756f5b7651ac736af7084deab Mon Sep 17 00:00:00 2001
From: David Trattnig <david.trattnig@o94.at>
Date: Fri, 15 May 2020 14:08:58 +0200
Subject: [PATCH] Configurable preload timeout.

---
 configuration/sample-development.engine.ini | 8 ++++++--
 configuration/sample-docker.engine.ini      | 8 ++++++--
 configuration/sample-production.engine.ini  | 8 ++++++--
 3 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/configuration/sample-development.engine.ini b/configuration/sample-development.engine.ini
index 337a21f4..ca770df9 100644
--- a/configuration/sample-development.engine.ini
+++ b/configuration/sample-development.engine.ini
@@ -58,11 +58,15 @@ api_tank_status = "http://localhost:8040/ui/"
 api_tank_playlist="http://localhost:8040/api/v1/shows/${SLUG}/playlists"
 
 # URL and Port of the API endpoints exposed by engine
-exposed_api_url=http://localhost:3333/api/v1/
+exposed_api_url="http://localhost:3333/api/v1/"
 api_port=3333
 
-# how often should the calendar be fetched in seconds (This determines the time of the last change before a specific show)
+[scheduling]
+# How often should the calendar be fetched in seconds. This determines the time of the last changes applied, before a specific show aired
 fetching_frequency=3600
+# How many seconds before the actual schedule time the entry should be pre-loaded. Note to provide enough timeout for
+# contents which take longer to load (big files, bad connectivity to streams etc.)
+preload_offset=60
 
 # sets the time how long we have to fade in and out, when we select another mixer input
 # values are in seconds
diff --git a/configuration/sample-docker.engine.ini b/configuration/sample-docker.engine.ini
index f9cf35e4..a579b265 100644
--- a/configuration/sample-docker.engine.ini
+++ b/configuration/sample-docker.engine.ini
@@ -58,11 +58,15 @@ api_tank_status = "http://localhost:8040/ui/"
 api_tank_playlist="http://localhost:8040/api/v1/shows/${SLUG}/playlists"
 
 # URL and Port of the API endpoints exposed by engine
-exposed_api_url=http://localhost:3333/api/v1/
+exposed_api_url="http://localhost:3333/api/v1/"
 api_port=3333
 
-# how often should the calendar be fetched in seconds (This determines the time of the last change before a specific show)
+[scheduling]
+# How often should the calendar be fetched in seconds. This determines the time of the last changes applied, before a specific show aired
 fetching_frequency=3600
+# How many seconds before the actual schedule time the entry should be pre-loaded. Note to provide enough timeout for
+# contents which take longer to load (big files, bad connectivity to streams etc.)
+preload_offset=60
 
 # sets the time how long we have to fade in and out, when we select another mixer input
 # values are in seconds
diff --git a/configuration/sample-production.engine.ini b/configuration/sample-production.engine.ini
index be6340a2..5c4c43a9 100644
--- a/configuration/sample-production.engine.ini
+++ b/configuration/sample-production.engine.ini
@@ -58,11 +58,15 @@ api_tank_status = "http://localhost:8040/ui/"
 api_tank_playlist="http://localhost:8040/api/v1/shows/${SLUG}/playlists"
 
 # URL and Port of the API endpoints exposed by engine
-exposed_api_url=http://localhost:3333/api/v1/
+exposed_api_url="http://localhost:3333/api/v1/"
 api_port=3333
 
-# how often should the calendar be fetched in seconds (This determines the time of the last change before a specific show)
+[scheduling]
+# How often should the calendar be fetched in seconds. This determines the time of the last changes applied, before a specific show aired
 fetching_frequency=3600
+# How many seconds before the actual schedule time the entry should be pre-loaded. Note to provide enough timeout for
+# contents which take longer to load (big files, bad connectivity to streams etc.)
+preload_offset=60
 
 # sets the time how long we have to fade in and out, when we select another mixer input
 # values are in seconds
-- 
GitLab