mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add on track log.
This commit is contained in:
parent
0075cdca2b
commit
096efe9b38
@ -155,6 +155,14 @@ func (manager *WebRTCManagerCtx) CreatePeer(session types.Session, videoID strin
|
|||||||
iceTrickle: manager.config.ICETrickle,
|
iceTrickle: manager.config.ICETrickle,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
connection.OnTrack(func(tr *webrtc.TrackRemote, r *webrtc.RTPReceiver) {
|
||||||
|
logger.Info().Interface("track", tr).Interface("receiver", r).Msg("got remote track")
|
||||||
|
})
|
||||||
|
|
||||||
|
connection.OnDataChannel(func(dc *webrtc.DataChannel) {
|
||||||
|
logger.Info().Interface("data-channel", dc).Msg("got remote data channel")
|
||||||
|
})
|
||||||
|
|
||||||
connection.OnNegotiationNeeded(func() {
|
connection.OnNegotiationNeeded(func() {
|
||||||
logger.Warn().Msg("negotiation is needed")
|
logger.Warn().Msg("negotiation is needed")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user