support publishing with WebRTC (#1659) (#1786)

This commit is contained in:
Alessandro Ros 2023-05-14 14:18:03 +02:00 committed by GitHub
parent 6ea299fc56
commit 1688e5d2e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 1928 additions and 951 deletions

View file

@ -128,8 +128,9 @@ func (s *rpiCameraSource) run(ctx context.Context, cnf *conf.PathConf, reloadCon
}
// apiSourceDescribe implements sourceStaticImpl.
func (*rpiCameraSource) apiSourceDescribe() interface{} {
return struct {
Type string `json:"type"`
}{"rpiCameraSource"}
func (*rpiCameraSource) apiSourceDescribe() pathAPISourceOrReader {
return pathAPISourceOrReader{
Type: "rpiCameraSource",
ID: "",
}
}