(ctx context.Context, participant types.Participant)
| 192 | } |
| 193 | |
| 194 | func (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 | |
| 206 | func getMediaStateForParticipant(participant types.Participant) (*livekit.InputVideoState, *livekit.InputAudioState) { |
| 207 | pParticipant := participant.ToProto() |
no test coverage detected