dropped-frame tracke

This commit is contained in:
Dmitry Sergeev
2026-09-01 23:45:10 +03:00
parent 179768ca4a
commit a473c84b0e
11 changed files with 204 additions and 16 deletions
+7 -3
View File
@@ -6,7 +6,9 @@ import (
)
type PendingVideoFrame struct {
Frame VideoFrame
Frame VideoFrame
Generation uint64
Source FeedConfig
completeOnce sync.Once
result chan error
@@ -27,8 +29,10 @@ func (b *VideoBridge) ConsumeVideo(
frame VideoFrame,
) error {
pending := &PendingVideoFrame{
Frame: frame,
result: make(chan error, 1),
Frame: frame,
Generation: generationFromContext(ctx),
Source: videoSourceFromContext(ctx),
result: make(chan error, 1),
}
select {