api: add ID to WebRTC readers (#1318)

This commit is contained in:
aler9 2022-12-21 12:50:02 +01:00
parent 1860abea9f
commit f394c9f8a8
2 changed files with 5 additions and 2 deletions

View File

@ -415,7 +415,9 @@ components:
properties:
type:
type: string
enum: [webRTConn]
enum: [webRTCConn]
id:
type: string
RTSPConn:
type: object

View File

@ -755,5 +755,6 @@ func (c *webRTCConn) readCandidate() (*webrtc.ICECandidateInit, error) {
func (c *webRTCConn) apiReaderDescribe() interface{} {
return struct {
Type string `json:"type"`
}{"webRTCConn"}
ID string `json:"id"`
}{"webRTCConn", c.uuid.String()}
}