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
	}
demandé il y a un an354 vues
2 réponses
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
INGÉNIEUR EN ASSISTANCE TECHNIQUE
répondu il y a un an
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.

répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions