Amazon Kinesis Video Signaling Channels 2019-12-04
- Client: Aws\KinesisVideoSignalingChannels\KinesisVideoSignalingChannelsClient
- Service ID: kinesis-video-signaling
- Version: 2019-12-04
This page describes the parameters and results for the operations of the Amazon Kinesis Video Signaling Channels (2019-12-04), and shows how to use the Aws\KinesisVideoSignalingChannels\KinesisVideoSignalingChannelsClient object to call the described operations. This documentation is specific to the 2019-12-04 API version of the service.
Operation Summary
Each of the following operations can be created from a client using
$client->getCommand('CommandName')
, where "CommandName" is the
name of one of the following operations. Note: a command is a value that
encapsulates an operation and the parameters used to create an HTTP request.
You can also create and send a command immediately using the magic methods
available on a client object: $client->commandName(/* parameters */)
.
You can send the command asynchronously (returning a promise) by appending the
word "Async" to the operation name: $client->commandNameAsync(/* parameters */)
.
- GetIceServerConfig ( array $params = [] )
- Gets the Interactive Connectivity Establishment (ICE) server configuration information, including URIs, username, and password which can be used to configure the WebRTC connection.
- SendAlexaOfferToMaster ( array $params = [] )
- This API allows you to connect WebRTC-enabled devices with Alexa display devices.
Operations
GetIceServerConfig
$result = $client->getIceServerConfig
([/* ... */]); $promise = $client->getIceServerConfigAsync
([/* ... */]);
Gets the Interactive Connectivity Establishment (ICE) server configuration information, including URIs, username, and password which can be used to configure the WebRTC connection. The ICE component uses this configuration information to setup the WebRTC connection, including authenticating with the Traversal Using Relays around NAT (TURN) relay server.
TURN is a protocol that is used to improve the connectivity of peer-to-peer applications. By providing a cloud-based relay service, TURN ensures that a connection can be established even when one or more peers are incapable of a direct peer-to-peer connection. For more information, see A REST API For Access To TURN Services.
You can invoke this API to establish a fallback mechanism in case either of the peers is unable to establish a direct peer-to-peer connection over a signaling channel. You must specify either a signaling channel ARN or the client ID in order to invoke this API.
Parameter Syntax
$result = $client->getIceServerConfig([ 'ChannelARN' => '<string>', // REQUIRED 'ClientId' => '<string>', 'Service' => 'TURN', 'Username' => '<string>', ]);
Parameter Details
Members
- ChannelARN
-
- Required: Yes
- Type: string
The ARN of the signaling channel to be used for the peer-to-peer connection between configured peers.
- ClientId
-
- Type: string
Unique identifier for the viewer. Must be unique within the signaling channel.
- Service
-
- Type: string
Specifies the desired service. Currently,
TURN
is the only valid value. - Username
-
- Type: string
An optional user ID to be associated with the credentials.
Result Syntax
[ 'IceServerList' => [ [ 'Password' => '<string>', 'Ttl' => <integer>, 'Uris' => ['<string>', ...], 'Username' => '<string>', ], // ... ], ]
Result Details
Members
- IceServerList
-
- Type: Array of IceServer structures
The list of ICE server information objects.
Errors
- InvalidClientException:
The specified client is invalid.
- SessionExpiredException:
If the client session is expired. Once the client is connected, the session is valid for 45 minutes. Client should reconnect to the channel to continue sending/receiving messages.
- ClientLimitExceededException:
Your request was throttled because you have exceeded the limit of allowed client calls. Try making the call later.
- ResourceNotFoundException:
The specified resource is not found.
- InvalidArgumentException:
The value for this input parameter is invalid.
- NotAuthorizedException:
The caller is not authorized to perform this operation.
SendAlexaOfferToMaster
$result = $client->sendAlexaOfferToMaster
([/* ... */]); $promise = $client->sendAlexaOfferToMasterAsync
([/* ... */]);
This API allows you to connect WebRTC-enabled devices with Alexa display devices. When invoked, it sends the Alexa Session Description Protocol (SDP) offer to the master peer. The offer is delivered as soon as the master is connected to the specified signaling channel. This API returns the SDP answer from the connected master. If the master is not connected to the signaling channel, redelivery requests are made until the message expires.
Parameter Syntax
$result = $client->sendAlexaOfferToMaster([ 'ChannelARN' => '<string>', // REQUIRED 'MessagePayload' => '<string>', // REQUIRED 'SenderClientId' => '<string>', // REQUIRED ]);
Parameter Details
Members
- ChannelARN
-
- Required: Yes
- Type: string
The ARN of the signaling channel by which Alexa and the master peer communicate.
- MessagePayload
-
- Required: Yes
- Type: string
The base64-encoded SDP offer content.
- SenderClientId
-
- Required: Yes
- Type: string
The unique identifier for the sender client.
Result Syntax
[ 'Answer' => '<string>', ]
Result Details
Members
- Answer
-
- Type: string
The base64-encoded SDP answer content.
Errors
- ClientLimitExceededException:
Your request was throttled because you have exceeded the limit of allowed client calls. Try making the call later.
- ResourceNotFoundException:
The specified resource is not found.
- InvalidArgumentException:
The value for this input parameter is invalid.
- NotAuthorizedException:
The caller is not authorized to perform this operation.
Shapes
ClientLimitExceededException
Description
Your request was throttled because you have exceeded the limit of allowed client calls. Try making the call later.
Members
- Message
-
- Type: string
IceServer
Description
A structure for the ICE server connection data.
Members
- Password
-
- Type: string
A password to login to the ICE server.
- Ttl
-
- Type: int
The period of time, in seconds, during which the username and password are valid.
- Uris
-
- Type: Array of strings
An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris spec. These URIs provide the different addresses and/or protocols that can be used to reach the TURN server.
- Username
-
- Type: string
A username to login to the ICE server.
InvalidArgumentException
Description
The value for this input parameter is invalid.
Members
- Message
-
- Type: string
InvalidClientException
Description
The specified client is invalid.
Members
- message
-
- Type: string
NotAuthorizedException
Description
The caller is not authorized to perform this operation.
Members
- Message
-
- Type: string
ResourceNotFoundException
Description
The specified resource is not found.
Members
- Message
-
- Type: string
SessionExpiredException
Description
If the client session is expired. Once the client is connected, the session is valid for 45 minutes. Client should reconnect to the channel to continue sending/receiving messages.
Members
- message
-
- Type: string