GET /
- Serves the frontend of the application.
- Response: index.html page
POST /overlays
- Creates a new overlay for the livestream.
- Request Body (JSON): { "content": "Overlay content (e.g., text, logo)", "height": 20, "width": 30, "left": 10, "top": 10 }
- Response: { "message": "Overlay created successfully!" }
GET /overlays
- Retrieves a list of all overlays.
- Response: { "overlays": [ { "_id": { "$oid": "overlayId1" }, "content": "Sample Text", "height": 10, "width": 15, "left": 5, "top": 5 } ] }
PUT /overlays/
- Updates an overlay by ID.
- Path Parameter:
id(The ID of the overlay to update) - Request Body (JSON): { "content": "Updated content", "height": 25, "width": 35, "left": 10, "top": 5 }
- Response: { "message": "Overlay updated successfully!" }
DELETE /overlays/
- Deletes an overlay by ID.
- Path Parameter:
id(The ID of the overlay to delete) - Response: { "message": "Overlay deleted successfully!" }
To get started with the Livestream Overlays app, follow these simple steps:
-
Clone the app repository by running the following command in your terminal:
git clone https://github.com/rohitkumar4826/RTSV_Streaming.git
-
Navigate to the root directory of the app.
cd rtsp -
Install the required dependencies by running:
pip install -r requirements.txt
-
Navigate to frontend and build project by running:
cd frontend npm i npm run build cd ..
-
Start the app by running:
python index.py cd frontend/ npm run dev -
Open your web browser and visit http://localhost:10000 to use the Livestream Overlays app.
git clone https://www.github.com/melvinjariwala/livestream_app.git
cd livestream_app
pip install -r requirements.txt
cd frontend
npm i
npm run build
cd ..
python index.pyOpen your web browser and visit http://localhost:10000 to use the Livestream Overlays app.