add mpeg-ts prober

This commit is contained in:
Leandro Moreira
2024-02-09 09:49:17 -03:00
parent 4ad3d0920a
commit 33710100a5
15 changed files with 242 additions and 61 deletions

View File

@@ -51,8 +51,8 @@ func NewSRTController(c *entities.Config, l *zap.SugaredLogger, lc fx.Lifecycle)
}, nil
}
func (c *SRTController) Connect(cancel context.CancelFunc, params entities.RequestParams) (*astisrt.Connection, error) {
c.l.Infow("trying to connect srt")
func (c *SRTController) Connect(cancel context.CancelFunc, params *entities.RequestParams) (*astisrt.Connection, error) {
c.l.Info("trying to connect srt")
if err := params.Valid(); err != nil {
return nil, err