---
title: 'Project documentation template'
disqus: hackmd
---
Live stream
===
## Table of Contents
[TOC]
User flows
---
```sequence
Raspi->Raspi: Start web service
User->Raspi: [Web] Access and start livestream ID 001
Raspi->Raspi: Start livestream\nID: 001
Raspi->STUN server: Register NAT with Stream ID: 001
STUN server->STUN server: Decode stream data\nto .temp
User->Frontend: Login
Frontend->Backend: Call API get Live stream list
Frontend->STUN server: Register NAT
STUN server->Raspi: Match with Frontend
STUN server->Frontend: Match with Raspi
Note over Raspi,Frontend: Start webRTC
Raspi-->Frontend: WebRTC audio/video
```