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年前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
サポートエンジニア
回答済み 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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ