@aws-sdk/client-kinesis-video-media 3.315.0 → 3.316.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,22 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.KinesisVideoMedia = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const GetMediaCommand_1 = require("./commands/GetMediaCommand");
|
|
5
6
|
const KinesisVideoMediaClient_1 = require("./KinesisVideoMediaClient");
|
|
7
|
+
const commands = {
|
|
8
|
+
GetMediaCommand: GetMediaCommand_1.GetMediaCommand,
|
|
9
|
+
};
|
|
6
10
|
class KinesisVideoMedia extends KinesisVideoMediaClient_1.KinesisVideoMediaClient {
|
|
7
|
-
getMedia(args, optionsOrCb, cb) {
|
|
8
|
-
const command = new GetMediaCommand_1.GetMediaCommand(args);
|
|
9
|
-
if (typeof optionsOrCb === "function") {
|
|
10
|
-
this.send(command, optionsOrCb);
|
|
11
|
-
}
|
|
12
|
-
else if (typeof cb === "function") {
|
|
13
|
-
if (typeof optionsOrCb !== "object")
|
|
14
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
15
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
return this.send(command, optionsOrCb);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
11
|
}
|
|
22
12
|
exports.KinesisVideoMedia = KinesisVideoMedia;
|
|
13
|
+
(0, smithy_client_1.createAggregatedClient)(commands, KinesisVideoMedia);
|
|
@@ -1,18 +1,9 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { GetMediaCommand } from "./commands/GetMediaCommand";
|
|
2
3
|
import { KinesisVideoMediaClient } from "./KinesisVideoMediaClient";
|
|
4
|
+
const commands = {
|
|
5
|
+
GetMediaCommand,
|
|
6
|
+
};
|
|
3
7
|
export class KinesisVideoMedia extends KinesisVideoMediaClient {
|
|
4
|
-
getMedia(args, optionsOrCb, cb) {
|
|
5
|
-
const command = new GetMediaCommand(args);
|
|
6
|
-
if (typeof optionsOrCb === "function") {
|
|
7
|
-
this.send(command, optionsOrCb);
|
|
8
|
-
}
|
|
9
|
-
else if (typeof cb === "function") {
|
|
10
|
-
if (typeof optionsOrCb !== "object")
|
|
11
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
12
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
return this.send(command, optionsOrCb);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
8
|
}
|
|
9
|
+
createAggregatedClient(commands, KinesisVideoMedia);
|
|
@@ -1,61 +1,17 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
2
|
import { GetMediaCommandInput, GetMediaCommandOutput } from "./commands/GetMediaCommand";
|
|
3
3
|
import { KinesisVideoMediaClient } from "./KinesisVideoMediaClient";
|
|
4
|
-
|
|
5
|
-
* @public
|
|
6
|
-
* <p></p>
|
|
7
|
-
*/
|
|
8
|
-
export declare class KinesisVideoMedia extends KinesisVideoMediaClient {
|
|
4
|
+
export interface KinesisVideoMedia {
|
|
9
5
|
/**
|
|
10
|
-
* @
|
|
11
|
-
* <p> Use this API to retrieve media content from a Kinesis video stream. In the request,
|
|
12
|
-
* you identify the stream name or stream Amazon Resource Name (ARN), and the starting chunk.
|
|
13
|
-
* Kinesis Video Streams then returns a stream of chunks in order by fragment number.</p>
|
|
14
|
-
* <note>
|
|
15
|
-
* <p>You must first call the <code>GetDataEndpoint</code> API to get an endpoint. Then
|
|
16
|
-
* send the <code>GetMedia</code> requests to this endpoint using the <a href="https://docs.aws.amazon.com/cli/latest/reference/">--endpoint-url parameter</a>.
|
|
17
|
-
* </p>
|
|
18
|
-
* </note>
|
|
19
|
-
* <p>When you put media data (fragments) on a stream, Kinesis Video Streams stores each
|
|
20
|
-
* incoming fragment and related metadata in what is called a "chunk." For more information, see
|
|
21
|
-
* <a href="https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/API_dataplane_PutMedia.html">PutMedia</a>. The <code>GetMedia</code> API returns a stream of these chunks starting
|
|
22
|
-
* from the chunk that you specify in the request. </p>
|
|
23
|
-
* <p>The following limits apply when using the <code>GetMedia</code> API:</p>
|
|
24
|
-
* <ul>
|
|
25
|
-
* <li>
|
|
26
|
-
* <p>A client can call <code>GetMedia</code> up to five times per second per stream.
|
|
27
|
-
* </p>
|
|
28
|
-
* </li>
|
|
29
|
-
* <li>
|
|
30
|
-
* <p>Kinesis Video Streams sends media data at a rate of up to 25 megabytes per second
|
|
31
|
-
* (or 200 megabits per second) during a <code>GetMedia</code> session. </p>
|
|
32
|
-
* </li>
|
|
33
|
-
* </ul>
|
|
34
|
-
*
|
|
35
|
-
* <note>
|
|
36
|
-
* <p>If an error is thrown after invoking a Kinesis Video Streams media API, in addition to
|
|
37
|
-
* the HTTP status code and the response body, it includes the following pieces of information: </p>
|
|
38
|
-
* <ul>
|
|
39
|
-
* <li>
|
|
40
|
-
* <p>
|
|
41
|
-
* <code>x-amz-ErrorType</code> HTTP header – contains a more specific error type in
|
|
42
|
-
* addition to what the HTTP status code provides. </p>
|
|
43
|
-
* </li>
|
|
44
|
-
* <li>
|
|
45
|
-
* <p>
|
|
46
|
-
* <code>x-amz-RequestId</code> HTTP header – if you want to report an issue to AWS,
|
|
47
|
-
* the support team can better diagnose the problem if given the Request Id.</p>
|
|
48
|
-
* </li>
|
|
49
|
-
* </ul>
|
|
50
|
-
* <p>Both the HTTP status code and the ErrorType header can be utilized to make programmatic
|
|
51
|
-
* decisions about whether errors are retry-able and under what conditions, as well as provide
|
|
52
|
-
* information on what actions the client programmer might need to take in order to
|
|
53
|
-
* successfully try again.</p>
|
|
54
|
-
* <p>For more information, see the <b>Errors</b> section at the
|
|
55
|
-
* bottom of this topic, as well as <a href="https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/CommonErrors.html">Common Errors</a>. </p>
|
|
56
|
-
* </note>
|
|
6
|
+
* @see {@link GetMediaCommand}
|
|
57
7
|
*/
|
|
58
8
|
getMedia(args: GetMediaCommandInput, options?: __HttpHandlerOptions): Promise<GetMediaCommandOutput>;
|
|
59
9
|
getMedia(args: GetMediaCommandInput, cb: (err: any, data?: GetMediaCommandOutput) => void): void;
|
|
60
10
|
getMedia(args: GetMediaCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMediaCommandOutput) => void): void;
|
|
61
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* @public
|
|
14
|
+
* <p></p>
|
|
15
|
+
*/
|
|
16
|
+
export declare class KinesisVideoMedia extends KinesisVideoMediaClient implements KinesisVideoMedia {
|
|
17
|
+
}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
GetMediaCommandOutput,
|
|
5
5
|
} from "./commands/GetMediaCommand";
|
|
6
6
|
import { KinesisVideoMediaClient } from "./KinesisVideoMediaClient";
|
|
7
|
-
export
|
|
7
|
+
export interface KinesisVideoMedia {
|
|
8
8
|
getMedia(
|
|
9
9
|
args: GetMediaCommandInput,
|
|
10
10
|
options?: __HttpHandlerOptions
|
|
@@ -19,3 +19,6 @@ export declare class KinesisVideoMedia extends KinesisVideoMediaClient {
|
|
|
19
19
|
cb: (err: any, data?: GetMediaCommandOutput) => void
|
|
20
20
|
): void;
|
|
21
21
|
}
|
|
22
|
+
export declare class KinesisVideoMedia
|
|
23
|
+
extends KinesisVideoMediaClient
|
|
24
|
+
implements KinesisVideoMedia {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-kinesis-video-media",
|
|
3
3
|
"description": "AWS SDK for JavaScript Kinesis Video Media Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.316.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-stream-browser": "3.310.0",
|