MCPcopy
hub / github.com/livekit/livekit / sendConnectionNotify

Method sendConnectionNotify

pkg/service/roommanager_service.go:194–204  ·  view source on GitHub ↗
(ctx context.Context, participant types.Participant)

Source from the content-addressed store, hash-verified

192}
193
194func (s whipService) sendConnectionNotify(ctx context.Context, participant types.Participant) error {
195 video, audio := getMediaStateForParticipant(participant)
196
197 _, err := s.ingressRpcCli.WHIPRTCConnectionNotify(ctx, string(participant.ID()), &rpc.WHIPRTCConnectionNotifyRequest{
198 ParticipantId: string(participant.ID()),
199 Video: video,
200 Audio: audio,
201 }, psrpc.WithRequestTimeout(rpc.DefaultPSRPCConfig.Timeout))
202
203 return err
204}
205
206func getMediaStateForParticipant(participant types.Participant) (*livekit.InputVideoState, *livekit.InputAudioState) {
207 pParticipant := participant.ToProto()

Callers 1

notifySessionMethod · 0.95

Calls 2

IDMethod · 0.65

Tested by

no test coverage detected