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
	}
asked a year ago343 views
2 Answers
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
SUPPORT ENGINEER
answered a year ago
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.

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions