Kinesis Video Service does not return ICE servers in GetIceServerConfig()

0

Hello! I'm using Golang SDK. I'm able to get channel info and WSS/HTTPS endpoints for a signaling channel. However, GetIceServerConfig() always returns an empty list regardless an user or channel I'm trying to request it against. clientId param does not change anything.... Any ideas why? I saw multiple similar unanswered questions for the same call. Yes, I know that in CLI and JS API you have to get endpoints first. Golang SDK apparently does not need to do that, but this method is not working in any case.

Sample code:

	svcObject := kvc.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
	svcTurn := kvc.ServiceTurn
	clientId := "kinesis-client"
	iceServerConfigIn := kvc.GetIceServerConfigInput{
		ChannelARN: &channelARN,
		Service:    &svcTurn,
		ClientId:   &clientId,
	}
	iceServerConfigOut, err := svcObject.GetIceServerConfig(&iceServerConfigIn)
	if err != nil {
		fmt.Println("Could not obtain ICE Server config")
		return ChannelInfo{}, err
	}
질문됨 일 년 전354회 조회
2개 답변
0

Hello,

GetIceServerConfig uses endpoint generated by the GetSignalingChannelEndpoint API and returns the URIs, user name, and password which can be used to configure the WebRTC connection. You can try to configure your code to pull endpoints using GetSignalingChannelEndpoint API call and then specify the endpoint along with Channel ARN and region information in GetSignalingChannelEndpoint API call.

Thanks !

AWS
지원 엔지니어
답변함 일 년 전
0

Hello, Thanks for the answer! I understand that singaling channel endpoint can be used to get ICE Servers with corresponding credentials, but Golang SDK does not use endpoints explicitly. Is there an example on how to get ICE servers with Golang SDK? GetICEServers() returns an empty servers list and no errors. It's a bit confusing.

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠