Browse Source

api: add ID to WebRTC readers (#1318)

pull/1333/head
aler9 3 years ago
parent
commit
f394c9f8a8
  1. 4
      apidocs/openapi.yaml
  2. 3
      internal/core/webrtc_conn.go

4
apidocs/openapi.yaml

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

3
internal/core/webrtc_conn.go

@ -755,5 +755,6 @@ func (c *webRTCConn) readCandidate() (*webrtc.ICECandidateInit, error) { @@ -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()}
}

Loading…
Cancel
Save