增加接口约束

This commit is contained in:
dexter
2022-02-13 17:12:07 +08:00
parent 460818ceaf
commit 207f7afc7b

View File

@@ -60,12 +60,16 @@ func (puller *HDLPuller) pull() {
} }
} }
var _ IPuller = (*HDLPuller)(nil)
var _ IPuller = (*FLVFile)(nil)
type HDLPuller struct { type HDLPuller struct {
Puller Puller
absTS uint32 //绝对时间戳 absTS uint32 //绝对时间戳
at *track.UnknowAudio at *track.UnknowAudio
vt *track.UnknowVideo vt *track.UnknowVideo
} }
// 用于发布FLV文件 // 用于发布FLV文件
type FLVFile struct { type FLVFile struct {
HDLPuller HDLPuller