From 99acd36cc05d8e096e49acc79bf1e2c0042f47e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Mon, 6 Sep 2021 13:18:57 +0200 Subject: [PATCH] api: Always start unmuted --- lib/gst/clapper/gstclapper.c | 3 +++ src/player.js | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/gst/clapper/gstclapper.c b/lib/gst/clapper/gstclapper.c index cdec422d..10415d29 100644 --- a/lib/gst/clapper/gstclapper.c +++ b/lib/gst/clapper/gstclapper.c @@ -3123,6 +3123,9 @@ gst_clapper_main (gpointer data) gst_object_ref_sink (self->playbin); + /* Do not start muted and make it sync with last_mute value */ + g_object_set (self->playbin, "mute", FALSE, NULL); + if (self->video_renderer) { GstElement *video_sink = gst_clapper_video_renderer_create_video_sink (self->video_renderer, self); diff --git a/src/player.js b/src/player.js index fe016221..b2ff737e 100644 --- a/src/player.js +++ b/src/player.js @@ -90,8 +90,6 @@ class ClapperPlayer extends GstClapper.Clapper set_initial_config() { - this.set_mute(false); - /* FIXME: change into option in preferences */ const pipeline = this.get_pipeline(); pipeline.ring_buffer_max_size = 8 * 1024 * 1024;