fixed dub playOnTrack loop forever (#1247)

This commit is contained in:
Hoan Luu Huu
2025-06-19 02:37:32 +07:00
committed by GitHub
parent c8d94026ff
commit 3f11ee58a7

View File

@@ -83,7 +83,8 @@ class TaskDub extends TtsTask {
action: 'playOnTrack', action: 'playOnTrack',
track: this.track, track: this.track,
play: this.play, 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 gain: this.gain
}); });
} }