Capture stream: Add- and RemoveListener.

This commit is contained in:
Miroslav Šedivý
2021-02-06 12:52:02 +01:00
parent 6756114e30
commit f05889bd56
3 changed files with 31 additions and 11 deletions

View File

@ -23,7 +23,8 @@ type ScreencastManager interface {
type StreamManager interface {
Codec() codec.RTPCodec
OnSample(listener func(sample Sample))
AddListener(listener func(sample Sample))
RemoveListener(listener func(sample Sample))
Start() error
Stop()