@dolbyio/dolbyio-rest-apis-client 3.4.4 → 3.4.5
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/LICENSE
CHANGED
|
@@ -23,11 +23,12 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
|
23
23
|
* - `null`: uses the layout URL configured in the dashboard (if no URL is set in the dashboard, then uses the Dolby.io default);
|
|
24
24
|
* - `default`: uses the Dolby.io default layout;
|
|
25
25
|
* - URL string: uses this layout URL
|
|
26
|
+
* @param layoutName Defines a name for the given layout URL, which makes layout identification easier for customers especially when the layout URL is not explicit.
|
|
26
27
|
*
|
|
27
28
|
* @returns A `RemixStatus` object through a `Promise`.
|
|
28
29
|
*/
|
|
29
30
|
var start = /*#__PURE__*/function () {
|
|
30
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(accessToken, conferenceId, layoutUrl) {
|
|
31
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(accessToken, conferenceId, layoutUrl, layoutName) {
|
|
31
32
|
var body, options, response;
|
|
32
33
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33
34
|
while (1) {
|
|
@@ -35,6 +36,7 @@ var start = /*#__PURE__*/function () {
|
|
|
35
36
|
case 0:
|
|
36
37
|
body = {};
|
|
37
38
|
if (layoutUrl) body['layoutUrl'] = layoutUrl;
|
|
39
|
+
if (layoutName) body['layoutName'] = layoutName;
|
|
38
40
|
options = {
|
|
39
41
|
hostname: _urls.COMMS_HOSTNAME,
|
|
40
42
|
path: "/v2/conferences/mix/".concat(conferenceId, "/remix/start"),
|
|
@@ -45,19 +47,19 @@ var start = /*#__PURE__*/function () {
|
|
|
45
47
|
},
|
|
46
48
|
body: JSON.stringify(body)
|
|
47
49
|
};
|
|
48
|
-
_context.next =
|
|
50
|
+
_context.next = 6;
|
|
49
51
|
return (0, _httpHelpers.sendPost)(options);
|
|
50
|
-
case
|
|
52
|
+
case 6:
|
|
51
53
|
response = _context.sent;
|
|
52
54
|
return _context.abrupt("return", response);
|
|
53
|
-
case
|
|
55
|
+
case 8:
|
|
54
56
|
case "end":
|
|
55
57
|
return _context.stop();
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
60
|
}, _callee);
|
|
59
61
|
}));
|
|
60
|
-
return function start(_x, _x2, _x3) {
|
|
62
|
+
return function start(_x, _x2, _x3, _x4) {
|
|
61
63
|
return _ref.apply(this, arguments);
|
|
62
64
|
};
|
|
63
65
|
}();
|
|
@@ -100,7 +102,7 @@ var getStatus = /*#__PURE__*/function () {
|
|
|
100
102
|
}
|
|
101
103
|
}, _callee2);
|
|
102
104
|
}));
|
|
103
|
-
return function getStatus(
|
|
105
|
+
return function getStatus(_x5, _x6) {
|
|
104
106
|
return _ref2.apply(this, arguments);
|
|
105
107
|
};
|
|
106
108
|
}();
|
|
@@ -13,8 +13,9 @@ import JwtToken from '../types/jwtToken';
|
|
|
13
13
|
* - `null`: uses the layout URL configured in the dashboard (if no URL is set in the dashboard, then uses the Dolby.io default);
|
|
14
14
|
* - `default`: uses the Dolby.io default layout;
|
|
15
15
|
* - URL string: uses this layout URL
|
|
16
|
+
* @param layoutName Defines a name for the given layout URL, which makes layout identification easier for customers especially when the layout URL is not explicit.
|
|
16
17
|
*/
|
|
17
|
-
export declare const startRtmp: (accessToken: JwtToken, conferenceId: string, rtmpUrl: string, layoutUrl?: string) => Promise<void>;
|
|
18
|
+
export declare const startRtmp: (accessToken: JwtToken, conferenceId: string, rtmpUrl: string, layoutUrl?: string, layoutName?: string) => Promise<void>;
|
|
18
19
|
/**
|
|
19
20
|
* Stops the RTMP stream of the specified conference.
|
|
20
21
|
*
|
|
@@ -37,8 +38,9 @@ export declare const stopRtmp: (accessToken: JwtToken, conferenceId: string) =>
|
|
|
37
38
|
* - `null`: uses the layout URL configured in the dashboard (if no URL is set in the dashboard, then uses the Dolby.io default);
|
|
38
39
|
* - `default`: uses the Dolby.io default layout;
|
|
39
40
|
* - URL string: uses this layout URL
|
|
41
|
+
* @param layoutName Defines a name for the given layout URL, which makes layout identification easier for customers especially when the layout URL is not explicit.
|
|
40
42
|
*/
|
|
41
|
-
export declare const startRts: (accessToken: JwtToken, conferenceId: string, streamName: string, publishingToken: string, layoutUrl?: string) => Promise<void>;
|
|
43
|
+
export declare const startRts: (accessToken: JwtToken, conferenceId: string, streamName: string, publishingToken: string, layoutUrl?: string, layoutName?: string) => Promise<void>;
|
|
42
44
|
/**
|
|
43
45
|
* Stops real-time streaming to Dolby.io Real-time Streaming services.
|
|
44
46
|
*
|
|
@@ -24,9 +24,10 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
|
24
24
|
* - `null`: uses the layout URL configured in the dashboard (if no URL is set in the dashboard, then uses the Dolby.io default);
|
|
25
25
|
* - `default`: uses the Dolby.io default layout;
|
|
26
26
|
* - URL string: uses this layout URL
|
|
27
|
+
* @param layoutName Defines a name for the given layout URL, which makes layout identification easier for customers especially when the layout URL is not explicit.
|
|
27
28
|
*/
|
|
28
29
|
var startRtmp = /*#__PURE__*/function () {
|
|
29
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(accessToken, conferenceId, rtmpUrl, layoutUrl) {
|
|
30
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(accessToken, conferenceId, rtmpUrl, layoutUrl, layoutName) {
|
|
30
31
|
var body, options;
|
|
31
32
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32
33
|
while (1) {
|
|
@@ -36,6 +37,7 @@ var startRtmp = /*#__PURE__*/function () {
|
|
|
36
37
|
uri: rtmpUrl
|
|
37
38
|
};
|
|
38
39
|
if (layoutUrl) body['layoutUrl'] = layoutUrl;
|
|
40
|
+
if (layoutName) body['layoutName'] = layoutName;
|
|
39
41
|
options = {
|
|
40
42
|
hostname: _urls.COMMS_HOSTNAME,
|
|
41
43
|
path: "/v2/conferences/mix/".concat(conferenceId, "/rtmp/start"),
|
|
@@ -46,16 +48,16 @@ var startRtmp = /*#__PURE__*/function () {
|
|
|
46
48
|
},
|
|
47
49
|
body: JSON.stringify(body)
|
|
48
50
|
};
|
|
49
|
-
_context.next =
|
|
51
|
+
_context.next = 6;
|
|
50
52
|
return (0, _httpHelpers.sendPost)(options);
|
|
51
|
-
case
|
|
53
|
+
case 6:
|
|
52
54
|
case "end":
|
|
53
55
|
return _context.stop();
|
|
54
56
|
}
|
|
55
57
|
}
|
|
56
58
|
}, _callee);
|
|
57
59
|
}));
|
|
58
|
-
return function startRtmp(_x, _x2, _x3, _x4) {
|
|
60
|
+
return function startRtmp(_x, _x2, _x3, _x4, _x5) {
|
|
59
61
|
return _ref.apply(this, arguments);
|
|
60
62
|
};
|
|
61
63
|
}();
|
|
@@ -94,7 +96,7 @@ var stopRtmp = /*#__PURE__*/function () {
|
|
|
94
96
|
}
|
|
95
97
|
}, _callee2);
|
|
96
98
|
}));
|
|
97
|
-
return function stopRtmp(
|
|
99
|
+
return function stopRtmp(_x6, _x7) {
|
|
98
100
|
return _ref2.apply(this, arguments);
|
|
99
101
|
};
|
|
100
102
|
}();
|
|
@@ -112,10 +114,11 @@ var stopRtmp = /*#__PURE__*/function () {
|
|
|
112
114
|
* - `null`: uses the layout URL configured in the dashboard (if no URL is set in the dashboard, then uses the Dolby.io default);
|
|
113
115
|
* - `default`: uses the Dolby.io default layout;
|
|
114
116
|
* - URL string: uses this layout URL
|
|
117
|
+
* @param layoutName Defines a name for the given layout URL, which makes layout identification easier for customers especially when the layout URL is not explicit.
|
|
115
118
|
*/
|
|
116
119
|
exports.stopRtmp = stopRtmp;
|
|
117
120
|
var startRts = /*#__PURE__*/function () {
|
|
118
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(accessToken, conferenceId, streamName, publishingToken, layoutUrl) {
|
|
121
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(accessToken, conferenceId, streamName, publishingToken, layoutUrl, layoutName) {
|
|
119
122
|
var body, options;
|
|
120
123
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
121
124
|
while (1) {
|
|
@@ -126,6 +129,7 @@ var startRts = /*#__PURE__*/function () {
|
|
|
126
129
|
publishingToken: publishingToken
|
|
127
130
|
};
|
|
128
131
|
if (layoutUrl) body['layoutUrl'] = layoutUrl;
|
|
132
|
+
if (layoutName) body['layoutName'] = layoutName;
|
|
129
133
|
options = {
|
|
130
134
|
hostname: _urls.COMMS_HOSTNAME,
|
|
131
135
|
path: "/v2/conferences/mix/".concat(conferenceId, "/rts/start"),
|
|
@@ -136,16 +140,16 @@ var startRts = /*#__PURE__*/function () {
|
|
|
136
140
|
},
|
|
137
141
|
body: JSON.stringify(body)
|
|
138
142
|
};
|
|
139
|
-
_context3.next =
|
|
143
|
+
_context3.next = 6;
|
|
140
144
|
return (0, _httpHelpers.sendPost)(options);
|
|
141
|
-
case
|
|
145
|
+
case 6:
|
|
142
146
|
case "end":
|
|
143
147
|
return _context3.stop();
|
|
144
148
|
}
|
|
145
149
|
}
|
|
146
150
|
}, _callee3);
|
|
147
151
|
}));
|
|
148
|
-
return function startRts(
|
|
152
|
+
return function startRts(_x8, _x9, _x10, _x11, _x12, _x13) {
|
|
149
153
|
return _ref3.apply(this, arguments);
|
|
150
154
|
};
|
|
151
155
|
}();
|
|
@@ -184,7 +188,7 @@ var stopRts = /*#__PURE__*/function () {
|
|
|
184
188
|
}
|
|
185
189
|
}, _callee4);
|
|
186
190
|
}));
|
|
187
|
-
return function stopRts(
|
|
191
|
+
return function stopRts(_x14, _x15) {
|
|
188
192
|
return _ref4.apply(this, arguments);
|
|
189
193
|
};
|
|
190
194
|
}();
|
package/dist/index.js
CHANGED
|
@@ -13,5 +13,5 @@ var media = _interopRequireWildcard(require("./media"));
|
|
|
13
13
|
exports.media = media;
|
|
14
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
15
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
16
|
-
var version = "3.4.
|
|
16
|
+
var version = "3.4.5";
|
|
17
17
|
exports.version = version;
|