feat: sync group call livestream support
This commit is contained in:
parent
56d995474c
commit
f1a27996d3
37 changed files with 2219 additions and 83 deletions
20
internal/domain/livestream.go
Normal file
20
internal/domain/livestream.go
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
package domain
|
||||
|
||||
import "errors"
|
||||
|
||||
// LiveStreamChannel 是直播时间轴上一个可拉流通道的快照(RTMP unified 模式恒为
|
||||
// channel=1 / scale=0;last_timestamp_ms 是最新可取 segment 的起始时间戳)。
|
||||
type LiveStreamChannel struct {
|
||||
Channel int
|
||||
Scale int
|
||||
LastTimestampMs int64
|
||||
}
|
||||
|
||||
// 直播拉流业务错误;rpc 层映射见 upload.getFile(inputGroupCallStream):
|
||||
// - PartNotReady → TIME_TOO_BIG(客户端 100ms 后原样重试)
|
||||
// - PartExpired / NoStream → 普通 400(客户端重新对时 resync)
|
||||
var (
|
||||
ErrLiveStreamPartNotReady = errors.New("live stream part not ready")
|
||||
ErrLiveStreamPartExpired = errors.New("live stream part expired")
|
||||
ErrLiveStreamNoStream = errors.New("live stream not active")
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue