Add WebRTC playback support: implement WebRTCPlayer component, update schema, database, playback types, and API endpoints to handle webrtc_url field and streaming logic

This commit is contained in:
Nikita committed 2025-12-21 18:34:06 -08:00
1 parent b9927d9807
commit 01102c6817
8 files changed
+179 -7

No files matched your search

+1
View File
@@ -249,6 +249,7 @@ export const streams = pgTable("streams", {
stream_key: text("stream_key").notNull().unique(), // secret key for streaming
// Stream endpoints (set by Linux server)
hls_url: text("hls_url"), // HLS playback URL
webrtc_url: text("webrtc_url"), // WebRTC playback URL
thumbnail_url: text("thumbnail_url"),
started_at: timestamp("started_at", { withTimezone: true }),
ended_at: timestamp("ended_at", { withTimezone: true }),