From 3f11ee58a780f85c774e9767288c754fd01fb263 Mon Sep 17 00:00:00 2001 From: Hoan Luu Huu <110280845+xquanluu@users.noreply.github.com> Date: Thu, 19 Jun 2025 02:37:32 +0700 Subject: [PATCH] fixed dub playOnTrack loop forever (#1247) --- lib/tasks/dub.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tasks/dub.js b/lib/tasks/dub.js index 2daaf56f..41897a33 100644 --- a/lib/tasks/dub.js +++ b/lib/tasks/dub.js @@ -83,7 +83,8 @@ class TaskDub extends TtsTask { action: 'playOnTrack', track: this.track, play: this.play, - loop: this.loop ? 'loop' : 'once', + // drachtio-fsmrf will convert loop from boolean to 'loop' or 'once' + loop: this.loop, gain: this.gain }); }