@dolbyio/dolbyio-rest-apis-client 2.1.2 → 3.0.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.
- package/dist/communications/authentication.d.ts +10 -10
- package/dist/communications/authentication.js +16 -16
- package/dist/communications/authentication.js.map +1 -1
- package/dist/communications/conference.d.ts +0 -12
- package/dist/communications/conference.js +1 -26
- package/dist/communications/conference.js.map +1 -1
- package/dist/communications/streaming.d.ts +8 -55
- package/dist/communications/streaming.js +19 -114
- package/dist/communications/streaming.js.map +1 -1
- package/dist/media/analyze.d.ts +4 -4
- package/dist/media/analyze.js +6 -6
- package/dist/media/analyze.js.map +1 -1
- package/dist/media/analyzeSpeech.d.ts +4 -4
- package/dist/media/analyzeSpeech.js +6 -6
- package/dist/media/analyzeSpeech.js.map +1 -1
- package/dist/media/diagnose.d.ts +4 -4
- package/dist/media/diagnose.js +6 -6
- package/dist/media/diagnose.js.map +1 -1
- package/dist/media/enhance.d.ts +4 -4
- package/dist/media/enhance.js +6 -6
- package/dist/media/enhance.js.map +1 -1
- package/dist/media/internal/httpHelpers.d.ts +1 -1
- package/dist/media/internal/httpHelpers.js +5 -30
- package/dist/media/internal/httpHelpers.js.map +1 -1
- package/dist/media/io.d.ts +4 -4
- package/dist/media/io.js +6 -6
- package/dist/media/io.js.map +1 -1
- package/dist/media/jobs.d.ts +6 -6
- package/dist/media/jobs.js +9 -9
- package/dist/media/jobs.js.map +1 -1
- package/dist/media/mastering.d.ts +8 -8
- package/dist/media/mastering.js +12 -12
- package/dist/media/mastering.js.map +1 -1
- package/dist/media/platform.d.ts +5 -8
- package/dist/media/platform.js +13 -13
- package/dist/media/platform.js.map +1 -1
- package/dist/media/transcode.d.ts +4 -4
- package/dist/media/transcode.js +6 -6
- package/dist/media/transcode.js.map +1 -1
- package/dist/media/webhooks.d.ts +8 -8
- package/dist/media/webhooks.js +12 -12
- package/dist/media/webhooks.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import JwtToken from './types/jwtToken';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Generates an API token.
|
|
4
4
|
*
|
|
5
|
-
* @link https://docs.dolby.io/communications-apis/reference/get-
|
|
5
|
+
* @link https://docs.dolby.io/communications-apis/reference/get-api-token
|
|
6
6
|
*
|
|
7
|
-
* @param
|
|
8
|
-
* @param
|
|
9
|
-
* @param expiresIn
|
|
7
|
+
* @param appKey Your Dolby.io App Key.
|
|
8
|
+
* @param appSecret Your Dolby.io App Secret.
|
|
9
|
+
* @param expiresIn API token expiration time in seconds. The maximum value is 2,592,000, indicating 30 days. If no value is specified, the default is 1800, indicating 30 minutes.
|
|
10
10
|
*
|
|
11
11
|
* @returns A `JwtToken` object through a `Promise`.
|
|
12
12
|
*/
|
|
13
|
-
export declare const getApiAccessToken: (
|
|
13
|
+
export declare const getApiAccessToken: (appKey: string, appSecret: string, expiresIn: number | undefined) => Promise<JwtToken>;
|
|
14
14
|
/**
|
|
15
15
|
* Gets a client access token to authenticate a session.
|
|
16
16
|
*
|
|
17
17
|
* @link https://docs.dolby.io/communications-apis/reference/get-client-access-token
|
|
18
18
|
*
|
|
19
|
-
* @param
|
|
20
|
-
* @param
|
|
21
|
-
* @param expiresIn Access token expiration time in seconds. The maximum value is 2,592,000, indicating 30 days. If no value is specified, the default is 600, indicating
|
|
19
|
+
* @param appKey Your Dolby.io App Key.
|
|
20
|
+
* @param appSecret Your Dolby.io App Secret.
|
|
21
|
+
* @param expiresIn Access token expiration time in seconds. The maximum value is 2,592,000, indicating 30 days. If no value is specified, the default is 3,600, indicating one hour.
|
|
22
22
|
*
|
|
23
23
|
* @returns A `JwtToken` object through a `Promise`.
|
|
24
24
|
*/
|
|
25
|
-
export declare const getClientAccessToken: (
|
|
25
|
+
export declare const getClientAccessToken: (appKey: string, appSecret: string, expiresIn: number | undefined) => Promise<JwtToken>;
|
|
@@ -14,19 +14,19 @@ const httpHelpers_1 = require("../internal/httpHelpers");
|
|
|
14
14
|
/**
|
|
15
15
|
* Gets a JWT token for authorization.
|
|
16
16
|
*
|
|
17
|
-
* @param
|
|
18
|
-
* @param
|
|
17
|
+
* @param appKey Your Dolby.io Consumer Key.
|
|
18
|
+
* @param appSecret Your Dolby.io Consumer Secret.
|
|
19
19
|
* @param hostname
|
|
20
20
|
* @param path
|
|
21
21
|
*
|
|
22
22
|
* @returns A `JwtToken` object through a `Promise`.
|
|
23
23
|
*/
|
|
24
|
-
const getAccessToken = (
|
|
24
|
+
const getAccessToken = (appKey, appSecret, hostname, path, expiresIn) => __awaiter(void 0, void 0, void 0, function* () {
|
|
25
25
|
let body = 'grant_type=client_credentials';
|
|
26
26
|
if (expiresIn) {
|
|
27
27
|
body += `&expires_in=${expiresIn}`;
|
|
28
28
|
}
|
|
29
|
-
const authz = Buffer.from(`${
|
|
29
|
+
const authz = Buffer.from(`${appKey}:${appSecret}`).toString('base64');
|
|
30
30
|
const headers = {
|
|
31
31
|
'Content-Type': 'application/x-www-form-urlencoded',
|
|
32
32
|
'Cache-Control': 'no-cache',
|
|
@@ -35,18 +35,18 @@ const getAccessToken = (consumerKey, consumerSecret, hostname, path, expiresIn)
|
|
|
35
35
|
return (0, httpHelpers_1.sendPost)({ hostname, path, headers, body });
|
|
36
36
|
});
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Generates an API token.
|
|
39
39
|
*
|
|
40
|
-
* @link https://docs.dolby.io/communications-apis/reference/get-
|
|
40
|
+
* @link https://docs.dolby.io/communications-apis/reference/get-api-token
|
|
41
41
|
*
|
|
42
|
-
* @param
|
|
43
|
-
* @param
|
|
44
|
-
* @param expiresIn
|
|
42
|
+
* @param appKey Your Dolby.io App Key.
|
|
43
|
+
* @param appSecret Your Dolby.io App Secret.
|
|
44
|
+
* @param expiresIn API token expiration time in seconds. The maximum value is 2,592,000, indicating 30 days. If no value is specified, the default is 1800, indicating 30 minutes.
|
|
45
45
|
*
|
|
46
46
|
* @returns A `JwtToken` object through a `Promise`.
|
|
47
47
|
*/
|
|
48
|
-
const getApiAccessToken = (
|
|
49
|
-
return getAccessToken(
|
|
48
|
+
const getApiAccessToken = (appKey, appSecret, expiresIn) => __awaiter(void 0, void 0, void 0, function* () {
|
|
49
|
+
return getAccessToken(appKey, appSecret, 'api.dolby.io', '/v1/auth/token', expiresIn);
|
|
50
50
|
});
|
|
51
51
|
exports.getApiAccessToken = getApiAccessToken;
|
|
52
52
|
/**
|
|
@@ -54,14 +54,14 @@ exports.getApiAccessToken = getApiAccessToken;
|
|
|
54
54
|
*
|
|
55
55
|
* @link https://docs.dolby.io/communications-apis/reference/get-client-access-token
|
|
56
56
|
*
|
|
57
|
-
* @param
|
|
58
|
-
* @param
|
|
59
|
-
* @param expiresIn Access token expiration time in seconds. The maximum value is 2,592,000, indicating 30 days. If no value is specified, the default is 600, indicating
|
|
57
|
+
* @param appKey Your Dolby.io App Key.
|
|
58
|
+
* @param appSecret Your Dolby.io App Secret.
|
|
59
|
+
* @param expiresIn Access token expiration time in seconds. The maximum value is 2,592,000, indicating 30 days. If no value is specified, the default is 3,600, indicating one hour.
|
|
60
60
|
*
|
|
61
61
|
* @returns A `JwtToken` object through a `Promise`.
|
|
62
62
|
*/
|
|
63
|
-
const getClientAccessToken = (
|
|
64
|
-
return getAccessToken(
|
|
63
|
+
const getClientAccessToken = (appKey, appSecret, expiresIn) => __awaiter(void 0, void 0, void 0, function* () {
|
|
64
|
+
return getAccessToken(appKey, appSecret, 'session.voxeet.com', '/v1/oauth2/token', expiresIn);
|
|
65
65
|
});
|
|
66
66
|
exports.getClientAccessToken = getClientAccessToken;
|
|
67
67
|
//# sourceMappingURL=authentication.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication.js","sourceRoot":"","sources":["../../src/communications/authentication.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAmD;AAGnD;;;;;;;;;GASG;AACH,MAAM,cAAc,GAAG,CACnB,
|
|
1
|
+
{"version":3,"file":"authentication.js","sourceRoot":"","sources":["../../src/communications/authentication.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAmD;AAGnD;;;;;;;;;GASG;AACH,MAAM,cAAc,GAAG,CACnB,MAAc,EACd,SAAiB,EACjB,QAAgB,EAChB,IAAY,EACZ,SAA6B,EACZ,EAAE;IACnB,IAAI,IAAI,GAAG,+BAA+B,CAAC;IAC3C,IAAI,SAAS,EAAE;QACX,IAAI,IAAI,eAAe,SAAS,EAAE,CAAC;KACtC;IAED,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,IAAI,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAEvE,MAAM,OAAO,GAAG;QACZ,cAAc,EAAE,mCAAmC;QACnD,eAAe,EAAE,UAAU;QAC3B,aAAa,EAAE,SAAS,KAAK,EAAE;KAClC,CAAC;IAEF,OAAO,IAAA,sBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAsB,CAAC;AAC5E,CAAC,CAAA,CAAC;AAEF;;;;;;;;;;GAUG;AACI,MAAM,iBAAiB,GAAG,CAAO,MAAc,EAAE,SAAiB,EAAE,SAA6B,EAAqB,EAAE;IAC3H,OAAO,cAAc,CAAC,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,gBAAgB,EAAE,SAAS,CAAC,CAAC;AAC1F,CAAC,CAAA,CAAC;AAFW,QAAA,iBAAiB,qBAE5B;AAEF;;;;;;;;;;GAUG;AACI,MAAM,oBAAoB,GAAG,CAAO,MAAc,EAAE,SAAiB,EAAE,SAA6B,EAAqB,EAAE;IAC9H,OAAO,cAAc,CAAC,MAAM,EAAE,SAAS,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,SAAS,CAAC,CAAC;AAClG,CAAC,CAAA,CAAC;AAFW,QAAA,oBAAoB,wBAE/B"}
|
|
@@ -8,7 +8,6 @@ import Participant from './types/participant';
|
|
|
8
8
|
* @link https://docs.dolby.io/communications-apis/reference/create-conference
|
|
9
9
|
*
|
|
10
10
|
* @param accessToken Access token to use for authentication.
|
|
11
|
-
* @param ownerExternalId External ID of the owner of the conference.
|
|
12
11
|
* @param options Options to create the conference.
|
|
13
12
|
*
|
|
14
13
|
* @returns A `Conference` object through a `Promise`.
|
|
@@ -81,14 +80,3 @@ export declare const updatePermissions: (accessToken: JwtToken, conferenceId: st
|
|
|
81
80
|
* @param conferenceId Identifier of the conference.
|
|
82
81
|
*/
|
|
83
82
|
export declare const terminate: (accessToken: JwtToken, conferenceId: string) => Promise<void>;
|
|
84
|
-
/**
|
|
85
|
-
* @deprecated
|
|
86
|
-
* Destroys an ongoing conference and removes all remaining participants from the conference.
|
|
87
|
-
*
|
|
88
|
-
* @link https://docs.dolby.io/communications-apis/reference/destroy-conference
|
|
89
|
-
*
|
|
90
|
-
* @param consumerKey Your Dolby.io Consumer Key.
|
|
91
|
-
* @param consumerSecret Your Dolby.io Consumer Secret.
|
|
92
|
-
* @param conferenceId Identifier of the conference.
|
|
93
|
-
*/
|
|
94
|
-
export declare const destroy: (consumerKey: string, consumerSecret: string, conferenceId: string) => Promise<void>;
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.terminate = exports.updatePermissions = exports.setSpatialListenersAudio = exports.sendMessage = exports.kick = exports.invite = exports.createConference = void 0;
|
|
13
13
|
const httpHelpers_1 = require("../internal/httpHelpers");
|
|
14
14
|
const rtcpMode_1 = require("./types/rtcpMode");
|
|
15
15
|
/**
|
|
@@ -18,7 +18,6 @@ const rtcpMode_1 = require("./types/rtcpMode");
|
|
|
18
18
|
* @link https://docs.dolby.io/communications-apis/reference/create-conference
|
|
19
19
|
*
|
|
20
20
|
* @param accessToken Access token to use for authentication.
|
|
21
|
-
* @param ownerExternalId External ID of the owner of the conference.
|
|
22
21
|
* @param options Options to create the conference.
|
|
23
22
|
*
|
|
24
23
|
* @returns A `Conference` object through a `Promise`.
|
|
@@ -250,28 +249,4 @@ const terminate = (accessToken, conferenceId) => __awaiter(void 0, void 0, void
|
|
|
250
249
|
yield (0, httpHelpers_1.sendDelete)(options);
|
|
251
250
|
});
|
|
252
251
|
exports.terminate = terminate;
|
|
253
|
-
/**
|
|
254
|
-
* @deprecated
|
|
255
|
-
* Destroys an ongoing conference and removes all remaining participants from the conference.
|
|
256
|
-
*
|
|
257
|
-
* @link https://docs.dolby.io/communications-apis/reference/destroy-conference
|
|
258
|
-
*
|
|
259
|
-
* @param consumerKey Your Dolby.io Consumer Key.
|
|
260
|
-
* @param consumerSecret Your Dolby.io Consumer Secret.
|
|
261
|
-
* @param conferenceId Identifier of the conference.
|
|
262
|
-
*/
|
|
263
|
-
const destroy = (consumerKey, consumerSecret, conferenceId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
264
|
-
const authz = Buffer.from(`${consumerKey}:${consumerSecret}`).toString('base64');
|
|
265
|
-
const options = {
|
|
266
|
-
hostname: 'session.voxeet.com',
|
|
267
|
-
path: `/v1/conferences/${conferenceId}/destroy`,
|
|
268
|
-
headers: {
|
|
269
|
-
Accept: 'application/json',
|
|
270
|
-
'Content-Type': 'application/json',
|
|
271
|
-
Authorization: `Basic ${authz}`,
|
|
272
|
-
},
|
|
273
|
-
};
|
|
274
|
-
yield (0, httpHelpers_1.sendPost)(options);
|
|
275
|
-
});
|
|
276
|
-
exports.destroy = destroy;
|
|
277
252
|
//# sourceMappingURL=conference.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conference.js","sourceRoot":"","sources":["../../src/communications/conference.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAwE;AAKxE,+CAA4C;AAE5C
|
|
1
|
+
{"version":3,"file":"conference.js","sourceRoot":"","sources":["../../src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|
|
|
11
11
|
* @param rtmpUrls List of the RTMP endpoints where to send the RTMP stream to.
|
|
12
12
|
*/
|
|
13
13
|
export declare const startRtmp: (accessToken: JwtToken, conferenceId: string, rtmpUrls: string | Array<string>) => Promise<void>;
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated
|
|
16
|
-
* Starts an RTMP live stream. Once the Dolby.io Communication API service started streaming to the target url,
|
|
17
|
-
* a `Stream.Rtmp.InProgress` Webhook event will be sent.
|
|
18
|
-
*
|
|
19
|
-
* @link https://docs.dolby.io/communications-apis/reference/start-rtmp-v1
|
|
20
|
-
*
|
|
21
|
-
* @param consumerKey Your Dolby.io Consumer Key.
|
|
22
|
-
* @param consumerSecret Your Dolby.io Consumer Secret.
|
|
23
|
-
* @param conferenceId Identifier of the conference.
|
|
24
|
-
* @param rtmpUrls List of the RTMP endpoints where to send the RTMP stream to.
|
|
25
|
-
*/
|
|
26
|
-
export declare const startRtmpBasicAuth: (consumerKey: string, consumerSecret: string, conferenceId: string, rtmpUrls: string | Array<string>) => Promise<void>;
|
|
27
14
|
/**
|
|
28
15
|
* Stops an RTMP stream. You must use this API if the conference is protected using enhanced conference access control.
|
|
29
16
|
*
|
|
@@ -34,56 +21,22 @@ export declare const startRtmpBasicAuth: (consumerKey: string, consumerSecret: s
|
|
|
34
21
|
*/
|
|
35
22
|
export declare const stopRtmp: (accessToken: JwtToken, conferenceId: string) => Promise<void>;
|
|
36
23
|
/**
|
|
37
|
-
*
|
|
38
|
-
* Stops an RTMP stream.
|
|
39
|
-
*
|
|
40
|
-
* @link https://docs.dolby.io/communications-apis/reference/stop-rtmp-v1
|
|
41
|
-
*
|
|
42
|
-
* @param consumerKey Your Dolby.io Consumer Key.
|
|
43
|
-
* @param consumerSecret Your Dolby.io Consumer Secret.
|
|
44
|
-
* @param conferenceId Identifier of the conference.
|
|
45
|
-
*/
|
|
46
|
-
export declare const stopRtmpBasicAuth: (consumerKey: string, consumerSecret: string, conferenceId: string) => Promise<void>;
|
|
47
|
-
/**
|
|
48
|
-
* @deprecated
|
|
49
|
-
* Starts an HTTP Live Stream (HLS). The HLS URL is included in the Stream.Hls.InProgress Webhook event.
|
|
50
|
-
* You must use this API if the conference is protected using enhanced conference access control.
|
|
24
|
+
* Starts a Low Latency Stream to Millicast.
|
|
51
25
|
*
|
|
52
|
-
* @link https://docs.dolby.io/communications-apis/reference/start-
|
|
26
|
+
* @link https://docs.dolby.io/communications-apis/reference/start-lls
|
|
53
27
|
*
|
|
54
28
|
* @param accessToken Access token to use for authentication.
|
|
55
29
|
* @param conferenceId Identifier of the conference.
|
|
30
|
+
* @param streamName The Millicast stream name to which the conference will broadcasted.
|
|
31
|
+
* @param publishingToken The Millicast publishing token used to identify the broadcaster.
|
|
56
32
|
*/
|
|
57
|
-
export declare const
|
|
58
|
-
/**
|
|
59
|
-
* @deprecated
|
|
60
|
-
* Starts an HTTP Live Stream (HLS). The HLS URL is included in the Stream.Hls.InProgress Webhook event.
|
|
61
|
-
*
|
|
62
|
-
* @link https://docs.dolby.io/communications-apis/reference/start-hls-v1
|
|
63
|
-
*
|
|
64
|
-
* @param consumerKey Your Dolby.io Consumer Key.
|
|
65
|
-
* @param consumerSecret Your Dolby.io Consumer Secret.
|
|
66
|
-
* @param conferenceId Identifier of the conference.
|
|
67
|
-
*/
|
|
68
|
-
export declare const startHlsBasicAuth: (consumerKey: string, consumerSecret: string, conferenceId: string) => Promise<void>;
|
|
33
|
+
export declare const startLls: (accessToken: JwtToken, conferenceId: string, streamName: string, publishingToken: string) => Promise<void>;
|
|
69
34
|
/**
|
|
70
|
-
*
|
|
71
|
-
* Stops an HTTP Live Stream (HLS). You must use this API if the conference is protected using enhanced conference access control.
|
|
35
|
+
* Stops an existing Low Latency Stream to Millicast.
|
|
72
36
|
*
|
|
73
|
-
* @link https://docs.dolby.io/communications-apis/reference/stop-
|
|
37
|
+
* @link https://docs.dolby.io/communications-apis/reference/stop-lls
|
|
74
38
|
*
|
|
75
39
|
* @param accessToken Access token to use for authentication.
|
|
76
40
|
* @param conferenceId Identifier of the conference.
|
|
77
41
|
*/
|
|
78
|
-
export declare const
|
|
79
|
-
/**
|
|
80
|
-
* @deprecated
|
|
81
|
-
* Stops an HTTP Live Stream (HLS).
|
|
82
|
-
*
|
|
83
|
-
* @link https://docs.dolby.io/communications-apis/reference/stop-hls-v1
|
|
84
|
-
*
|
|
85
|
-
* @param consumerKey Your Dolby.io Consumer Key.
|
|
86
|
-
* @param consumerSecret Your Dolby.io Consumer Secret.
|
|
87
|
-
* @param conferenceId Identifier of the conference.
|
|
88
|
-
*/
|
|
89
|
-
export declare const stopHlsBasicAuth: (consumerKey: string, consumerSecret: string, conferenceId: string) => Promise<void>;
|
|
42
|
+
export declare const stopLls: (accessToken: JwtToken, conferenceId: string) => Promise<void>;
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.stopLls = exports.startLls = exports.stopRtmp = exports.startRtmp = void 0;
|
|
13
13
|
const httpHelpers_1 = require("../internal/httpHelpers");
|
|
14
14
|
/**
|
|
15
15
|
* Starts an RTMP live stream. Once the Dolby.io Communication API service started streaming to the target url,
|
|
@@ -33,38 +33,11 @@ const startRtmp = (accessToken, conferenceId, rtmpUrls) => __awaiter(void 0, voi
|
|
|
33
33
|
'Content-Type': 'application/json',
|
|
34
34
|
Authorization: `${accessToken.token_type} ${accessToken.access_token}`,
|
|
35
35
|
},
|
|
36
|
+
body,
|
|
36
37
|
};
|
|
37
38
|
yield (0, httpHelpers_1.sendPost)(options);
|
|
38
39
|
});
|
|
39
40
|
exports.startRtmp = startRtmp;
|
|
40
|
-
/**
|
|
41
|
-
* @deprecated
|
|
42
|
-
* Starts an RTMP live stream. Once the Dolby.io Communication API service started streaming to the target url,
|
|
43
|
-
* a `Stream.Rtmp.InProgress` Webhook event will be sent.
|
|
44
|
-
*
|
|
45
|
-
* @link https://docs.dolby.io/communications-apis/reference/start-rtmp-v1
|
|
46
|
-
*
|
|
47
|
-
* @param consumerKey Your Dolby.io Consumer Key.
|
|
48
|
-
* @param consumerSecret Your Dolby.io Consumer Secret.
|
|
49
|
-
* @param conferenceId Identifier of the conference.
|
|
50
|
-
* @param rtmpUrls List of the RTMP endpoints where to send the RTMP stream to.
|
|
51
|
-
*/
|
|
52
|
-
const startRtmpBasicAuth = (consumerKey, consumerSecret, conferenceId, rtmpUrls) => __awaiter(void 0, void 0, void 0, function* () {
|
|
53
|
-
const authz = Buffer.from(`${consumerKey}:${consumerSecret}`).toString('base64');
|
|
54
|
-
const uri = typeof rtmpUrls === 'string' ? rtmpUrls : rtmpUrls.join('|');
|
|
55
|
-
const body = JSON.stringify({ uri: uri });
|
|
56
|
-
const options = {
|
|
57
|
-
hostname: 'session.voxeet.com',
|
|
58
|
-
path: `/v1/api/conferences/mix/${conferenceId}/live/start`,
|
|
59
|
-
headers: {
|
|
60
|
-
Accept: 'application/json',
|
|
61
|
-
'Content-Type': 'application/json',
|
|
62
|
-
Authorization: `Basic ${authz}`,
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
yield (0, httpHelpers_1.sendPost)(options);
|
|
66
|
-
});
|
|
67
|
-
exports.startRtmpBasicAuth = startRtmpBasicAuth;
|
|
68
41
|
/**
|
|
69
42
|
* Stops an RTMP stream. You must use this API if the conference is protected using enhanced conference access control.
|
|
70
43
|
*
|
|
@@ -87,89 +60,45 @@ const stopRtmp = (accessToken, conferenceId) => __awaiter(void 0, void 0, void 0
|
|
|
87
60
|
});
|
|
88
61
|
exports.stopRtmp = stopRtmp;
|
|
89
62
|
/**
|
|
90
|
-
*
|
|
91
|
-
* Stops an RTMP stream.
|
|
63
|
+
* Starts a Low Latency Stream to Millicast.
|
|
92
64
|
*
|
|
93
|
-
* @link https://docs.dolby.io/communications-apis/reference/
|
|
94
|
-
*
|
|
95
|
-
* @param consumerKey Your Dolby.io Consumer Key.
|
|
96
|
-
* @param consumerSecret Your Dolby.io Consumer Secret.
|
|
97
|
-
* @param conferenceId Identifier of the conference.
|
|
98
|
-
*/
|
|
99
|
-
const stopRtmpBasicAuth = (consumerKey, consumerSecret, conferenceId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
100
|
-
const authz = Buffer.from(`${consumerKey}:${consumerSecret}`).toString('base64');
|
|
101
|
-
const options = {
|
|
102
|
-
hostname: 'session.voxeet.com',
|
|
103
|
-
path: `/v1/api/conferences/mix/${conferenceId}/live/stop`,
|
|
104
|
-
headers: {
|
|
105
|
-
Accept: 'application/json',
|
|
106
|
-
'Content-Type': 'application/json',
|
|
107
|
-
Authorization: `Basic ${authz}`,
|
|
108
|
-
},
|
|
109
|
-
};
|
|
110
|
-
yield (0, httpHelpers_1.sendPost)(options);
|
|
111
|
-
});
|
|
112
|
-
exports.stopRtmpBasicAuth = stopRtmpBasicAuth;
|
|
113
|
-
/**
|
|
114
|
-
* @deprecated
|
|
115
|
-
* Starts an HTTP Live Stream (HLS). The HLS URL is included in the Stream.Hls.InProgress Webhook event.
|
|
116
|
-
* You must use this API if the conference is protected using enhanced conference access control.
|
|
117
|
-
*
|
|
118
|
-
* @link https://docs.dolby.io/communications-apis/reference/start-hls
|
|
65
|
+
* @link https://docs.dolby.io/communications-apis/reference/start-lls
|
|
119
66
|
*
|
|
120
67
|
* @param accessToken Access token to use for authentication.
|
|
121
68
|
* @param conferenceId Identifier of the conference.
|
|
69
|
+
* @param streamName The Millicast stream name to which the conference will broadcasted.
|
|
70
|
+
* @param publishingToken The Millicast publishing token used to identify the broadcaster.
|
|
122
71
|
*/
|
|
123
|
-
const
|
|
72
|
+
const startLls = (accessToken, conferenceId, streamName, publishingToken) => __awaiter(void 0, void 0, void 0, function* () {
|
|
73
|
+
const body = JSON.stringify({
|
|
74
|
+
streamName: streamName,
|
|
75
|
+
publishingToken: publishingToken,
|
|
76
|
+
});
|
|
124
77
|
const options = {
|
|
125
78
|
hostname: 'api.voxeet.com',
|
|
126
|
-
path: `/v2/conferences/mix/${conferenceId}/
|
|
79
|
+
path: `/v2/conferences/mix/${conferenceId}/lls/start`,
|
|
127
80
|
headers: {
|
|
128
81
|
Accept: 'application/json',
|
|
129
82
|
'Content-Type': 'application/json',
|
|
130
83
|
Authorization: `${accessToken.token_type} ${accessToken.access_token}`,
|
|
131
84
|
},
|
|
85
|
+
body,
|
|
132
86
|
};
|
|
133
87
|
yield (0, httpHelpers_1.sendPost)(options);
|
|
134
88
|
});
|
|
135
|
-
exports.
|
|
136
|
-
/**
|
|
137
|
-
* @deprecated
|
|
138
|
-
* Starts an HTTP Live Stream (HLS). The HLS URL is included in the Stream.Hls.InProgress Webhook event.
|
|
139
|
-
*
|
|
140
|
-
* @link https://docs.dolby.io/communications-apis/reference/start-hls-v1
|
|
141
|
-
*
|
|
142
|
-
* @param consumerKey Your Dolby.io Consumer Key.
|
|
143
|
-
* @param consumerSecret Your Dolby.io Consumer Secret.
|
|
144
|
-
* @param conferenceId Identifier of the conference.
|
|
145
|
-
*/
|
|
146
|
-
const startHlsBasicAuth = (consumerKey, consumerSecret, conferenceId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
147
|
-
const authz = Buffer.from(`${consumerKey}:${consumerSecret}`).toString('base64');
|
|
148
|
-
const options = {
|
|
149
|
-
hostname: 'session.voxeet.com',
|
|
150
|
-
path: `/v1/api/conferences/mix/${conferenceId}/hls/start`,
|
|
151
|
-
headers: {
|
|
152
|
-
Accept: 'application/json',
|
|
153
|
-
'Content-Type': 'application/json',
|
|
154
|
-
Authorization: `Basic ${authz}`,
|
|
155
|
-
},
|
|
156
|
-
};
|
|
157
|
-
yield (0, httpHelpers_1.sendPost)(options);
|
|
158
|
-
});
|
|
159
|
-
exports.startHlsBasicAuth = startHlsBasicAuth;
|
|
89
|
+
exports.startLls = startLls;
|
|
160
90
|
/**
|
|
161
|
-
*
|
|
162
|
-
* Stops an HTTP Live Stream (HLS). You must use this API if the conference is protected using enhanced conference access control.
|
|
91
|
+
* Stops an existing Low Latency Stream to Millicast.
|
|
163
92
|
*
|
|
164
|
-
* @link https://docs.dolby.io/communications-apis/reference/stop-
|
|
93
|
+
* @link https://docs.dolby.io/communications-apis/reference/stop-lls
|
|
165
94
|
*
|
|
166
95
|
* @param accessToken Access token to use for authentication.
|
|
167
96
|
* @param conferenceId Identifier of the conference.
|
|
168
97
|
*/
|
|
169
|
-
const
|
|
98
|
+
const stopLls = (accessToken, conferenceId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
170
99
|
const options = {
|
|
171
100
|
hostname: 'api.voxeet.com',
|
|
172
|
-
path: `/v2/conferences/mix/${conferenceId}/
|
|
101
|
+
path: `/v2/conferences/mix/${conferenceId}/lls/stop`,
|
|
173
102
|
headers: {
|
|
174
103
|
Accept: 'application/json',
|
|
175
104
|
'Content-Type': 'application/json',
|
|
@@ -178,29 +107,5 @@ const stopHls = (accessToken, conferenceId) => __awaiter(void 0, void 0, void 0,
|
|
|
178
107
|
};
|
|
179
108
|
yield (0, httpHelpers_1.sendPost)(options);
|
|
180
109
|
});
|
|
181
|
-
exports.
|
|
182
|
-
/**
|
|
183
|
-
* @deprecated
|
|
184
|
-
* Stops an HTTP Live Stream (HLS).
|
|
185
|
-
*
|
|
186
|
-
* @link https://docs.dolby.io/communications-apis/reference/stop-hls-v1
|
|
187
|
-
*
|
|
188
|
-
* @param consumerKey Your Dolby.io Consumer Key.
|
|
189
|
-
* @param consumerSecret Your Dolby.io Consumer Secret.
|
|
190
|
-
* @param conferenceId Identifier of the conference.
|
|
191
|
-
*/
|
|
192
|
-
const stopHlsBasicAuth = (consumerKey, consumerSecret, conferenceId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
193
|
-
const authz = Buffer.from(`${consumerKey}:${consumerSecret}`).toString('base64');
|
|
194
|
-
const options = {
|
|
195
|
-
hostname: 'session.voxeet.com',
|
|
196
|
-
path: `/v1/api/conferences/mix/${conferenceId}/hls/stop`,
|
|
197
|
-
headers: {
|
|
198
|
-
Accept: 'application/json',
|
|
199
|
-
'Content-Type': 'application/json',
|
|
200
|
-
Authorization: `Basic ${authz}`,
|
|
201
|
-
},
|
|
202
|
-
};
|
|
203
|
-
yield (0, httpHelpers_1.sendPost)(options);
|
|
204
|
-
});
|
|
205
|
-
exports.stopHlsBasicAuth = stopHlsBasicAuth;
|
|
110
|
+
exports.stopLls = stopLls;
|
|
206
111
|
//# sourceMappingURL=streaming.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streaming.js","sourceRoot":"","sources":["../../src/communications/streaming.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAmD;AAGnD;;;;;;;;;;GAUG;AACI,MAAM,SAAS,GAAG,CAAO,WAAqB,EAAE,YAAoB,EAAE,QAAgC,EAAiB,EAAE;IAC5H,MAAM,GAAG,GAAG,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACzE,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;IAE1C,MAAM,OAAO,GAAG;QACZ,QAAQ,EAAE,gBAAgB;QAC1B,IAAI,EAAE,uBAAuB,YAAY,aAAa;QACtD,OAAO,EAAE;YACL,MAAM,EAAE,kBAAkB;YAC1B,cAAc,EAAE,kBAAkB;YAClC,aAAa,EAAE,GAAG,WAAW,CAAC,UAAU,IAAI,WAAW,CAAC,YAAY,EAAE;SACzE;
|
|
1
|
+
{"version":3,"file":"streaming.js","sourceRoot":"","sources":["../../src/communications/streaming.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAmD;AAGnD;;;;;;;;;;GAUG;AACI,MAAM,SAAS,GAAG,CAAO,WAAqB,EAAE,YAAoB,EAAE,QAAgC,EAAiB,EAAE;IAC5H,MAAM,GAAG,GAAG,OAAO,Q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MAAM,OAAO,GAAG;QACZ,QAAQ,EAAE,gBAAgB;QAC1B,IAAI,EAAE,uBAAuB,YAAY,YAAY;QACrD,OAAO,EAAE;YACL,MAAM,EAAE,kBAAkB;YAC1B,cAAc,EAAE,kBAAkB;YAClC,aAAa,EAAE,GAAG,WAAW,CAAC,UAAU,IAAI,WAAW,CAAC,YAAY,EAAE;SACzE;QACD,IAAI;KACP,CAAC;IAEF,MAAM,IAAA,sBAAQ,EAAC,OAAO,CAAC,CAAC;AAC5B,CAAC,CAAA,CAAC;AAlBY,QAAA,QAAQ,YAkBpB;AAEF;;;;;;;GAOG;AACK,MAAM,OAAO,GAAG,CAAO,WAAqB,EAAE,YAAoB,EAAiB,EAAE;IACzF,MAAM,OAAO,GAAG;QACZ,QAAQ,EAAE,gBAAgB;QAC1B,IAAI,EAAE,uBAAuB,YAAY,WAAW;QACpD,OAAO,EAAE;YACL,MAAM,EAAE,kBAAkB;YAC1B,cAAc,EAAE,kBAAkB;YAClC,aAAa,EAAE,GAAG,WAAW,CAAC,UAAU,IAAI,WAAW,CAAC,YAAY,EAAE;SACzE;KACJ,CAAC;IAEF,MAAM,IAAA,sBAAQ,EAAC,OAAO,CAAC,CAAC;AAC5B,CAAC,CAAA,CAAC;AAZY,QAAA,OAAO,WAYnB"}
|
package/dist/media/analyze.d.ts
CHANGED
|
@@ -20,12 +20,12 @@ import { AnalyzeJob } from './types/analyze';
|
|
|
20
20
|
*
|
|
21
21
|
* Media content with duration less than 2 seconds will not be processed. The API will return an ERROR in this case.
|
|
22
22
|
*
|
|
23
|
-
* @param
|
|
23
|
+
* @param accessToken Access token to use for authentication.
|
|
24
24
|
* @param jobContent Content of the job description as a JSON payload. You can find the definition at this URL: https://docs.dolby.io/media-apis/reference/media-analyze-post
|
|
25
25
|
*
|
|
26
26
|
* @returns The job identifier through a `Promise`.
|
|
27
27
|
*/
|
|
28
|
-
export declare const start: (
|
|
28
|
+
export declare const start: (accessToken: JwtToken, jobContent: string) => Promise<string | null>;
|
|
29
29
|
/**
|
|
30
30
|
* Gets Analyze Status.
|
|
31
31
|
*
|
|
@@ -35,9 +35,9 @@ export declare const start: (auth: string | JwtToken, jobContent: string) => Pro
|
|
|
35
35
|
*
|
|
36
36
|
* @link https://docs.dolby.io/media-apis/reference/media-analyze-get
|
|
37
37
|
*
|
|
38
|
-
* @param
|
|
38
|
+
* @param accessToken Access token to use for authentication.
|
|
39
39
|
* @param jobId Identifier of the job to retrieve.
|
|
40
40
|
*
|
|
41
41
|
* @returns The `AnalyzeJob` object through a `Promise`.
|
|
42
42
|
*/
|
|
43
|
-
export declare const getResults: (
|
|
43
|
+
export declare const getResults: (accessToken: JwtToken, jobId: string) => Promise<AnalyzeJob>;
|
package/dist/media/analyze.js
CHANGED
|
@@ -31,17 +31,17 @@ const httpHelpers_1 = require("./internal/httpHelpers");
|
|
|
31
31
|
*
|
|
32
32
|
* Media content with duration less than 2 seconds will not be processed. The API will return an ERROR in this case.
|
|
33
33
|
*
|
|
34
|
-
* @param
|
|
34
|
+
* @param accessToken Access token to use for authentication.
|
|
35
35
|
* @param jobContent Content of the job description as a JSON payload. You can find the definition at this URL: https://docs.dolby.io/media-apis/reference/media-analyze-post
|
|
36
36
|
*
|
|
37
37
|
* @returns The job identifier through a `Promise`.
|
|
38
38
|
*/
|
|
39
|
-
const start = (
|
|
39
|
+
const start = (accessToken, jobContent) => __awaiter(void 0, void 0, void 0, function* () {
|
|
40
40
|
const requestOptions = {
|
|
41
41
|
hostname: 'api.dolby.com',
|
|
42
42
|
path: '/media/analyze',
|
|
43
43
|
headers: {},
|
|
44
|
-
|
|
44
|
+
accessToken,
|
|
45
45
|
body: jobContent,
|
|
46
46
|
};
|
|
47
47
|
const response = yield (0, httpHelpers_1.sendPost)(requestOptions);
|
|
@@ -60,12 +60,12 @@ exports.start = start;
|
|
|
60
60
|
*
|
|
61
61
|
* @link https://docs.dolby.io/media-apis/reference/media-analyze-get
|
|
62
62
|
*
|
|
63
|
-
* @param
|
|
63
|
+
* @param accessToken Access token to use for authentication.
|
|
64
64
|
* @param jobId Identifier of the job to retrieve.
|
|
65
65
|
*
|
|
66
66
|
* @returns The `AnalyzeJob` object through a `Promise`.
|
|
67
67
|
*/
|
|
68
|
-
const getResults = (
|
|
68
|
+
const getResults = (accessToken, jobId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
69
69
|
const requestOptions = {
|
|
70
70
|
hostname: 'api.dolby.com',
|
|
71
71
|
path: '/media/analyze',
|
|
@@ -73,7 +73,7 @@ const getResults = (auth, jobId) => __awaiter(void 0, void 0, void 0, function*
|
|
|
73
73
|
job_id: jobId,
|
|
74
74
|
},
|
|
75
75
|
headers: {},
|
|
76
|
-
|
|
76
|
+
accessToken,
|
|
77
77
|
};
|
|
78
78
|
const response = yield (0, httpHelpers_1.sendGet)(requestOptions);
|
|
79
79
|
return response;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analyze.js","sourceRoot":"","sources":["../../src/media/analyze.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wDAA+E;AAI/E;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACI,MAAM,KAAK,GAAG,CAAO,
|
|
1
|
+
{"version":3,"file":"analyze.js","sourceRoot":"","sources":["../../src/media/analyze.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wDAA+E;AAI/E;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACI,MAAM,KAAK,GAAG,CAAO,WAAqB,EAAE,UAAkB,EAA0B,EAAE;IAC7F,MAAM,cAAc,GAAuB;QACvC,QAAQ,EAAE,eAAe;QACzB,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,EAAE;QACX,WAAW;QACX,IAAI,EAAE,UAAU;KACnB,CAAC;IAEF,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAQ,EAAC,cAAc,CAAC,CAAC;IAChD,IAAI,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE;QACnC,OAAO,QAAQ,CAAC,QAAQ,CAAC,CAAC;KAC7B;IAED,OAAO,IAAI,CAAC;AAChB,CAAC,CAAA,CAAC;AAfW,QAAA,KAAK,SAehB;AAEF;;;;;;;;;;;;;GAaG;AACI,MAAM,UAAU,GAAG,CAAO,WAAqB,EAAE,KAAa,EAAuB,EAAE;IAC1F,MAAM,cAAc,GAAuB;QACvC,QAAQ,EAAE,eAAe;QACzB,IAAI,EAAE,gBAAgB;QACtB,MAAM,EAAE;YACJ,MAAM,EAAE,KAAK;SAChB;QACD,OAAO,EAAE,EAAE;QACX,WAAW;KACd,CAAC;IAEF,MAAM,QAAQ,GAAG,MAAM,IAAA,qBAAO,EAAC,cAAc,CAAC,CAAC;IAC/C,OAAO,QAAsB,CAAC;AAClC,CAAC,CAAA,CAAC;AAbW,QAAA,UAAU,cAarB"}
|
|
@@ -14,12 +14,12 @@ import { AnalyzeSpeechJob } from './types/analyzeSpeech';
|
|
|
14
14
|
* If you have feedback on how you'd like to use the API please reach out to share your feedback with our team.
|
|
15
15
|
* https://dolby.io/contact
|
|
16
16
|
*
|
|
17
|
-
* @param
|
|
17
|
+
* @param accessToken Access token to use for authentication.
|
|
18
18
|
* @param jobContent Content of the job description as a JSON payload. You can find the definition at this URL: https://docs.dolby.io/media-apis/reference/media-analyze-speech-post
|
|
19
19
|
*
|
|
20
20
|
* @returns The job identifier through a `Promise`.
|
|
21
21
|
*/
|
|
22
|
-
export declare const start: (
|
|
22
|
+
export declare const start: (accessToken: JwtToken, jobContent: string) => Promise<string | null>;
|
|
23
23
|
/**
|
|
24
24
|
* Gets Speech Analytics Status.
|
|
25
25
|
*
|
|
@@ -29,9 +29,9 @@ export declare const start: (auth: string | JwtToken, jobContent: string) => Pro
|
|
|
29
29
|
*
|
|
30
30
|
* @link https://docs.dolby.io/media-apis/reference/media-analyze-speech-get
|
|
31
31
|
*
|
|
32
|
-
* @param
|
|
32
|
+
* @param accessToken Access token to use for authentication.
|
|
33
33
|
* @param jobId Identifier of the job to retrieve.
|
|
34
34
|
*
|
|
35
35
|
* @returns The `AnalyzeSpeechJob` object through a `Promise`.
|
|
36
36
|
*/
|
|
37
|
-
export declare const getResults: (
|
|
37
|
+
export declare const getResults: (accessToken: JwtToken, jobId: string) => Promise<AnalyzeSpeechJob>;
|