mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add video id for webrtc metrics.
This commit is contained in:
@ -138,6 +138,8 @@ func (manager *WebRTCManagerCtx) CreatePeer(session types.Session, videoID strin
|
||||
return nil, types.ErrWebRTCVideoNotFound
|
||||
}
|
||||
|
||||
manager.metrics.SetVideoID(session, videoID)
|
||||
|
||||
connection, err := manager.newPeerConnection([]codec.RTPCodec{
|
||||
audioStream.Codec(),
|
||||
videoStream.Codec(),
|
||||
@ -201,6 +203,7 @@ func (manager *WebRTCManagerCtx) CreatePeer(session types.Session, videoID strin
|
||||
return types.ErrWebRTCVideoNotFound
|
||||
}
|
||||
|
||||
manager.metrics.SetVideoID(session, videoID)
|
||||
return videoTrack.SetStream(videoStream)
|
||||
},
|
||||
setPaused: func(isPaused bool) {
|
||||
|
Reference in New Issue
Block a user