Stop recording fiber from another fiber

40 views
Skip to first unread message

Alex

unread,
Jul 29, 2023, 11:50:25 AM7/29/23
to Automate
I am trying to create flow where I could stop the recording by push command but it doesn't work. Here is the example. What I am doing wrong here?
Screenshot_20230729_114730_Automate.jpg

Alex

unread,
Jul 29, 2023, 11:51:33 AM7/29/23
to Automate
I tried stop pFiber as well and it didn't work either 

Henrik "The Developer" Lindqvist

unread,
Jul 30, 2023, 10:51:26 AM7/30/23
to Automate
Your Fiber stop block don't have access to the value in cFiber, even assuming that's assigned the Child fiber URI.

A simple example to start and stop:
Flow beginning
Cloud message receive: Message= message
Expression true: message="start"
Fork: Child Fiber URI=childUri
Audio record start: Proceed=When complete
Expression true: message="stop"
Fiber stop: Fiber URI=childUri

But using Fork is unnecessary since audio recording can be done in the "background" without "blocking" the fiber using Proceed=Immediately, so it can be simplified to:

Flow beginning
Cloud message receive: Message= message
Expression true: message="start"
Audio record start: Proceed=Immediately
Expression true: message="stop"
Audio record stop

Alex

unread,
Jul 30, 2023, 11:25:39 PM7/30/23
to Automate
This was just an example. I was not looking for a workaround. I am asking how to stop old fiber from a new fiber?

Alex

unread,
Jul 30, 2023, 11:27:16 PM7/30/23
to Automate

Flow beginning
Fork: Child, Parent
New fiber started
How to kill the old child or parent or both?

Henrik "The Developer" Lindqvist

unread,
Jul 31, 2023, 5:42:57 AM7/31/23
to Automate
Flow beginning
Fork: Parent fiber URI=parentUri
  Fiber stop: parentUri
Reply all
Reply to author
Forward
0 new messages