Reset and Hang-Up Flow
Simplified steps for seamless call termination and system reset.
The Reset and Hang-Up Flow ensures a clean termination of the WebRTC session, allowing users to reset and re-establish connections.
Flow Breakdown:
- Clearing all WebRTC connections and local media streams.
-
Resetting temporary session data in
localStorageto ensure a clean state. - Broadcasting a
hang-upevent to inform the receiver-lounge. - Allowing users to restart the call from scratch.
Key Components:
- Hang-Up Button: Ends the call and resets the system.
- Session Data Reset: Clears
localStorageto prepare for a new call. - Reinitialization: Automatically prepares the system for a new call upon reset.
Active Call
Hang Up
Reset Connection
Clear Storage
Ready for New Call