mirror of
https://github.com/lkmio/lkm.git
synced 2025-10-05 15:16:49 +08:00
webrtc 拉流
This commit is contained in:
@@ -3,6 +3,7 @@ package stream
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"github.com/yangjiechina/avformat/utils"
|
||||
"net/http"
|
||||
"time"
|
||||
)
|
||||
@@ -35,6 +36,12 @@ func NewPublishHookEventInfo(stream, remoteAddr string, protocol SourceType) eve
|
||||
return eventInfo{stream: stream, protocol: sourceTypeToStr(protocol), remoteAddr: remoteAddr}
|
||||
}
|
||||
|
||||
type HookHandler interface {
|
||||
Play(sink ISink, success func(), failure func(state utils.HookState))
|
||||
|
||||
PlayDone(sink ISink, success func(), failure func(state utils.HookState))
|
||||
}
|
||||
|
||||
type HookSession interface {
|
||||
send(url string, body interface{}, success func(response *http.Response), failure func(response *http.Response, err error)) error
|
||||
|
||||
|
Reference in New Issue
Block a user