This is a simple example to demonstrate how to stram your source on your website. Here we use two packages : Django and OpenCV
- Python > 3.6
git clone https://github.com/JacobChen1998/Streaming-with-Django-and-OpenCV.git
cd Streaming-with-Django-and-OpenCV/
conda create --name django-stream python=3.8
conda activate django-stream
pip install -r requirements.txt
4. Replace playing source in cfg.py
stream_link = <your source>
python manage.py runserver
The local video can not play is normal, you must make your video openable with browser detectly first.
This http.server document can help you.