feat: cleanup stream on end

fix: audio codecs
fix: hls segmenter
This commit is contained in:
2024-11-21 22:08:47 +00:00
parent f192a915e0
commit 9937f9a6f9
16 changed files with 131 additions and 54 deletions

View File

@ -14,11 +14,11 @@ create table user
create unique index ix_user_pubkey on user (pubkey);
create table user_stream
(
id UUID not null primary key,
id varchar(50) not null primary key,
user_id integer unsigned not null,
starts timestamp not null,
starts timestamp not null,
ends timestamp,
state smallint not null,
state tinyint unsigned not null,
title text,
summary text,
image text,
@ -28,9 +28,9 @@ create table user_stream
goal text,
pinned text,
-- milli-sats paid for this stream
cost bigint not null default 0,
cost bigint unsigned not null default 0,
-- duration in seconds
duration float not null default 0,
duration float not null default 0,
-- admission fee
fee integer unsigned,
-- current nostr event json