增加拉流列表

This commit is contained in:
dexter
2021-12-27 20:36:53 +08:00
parent 0d2182c4d5
commit e8a1b52035
4 changed files with 36 additions and 4 deletions

View File

@@ -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)