as described in the title, the requirement is to make a page similar to making a phone call, which requires a countdown, which needs to be terminated in three cases:
- 30 seconds unanswered is regarded as a timeout, and should be terminated
- the answer needs to be terminated within 30 seconds
- within 30 seconds, the user hangs up actively and terminates
in any case, I can"t figure out how to isolate side effects.
is there any code or pseudo code to refer to?