This is a simple FastAPI application that enables two users to connect to a call. When one user presses the "Record" button, the other user receives a notification that the call is being recorded.
- WebSocket-based communication
- Notification system for call recording status
- Get call duration functionality
- Clone the repository:
git clone https://github.com/aunraza-dev/FastAPI-CallRecord.git - Install dependencies:
pip install -r requirements.txt - Run the FastAPI server:
uvicorn app:app --reload - Open two browser windows or tabs and navigate to the application's frontend at
http://localhost:8000/static/index.html - Enter the call ID and user ID for each tab and click "Connect"
- Press the "Record Call" button in one tab to see the notification in the other tab
- Press the "Get Call Duration" button to see the current call duration
- Python
- FastAPI
- WebSocket
- HTML
- JavaScript
Feel free to contribute and improve this project!