Skip to content

Commit

Permalink
1.2.7 (#193)
Browse files Browse the repository at this point in the history
includes additional logging of track events
  • Loading branch information
davidzhao authored Jun 28, 2023
1 parent 1990a60 commit 82d68a6
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 6 deletions.
38 changes: 36 additions & 2 deletions cmd/livekit-cli/join.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,44 @@ func joinRoom(c *cli.Context) error {
logger.Debugw("connection quality changed", "participant", p.Identity(), "quality", update.Quality)
},
OnTrackSubscribed: func(track *webrtc.TrackRemote, pub *lksdk.RemoteTrackPublication, participant *lksdk.RemoteParticipant) {
logger.Infow("track subscribed", "kind", pub.Kind(), "trackID", pub.SID(), "source", pub.Source())
logger.Infow("track subscribed",
"kind", pub.Kind(),
"trackID", pub.SID(),
"source", pub.Source(),
"participant", participant.Identity(),
)
},
OnTrackUnsubscribed: func(track *webrtc.TrackRemote, pub *lksdk.RemoteTrackPublication, participant *lksdk.RemoteParticipant) {
logger.Infow("track unsubscribed", "kind", pub.Kind(), "trackID", pub.SID(), "source", pub.Source())
logger.Infow("track unsubscribed",
"kind", pub.Kind(),
"trackID", pub.SID(),
"source", pub.Source(),
"participant", participant.Identity(),
)
},
OnTrackUnpublished: func(pub *lksdk.RemoteTrackPublication, participant *lksdk.RemoteParticipant) {
logger.Infow("track unpublished",
"kind", pub.Kind(),
"trackID", pub.SID(),
"source", pub.Source(),
"participant", participant.Identity(),
)
},
OnTrackMuted: func(pub lksdk.TrackPublication, participant lksdk.Participant) {
logger.Infow("track muted",
"kind", pub.Kind(),
"trackID", pub.SID(),
"source", pub.Source(),
"participant", participant.Identity(),
)
},
OnTrackUnmuted: func(pub lksdk.TrackPublication, participant lksdk.Participant) {
logger.Infow("track unmuted",
"kind", pub.Kind(),
"trackID", pub.SID(),
"source", pub.Source(),
"participant", participant.Identity(),
)
},
},
OnRoomMetadataChanged: func(metadata string) {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/ggwhite/go-masker v1.0.9
github.com/go-logr/logr v1.2.4
github.com/livekit/protocol v1.5.8-0.20230614173826-89359963fc24
github.com/livekit/server-sdk-go v1.0.12
github.com/livekit/server-sdk-go v1.0.13
github.com/manifoldco/promptui v0.9.0
github.com/olekukonko/tablewriter v0.0.5
github.com/pion/rtp v1.7.13
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ github.com/livekit/protocol v1.5.8-0.20230614173826-89359963fc24 h1:RKVbd4Ck114g
github.com/livekit/protocol v1.5.8-0.20230614173826-89359963fc24/go.mod h1:Y+jl7rD7u8ZMfIUzGr41DU7G5j+34rtgefTCrD/ApZc=
github.com/livekit/psrpc v0.3.1 h1:KfylgJHvoLQcc22t/oflwMOeSnx0c14G7cWsS+9MYS4=
github.com/livekit/psrpc v0.3.1/go.mod h1:n6JntEg+zT6Ji8InoyTpV7wusPNwGqqtxmHlkNhDN0U=
github.com/livekit/server-sdk-go v1.0.12 h1:8OFzZoPPP162LWTkvO2X0ZEGqROTGkx0tfTy4gOntIE=
github.com/livekit/server-sdk-go v1.0.12/go.mod h1:2Q1KLiWyLjG1NGhe7y2r35qs8OVMwXzjyQeCXqGyAKU=
github.com/livekit/server-sdk-go v1.0.13 h1:Rv+jQEqRy5pCto0TF0J0dweDQgLNH7NJiGWG+sHc8/o=
github.com/livekit/server-sdk-go v1.0.13/go.mod h1:2Q1KLiWyLjG1NGhe7y2r35qs8OVMwXzjyQeCXqGyAKU=
github.com/mackerelio/go-osstat v0.2.4 h1:qxGbdPkFo65PXOb/F/nhDKpF2nGmGaCFDLXoZjJTtUs=
github.com/mackerelio/go-osstat v0.2.4/go.mod h1:Zy+qzGdZs3A9cuIqmgbJvwbmLQH9dJvtio5ZjJTbdlQ=
github.com/magefile/mage v1.15.0 h1:BvGheCMAsG3bWUDbZ8AyXXpCNwU9u5CB6sM+HNb9HYg=
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package livekitcli

const (
Version = "1.2.6"
Version = "1.2.7"
)

0 comments on commit 82d68a6

Please sign in to comment.