Class: AWS.IVSRealTime
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.IVSRealTime
- Identifier:
- ivsrealtime
- API Version:
- 2020-07-14
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
The Amazon Interactive Video Service (IVS) real-time API is REST compatible, using a standard HTTP API and an AWS EventBridge event stream for responses. JSON is used for both requests and responses, including errors.
Key Concepts
-
Stage — A virtual space where participants can exchange video in real time.
-
Participant token — A token that authenticates a participant when they join a stage.
-
Participant object — Represents participants (people) in the stage and contains information about them. When a token is created, it includes a participant ID; when a participant uses that token to join a stage, the participant is associated with that participant ID. There is a 1:1 mapping between participant tokens and participants.
For server-side composition:
-
Composition process — Composites participants of a stage into a single video and forwards it to a set of outputs (e.g., IVS channels). Composition endpoints support this process.
-
Composition — Controls the look of the outputs, including how participants are positioned in the video.
For more information about your IVS live stream, also see Getting Started with Amazon IVS Real-Time Streaming.
Tagging
A tag is a metadata label that you assign to an AWS resource. A tag comprises a key and a value, both set by you. For example, you might set a tag as topic:nature
to label a particular video category. See Tagging AWS Resources for more information, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS stages has no service-specific constraints beyond what is documented there.
Tags can help you identify and organize your AWS resources. For example, you can use the same tag for different resources to indicate that they are related. You can also use tags to manage access (see Access Tags).
The Amazon IVS real-time API has these tag-related endpoints: TagResource, UntagResource, and ListTagsForResource. The following resource supports tagging: Stage.
At most 50 tags can be applied to a resource.
Sending a Request Using IVSRealTime
var ivsrealtime = new AWS.IVSRealTime();
ivsrealtime.createEncoderConfiguration(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the IVSRealTime object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var ivsrealtime = new AWS.IVSRealTime({apiVersion: '2020-07-14'});
You can also set the API version globally in AWS.config.apiVersions
using
the ivsrealtime service identifier:
AWS.config.apiVersions = {
ivsrealtime: '2020-07-14',
// other service API versions
};
var ivsrealtime = new AWS.IVSRealTime();
Version:
-
2020-07-14
Constructor Summary collapse
-
new AWS.IVSRealTime(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
createEncoderConfiguration(params = {}, callback) ⇒ AWS.Request
Creates an EncoderConfiguration object.
.
-
createParticipantToken(params = {}, callback) ⇒ AWS.Request
Creates an additional token for a specified stage.
-
createStage(params = {}, callback) ⇒ AWS.Request
Creates a new stage (and optionally participant tokens).
.
-
createStorageConfiguration(params = {}, callback) ⇒ AWS.Request
Creates a new storage configuration, used to enable recording to Amazon S3.
-
deleteEncoderConfiguration(params = {}, callback) ⇒ AWS.Request
Deletes an EncoderConfiguration resource.
-
deletePublicKey(params = {}, callback) ⇒ AWS.Request
Deletes the specified public key used to sign stage participant tokens.
-
deleteStage(params = {}, callback) ⇒ AWS.Request
Shuts down and deletes the specified stage (disconnecting all participants).
.
-
deleteStorageConfiguration(params = {}, callback) ⇒ AWS.Request
Deletes the storage configuration for the specified ARN.
If you try to delete a storage configuration that is used by a Composition, you will get an error (409 ConflictException).
-
disconnectParticipant(params = {}, callback) ⇒ AWS.Request
Disconnects a specified participant and revokes the participant permanently from a specified stage.
.
-
getComposition(params = {}, callback) ⇒ AWS.Request
Get information about the specified Composition resource.
.
-
getEncoderConfiguration(params = {}, callback) ⇒ AWS.Request
Gets information about the specified EncoderConfiguration resource.
-
getParticipant(params = {}, callback) ⇒ AWS.Request
Gets information about the specified participant token.
.
-
getPublicKey(params = {}, callback) ⇒ AWS.Request
Gets information for the specified public key.
.
-
getStage(params = {}, callback) ⇒ AWS.Request
Gets information for the specified stage.
.
-
getStageSession(params = {}, callback) ⇒ AWS.Request
Gets information for the specified stage session.
.
-
getStorageConfiguration(params = {}, callback) ⇒ AWS.Request
Gets the storage configuration for the specified ARN.
.
-
importPublicKey(params = {}, callback) ⇒ AWS.Request
Import a public key to be used for signing stage participant tokens.
.
-
listCompositions(params = {}, callback) ⇒ AWS.Request
Gets summary information about all Compositions in your account, in the AWS region where the API request is processed.
-
listEncoderConfigurations(params = {}, callback) ⇒ AWS.Request
Gets summary information about all EncoderConfigurations in your account, in the AWS region where the API request is processed.
.
-
listParticipantEvents(params = {}, callback) ⇒ AWS.Request
Lists events for a specified participant that occurred during a specified stage session.
.
-
listParticipants(params = {}, callback) ⇒ AWS.Request
Lists all participants in a specified stage session.
.
-
listPublicKeys(params = {}, callback) ⇒ AWS.Request
Gets summary information about all public keys in your account, in the AWS region where the API request is processed.
.
-
listStages(params = {}, callback) ⇒ AWS.Request
Gets summary information about all stages in your account, in the AWS region where the API request is processed.
.
-
listStageSessions(params = {}, callback) ⇒ AWS.Request
Gets all sessions for a specified stage.
.
-
listStorageConfigurations(params = {}, callback) ⇒ AWS.Request
Gets summary information about all storage configurations in your account, in the AWS region where the API request is processed.
.
-
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Gets information about AWS tags for the specified ARN.
.
-
startComposition(params = {}, callback) ⇒ AWS.Request
Starts a Composition from a stage based on the configuration provided in the request.
A Composition is an ephemeral resource that exists after this endpoint returns successfully.
-
stopComposition(params = {}, callback) ⇒ AWS.Request
Stops and deletes a Composition resource.
-
tagResource(params = {}, callback) ⇒ AWS.Request
Adds or updates tags for the AWS resource with the specified ARN.
.
-
untagResource(params = {}, callback) ⇒ AWS.Request
Removes tags from the resource with the specified ARN.
.
-
updateStage(params = {}, callback) ⇒ AWS.Request
Updates a stage’s configuration.
.
-
waitFor(state, params = {}, callback) ⇒ AWS.Request
Waits for a given IVSRealTime resource.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, setupRequestListeners, defineService
Constructor Details
new AWS.IVSRealTime(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Examples:
Constructing a IVSRealTime object
var ivsrealtime = new AWS.IVSRealTime({apiVersion: '2020-07-14'});
Options Hash (options):
-
params
(map)
—
An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.
-
endpoint
(String|AWS.Endpoint)
—
The endpoint URI to send requests to. The default endpoint is built from the configured
region
. The endpoint should be a string like'https://{service}.{region}.amazonaws.com'
or an Endpoint object. -
accessKeyId
(String)
—
your AWS access key ID.
-
secretAccessKey
(String)
—
your AWS secret access key.
-
sessionToken
(AWS.Credentials)
—
the optional AWS session token to sign requests with.
-
credentials
(AWS.Credentials)
—
the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.
-
credentialProvider
(AWS.CredentialProviderChain)
—
the provider chain used to resolve credentials if no static
credentials
property is set. -
region
(String)
—
the region to send service requests to. See AWS.IVSRealTime.region for more information.
-
maxRetries
(Integer)
—
the maximum amount of retries to attempt with a request. See AWS.IVSRealTime.maxRetries for more information.
-
maxRedirects
(Integer)
—
the maximum amount of redirects to follow with a request. See AWS.IVSRealTime.maxRedirects for more information.
-
sslEnabled
(Boolean)
—
whether to enable SSL for requests.
-
paramValidation
(Boolean|map)
—
whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:
- min [Boolean] — Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to
true
. - max [Boolean] — Validates that a value meets the max constraint.
- pattern [Boolean] — Validates that a string value matches a regular expression.
- enum [Boolean] — Validates that a string value matches one of the allowable enum values.
- min [Boolean] — Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to
-
computeChecksums
(Boolean)
—
whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)
-
convertResponseTypes
(Boolean)
—
whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to
true
. -
correctClockSkew
(Boolean)
—
whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to
false
. -
s3ForcePathStyle
(Boolean)
—
whether to force path style URLs for S3 objects.
-
s3BucketEndpoint
(Boolean)
—
whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an
endpoint
to be provided explicitly to the service constructor. -
s3DisableBodySigning
(Boolean)
—
whether S3 body signing should be disabled when using signature version
v4
. Body signing can only be disabled when using https. Defaults totrue
. -
s3UsEast1RegionalEndpoint
('legacy'|'regional')
—
when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to
legacy
-
s3UseArnRegion
(Boolean)
—
whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to
true
-
retryDelayOptions
(map)
—
A set of options to configure the retry delay on retryable errors. Currently supported options are:
- base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
- customBackoff [function] — A custom function that accepts a
retry count and error and returns the amount of time to delay in
milliseconds. If the result is a non-zero negative value, no further
retry attempts will be made. The
base
option will be ignored if this option is supplied. The function is only called for retryable errors.
-
httpOptions
(map)
—
A set of options to pass to the low-level HTTP request. Currently supported options are:
- proxy [String] — the URL to proxy requests through
- agent [http.Agent, https.Agent] — the Agent object to perform
HTTP requests with. Used for connection pooling. Defaults to the global
agent (
http.globalAgent
) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment. - connectTimeout [Integer] — Sets the socket to timeout after
failing to establish a connection with the server after
connectTimeout
milliseconds. This timeout has no effect once a socket connection has been established. - timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
- xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
- xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
-
apiVersion
(String, Date)
—
a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by
apiVersions
). Specify 'latest' to use the latest possible version. -
apiVersions
(map<String, String|Date>)
—
a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.
-
logger
(#write, #log)
—
an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests
-
systemClockOffset
(Number)
—
an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global
AWS.config
object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds. -
signatureVersion
(String)
—
the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.
-
signatureCache
(Boolean)
—
whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to
true
. -
dynamoDbCrc32
(Boolean)
—
whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default:
true
. -
useAccelerateEndpoint
(Boolean)
—
Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default:
false
. -
clientSideMonitoring
(Boolean)
—
whether to collect and publish this client's performance metrics of all its API requests.
-
endpointDiscoveryEnabled
(Boolean|undefined)
—
whether to call operations with endpoints given by service dynamically. Setting this
-
endpointCacheSize
(Number)
—
the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000
-
hostPrefixEnabled
(Boolean)
—
whether to marshal request parameters to the prefix of hostname. Defaults to
true
. -
stsRegionalEndpoints
('legacy'|'regional')
—
whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.
-
useFipsEndpoint
(Boolean)
—
Enables FIPS compatible endpoints. Defaults to
false
. -
useDualstackEndpoint
(Boolean)
—
Enables IPv6 dualstack endpoint. Defaults to
false
.
Property Details
Method Details
createEncoderConfiguration(params = {}, callback) ⇒ AWS.Request
Creates an EncoderConfiguration object.
Service Reference:
Examples:
Calling the createEncoderConfiguration operation
var params = {
name: 'STRING_VALUE',
tags: {
'<TagKey>': 'STRING_VALUE',
/* '<TagKey>': ... */
},
video: {
bitrate: 'NUMBER_VALUE',
framerate: 'NUMBER_VALUE',
height: 'NUMBER_VALUE',
width: 'NUMBER_VALUE'
}
};
ivsrealtime.createEncoderConfiguration(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
name
— (String
)Optional name to identify the resource.
video
— (map
)Video configuration. Default: video resolution 1280x720, bitrate 2500 kbps, 30 fps.
width
— (Integer
)Video-resolution width. Note that the maximum value is determined by
width
timesheight
, such that the maximum total pixels is 2073600 (1920x1080 or 1080x1920). Default: 1280.height
— (Integer
)Video-resolution height. Note that the maximum value is determined by
width
timesheight
, such that the maximum total pixels is 2073600 (1920x1080 or 1080x1920). Default: 720.framerate
— (Float
)Video frame rate, in fps. Default: 30.
bitrate
— (Integer
)Bitrate for generated output, in bps. Default: 2500000.
tags
— (map<String>
)Tags attached to the resource. Array of maps, each of the form
string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:encoderConfiguration
— (map
)The EncoderConfiguration that was created.
arn
— required — (String
)ARN of the EncoderConfiguration resource.
name
— (String
)Optional name to identify the resource.
video
— (map
)Video configuration. Default: video resolution 1280x720, bitrate 2500 kbps, 30 fps
width
— (Integer
)Video-resolution width. Note that the maximum value is determined by
width
timesheight
, such that the maximum total pixels is 2073600 (1920x1080 or 1080x1920). Default: 1280.height
— (Integer
)Video-resolution height. Note that the maximum value is determined by
width
timesheight
, such that the maximum total pixels is 2073600 (1920x1080 or 1080x1920). Default: 720.framerate
— (Float
)Video frame rate, in fps. Default: 30.
bitrate
— (Integer
)Bitrate for generated output, in bps. Default: 2500000.
tags
— (map<String>
)Tags attached to the resource. Array of maps, each of the form
string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
-
(AWS.Response)
—
Returns:
createParticipantToken(params = {}, callback) ⇒ AWS.Request
Creates an additional token for a specified stage. This can be done after stage creation or when tokens expire. Tokens always are scoped to the stage for which they are created.
Encryption keys are owned by Amazon IVS and never used directly by your application.
Service Reference:
Examples:
Calling the createParticipantToken operation
var params = {
stageArn: 'STRING_VALUE', /* required */
attributes: {
'<String>': 'STRING_VALUE',
/* '<String>': ... */
},
capabilities: [
PUBLISH | SUBSCRIBE,
/* more items */
],
duration: 'NUMBER_VALUE',
userId: 'STRING_VALUE'
};
ivsrealtime.createParticipantToken(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
stageArn
— (String
)ARN of the stage to which this token is scoped.
duration
— (Integer
)Duration (in minutes), after which the token expires. Default: 720 (12 hours).
userId
— (String
)Name that can be specified to help identify the token. This can be any UTF-8 encoded text. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.
attributes
— (map<String>
)Application-provided attributes to encode into the token and attach to a stage. Map keys and values can contain UTF-8 encoded text. The maximum length of this field is 1 KB total. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.
capabilities
— (Array<String>
)Set of capabilities that the user is allowed to perform in the stage. Default:
PUBLISH, SUBSCRIBE
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:participantToken
— (map
)The participant token that was created.
participantId
— (String
)Unique identifier for this participant token, assigned by IVS.
token
— (String
)The issued client token, encrypted.
userId
— (String
)Customer-assigned name to help identify the token; this can be used to link a participant to a user in the customer’s own systems. This can be any UTF-8 encoded text. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.
attributes
— (map<String>
)Application-provided attributes to encode into the token and attach to a stage. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.
duration
— (Integer
)Duration (in minutes), after which the participant token expires. Default: 720 (12 hours).
capabilities
— (Array<String>
)Set of capabilities that the user is allowed to perform in the stage.
expirationTime
— (Date
)ISO 8601 timestamp (returned as a string) for when this token expires.
-
(AWS.Response)
—
Returns:
createStage(params = {}, callback) ⇒ AWS.Request
Creates a new stage (and optionally participant tokens).
Service Reference:
Examples:
Calling the createStage operation
var params = {
autoParticipantRecordingConfiguration: {
storageConfigurationArn: 'STRING_VALUE', /* required */
mediaTypes: [
AUDIO_VIDEO | AUDIO_ONLY,
/* more items */
]
},
name: 'STRING_VALUE',
participantTokenConfigurations: [
{
attributes: {
'<String>': 'STRING_VALUE',
/* '<String>': ... */
},
capabilities: [
PUBLISH | SUBSCRIBE,
/* more items */
],
duration: 'NUMBER_VALUE',
userId: 'STRING_VALUE'
},
/* more items */
],
tags: {
'<TagKey>': 'STRING_VALUE',
/* '<TagKey>': ... */
}
};
ivsrealtime.createStage(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
name
— (String
)Optional name that can be specified for the stage being created.
participantTokenConfigurations
— (Array<map>
)Array of participant token configuration objects to attach to the new stage.
duration
— (Integer
)Duration (in minutes), after which the corresponding participant token expires. Default: 720 (12 hours).
userId
— (String
)Customer-assigned name to help identify the token; this can be used to link a participant to a user in the customer’s own systems. This can be any UTF-8 encoded text. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.
attributes
— (map<String>
)Application-provided attributes to encode into the corresponding participant token and attach to a stage. Map keys and values can contain UTF-8 encoded text. The maximum length of this field is 1 KB total. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.
capabilities
— (Array<String>
)Set of capabilities that the user is allowed to perform in the stage.
tags
— (map<String>
)Tags attached to the resource. Array of maps, each of the form
string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.autoParticipantRecordingConfiguration
— (map
)Configuration object for individual participant recording, to attach to the new stage.
storageConfigurationArn
— required — (String
)ARN of the StorageConfiguration resource to use for individual participant recording. Default:
""
(empty string, no storage configuration is specified). Individual participant recording cannot be started unless a storage configuration is specified, when a Stage is created or updated.mediaTypes
— (Array<String>
)Types of media to be recorded. Default:
AUDIO_VIDEO
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:stage
— (map
)The stage that was created.
arn
— required — (String
)Stage ARN.
name
— (String
)Stage name.
activeSessionId
— (String
)ID of the active session within the stage.
tags
— (map<String>
)Tags attached to the resource. Array of maps, each of the form
string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.autoParticipantRecordingConfiguration
— (map
)Configuration object for individual participant recording, attached to the stage.
storageConfigurationArn
— required — (String
)ARN of the StorageConfiguration resource to use for individual participant recording. Default:
""
(empty string, no storage configuration is specified). Individual participant recording cannot be started unless a storage configuration is specified, when a Stage is created or updated.mediaTypes
— (Array<String>
)Types of media to be recorded. Default:
AUDIO_VIDEO
.
endpoints
— (map
)Summary information about various endpoints for a stage.
events
— (String
)Events endpoint.
whip
— (String
)WHIP endpoint.
participantTokens
— (Array<map>
)Participant tokens attached to the stage. These correspond to the
participants
in the request.participantId
— (String
)Unique identifier for this participant token, assigned by IVS.
token
— (String
)The issued client token, encrypted.
userId
— (String
)Customer-assigned name to help identify the token; this can be used to link a participant to a user in the customer’s own systems. This can be any UTF-8 encoded text. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.
attributes
— (map<String>
)Application-provided attributes to encode into the token and attach to a stage. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.
duration
— (Integer
)Duration (in minutes), after which the participant token expires. Default: 720 (12 hours).
capabilities
— (Array<String>
)Set of capabilities that the user is allowed to perform in the stage.
expirationTime
— (Date
)ISO 8601 timestamp (returned as a string) for when this token expires.
-
(AWS.Response)
—
Returns:
createStorageConfiguration(params = {}, callback) ⇒ AWS.Request
Creates a new storage configuration, used to enable recording to Amazon S3. When a StorageConfiguration is created, IVS will modify the S3 bucketPolicy of the provided bucket. This will ensure that IVS has sufficient permissions to write content to the provided bucket.
Service Reference:
Examples:
Calling the createStorageConfiguration operation
var params = {
s3: { /* required */
bucketName: 'STRING_VALUE' /* required */
},
name: 'STRING_VALUE',
tags: {
'<TagKey>': 'STRING_VALUE',
/* '<TagKey>': ... */
}
};
ivsrealtime.createStorageConfiguration(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
name
— (String
)Storage configuration name. The value does not need to be unique.
s3
— (map
)A complex type that contains a storage configuration for where recorded video will be stored.
bucketName
— required — (String
)Location (S3 bucket name) where recorded videos will be stored. Note that the StorageConfiguration and S3 bucket must be in the same region as the Composition.
tags
— (map<String>
)Tags attached to the resource. Array of maps, each of the form
string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:storageConfiguration
— (map
)The StorageConfiguration that was created.
arn
— required — (String
)ARN of the storage configuration.
name
— (String
)Name of the storage configuration.
s3
— (map
)An S3 destination configuration where recorded videos will be stored.
bucketName
— required — (String
)Location (S3 bucket name) where recorded videos will be stored. Note that the StorageConfiguration and S3 bucket must be in the same region as the Composition.
tags
— (map<String>
)Tags attached to the resource. Array of maps, each of the form
string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
-
(AWS.Response)
—
Returns:
deleteEncoderConfiguration(params = {}, callback) ⇒ AWS.Request
Deletes an EncoderConfiguration resource. Ensures that no Compositions are using this template; otherwise, returns an error.
Service Reference:
Examples:
Calling the deleteEncoderConfiguration operation
var params = {
arn: 'STRING_VALUE' /* required */
};
ivsrealtime.deleteEncoderConfiguration(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
arn
— (String
)ARN of the EncoderConfiguration.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deletePublicKey(params = {}, callback) ⇒ AWS.Request
Deletes the specified public key used to sign stage participant tokens. This invalidates future participant tokens generated using the key pair’s private key.
Service Reference:
Examples:
Calling the deletePublicKey operation
var params = {
arn: 'STRING_VALUE' /* required */
};
ivsrealtime.deletePublicKey(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
arn
— (String
)ARN of the public key to be deleted.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteStage(params = {}, callback) ⇒ AWS.Request
Shuts down and deletes the specified stage (disconnecting all participants).
Service Reference:
Examples:
Calling the deleteStage operation
var params = {
arn: 'STRING_VALUE' /* required */
};
ivsrealtime.deleteStage(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
arn
— (String
)ARN of the stage to be deleted.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteStorageConfiguration(params = {}, callback) ⇒ AWS.Request
Deletes the storage configuration for the specified ARN.
If you try to delete a storage configuration that is used by a Composition, you will get an error (409 ConflictException). To avoid this, for all Compositions that reference the storage configuration, first use StopComposition and wait for it to complete, then use DeleteStorageConfiguration.
Service Reference:
Examples:
Calling the deleteStorageConfiguration operation
var params = {
arn: 'STRING_VALUE' /* required */
};
ivsrealtime.deleteStorageConfiguration(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
arn
— (String
)ARN of the storage configuration to be deleted.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
disconnectParticipant(params = {}, callback) ⇒ AWS.Request
Disconnects a specified participant and revokes the participant permanently from a specified stage.
Service Reference:
Examples:
Calling the disconnectParticipant operation
var params = {
participantId: 'STRING_VALUE', /* required */
stageArn: 'STRING_VALUE', /* required */
reason: 'STRING_VALUE'
};
ivsrealtime.disconnectParticipant(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
stageArn
— (String
)ARN of the stage to which the participant is attached.
participantId
— (String
)Identifier of the participant to be disconnected. This is assigned by IVS and returned by CreateParticipantToken.
reason
— (String
)Description of why this participant is being disconnected.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
getComposition(params = {}, callback) ⇒ AWS.Request
Get information about the specified Composition resource.
Service Reference:
Examples:
Calling the getComposition operation
var params = {
arn: 'STRING_VALUE' /* required */
};
ivsrealtime.getComposition(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
arn
— (String
)ARN of the Composition resource.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:composition
— (map
)The Composition that was returned.
arn
— required — (String
)ARN of the Composition resource.
stageArn
— required — (String
)ARN of the stage used as input
state
— required — (String
)State of the Composition.
Possible values include:"STARTING"
"ACTIVE"
"STOPPING"
"FAILED"
"STOPPED"
layout
— required — (map
)Layout object to configure composition parameters.
grid
— (map
)Configuration related to grid layout. Default: Grid layout.
featuredParticipantAttribute
— (String
)This attribute name identifies the featured slot. A participant with this attribute set to
"true"
(as a string value) in ParticipantTokenConfiguration is placed in the featured slot. Default:""
(no featured participant).omitStoppedVideo
— (Boolean
)Determines whether to omit participants with stopped video in the composition. Default:
false
.videoAspectRatio
— (String
)Sets the non-featured participant display mode, to control the aspect ratio of video tiles.
Possible values include:VIDEO
is 16:9,SQUARE
is 1:1, andPORTRAIT
is 3:4. Default:VIDEO
."AUTO"
"VIDEO"
"SQUARE"
"PORTRAIT"
videoFillMode
— (String
)Defines how video content fits within the participant tile:
Possible values include:FILL
(stretched),COVER
(cropped), orCONTAIN
(letterboxed). When not set,videoFillMode
defaults toCOVER
fill mode for participants in the grid and toCONTAIN
fill mode for featured participants."FILL"
"COVER"
"CONTAIN"
gridGap
— (Integer
)Specifies the spacing between participant tiles in pixels. Default:
2
.
pip
— (map
)Configuration related to PiP layout.
featuredParticipantAttribute
— (String
)This attribute name identifies the featured slot. A participant with this attribute set to
"true"
(as a string value) in ParticipantTokenConfiguration is placed in the featured slot. Default:""
(no featured participant).omitStoppedVideo
— (Boolean
)Determines whether to omit participants with stopped video in the composition. Default:
false
.videoFillMode
— (String
)Defines how video content fits within the participant tile:
Possible values include:FILL
(stretched),COVER
(cropped), orCONTAIN
(letterboxed). Default:COVER
."FILL"
"COVER"
"CONTAIN"
gridGap
— (Integer
)Specifies the spacing between participant tiles in pixels. Default:
0
.pipParticipantAttribute
— (String
)Specifies the participant for the PiP window. A participant with this attribute set to
"true"
(as a string value) in ParticipantTokenConfiguration is placed in the PiP slot. Default:""
(no PiP participant).pipBehavior
— (String
)Defines PiP behavior when all participants have left:
Possible values include:STATIC
(maintains original position/size) orDYNAMIC
(expands to full composition). Default:STATIC
."STATIC"
"DYNAMIC"
pipOffset
— (Integer
)Sets the PiP window’s offset position in pixels from the closest edges determined by
PipPosition
. Default:0
.pipPosition
— (String
)Determines the corner position of the PiP window. Default:
Possible values include:BOTTOM_RIGHT
."TOP_LEFT"
"TOP_RIGHT"
"BOTTOM_LEFT"
"BOTTOM_RIGHT"
pipWidth
— (Integer
)Specifies the width of the PiP window in pixels. When this is not set explicitly,
pipWidth
’s value will be based on the size of the composition and the aspect ratio of the participant’s video.pipHeight
— (Integer
)Specifies the height of the PiP window in pixels. When this is not set explicitly,
pipHeight
’s value will be based on the size of the composition and the aspect ratio of the participant’s video.
destinations
— required — (Array<map>
)Array of Destination objects. A Composition can contain either one destination (
channel
ors3
) or two (onechannel
and ones3
).id
— required — (String
)Unique identifier for this destination, assigned by IVS.
state
— required — (String
)State of the Composition Destination.
Possible values include:"STARTING"
"ACTIVE"
"STOPPING"
"RECONNECTING"
"FAILED"
"STOPPED"
startTime
— (Date
)UTC time of the destination start. This is an ISO 8601 timestamp; note that this is returned as a string.
endTime
— (Date
)UTC time of the destination end. This is an ISO 8601 timestamp; note that this is returned as a string.
configuration
— required — (map
)Configuration used to create this destination.
name
— (String
)Name that can be specified to help identify the destination.
channel
— (map
)An IVS channel to be used for broadcasting, for server-side composition. Either a
channel
or ans3
must be specified.channelArn
— required — (String
)ARN of the channel to use for broadcasting. The channel and stage resources must be in the same AWS account and region. The channel must be offline (not broadcasting).
encoderConfigurationArn
— (String
)ARN of the EncoderConfiguration resource. The encoder configuration and stage resources must be in the same AWS account and region.
s3
— (map
)An S3 storage configuration to be used for recording video data. Either a
channel
or ans3
must be specified.storageConfigurationArn
— required — (String
)ARN of the StorageConfiguration where recorded videos will be stored.
encoderConfigurationArns
— required — (Array<String>
)ARNs of the EncoderConfiguration resource. The encoder configuration and stage resources must be in the same AWS account and region.
recordingConfiguration
— (map
)Array of maps, each of the form
string:string (key:value)
. This is an optional customer specification, currently used only to specify the recording format for storing a recording in Amazon S3.format
— (String
)The recording format for storing a recording in Amazon S3.
Possible values include:"HLS"
detail
— (map
)Optional details regarding the status of the destination.
s3
— (map
)An S3 detail object to return information about the S3 destination.
recordingPrefix
— required — (String
)The S3 bucket prefix under which the recording is stored.
tags
— (map<String>
)Tags attached to the resource. Array of maps, each of the form
string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.startTime
— (Date
)UTC time of the Composition start. This is an ISO 8601 timestamp; note that this is returned as a string.
endTime
— (Date
)UTC time of the Composition end. This is an ISO 8601 timestamp; note that this is returned as a string.
-
(AWS.Response)
—
Returns:
getEncoderConfiguration(params = {}, callback) ⇒ AWS.Request
Gets information about the specified EncoderConfiguration resource.
Service Reference:
Examples:
Calling the getEncoderConfiguration operation
var params = {
arn: 'STRING_VALUE' /* required */
};
ivsrealtime.getEncoderConfiguration(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
arn
— (String
)ARN of the EncoderConfiguration resource.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:encoderConfiguration
— (map
)The EncoderConfiguration that was returned.
arn
— required — (String
)ARN of the EncoderConfiguration resource.
name
— (String
)Optional name to identify the resource.
video
— (map
)Video configuration. Default: video resolution 1280x720, bitrate 2500 kbps, 30 fps
width
— (Integer
)Video-resolution width. Note that the maximum value is determined by
width
timesheight
, such that the maximum total pixels is 2073600 (1920x1080 or 1080x1920). Default: 1280.height
— (Integer
)Video-resolution height. Note that the maximum value is determined by
width
timesheight
, such that the maximum total pixels is 2073600 (1920x1080 or 1080x1920). Default: 720.framerate
— (Float
)Video frame rate, in fps. Default: 30.
bitrate
— (Integer
)Bitrate for generated output, in bps. Default: 2500000.
tags
— (map<String>
)Tags attached to the resource. Array of maps, each of the form
string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
-
(AWS.Response)
—
Returns:
getParticipant(params = {}, callback) ⇒ AWS.Request
Gets information about the specified participant token.
Service Reference:
Examples:
Calling the getParticipant operation
var params = {
participantId: 'STRING_VALUE', /* required */
sessionId: 'STRING_VALUE', /* required */
stageArn: 'STRING_VALUE' /* required */
};
ivsrealtime.getParticipant(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
stageArn
— (String
)Stage ARN.
sessionId
— (String
)ID of a session within the stage.
participantId
— (String
)Unique identifier for the participant. This is assigned by IVS and returned by CreateParticipantToken.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:participant
— (map
)The participant that is returned.
participantId
— (String
)Unique identifier for this participant, assigned by IVS.
userId
— (String
)Customer-assigned name to help identify the token; this can be used to link a participant to a user in the customer’s own systems. This can be any UTF-8 encoded text. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.
state
— (String
)Whether the participant is connected to or disconnected from the stage.
Possible values include:"CONNECTED"
"DISCONNECTED"
firstJoinTime
— (Date
)ISO 8601 timestamp (returned as a string) when the participant first joined the stage session.
attributes
— (map<String>
)Application-provided attributes to encode into the token and attach to a stage. Map keys and values can contain UTF-8 encoded text. The maximum length of this field is 1 KB total. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.
published
— (Boolean
)Whether the participant ever published to the stage session.
ispName
— (String
)The participant’s Internet Service Provider.
osName
— (String
)The participant’s operating system.
osVersion
— (String
)The participant’s operating system version.
browserName
— (String
)The participant’s browser.
browserVersion
— (String
)The participant’s browser version.
sdkVersion
— (String
)The participant’s SDK version.
recordingS3BucketName
— (String
)Name of the S3 bucket to where the participant is being recorded, if individual participant recording is enabled, or
""
(empty string), if recording is not enabled.recordingS3Prefix
— (String
)S3 prefix of the S3 bucket where the participant is being recorded, if individual participant recording is enabled, or
""
(empty string), if recording is not enabled.recordingState
— (String
)The participant’s recording state.
Possible values include:"STARTING"
"ACTIVE"
"STOPPING"
"STOPPED"
"FAILED"
"DISABLED"
-
(AWS.Response)
—
Returns:
getPublicKey(params = {}, callback) ⇒ AWS.Request
Gets information for the specified public key.
Service Reference:
Examples:
Calling the getPublicKey operation
var params = {
arn: 'STRING_VALUE' /* required */
};
ivsrealtime.getPublicKey(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
arn
— (String
)ARN of the public key for which the information is to be retrieved.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:publicKey
— (map
)The public key that is returned.
arn
— (String
)Public key ARN.
name
— (String
)Public key name.
publicKeyMaterial
— (String
)Public key material.
fingerprint
— (String
)The public key fingerprint, a short string used to identify or verify the full public key.
tags
— (map<String>
)Tags attached to the resource. Array of maps, each of the form
string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
-
(AWS.Response)
—
Returns:
getStage(params = {}, callback) ⇒ AWS.Request
Gets information for the specified stage.
Service Reference:
Examples:
Calling the getStage operation
var params = {
arn: 'STRING_VALUE' /* required */
};
ivsrealtime.getStage(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
arn
— (String
)ARN of the stage for which the information is to be retrieved.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:stage
— (map
)The stage that is returned.
arn
— required — (String
)Stage ARN.
name
— (String
)Stage name.
activeSessionId
— (String
)ID of the active session within the stage.
tags
— (map<String>
)Tags attached to the resource. Array of maps, each of the form
string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.autoParticipantRecordingConfiguration
— (map
)Configuration object for individual participant recording, attached to the stage.
storageConfigurationArn
— required — (String
)ARN of the StorageConfiguration resource to use for individual participant recording. Default:
""
(empty string, no storage configuration is specified). Individual participant recording cannot be started unless a storage configuration is specified, when a Stage is created or updated.mediaTypes
— (Array<String>
)Types of media to be recorded. Default:
AUDIO_VIDEO
.
endpoints
— (map
)Summary information about various endpoints for a stage.
events
— (String
)Events endpoint.
whip
— (String
)WHIP endpoint.
-
(AWS.Response)
—
Returns:
getStageSession(params = {}, callback) ⇒ AWS.Request
Gets information for the specified stage session.
Service Reference:
Examples:
Calling the getStageSession operation
var params = {
sessionId: 'STRING_VALUE', /* required */
stageArn: 'STRING_VALUE' /* required */
};
ivsrealtime.getStageSession(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
stageArn
— (String
)ARN of the stage for which the information is to be retrieved.
sessionId
— (String
)ID of a session within the stage.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:stageSession
— (map
)The stage session that is returned.
sessionId
— (String
)ID of the session within the stage.
startTime
— (Date
)ISO 8601 timestamp (returned as a string) when this stage session began.
endTime
— (Date
)ISO 8601 timestamp (returned as a string) when the stage session ended. This is null if the stage is active.
-
(AWS.Response)
—
Returns:
getStorageConfiguration(params = {}, callback) ⇒ AWS.Request
Gets the storage configuration for the specified ARN.
Service Reference:
Examples:
Calling the getStorageConfiguration operation
var params = {
arn: 'STRING_VALUE' /* required */
};
ivsrealtime.getStorageConfiguration(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
arn
— (String
)ARN of the storage configuration to be retrieved.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:storageConfiguration
— (map
)The StorageConfiguration that was returned.
arn
— required — (String
)ARN of the storage configuration.
name
— (String
)Name of the storage configuration.
s3
— (map
)An S3 destination configuration where recorded videos will be stored.
bucketName
— required — (String
)Location (S3 bucket name) where recorded videos will be stored. Note that the StorageConfiguration and S3 bucket must be in the same region as the Composition.
tags
— (map<String>
)Tags attached to the resource. Array of maps, each of the form
string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
-
(AWS.Response)
—
Returns:
importPublicKey(params = {}, callback) ⇒ AWS.Request
Import a public key to be used for signing stage participant tokens.
Service Reference:
Examples:
Calling the importPublicKey operation
var params = {
publicKeyMaterial: 'STRING_VALUE', /* required */
name: 'STRING_VALUE',
tags: {
'<TagKey>': 'STRING_VALUE',
/* '<TagKey>': ... */
}
};
ivsrealtime.importPublicKey(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
publicKeyMaterial
— (String
)The content of the public key to be imported.
name
— (String
)Name of the public key to be imported.
tags
— (map<String>
)Tags attached to the resource. Array of maps, each of the form
string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:publicKey
— (map
)The public key that was imported.
arn
— (String
)Public key ARN.
name
— (String
)Public key name.
publicKeyMaterial
— (String
)Public key material.
fingerprint
— (String
)The public key fingerprint, a short string used to identify or verify the full public key.
tags
— (map<String>
)Tags attached to the resource. Array of maps, each of the form
string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
-
(AWS.Response)
—
Returns:
listCompositions(params = {}, callback) ⇒ AWS.Request
Gets summary information about all Compositions in your account, in the AWS region where the API request is processed.
Service Reference:
Examples:
Calling the listCompositions operation
var params = {
filterByEncoderConfigurationArn: 'STRING_VALUE',
filterByStageArn: 'STRING_VALUE',
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
ivsrealtime.listCompositions(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
filterByStageArn
— (String
)Filters the Composition list to match the specified Stage ARN.
filterByEncoderConfigurationArn
— (String
)Filters the Composition list to match the specified EncoderConfiguration attached to at least one of its output.
nextToken
— (String
)The first Composition to retrieve. This is used for pagination; see the
nextToken
response field.maxResults
— (Integer
)Maximum number of results to return. Default: 100.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:compositions
— (Array<map>
)List of the matching Compositions (summary information only).
arn
— required — (String
)ARN of the Composition resource.
stageArn
— required — (String
)ARN of the attached stage.
destinations
— required — (Array<map>
)Array of Destination objects.
id
— required — (String
)Unique identifier for this destination, assigned by IVS.
state
— required — (String
)State of the Composition Destination.
Possible values include:"STARTING"
"ACTIVE"
"STOPPING"
"RECONNECTING"
"FAILED"
"STOPPED"
startTime
— (Date
)UTC time of the destination start. This is an ISO 8601 timestamp; note that this is returned as a string.
endTime
— (Date
)UTC time of the destination end. This is an ISO 8601 timestamp; note that this is returned as a string.
state
— required — (String
)State of the Composition resource.
Possible values include:"STARTING"
"ACTIVE"
"STOPPING"
"FAILED"
"STOPPED"
tags
— (map<String>
)Tags attached to the resource. Array of maps, each of the form
string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.startTime
— (Date
)UTC time of the Composition start. This is an ISO 8601 timestamp; note that this is returned as a string.
endTime
— (Date
)UTC time of the Composition end. This is an ISO 8601 timestamp; note that this is returned as a string.
nextToken
— (String
)If there are more compositions than
maxResults
, usenextToken
in the request to get the next set.
-
(AWS.Response)
—
Returns:
listEncoderConfigurations(params = {}, callback) ⇒ AWS.Request
Gets summary information about all EncoderConfigurations in your account, in the AWS region where the API request is processed.
Service Reference:
Examples:
Calling the listEncoderConfigurations operation
var params = {
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
ivsrealtime.listEncoderConfigurations(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
nextToken
— (String
)The first encoder configuration to retrieve. This is used for pagination; see the
nextToken
response field.maxResults
— (Integer
)Maximum number of results to return. Default: 100.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:encoderConfigurations
— (Array<map>
)List of the matching EncoderConfigurations (summary information only).
arn
— required — (String
)ARN of the EncoderConfiguration resource.
name
— (String
)Optional name to identify the resource.
tags
— (map<String>
)Tags attached to the resource. Array of maps, each of the form
string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
nextToken
— (String
)If there are more encoder configurations than
maxResults
, usenextToken
in the request to get the next set.
-
(AWS.Response)
—
Returns:
listParticipantEvents(params = {}, callback) ⇒ AWS.Request
Lists events for a specified participant that occurred during a specified stage session.
Service Reference:
Examples:
Calling the listParticipantEvents operation
var params = {
participantId: 'STRING_VALUE', /* required */
sessionId: 'STRING_VALUE', /* required */
stageArn: 'STRING_VALUE', /* required */
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
ivsrealtime.listParticipantEvents(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
stageArn
— (String
)Stage ARN.
sessionId
— (String
)ID of a session within the stage.
participantId
— (String
)Unique identifier for this participant. This is assigned by IVS and returned by CreateParticipantToken.
nextToken
— (String
)The first participant event to retrieve. This is used for pagination; see the
nextToken
response field.maxResults
— (Integer
)Maximum number of results to return. Default: 50.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:events
— (Array<map>
)List of the matching events.
name
— (String
)The name of the event.
Possible values include:"JOINED"
"LEFT"
"PUBLISH_STARTED"
"PUBLISH_STOPPED"
"SUBSCRIBE_STARTED"
"SUBSCRIBE_STOPPED"
"PUBLISH_ERROR"
"SUBSCRIBE_ERROR"
"JOIN_ERROR"
participantId
— (String
)Unique identifier for the participant who triggered the event. This is assigned by IVS.
eventTime
— (Date
)ISO 8601 timestamp (returned as a string) for when the event occurred.
remoteParticipantId
— (String
)Unique identifier for the remote participant. For a subscribe event, this is the publisher. For a publish or join event, this is null. This is assigned by IVS.
errorCode
— (String
)If the event is an error event, the error code is provided to give insight into the specific error that occurred. If the event is not an error event, this field is null.
Possible values include:INSUFFICIENT_CAPABILITIES
indicates that the participant tried to take an action that the participant’s token is not allowed to do. For more information about participant capabilities, see thecapabilities
field in CreateParticipantToken.QUOTA_EXCEEDED
indicates that the number of participants who want to publish/subscribe to a stage exceeds the quota; for more information, see Service Quotas.PUBLISHER_NOT_FOUND
indicates that the participant tried to subscribe to a publisher that doesn’t exist."INSUFFICIENT_CAPABILITIES"
"QUOTA_EXCEEDED"
"PUBLISHER_NOT_FOUND"
nextToken
— (String
)If there are more events than
maxResults
, usenextToken
in the request to get the next set.
-
(AWS.Response)
—
Returns:
listParticipants(params = {}, callback) ⇒ AWS.Request
Lists all participants in a specified stage session.
Service Reference:
Examples:
Calling the listParticipants operation
var params = {
sessionId: 'STRING_VALUE', /* required */
stageArn: 'STRING_VALUE', /* required */
filterByPublished: true || false,
filterByRecordingState: STARTING | ACTIVE | STOPPING | STOPPED | FAILED,
filterByState: CONNECTED | DISCONNECTED,
filterByUserId: 'STRING_VALUE',
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
ivsrealtime.listParticipants(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
stageArn
— (String
)Stage ARN.
sessionId
— (String
)ID of the session within the stage.
filterByUserId
— (String
)Filters the response list to match the specified user ID. Only one of
filterByUserId
,filterByPublished
,filterByState
, orfilterByRecordingState
can be provided per request. AuserId
is a customer-assigned name to help identify the token; this can be used to link a participant to a user in the customer’s own systems.filterByPublished
— (Boolean
)Filters the response list to only show participants who published during the stage session. Only one of
filterByUserId
,filterByPublished
,filterByState
, orfilterByRecordingState
can be provided per request.filterByState
— (String
)Filters the response list to only show participants in the specified state. Only one of
Possible values include:filterByUserId
,filterByPublished
,filterByState
, orfilterByRecordingState
can be provided per request."CONNECTED"
"DISCONNECTED"
nextToken
— (String
)The first participant to retrieve. This is used for pagination; see the
nextToken
response field.maxResults
— (Integer
)Maximum number of results to return. Default: 50.
filterByRecordingState
— (String
)Filters the response list to only show participants with the specified recording state. Only one of
Possible values include:filterByUserId
,filterByPublished
,filterByState
, orfilterByRecordingState
can be provided per request."STARTING"
"ACTIVE"
"STOPPING"
"STOPPED"
"FAILED"
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:participants
— (Array<map>
)List of the matching participants (summary information only).
participantId
— (String
)Unique identifier for this participant, assigned by IVS.
userId
— (String
)Customer-assigned name to help identify the token; this can be used to link a participant to a user in the customer’s own systems. This can be any UTF-8 encoded text. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.
state
— (String
)Whether the participant is connected to or disconnected from the stage.
Possible values include:"CONNECTED"
"DISCONNECTED"
firstJoinTime
— (Date
)ISO 8601 timestamp (returned as a string) when the participant first joined the stage session.
published
— (Boolean
)Whether the participant ever published to the stage session.
recordingState
— (String
)The participant’s recording state.
Possible values include:"STARTING"
"ACTIVE"
"STOPPING"
"STOPPED"
"FAILED"
"DISABLED"
nextToken
— (String
)If there are more participants than
maxResults
, usenextToken
in the request to get the next set.
-
(AWS.Response)
—
Returns:
listPublicKeys(params = {}, callback) ⇒ AWS.Request
Gets summary information about all public keys in your account, in the AWS region where the API request is processed.
Service Reference:
Examples:
Calling the listPublicKeys operation
var params = {
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
ivsrealtime.listPublicKeys(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
nextToken
— (String
)The first public key to retrieve. This is used for pagination; see the
nextToken
response field.maxResults
— (Integer
)Maximum number of results to return. Default: 50.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:publicKeys
— (Array<map>
)List of the matching public keys (summary information only).
arn
— (String
)Public key ARN.
name
— (String
)Public key name.
tags
— (map<String>
)Tags attached to the resource. Array of maps, each of the form
string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
nextToken
— (String
)If there are more public keys than
maxResults
, usenextToken
in the request to get the next set.
-
(AWS.Response)
—
Returns:
listStages(params = {}, callback) ⇒ AWS.Request
Gets summary information about all stages in your account, in the AWS region where the API request is processed.
Service Reference:
Examples:
Calling the listStages operation
var params = {
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
ivsrealtime.listStages(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
nextToken
— (String
)The first stage to retrieve. This is used for pagination; see the
nextToken
response field.maxResults
— (Integer
)Maximum number of results to return. Default: 50.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:stages
— (Array<map>
)List of the matching stages (summary information only).
arn
— required — (String
)Stage ARN.
name
— (String
)Stage name.
activeSessionId
— (String
)ID of the active session within the stage.
tags
— (map<String>
)Tags attached to the resource. Array of maps, each of the form
string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
nextToken
— (String
)If there are more stages than
maxResults
, usenextToken
in the request to get the next set.
-
(AWS.Response)
—
Returns:
listStageSessions(params = {}, callback) ⇒ AWS.Request
Gets all sessions for a specified stage.
Service Reference:
Examples:
Calling the listStageSessions operation
var params = {
stageArn: 'STRING_VALUE', /* required */
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
ivsrealtime.listStageSessions(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
stageArn
— (String
)Stage ARN.
nextToken
— (String
)The first stage session to retrieve. This is used for pagination; see the
nextToken
response field.maxResults
— (Integer
)Maximum number of results to return. Default: 50.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:stageSessions
— (Array<map>
)List of matching stage sessions.
sessionId
— (String
)ID of the session within the stage.
startTime
— (Date
)ISO 8601 timestamp (returned as a string) when this stage session began.
endTime
— (Date
)ISO 8601 timestamp (returned as a string) when the stage session ended. This is null if the stage is active.
nextToken
— (String
)If there are more stage sessions than
maxResults
, usenextToken
in the request to get the next set.
-
(AWS.Response)
—
Returns:
listStorageConfigurations(params = {}, callback) ⇒ AWS.Request
Gets summary information about all storage configurations in your account, in the AWS region where the API request is processed.
Service Reference:
Examples:
Calling the listStorageConfigurations operation
var params = {
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
ivsrealtime.listStorageConfigurations(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
nextToken
— (String
)The first storage configuration to retrieve. This is used for pagination; see the
nextToken
response field.maxResults
— (Integer
)Maximum number of storage configurations to return. Default: your service quota or 100, whichever is smaller.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:storageConfigurations
— (Array<map>
)List of the matching storage configurations.
arn
— required — (String
)ARN of the storage configuration.
name
— (String
)Name of the storage configuration.
s3
— (map
)An S3 destination configuration where recorded videos will be stored.
bucketName
— required — (String
)Location (S3 bucket name) where recorded videos will be stored. Note that the StorageConfiguration and S3 bucket must be in the same region as the Composition.
tags
— (map<String>
)Tags attached to the resource. Array of maps, each of the form
string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
nextToken
— (String
)If there are more storage configurations than
maxResults
, usenextToken
in the request to get the next set.
-
(AWS.Response)
—
Returns:
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Gets information about AWS tags for the specified ARN.
Service Reference:
Examples:
Calling the listTagsForResource operation
var params = {
resourceArn: 'STRING_VALUE' /* required */
};
ivsrealtime.listTagsForResource(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
resourceArn
— (String
)The ARN of the resource to be retrieved. The ARN must be URL-encoded.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:tags
— (map<String>
)Tags attached to the resource. Array of maps, each of the form
string:string (key:value)
.
-
(AWS.Response)
—
Returns:
startComposition(params = {}, callback) ⇒ AWS.Request
Starts a Composition from a stage based on the configuration provided in the request.
A Composition is an ephemeral resource that exists after this endpoint returns successfully. Composition stops and the resource is deleted:
-
When StopComposition is called.
-
After a 1-minute timeout, when all participants are disconnected from the stage.
-
After a 1-minute timeout, if there are no participants in the stage when StartComposition is called.
-
When broadcasting to the IVS channel fails and all retries are exhausted.
-
When broadcasting is disconnected and all attempts to reconnect are exhausted.
Service Reference:
Examples:
Calling the startComposition operation
var params = {
destinations: [ /* required */
{
channel: {
channelArn: 'STRING_VALUE', /* required */
encoderConfigurationArn: 'STRING_VALUE'
},
name: 'STRING_VALUE',
s3: {
encoderConfigurationArns: [ /* required */
'STRING_VALUE',
/* more items */
],
storageConfigurationArn: 'STRING_VALUE', /* required */
recordingConfiguration: {
format: HLS
}
}
},
/* more items */
],
stageArn: 'STRING_VALUE', /* required */
idempotencyToken: 'STRING_VALUE',
layout: {
grid: {
featuredParticipantAttribute: 'STRING_VALUE',
gridGap: 'NUMBER_VALUE',
omitStoppedVideo: true || false,
videoAspectRatio: AUTO | VIDEO | SQUARE | PORTRAIT,
videoFillMode: FILL | COVER | CONTAIN
},
pip: {
featuredParticipantAttribute: 'STRING_VALUE',
gridGap: 'NUMBER_VALUE',
omitStoppedVideo: true || false,
pipBehavior: STATIC | DYNAMIC,
pipHeight: 'NUMBER_VALUE',
pipOffset: 'NUMBER_VALUE',
pipParticipantAttribute: 'STRING_VALUE',
pipPosition: TOP_LEFT | TOP_RIGHT | BOTTOM_LEFT | BOTTOM_RIGHT,
pipWidth: 'NUMBER_VALUE',
videoFillMode: FILL | COVER | CONTAIN
}
},
tags: {
'<TagKey>': 'STRING_VALUE',
/* '<TagKey>': ... */
}
};
ivsrealtime.startComposition(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
stageArn
— (String
)ARN of the stage to be used for compositing.
idempotencyToken
— (String
)Idempotency token.
If a token is not provided, the SDK will use a version 4 UUID.layout
— (map
)Layout object to configure composition parameters.
grid
— (map
)Configuration related to grid layout. Default: Grid layout.
featuredParticipantAttribute
— (String
)This attribute name identifies the featured slot. A participant with this attribute set to
"true"
(as a string value) in ParticipantTokenConfiguration is placed in the featured slot. Default:""
(no featured participant).omitStoppedVideo
— (Boolean
)Determines whether to omit participants with stopped video in the composition. Default:
false
.videoAspectRatio
— (String
)Sets the non-featured participant display mode, to control the aspect ratio of video tiles.
Possible values include:VIDEO
is 16:9,SQUARE
is 1:1, andPORTRAIT
is 3:4. Default:VIDEO
."AUTO"
"VIDEO"
"SQUARE"
"PORTRAIT"
videoFillMode
— (String
)Defines how video content fits within the participant tile:
Possible values include:FILL
(stretched),COVER
(cropped), orCONTAIN
(letterboxed). When not set,videoFillMode
defaults toCOVER
fill mode for participants in the grid and toCONTAIN
fill mode for featured participants."FILL"
"COVER"
"CONTAIN"
gridGap
— (Integer
)Specifies the spacing between participant tiles in pixels. Default:
2
.
pip
— (map
)Configuration related to PiP layout.
featuredParticipantAttribute
— (String
)This attribute name identifies the featured slot. A participant with this attribute set to
"true"
(as a string value) in ParticipantTokenConfiguration is placed in the featured slot. Default:""
(no featured participant).omitStoppedVideo
— (Boolean
)Determines whether to omit participants with stopped video in the composition. Default:
false
.videoFillMode
— (String
)Defines how video content fits within the participant tile:
Possible values include:FILL
(stretched),COVER
(cropped), orCONTAIN
(letterboxed). Default:COVER
."FILL"
"COVER"
"CONTAIN"
gridGap
— (Integer
)Specifies the spacing between participant tiles in pixels. Default:
0
.pipParticipantAttribute
— (String
)Specifies the participant for the PiP window. A participant with this attribute set to
"true"
(as a string value) in ParticipantTokenConfiguration is placed in the PiP slot. Default:""
(no PiP participant).pipBehavior
— (String
)Defines PiP behavior when all participants have left:
Possible values include:STATIC
(maintains original position/size) orDYNAMIC
(expands to full composition). Default:STATIC
."STATIC"
"DYNAMIC"
pipOffset
— (Integer
)Sets the PiP window’s offset position in pixels from the closest edges determined by
PipPosition
. Default:0
.pipPosition
— (String
)Determines the corner position of the PiP window. Default:
Possible values include:BOTTOM_RIGHT
."TOP_LEFT"
"TOP_RIGHT"
"BOTTOM_LEFT"
"BOTTOM_RIGHT"
pipWidth
— (Integer
)Specifies the width of the PiP window in pixels. When this is not set explicitly,
pipWidth
’s value will be based on the size of the composition and the aspect ratio of the participant’s video.pipHeight
— (Integer
)Specifies the height of the PiP window in pixels. When this is not set explicitly,
pipHeight
’s value will be based on the size of the composition and the aspect ratio of the participant’s video.
destinations
— (Array<map>
)Array of destination configuration.
name
— (String
)Name that can be specified to help identify the destination.
channel
— (map
)An IVS channel to be used for broadcasting, for server-side composition. Either a
channel
or ans3
must be specified.channelArn
— required — (String
)ARN of the channel to use for broadcasting. The channel and stage resources must be in the same AWS account and region. The channel must be offline (not broadcasting).
encoderConfigurationArn
— (String
)ARN of the EncoderConfiguration resource. The encoder configuration and stage resources must be in the same AWS account and region.
s3
— (map
)An S3 storage configuration to be used for recording video data. Either a
channel
or ans3
must be specified.storageConfigurationArn
— required — (String
)ARN of the StorageConfiguration where recorded videos will be stored.
encoderConfigurationArns
— required — (Array<String>
)ARNs of the EncoderConfiguration resource. The encoder configuration and stage resources must be in the same AWS account and region.
recordingConfiguration
— (map
)Array of maps, each of the form
string:string (key:value)
. This is an optional customer specification, currently used only to specify the recording format for storing a recording in Amazon S3.format
— (String
)The recording format for storing a recording in Amazon S3.
Possible values include:"HLS"
tags
— (map<String>
)Tags attached to the resource. Array of maps, each of the form
string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:composition
— (map
)The Composition that was created.
arn
— required — (String
)ARN of the Composition resource.
stageArn
— required — (String
)ARN of the stage used as input
state
— required — (String
)State of the Composition.
Possible values include:"STARTING"
"ACTIVE"
"STOPPING"
"FAILED"
"STOPPED"
layout
— required — (map
)Layout object to configure composition parameters.
grid
— (map
)Configuration related to grid layout. Default: Grid layout.
featuredParticipantAttribute
— (String
)This attribute name identifies the featured slot. A participant with this attribute set to
"true"
(as a string value) in ParticipantTokenConfiguration is placed in the featured slot. Default:""
(no featured participant).omitStoppedVideo
— (Boolean
)Determines whether to omit participants with stopped video in the composition. Default:
false
.videoAspectRatio
— (String
)Sets the non-featured participant display mode, to control the aspect ratio of video tiles.
Possible values include:VIDEO
is 16:9,SQUARE
is 1:1, andPORTRAIT
is 3:4. Default:VIDEO
."AUTO"
"VIDEO"
"SQUARE"
"PORTRAIT"
videoFillMode
— (String
)Defines how video content fits within the participant tile:
Possible values include:FILL
(stretched),COVER
(cropped), orCONTAIN
(letterboxed). When not set,videoFillMode
defaults toCOVER
fill mode for participants in the grid and toCONTAIN
fill mode for featured participants."FILL"
"COVER"
"CONTAIN"
gridGap
— (Integer
)Specifies the spacing between participant tiles in pixels. Default:
2
.
pip
— (map
)Configuration related to PiP layout.
featuredParticipantAttribute
— (String
)This attribute name identifies the featured slot. A participant with this attribute set to
"true"
(as a string value) in ParticipantTokenConfiguration is placed in the featured slot. Default:""
(no featured participant).omitStoppedVideo
— (Boolean
)Determines whether to omit participants with stopped video in the composition. Default:
false
.videoFillMode
— (String
)Defines how video content fits within the participant tile:
Possible values include:FILL
(stretched),COVER
(cropped), orCONTAIN
(letterboxed). Default:COVER
."FILL"
"COVER"
"CONTAIN"
gridGap
— (Integer
)Specifies the spacing between participant tiles in pixels. Default:
0
.pipParticipantAttribute
— (String
)Specifies the participant for the PiP window. A participant with this attribute set to
"true"
(as a string value) in ParticipantTokenConfiguration is placed in the PiP slot. Default:""
(no PiP participant).pipBehavior
— (String
)Defines PiP behavior when all participants have left:
Possible values include:STATIC
(maintains original position/size) orDYNAMIC
(expands to full composition). Default:STATIC
."STATIC"
"DYNAMIC"
pipOffset
— (Integer
)Sets the PiP window’s offset position in pixels from the closest edges determined by
PipPosition
. Default:0
.pipPosition
— (String
)Determines the corner position of the PiP window. Default:
Possible values include:BOTTOM_RIGHT
."TOP_LEFT"
"TOP_RIGHT"
"BOTTOM_LEFT"
"BOTTOM_RIGHT"
pipWidth
— (Integer
)Specifies the width of the PiP window in pixels. When this is not set explicitly,
pipWidth
’s value will be based on the size of the composition and the aspect ratio of the participant’s video.pipHeight
— (Integer
)Specifies the height of the PiP window in pixels. When this is not set explicitly,
pipHeight
’s value will be based on the size of the composition and the aspect ratio of the participant’s video.
destinations
— required — (Array<map>
)Array of Destination objects. A Composition can contain either one destination (
channel
ors3
) or two (onechannel
and ones3
).id
— required — (String
)Unique identifier for this destination, assigned by IVS.
state
— required — (String
)State of the Composition Destination.
Possible values include:"STARTING"
"ACTIVE"
"STOPPING"
"RECONNECTING"
"FAILED"
"STOPPED"
startTime
— (Date
)UTC time of the destination start. This is an ISO 8601 timestamp; note that this is returned as a string.
endTime
— (Date
)UTC time of the destination end. This is an ISO 8601 timestamp; note that this is returned as a string.
configuration
— required — (map
)Configuration used to create this destination.
name
— (String
)Name that can be specified to help identify the destination.
channel
— (map
)An IVS channel to be used for broadcasting, for server-side composition. Either a
channel
or ans3
must be specified.channelArn
— required — (String
)ARN of the channel to use for broadcasting. The channel and stage resources must be in the same AWS account and region. The channel must be offline (not broadcasting).
encoderConfigurationArn
— (String
)ARN of the EncoderConfiguration resource. The encoder configuration and stage resources must be in the same AWS account and region.
s3
— (map
)An S3 storage configuration to be used for recording video data. Either a
channel
or ans3
must be specified.storageConfigurationArn
— required — (String
)ARN of the StorageConfiguration where recorded videos will be stored.
encoderConfigurationArns
— required — (Array<String>
)ARNs of the EncoderConfiguration resource. The encoder configuration and stage resources must be in the same AWS account and region.
recordingConfiguration
— (map
)Array of maps, each of the form
string:string (key:value)
. This is an optional customer specification, currently used only to specify the recording format for storing a recording in Amazon S3.format
— (String
)The recording format for storing a recording in Amazon S3.
Possible values include:"HLS"
detail
— (map
)Optional details regarding the status of the destination.
s3
— (map
)An S3 detail object to return information about the S3 destination.
recordingPrefix
— required — (String
)The S3 bucket prefix under which the recording is stored.
tags
— (map<String>
)Tags attached to the resource. Array of maps, each of the form
string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.startTime
— (Date
)UTC time of the Composition start. This is an ISO 8601 timestamp; note that this is returned as a string.
endTime
— (Date
)UTC time of the Composition end. This is an ISO 8601 timestamp; note that this is returned as a string.
-
(AWS.Response)
—
Returns:
stopComposition(params = {}, callback) ⇒ AWS.Request
Stops and deletes a Composition resource. Any broadcast from the Composition resource is stopped.
Service Reference:
Examples:
Calling the stopComposition operation
var params = {
arn: 'STRING_VALUE' /* required */
};
ivsrealtime.stopComposition(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
arn
— (String
)ARN of the Composition.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
tagResource(params = {}, callback) ⇒ AWS.Request
Adds or updates tags for the AWS resource with the specified ARN.
Service Reference:
Examples:
Calling the tagResource operation
var params = {
resourceArn: 'STRING_VALUE', /* required */
tags: { /* required */
'<TagKey>': 'STRING_VALUE',
/* '<TagKey>': ... */
}
};
ivsrealtime.tagResource(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
resourceArn
— (String
)The ARN of the resource to be tagged. The ARN must be URL-encoded.
tags
— (map<String>
)Array of tags to be added or updated. Array of maps, each of the form
string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints beyond what is documented there.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
untagResource(params = {}, callback) ⇒ AWS.Request
Removes tags from the resource with the specified ARN.
Service Reference:
Examples:
Calling the untagResource operation
var params = {
resourceArn: 'STRING_VALUE', /* required */
tagKeys: [ /* required */
'STRING_VALUE',
/* more items */
]
};
ivsrealtime.untagResource(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
resourceArn
— (String
)The ARN of the resource to be untagged. The ARN must be URL-encoded.
tagKeys
— (Array<String>
)Array of tags to be removed. Array of maps, each of the form
string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints beyond what is documented there.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
updateStage(params = {}, callback) ⇒ AWS.Request
Updates a stage’s configuration.
Service Reference:
Examples:
Calling the updateStage operation
var params = {
arn: 'STRING_VALUE', /* required */
autoParticipantRecordingConfiguration: {
storageConfigurationArn: 'STRING_VALUE', /* required */
mediaTypes: [
AUDIO_VIDEO | AUDIO_ONLY,
/* more items */
]
},
name: 'STRING_VALUE'
};
ivsrealtime.updateStage(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
arn
— (String
)ARN of the stage to be updated.
name
— (String
)Name of the stage to be updated.
autoParticipantRecordingConfiguration
— (map
)Configuration object for individual participant recording, to attach to the stage. Note that this cannot be updated while recording is active.
storageConfigurationArn
— required — (String
)ARN of the StorageConfiguration resource to use for individual participant recording. Default:
""
(empty string, no storage configuration is specified). Individual participant recording cannot be started unless a storage configuration is specified, when a Stage is created or updated.mediaTypes
— (Array<String>
)Types of media to be recorded. Default:
AUDIO_VIDEO
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:stage
— (map
)The updated stage.
arn
— required — (String
)Stage ARN.
name
— (String
)Stage name.
activeSessionId
— (String
)ID of the active session within the stage.
tags
— (map<String>
)Tags attached to the resource. Array of maps, each of the form
string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.autoParticipantRecordingConfiguration
— (map
)Configuration object for individual participant recording, attached to the stage.
storageConfigurationArn
— required — (String
)ARN of the StorageConfiguration resource to use for individual participant recording. Default:
""
(empty string, no storage configuration is specified). Individual participant recording cannot be started unless a storage configuration is specified, when a Stage is created or updated.mediaTypes
— (Array<String>
)Types of media to be recorded. Default:
AUDIO_VIDEO
.
endpoints
— (map
)Summary information about various endpoints for a stage.
events
— (String
)Events endpoint.
whip
— (String
)WHIP endpoint.
-
(AWS.Response)
—
Returns:
waitFor(state, params = {}, callback) ⇒ AWS.Request
Waits for a given IVSRealTime resource. The final callback or 'complete' event will be fired only when the resource is either in its final state or the waiter has timed out and stopped polling for the final state.
Parameters:
-
state
(String)
—
the resource state to wait for. Available states for this service are listed in "Waiter Resource States" below.
-
params
(map)
(defaults to: {})
—
a list of parameters for the given state. See each waiter resource state for required parameters.
Callback (callback):
-
function(err, data) { ... }
Callback containing error and data information. See the respective resource state for the expected error or data information.
If the waiter times out its requests, it will return a
ResourceNotReady
error.
Returns: