Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Update WIP backend diagram
Gabe Kangasa34323a29450
diff --git a/docs/backend.md b/docs/backend.mdindex 04765b642a..605f618fbb 100644--- a/docs/backend.md+++ b/docs/backend.md@@ -47,21 +47,21 @@ subgraph VideoPipeline[Video Pipeline]RTMPService[fa:fa-video RTMP Service]end-subgraph ChatService[fa:fa-comment Chat Service]+subgraph ChatService[fa:fa-comment Chat\nService]endsubgraph Dependencies- OutboundWebhooks[Outbound]- App{Application}+ App{AppController}ChatService--->AppWebhooks--->App+ ActivityPubOutboundHandlers[fa:fa-hashtag ActivityPub\nOutbound]--->App- ConfigRepository(fa:fa-hard-drive Config Repository)--->App- UserRepository(fa:fa-hard-drive User Repository)--->App- APRepository(fa:fa-hard-drive ActivityPub Repository)--->App- NotificationsRepository(fa:fa-hard-drive Notifications Repository)--->App- ChatRepository(fa:fa-hard-drive Chat Repository)+ ConfigRepository(fa:fa-hard-drive Config\nRepository)--->App+ UserRepository(fa:fa-hard-drive User\nRepository)--->App+ NotificationsRepository(fa:fa-hard-drive Notifications\nRepository)--->App+ ChatRepository(fa:fa-hard-drive Chat\nRepository)+ APRepository(fa:fa-hard-drive ActivityPub\nRepository)Database(fa:fa-hard-drive Database)--->ConfigRepositoryDatabase--->UserRepository@@ -70,33 +70,30 @@ subgraph DependenciesChatRepository-->ChatService- ApplicationState(fa:fa-list Application State)--->App- GeoIP(fa:fa-globe GeoIP Lookup)--->App+ ApplicationState(fa:fa-list Application\nState)--->App+ GeoIP(fa:fa-globe GeoIP\nLookup)--->AppStatistics(fa:fa-list Statistics)--->App-end+ OutboundWebhooks[Outbound\nWebhooks]--->App-subgraph VideoStorageProviders[Video Storage Providers]- LocalStorage((fa:fa-hard-drive Local Storage))- S3Storage((fa:fa-hard-drive S3 Storage))end-subgraph ActivityPub- ActivityPubInboundHandlers[fa:fa-hashtag Inbound]- ActivityPubOutboundHandlers[fa:fa-hashtag Outbound]+subgraph VideoStorageProviders[Video Storage Providers]+ LocalStorage((fa:fa-hard-drive Local\nStorage))+ S3Storage((fa:fa-hard-drive S3\nStorage))end-subgraph Authentication+subgraph Authentication[Chat Authentication]IndieAuth[fa:fa-key IndieAuth]FediAuth[fa:fa-key FediAuth]end-subgraph Notifications+subgraph Notifications[External Notifications]DiscordNotifier[fa:fa-comment Discord]BrowserNotifier[fa:fa-browser Browser]endsubgraph WebServer[Web Server]- ActivityPubHandlers[fa:fa-file ActivityPub Handlers]+ ActivityPubHandlers[fa:fa-file ActivityPub\nHandlers]subgraph WebAssets[Web Assets]EmbeddedStaticFiles((fa:fa-file Embedded\nStatic Assets))@@ -106,31 +103,31 @@ subgraph WebServer[Web Server]endsubgraph HTTPHandlers[fa:fa-browser HTTP Handlers]- AdminAPIs[Admin APIs]- ThirdPartyAPIs[3rd Party APIs]+ AdminAPIs[Admin\nAPIs]+ ThirdPartyAPIs[3rd Party\nAPIs]WebSocket[WebSocket]- subgraph ChatAPIs[Chat APIs]- ChatUserRegistration[Chat User Registration]+ subgraph ChatAPIs[Chat\nAPIs]+ ChatUserRegistration[Chat User\nRegistration]Emoji[Emojis]- subgraph ChatAuthAPIs[Chat Authentication]+ subgraph ChatAuthAPIs[Chat\nAuthentication]FediAuthIndieAuthendendsubgraph VideoAPIs[fa:fa-video Video APIs]- ViewerPing[Viewer Ping]- PlaybackMetrics[Playback health metrics]+ ViewerPing[Viewer\nPing]+ PlaybackMetrics[Playback\nHealth Metrics]endActivityPubHandlers- ApplicationConfig[Application Config]- ApplicationStatus[Application Status]- Directory[Directory API]+ ApplicationConfig[Application\nConfig]+ ApplicationStatus[Application\nStatus]+ Directory[Directory\nAPI]Followers[Followers]endendsubgraph Streamer- BroadcastingSoftware>fa:fa-video BroadcastingSoftware]+ BroadcastingSoftware>fa:fa-video Broadcasting\nSoftware]end%% All the services and packages require access@@ -139,25 +136,21 @@ App-.->HTTPHandlersApp-.->VideoPipelineApp-.->ActivityPubApp-.->Authentication-App-.Stream went\nonline.->Notifications-App-.->DirectoryNotifier[Directory Notifier]+App-.->Notifications+App-.->DirectoryNotifier[Owncast\nDirectory]LocalStorage--HLS-->OnDiskStaticFilesRTMPService>RTMP Ingest]--RTMP-->VideoTranscoderVideoTranscoder--HLS-->VideoStorageProviders-%% Viewers-VideoPlayer-->VideoStorageProviders-WebBrowser-->WebAssets-%% StreamersBroadcastingSoftware--RTMP-->RTMPService%% Style the nodes%% Define reusable styles for node types-classDef bigtext font-weight:bold,font-size:20px+classDef bigtext font-weight:bold,font-size:40pxclassDef repository fill:#4F625B,color:#fffclassDef webservice fill:#6082B6,color:#fffclassDef rtmp fill:#608200, color:#fff@@ -191,5 +184,5 @@ class LocalStorage storageclass S3Storage storage%% Customize the theme styles-%%{init: {'theme':'base', 'themeVariables': {'darkMode': true, 'lineColor': '#c3dafe', 'tertiaryTextColor': 'white', 'clusterBkg': '#2d3748', 'primaryTextColor': '#39373d', "edgeLabelBackground": "white", "fontFamily": "monospace"}}}%%+%%{init: {'theme':'base', 'themeVariables': {'darkMode': true, 'lineColor': '#c3dafe', 'tertiaryTextColor': 'white', 'clusterBkg': '#2d3748', 'primaryTextColor': '#39373d', "edgeLabelBackground": "white", "fontFamily": "monospace", "fontSize": "30px"}}}%%```