mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
30 lines
475 B
Go
30 lines
475 B
Go
|
package types
|
||
|
|
||
|
type Sample struct {
|
||
|
Data []byte
|
||
|
Samples uint32
|
||
|
}
|
||
|
|
||
|
type CaptureManager interface {
|
||
|
Start()
|
||
|
Shutdown() error
|
||
|
|
||
|
VideoCodec() string
|
||
|
AudioCodec() string
|
||
|
|
||
|
OnVideoFrame(listener func(sample Sample))
|
||
|
OnAudioFrame(listener func(sample Sample))
|
||
|
|
||
|
StartStream()
|
||
|
StopStream()
|
||
|
Streaming() bool
|
||
|
|
||
|
ChangeResolution(width int, height int, rate int) error
|
||
|
|
||
|
// broacast
|
||
|
StartBroadcast(url string)
|
||
|
StopBroadcast()
|
||
|
IsBoradcasting() bool
|
||
|
BroadcastUrl() string
|
||
|
}
|