feat: sync group call livestream support
This commit is contained in:
parent
56d995474c
commit
f1a27996d3
37 changed files with 2219 additions and 83 deletions
2
deploy/migrations/0053_group_call_rtmp.down.sql
Normal file
2
deploy/migrations/0053_group_call_rtmp.down.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
DROP TABLE IF EXISTS group_call_rtmp_keys;
|
||||
ALTER TABLE group_calls DROP COLUMN IF EXISTS rtmp_stream;
|
||||
10
deploy/migrations/0053_group_call_rtmp.up.sql
Normal file
10
deploy/migrations/0053_group_call_rtmp.up.sql
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
-- Live Stream(RTMP 直播):group_calls 增加 rtmp_stream 标记;
|
||||
-- per-channel 持久 RTMP 推流密钥(revoke 轮换后旧 key 立即失效)。
|
||||
ALTER TABLE group_calls
|
||||
ADD COLUMN IF NOT EXISTS rtmp_stream boolean DEFAULT false NOT NULL;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS group_call_rtmp_keys (
|
||||
channel_id bigint PRIMARY KEY,
|
||||
stream_key text NOT NULL,
|
||||
updated_at integer NOT NULL
|
||||
);
|
||||
2
deploy/migrations/0054_group_call_scheduled.down.sql
Normal file
2
deploy/migrations/0054_group_call_scheduled.down.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
DROP TABLE IF EXISTS group_call_schedule_subscribers;
|
||||
ALTER TABLE group_calls DROP COLUMN IF EXISTS schedule_date;
|
||||
10
deploy/migrations/0054_group_call_scheduled.up.sql
Normal file
10
deploy/migrations/0054_group_call_scheduled.up.sql
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
-- Scheduled video chat:group_calls 增加 schedule_date(>0=定时未开始);
|
||||
-- 开播提醒订阅(toggleGroupCallStartSubscription 的 per-user 状态)。
|
||||
ALTER TABLE group_calls
|
||||
ADD COLUMN IF NOT EXISTS schedule_date integer DEFAULT 0 NOT NULL;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS group_call_schedule_subscribers (
|
||||
call_id bigint NOT NULL,
|
||||
user_id bigint NOT NULL,
|
||||
PRIMARY KEY (call_id, user_id)
|
||||
);
|
||||
1
deploy/migrations/0055_group_call_join_as.down.sql
Normal file
1
deploy/migrations/0055_group_call_join_as.down.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE group_call_participants DROP COLUMN IF EXISTS join_as_channel_id;
|
||||
4
deploy/migrations/0055_group_call_join_as.up.sql
Normal file
4
deploy/migrations/0055_group_call_join_as.up.sql
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
-- join_as:参与者可以以频道/群本身的身份入会(匿名管理员语义)。
|
||||
-- 0 = 以本人用户身份;唯一键仍是 (call_id, user_id),换身份 rejoin 为替换。
|
||||
ALTER TABLE group_call_participants
|
||||
ADD COLUMN IF NOT EXISTS join_as_channel_id bigint DEFAULT 0 NOT NULL;
|
||||
Loading…
Add table
Add a link
Reference in a new issue