mirror of
https://github.com/bluenviron/mediamtx
synced 2025-01-26 17:04:24 +00:00
api: add ID to WebRTC readers (#1318)
This commit is contained in:
parent
1860abea9f
commit
f394c9f8a8
@ -415,7 +415,9 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
type:
|
type:
|
||||||
type: string
|
type: string
|
||||||
enum: [webRTConn]
|
enum: [webRTCConn]
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
|
||||||
RTSPConn:
|
RTSPConn:
|
||||||
type: object
|
type: object
|
||||||
|
@ -755,5 +755,6 @@ func (c *webRTCConn) readCandidate() (*webrtc.ICECandidateInit, error) {
|
|||||||
func (c *webRTCConn) apiReaderDescribe() interface{} {
|
func (c *webRTCConn) apiReaderDescribe() interface{} {
|
||||||
return struct {
|
return struct {
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
}{"webRTCConn"}
|
ID string `json:"id"`
|
||||||
|
}{"webRTCConn", c.uuid.String()}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user