owpengram-server/internal/domain/livestream.go

20 lines
778 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package domain
import "errors"
// LiveStreamChannel 是直播时间轴上一个可拉流通道的快照RTMP unified 模式恒为
// channel=1 / scale=0last_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")
)