mirror of
https://github.com/lkmio/lkm.git
synced 2025-10-05 15:16:49 +08:00
18 lines
439 B
Go
18 lines
439 B
Go
package stream
|
|
|
|
import (
|
|
"github.com/yangjiechina/avformat/utils"
|
|
)
|
|
|
|
type SourceHook interface {
|
|
Publish(source ISource, success func(), failure func(state utils.HookState))
|
|
|
|
PublishDone(source ISource, success func(), failure func(state utils.HookState))
|
|
}
|
|
|
|
type SinkHook interface {
|
|
Play(sink ISink, success func(), failure func(state utils.HookState))
|
|
|
|
PlayDone(source ISink, success func(), failure func(state utils.HookState))
|
|
}
|