mirror of
https://github.com/Monibuca/plugin-hdl.git
synced 2025-10-05 08:47:00 +08:00
增加拉流列表
This commit is contained in:
5
pull.go
5
pull.go
@@ -36,10 +36,15 @@ func pull(at *AudioTrack, vt *VideoTrack, reader io.Reader, lastDisconnect uint3
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
type HDLPuller struct{}
|
||||
|
||||
func PullStream(streamPath, url string) error {
|
||||
stream := Stream{
|
||||
URL: url,
|
||||
Type: "HDL Pull",
|
||||
StreamPath: streamPath,
|
||||
ExtraProp: &HDLPuller{},
|
||||
}
|
||||
at := stream.NewAudioTrack(0)
|
||||
vt := stream.NewVideoTrack(0)
|
||||
|
Reference in New Issue
Block a user