From 7577c74a77ff50d386e89a67bef2e0045bc282ec Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Mon, 9 Nov 2020 20:49:58 +0100 Subject: [PATCH] Enable ring buffer --- clapper_src/playerBase.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clapper_src/playerBase.js b/clapper_src/playerBase.js index fac6e123..6f2276b9 100644 --- a/clapper_src/playerBase.js +++ b/clapper_src/playerBase.js @@ -96,6 +96,10 @@ class ClapperPlayerBase extends GstPlayer.Player this.set_config_option(option, gstPlayerConfig[option]); this.set_mute(false); + + /* FIXME: change into option in preferences */ + let pipeline = this.get_pipeline(); + pipeline.ring_buffer_max_size = 8 * 1024 * 1024; } set_config_option(option, value)