We announced the upcoming end-of-support for AWS SDK for JavaScript v2.
We recommend that you migrate to AWS SDK for JavaScript v3. For dates, additional details, and information on how to migrate, please refer to the linked announcement.

Class: AWS.IVSRealTime

Inherits:
AWS.Service show all
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

Introduction

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.

Terminology:

  • A stage is a virtual space where participants can exchange video in real time.

  • A participant token is a token that authenticates a participant when they join a stage.

  • A 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.

  • Server-side composition: The 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.

  • Server-side composition: A composition controls the look of the outputs, including how participants are positioned in the video.

Resources

The following resources contain information about your IVS live stream (see Getting Started with Amazon IVS Real-Time Streaming):

  • Stage — A stage is a virtual space where participants can exchange video in real time.

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.

Stages Endpoints

  • CreateParticipantToken — Creates an additional token for a specified stage. This can be done after stage creation or when tokens expire.

  • CreateStage — Creates a new stage (and optionally participant tokens).

  • DeleteStage — Shuts down and deletes the specified stage (disconnecting all participants).

  • DisconnectParticipant — Disconnects a specified participant and revokes the participant permanently from a specified stage.

  • GetParticipant — Gets information about the specified participant token.

  • GetStage — Gets information for the specified stage.

  • GetStageSession — Gets information for the specified stage session.

  • ListParticipantEvents — Lists events for a specified participant that occurred during a specified stage session.

  • ListParticipants — Lists all participants in a specified stage session.

  • ListStages — Gets summary information about all stages in your account, in the AWS region where the API request is processed.

  • ListStageSessions — Gets all sessions for a specified stage.

  • UpdateStage — Updates a stage’s configuration.

Composition Endpoints

  • GetComposition — Gets information about the specified Composition resource.

  • ListCompositions — Gets summary information about all Compositions in your account, in the AWS region where the API request is processed.

  • StartComposition — Starts a Composition from a stage based on the configuration provided in the request.

  • StopComposition — Stops and deletes a Composition resource. Any broadcast from the Composition resource is stopped.

EncoderConfiguration Endpoints

StorageConfiguration Endpoints

Tags Endpoints

  • ListTagsForResource — Gets information about AWS tags for the specified ARN.

  • TagResource — Adds or updates tags for the AWS resource with the specified ARN.

  • UntagResource — Removes tags from the resource with the specified ARN.

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

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, 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.
  • 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 to true.

  • 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

endpointAWS.Endpoint (readwrite)

Returns an Endpoint object representing the endpoint URL for service requests.

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

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.

    • 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.

    • video — (map)

      Video configuration. Default: video resolution 1280x720, bitrate 2500 kbps, 30 fps.

      • bitrate — (Integer)

        Bitrate for generated output, in bps. Default: 2500000.

      • framerate — (Float)

        Video frame rate, in fps. Default: 30.

      • height — (Integer)

        Video-resolution height. Note that the maximum value is determined by width times height, such that the maximum total pixels is 2073600 (1920x1080 or 1080x1920). Default: 720.

      • width — (Integer)

        Video-resolution width. Note that the maximum value is determined by width times height, such that the maximum total pixels is 2073600 (1920x1080 or 1080x1920). Default: 1280.

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. The data object has the following properties:

      • encoderConfiguration — (map)

        The EncoderConfiguration that was created.

        • arnrequired — (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.

        • video — (map)

          Video configuration. Default: video resolution 1280x720, bitrate 2500 kbps, 30 fps

          • bitrate — (Integer)

            Bitrate for generated output, in bps. Default: 2500000.

          • framerate — (Float)

            Video frame rate, in fps. Default: 30.

          • height — (Integer)

            Video-resolution height. Note that the maximum value is determined by width times height, such that the maximum total pixels is 2073600 (1920x1080 or 1080x1920). Default: 720.

          • width — (Integer)

            Video-resolution width. Note that the maximum value is determined by width times height, such that the maximum total pixels is 2073600 (1920x1080 or 1080x1920). Default: 1280.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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: {})
    • 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.

    • duration — (Integer)

      Duration (in minutes), after which the token expires. Default: 720 (12 hours).

    • stageArn — (String)

      ARN of the stage to which this token is scoped.

    • 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.

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. The data object has the following properties:

      • participantToken — (map)

        The participant token that was created.

        • 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.

        • capabilities — (Array<String>)

          Set of capabilities that the user is allowed to perform in the stage.

        • duration — (Integer)

          Duration (in minutes), after which the participant token expires. Default: 720 (12 hours).

        • expirationTime — (Date)

          ISO 8601 timestamp (returned as a string) for when this token expires.

        • 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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createStage(params = {}, callback) ⇒ AWS.Request

Creates a new stage (and optionally participant tokens).

Service Reference:

Examples:

Calling the createStage operation

var params = {
  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.

      • 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.

      • 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.

    • 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. The data object has the following properties:

      • participantTokens — (Array<map>)

        Participant tokens attached to the stage. These correspond to the participants in the request.

        • 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.

        • capabilities — (Array<String>)

          Set of capabilities that the user is allowed to perform in the stage.

        • duration — (Integer)

          Duration (in minutes), after which the participant token expires. Default: 720 (12 hours).

        • expirationTime — (Date)

          ISO 8601 timestamp (returned as a string) for when this token expires.

        • 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.

      • stage — (map)

        The stage that was created.

        • activeSessionId — (String)

          ID of the active session within the stage.

        • arnrequired — (String)

          Stage ARN.

        • name — (String)

          Stage 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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

      • bucketNamerequired — (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. The data object has the following properties:

      • storageConfiguration — (map)

        The StorageConfiguration that was created.

        • arnrequired — (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.

          • bucketNamerequired — (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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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: {})
    • 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.

    • stageArn — (String)

      ARN of the stage to which the participant is attached.

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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. The data object has the following properties:

      • composition — (map)

        The Composition that was returned.

        • arnrequired — (String)

          ARN of the Composition resource.

        • destinationsrequired — (Array<map>)

          Array of Destination objects. A Composition can contain either one destination (channel or s3) or two (one channel and one s3).

          • configurationrequired — (map)

            Configuration used to create this destination.

            • channel — (map)

              An IVS channel to be used for broadcasting, for server-side composition. Either a channel or an s3 must be specified.

              • channelArnrequired — (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.

            • name — (String)

              Name that can be specified to help identify the destination.

            • s3 — (map)

              An S3 storage configuration to be used for recording video data. Either a channel or an s3 must be specified.

              • encoderConfigurationArnsrequired — (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"
              • storageConfigurationArnrequired — (String)

                ARN of the StorageConfiguration where recorded videos will be stored.

          • detail — (map)

            Optional details regarding the status of the destination.

            • s3 — (map)

              An S3 detail object to return information about the S3 destination.

              • recordingPrefixrequired — (String)

                The S3 bucket prefix under which the recording is stored.

          • endTime — (Date)

            UTC time of the destination end. This is an ISO 8601 timestamp; note that this is returned as a string.

          • idrequired — (String)

            Unique identifier for this destination, assigned by IVS.

          • startTime — (Date)

            UTC time of the destination start. This is an ISO 8601 timestamp; note that this is returned as a string.

          • staterequired — (String)

            State of the Composition Destination.

            Possible values include:
            • "STARTING"
            • "ACTIVE"
            • "STOPPING"
            • "RECONNECTING"
            • "FAILED"
            • "STOPPED"
        • endTime — (Date)

          UTC time of the Composition end. This is an ISO 8601 timestamp; note that this is returned as a string.

        • layoutrequired — (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.

            • gridGap — (Integer)

              Specifies the spacing between participant tiles in pixels. Default: 2.

            • omitStoppedVideo — (Boolean)

              Determines whether to omit participants with stopped video in the composition. Default: false.

            • videoAspectRatio — (String)

              Sets the non-featured participant display mode. Default: VIDEO.

              Possible values include:
              • "AUTO"
              • "VIDEO"
              • "SQUARE"
              • "PORTRAIT"
            • videoFillMode — (String)

              Defines how video fits within the participant tile. When not set, videoFillMode defaults to COVER fill mode for participants in the grid and to CONTAIN fill mode for featured participants.

              Possible values include:
              • "FILL"
              • "COVER"
              • "CONTAIN"
          • 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.

            • gridGap — (Integer)

              Specifies the spacing between participant tiles in pixels. Default: 0.

            • omitStoppedVideo — (Boolean)

              Determines whether to omit participants with stopped video in the composition. Default: false.

            • pipBehavior — (String)

              Defines PiP behavior when all participants have left. Default: STATIC.

              Possible values include:
              • "STATIC"
              • "DYNAMIC"
            • 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.

            • pipOffset — (Integer)

              Sets the PiP window’s offset position in pixels from the closest edges determined by PipPosition. Default: 0.

            • pipParticipantAttribute — (String)

              Identifies the PiP slot. A participant with this attribute set to "true" (as a string value) in ParticipantTokenConfiguration is placed in the PiP slot.

            • pipPosition — (String)

              Determines the corner position of the PiP window. Default: BOTTOM_RIGHT.

              Possible values include:
              • "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.

            • videoFillMode — (String)

              Defines how video fits within the participant tile. Default: COVER.

              Possible values include:
              • "FILL"
              • "COVER"
              • "CONTAIN"
        • stageArnrequired — (String)

          ARN of the stage used as input

        • startTime — (Date)

          UTC time of the Composition start. This is an ISO 8601 timestamp; note that this is returned as a string.

        • staterequired — (String)

          State of the Composition.

          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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. The data object has the following properties:

      • encoderConfiguration — (map)

        The EncoderConfiguration that was returned.

        • arnrequired — (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.

        • video — (map)

          Video configuration. Default: video resolution 1280x720, bitrate 2500 kbps, 30 fps

          • bitrate — (Integer)

            Bitrate for generated output, in bps. Default: 2500000.

          • framerate — (Float)

            Video frame rate, in fps. Default: 30.

          • height — (Integer)

            Video-resolution height. Note that the maximum value is determined by width times height, such that the maximum total pixels is 2073600 (1920x1080 or 1080x1920). Default: 720.

          • width — (Integer)

            Video-resolution width. Note that the maximum value is determined by width times height, such that the maximum total pixels is 2073600 (1920x1080 or 1080x1920). Default: 1280.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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: {})
    • participantId — (String)

      Unique identifier for the participant. This is assigned by IVS and returned by CreateParticipantToken.

    • sessionId — (String)

      ID of a session within the stage.

    • stageArn — (String)

      Stage ARN.

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. The data object has the following properties:

      • participant — (map)

        The participant that is returned.

        • 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.

        • browserName — (String)

          The participant’s browser.

        • browserVersion — (String)

          The participant’s browser version.

        • firstJoinTime — (Date)

          ISO 8601 timestamp (returned as a string) when the participant first joined 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.

        • participantId — (String)

          Unique identifier for this participant, assigned by IVS.

        • published — (Boolean)

          Whether the participant ever published to the stage session.

        • sdkVersion — (String)

          The participant’s SDK version.

        • state — (String)

          Whether the participant is connected to or disconnected from the stage.

          Possible values include:
          • "CONNECTED"
          • "DISCONNECTED"
        • 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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. The data object has the following properties:

      • stage — (map)

        The stage that is returned.

        • activeSessionId — (String)

          ID of the active session within the stage.

        • arnrequired — (String)

          Stage ARN.

        • name — (String)

          Stage 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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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: {})
    • sessionId — (String)

      ID of a session within the stage.

    • stageArn — (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. The data object has the following properties:

      • stageSession — (map)

        The stage session that is returned.

        • endTime — (Date)

          ISO 8601 timestamp (returned as a string) when the stage session ended. This is null if the stage is active.

        • sessionId — (String)

          ID of the session within the stage.

        • startTime — (Date)

          ISO 8601 timestamp (returned as a string) when this stage session began.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. The data object has the following properties:

      • storageConfiguration — (map)

        The StorageConfiguration that was returned.

        • arnrequired — (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.

          • bucketNamerequired — (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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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: {})
    • filterByEncoderConfigurationArn — (String)

      Filters the Composition list to match the specified EncoderConfiguration attached to at least one of its output.

    • filterByStageArn — (String)

      Filters the Composition list to match the specified Stage ARN.

    • maxResults — (Integer)

      Maximum number of results to return. Default: 100.

    • nextToken — (String)

      The first Composition to retrieve. This is used for pagination; see the nextToken response field.

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. The data object has the following properties:

      • compositions — (Array<map>)

        List of the matching Compositions (summary information only).

        • arnrequired — (String)

          ARN of the Composition resource.

        • destinationsrequired — (Array<map>)

          Array of Destination objects.

          • endTime — (Date)

            UTC time of the destination end. This is an ISO 8601 timestamp; note that this is returned as a string.

          • idrequired — (String)

            Unique identifier for this destination, assigned by IVS.

          • startTime — (Date)

            UTC time of the destination start. This is an ISO 8601 timestamp; note that this is returned as a string.

          • staterequired — (String)

            State of the Composition Destination.

            Possible values include:
            • "STARTING"
            • "ACTIVE"
            • "STOPPING"
            • "RECONNECTING"
            • "FAILED"
            • "STOPPED"
        • endTime — (Date)

          UTC time of the Composition end. This is an ISO 8601 timestamp; note that this is returned as a string.

        • stageArnrequired — (String)

          ARN of the attached stage.

        • startTime — (Date)

          UTC time of the Composition start. This is an ISO 8601 timestamp; note that this is returned as a string.

        • staterequired — (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.

      • nextToken — (String)

        If there are more compositions than maxResults, use nextToken in the request to get the next set.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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: {})
    • maxResults — (Integer)

      Maximum number of results to return. Default: 100.

    • nextToken — (String)

      The first encoder configuration to retrieve. This is used for pagination; see the nextToken response field.

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. The data object has the following properties:

      • encoderConfigurations — (Array<map>)

        List of the matching EncoderConfigurations (summary information only).

        • arnrequired — (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, use nextToken in the request to get the next set.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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: {})
    • maxResults — (Integer)

      Maximum number of results to return. Default: 50.

    • nextToken — (String)

      The first participant event to retrieve. This is used for pagination; see the nextToken response field.

    • participantId — (String)

      Unique identifier for this participant. This is assigned by IVS and returned by CreateParticipantToken.

    • sessionId — (String)

      ID of a session within the stage.

    • stageArn — (String)

      Stage ARN.

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. The data object has the following properties:

      • events — (Array<map>)

        List of the matching events.

        • 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. 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 the capabilities 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.

          Possible values include:
          • "INSUFFICIENT_CAPABILITIES"
          • "QUOTA_EXCEEDED"
          • "PUBLISHER_NOT_FOUND"
        • eventTime — (Date)

          ISO 8601 timestamp (returned as a string) for when the event occurred.

        • 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.

        • 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.

      • nextToken — (String)

        If there are more events than maxResults, use nextToken in the request to get the next set.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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,
  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: {})
    • filterByPublished — (Boolean)

      Filters the response list to only show participants who published during the stage session. Only one of filterByUserId, filterByPublished, or filterByState can be provided per request.

    • filterByState — (String)

      Filters the response list to only show participants in the specified state. Only one of filterByUserId, filterByPublished, or filterByState can be provided per request.

      Possible values include:
      • "CONNECTED"
      • "DISCONNECTED"
    • filterByUserId — (String)

      Filters the response list to match the specified user ID. Only one of filterByUserId, filterByPublished, or filterByState can be provided per request. A userId 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.

    • maxResults — (Integer)

      Maximum number of results to return. Default: 50.

    • nextToken — (String)

      The first participant to retrieve. This is used for pagination; see the nextToken response field.

    • sessionId — (String)

      ID of the session within the stage.

    • stageArn — (String)

      Stage ARN.

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. The data object has the following properties:

      • nextToken — (String)

        If there are more participants than maxResults, use nextToken in the request to get the next set.

      • participants — (Array<map>)

        List of the matching participants (summary information only).

        • firstJoinTime — (Date)

          ISO 8601 timestamp (returned as a string) when the participant first joined the stage session.

        • participantId — (String)

          Unique identifier for this participant, assigned by IVS.

        • published — (Boolean)

          Whether the participant ever published to the stage session.

        • state — (String)

          Whether the participant is connected to or disconnected from the stage.

          Possible values include:
          • "CONNECTED"
          • "DISCONNECTED"
        • 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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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: {})
    • maxResults — (Integer)

      Maximum number of results to return. Default: 50.

    • nextToken — (String)

      The first stage to retrieve. This is used for pagination; see the nextToken response field.

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. The data object has the following properties:

      • nextToken — (String)

        If there are more stages than maxResults, use nextToken in the request to get the next set.

      • stages — (Array<map>)

        List of the matching stages (summary information only).

        • activeSessionId — (String)

          ID of the active session within the stage.

        • arnrequired — (String)

          Stage ARN.

        • name — (String)

          Stage 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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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: {})
    • maxResults — (Integer)

      Maximum number of results to return. Default: 50.

    • nextToken — (String)

      The first stage session to retrieve. This is used for pagination; see the nextToken response field.

    • stageArn — (String)

      Stage ARN.

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. The data object has the following properties:

      • nextToken — (String)

        If there are more stage sessions than maxResults, use nextToken in the request to get the next set.

      • stageSessions — (Array<map>)

        List of matching stage sessions.

        • endTime — (Date)

          ISO 8601 timestamp (returned as a string) when the stage session ended. This is null if the stage is active.

        • sessionId — (String)

          ID of the session within the stage.

        • startTime — (Date)

          ISO 8601 timestamp (returned as a string) when this stage session began.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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: {})
    • maxResults — (Integer)

      Maximum number of storage configurations to return. Default: your service quota or 100, whichever is smaller.

    • nextToken — (String)

      The first storage configuration to retrieve. This is used for pagination; see the nextToken response field.

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. The data object has the following properties:

      • nextToken — (String)

        If there are more storage configurations than maxResults, use nextToken in the request to get the next set.

      • storageConfigurations — (Array<map>)

        List of the matching storage configurations.

        • arnrequired — (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.

          • bucketNamerequired — (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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. The data object has the following properties:

      • tags — (map<String>)

        Tags attached to the resource. Array of maps, each of the form string:string (key:value).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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: {})
    • destinations — (Array<map>)

      Array of destination configuration.

      • channel — (map)

        An IVS channel to be used for broadcasting, for server-side composition. Either a channel or an s3 must be specified.

        • channelArnrequired — (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.

      • name — (String)

        Name that can be specified to help identify the destination.

      • s3 — (map)

        An S3 storage configuration to be used for recording video data. Either a channel or an s3 must be specified.

        • encoderConfigurationArnsrequired — (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"
        • storageConfigurationArnrequired — (String)

          ARN of the StorageConfiguration where recorded videos will be stored.

    • 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.

        • gridGap — (Integer)

          Specifies the spacing between participant tiles in pixels. Default: 2.

        • omitStoppedVideo — (Boolean)

          Determines whether to omit participants with stopped video in the composition. Default: false.

        • videoAspectRatio — (String)

          Sets the non-featured participant display mode. Default: VIDEO.

          Possible values include:
          • "AUTO"
          • "VIDEO"
          • "SQUARE"
          • "PORTRAIT"
        • videoFillMode — (String)

          Defines how video fits within the participant tile. When not set, videoFillMode defaults to COVER fill mode for participants in the grid and to CONTAIN fill mode for featured participants.

          Possible values include:
          • "FILL"
          • "COVER"
          • "CONTAIN"
      • 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.

        • gridGap — (Integer)

          Specifies the spacing between participant tiles in pixels. Default: 0.

        • omitStoppedVideo — (Boolean)

          Determines whether to omit participants with stopped video in the composition. Default: false.

        • pipBehavior — (String)

          Defines PiP behavior when all participants have left. Default: STATIC.

          Possible values include:
          • "STATIC"
          • "DYNAMIC"
        • 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.

        • pipOffset — (Integer)

          Sets the PiP window’s offset position in pixels from the closest edges determined by PipPosition. Default: 0.

        • pipParticipantAttribute — (String)

          Identifies the PiP slot. A participant with this attribute set to "true" (as a string value) in ParticipantTokenConfiguration is placed in the PiP slot.

        • pipPosition — (String)

          Determines the corner position of the PiP window. Default: BOTTOM_RIGHT.

          Possible values include:
          • "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.

        • videoFillMode — (String)

          Defines how video fits within the participant tile. Default: COVER.

          Possible values include:
          • "FILL"
          • "COVER"
          • "CONTAIN"
    • stageArn — (String)

      ARN of the stage to be used for compositing.

    • 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. The data object has the following properties:

      • composition — (map)

        The Composition that was created.

        • arnrequired — (String)

          ARN of the Composition resource.

        • destinationsrequired — (Array<map>)

          Array of Destination objects. A Composition can contain either one destination (channel or s3) or two (one channel and one s3).

          • configurationrequired — (map)

            Configuration used to create this destination.

            • channel — (map)

              An IVS channel to be used for broadcasting, for server-side composition. Either a channel or an s3 must be specified.

              • channelArnrequired — (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.

            • name — (String)

              Name that can be specified to help identify the destination.

            • s3 — (map)

              An S3 storage configuration to be used for recording video data. Either a channel or an s3 must be specified.

              • encoderConfigurationArnsrequired — (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"
              • storageConfigurationArnrequired — (String)

                ARN of the StorageConfiguration where recorded videos will be stored.

          • detail — (map)

            Optional details regarding the status of the destination.

            • s3 — (map)

              An S3 detail object to return information about the S3 destination.

              • recordingPrefixrequired — (String)

                The S3 bucket prefix under which the recording is stored.

          • endTime — (Date)

            UTC time of the destination end. This is an ISO 8601 timestamp; note that this is returned as a string.

          • idrequired — (String)

            Unique identifier for this destination, assigned by IVS.

          • startTime — (Date)

            UTC time of the destination start. This is an ISO 8601 timestamp; note that this is returned as a string.

          • staterequired — (String)

            State of the Composition Destination.

            Possible values include:
            • "STARTING"
            • "ACTIVE"
            • "STOPPING"
            • "RECONNECTING"
            • "FAILED"
            • "STOPPED"
        • endTime — (Date)

          UTC time of the Composition end. This is an ISO 8601 timestamp; note that this is returned as a string.

        • layoutrequired — (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.

            • gridGap — (Integer)

              Specifies the spacing between participant tiles in pixels. Default: 2.

            • omitStoppedVideo — (Boolean)

              Determines whether to omit participants with stopped video in the composition. Default: false.

            • videoAspectRatio — (String)

              Sets the non-featured participant display mode. Default: VIDEO.

              Possible values include:
              • "AUTO"
              • "VIDEO"
              • "SQUARE"
              • "PORTRAIT"
            • videoFillMode — (String)

              Defines how video fits within the participant tile. When not set, videoFillMode defaults to COVER fill mode for participants in the grid and to CONTAIN fill mode for featured participants.

              Possible values include:
              • "FILL"
              • "COVER"
              • "CONTAIN"
          • 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.

            • gridGap — (Integer)

              Specifies the spacing between participant tiles in pixels. Default: 0.

            • omitStoppedVideo — (Boolean)

              Determines whether to omit participants with stopped video in the composition. Default: false.

            • pipBehavior — (String)

              Defines PiP behavior when all participants have left. Default: STATIC.

              Possible values include:
              • "STATIC"
              • "DYNAMIC"
            • 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.

            • pipOffset — (Integer)

              Sets the PiP window’s offset position in pixels from the closest edges determined by PipPosition. Default: 0.

            • pipParticipantAttribute — (String)

              Identifies the PiP slot. A participant with this attribute set to "true" (as a string value) in ParticipantTokenConfiguration is placed in the PiP slot.

            • pipPosition — (String)

              Determines the corner position of the PiP window. Default: BOTTOM_RIGHT.

              Possible values include:
              • "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.

            • videoFillMode — (String)

              Defines how video fits within the participant tile. Default: COVER.

              Possible values include:
              • "FILL"
              • "COVER"
              • "CONTAIN"
        • stageArnrequired — (String)

          ARN of the stage used as input

        • startTime — (Date)

          UTC time of the Composition start. This is an ISO 8601 timestamp; note that this is returned as a string.

        • staterequired — (String)

          State of the Composition.

          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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateStage(params = {}, callback) ⇒ AWS.Request

Updates a stage’s configuration.

Service Reference:

Examples:

Calling the updateStage operation

var params = {
  arn: 'STRING_VALUE', /* required */
  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.

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. The data object has the following properties:

      • stage — (map)

        The updated stage.

        • activeSessionId — (String)

          ID of the active session within the stage.

        • arnrequired — (String)

          Stage ARN.

        • name — (String)

          Stage 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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.