add streamsrc to capture.

This commit is contained in:
Miroslav Šedivý
2021-12-01 22:36:45 +01:00
parent a6eca45e7f
commit 5643e7abbc
4 changed files with 168 additions and 22 deletions

View File

@ -43,6 +43,16 @@ type StreamSinkManager interface {
Started() bool
}
type StreamSrcManager interface {
Codec() codec.RTPCodec
Start(codec codec.RTPCodec) error
Stop()
Push(bytes []byte)
Started() bool
}
type CaptureManager interface {
Start()
Shutdown() error
@ -52,6 +62,9 @@ type CaptureManager interface {
Audio() StreamSinkManager
Video(videoID string) (StreamSinkManager, bool)
VideoIDs() []string
Webcam() StreamSrcManager
Microphone() StreamSrcManager
}
type VideoConfig struct {