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
	}
已提问 1 年前353 查看次数
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
支持工程师
已回答 1 年前
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.

已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则