tencentcloud-sdk-nodejs-intl-en 3.0.760 → 3.0.762

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-intl-en",
3
- "version": "3.0.760",
3
+ "version": "3.0.762",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,10 +17,14 @@
17
17
  const models = require("./models");
18
18
  const AbstractClient = require('../../common/abstract_client')
19
19
  const CreateSessionResponse = models.CreateSessionResponse;
20
+ const StopPublishStreamRequest = models.StopPublishStreamRequest;
21
+ const StopPublishStreamResponse = models.StopPublishStreamResponse;
20
22
  const DestroySessionResponse = models.DestroySessionResponse;
23
+ const StartPublishStreamResponse = models.StartPublishStreamResponse;
21
24
  const ApplyConcurrentResponse = models.ApplyConcurrentResponse;
22
25
  const ApplyConcurrentRequest = models.ApplyConcurrentRequest;
23
26
  const DestroySessionRequest = models.DestroySessionRequest;
27
+ const StartPublishStreamRequest = models.StartPublishStreamRequest;
24
28
  const CreateSessionRequest = models.CreateSessionRequest;
25
29
 
26
30
 
@@ -35,7 +39,7 @@ class CarClient extends AbstractClient {
35
39
  }
36
40
 
37
41
  /**
38
- * This API is used to request concurrency quota.
42
+ * This API is used to request a concurrency. The timeout period of the API is 20 seconds.
39
43
  * @param {ApplyConcurrentRequest} req
40
44
  * @param {function(string, ApplyConcurrentResponse):void} cb
41
45
  * @public
@@ -45,6 +49,17 @@ class CarClient extends AbstractClient {
45
49
  this.request("ApplyConcurrent", req, resp, cb);
46
50
  }
47
51
 
52
+ /**
53
+ * This API is used to stop stream push.
54
+ * @param {StopPublishStreamRequest} req
55
+ * @param {function(string, StopPublishStreamResponse):void} cb
56
+ * @public
57
+ */
58
+ StopPublishStream(req, cb) {
59
+ let resp = new StopPublishStreamResponse();
60
+ this.request("StopPublishStream", req, resp, cb);
61
+ }
62
+
48
63
  /**
49
64
  * This API is used to terminate a session.
50
65
  * @param {DestroySessionRequest} req
@@ -57,7 +72,7 @@ class CarClient extends AbstractClient {
57
72
  }
58
73
 
59
74
  /**
60
- * This API is used to create a session.
75
+ * This API is used to create a session. The timeout period of the API is 5 seconds.
61
76
  * @param {CreateSessionRequest} req
62
77
  * @param {function(string, CreateSessionResponse):void} cb
63
78
  * @public
@@ -67,6 +82,17 @@ class CarClient extends AbstractClient {
67
82
  this.request("CreateSession", req, resp, cb);
68
83
  }
69
84
 
85
+ /**
86
+ * This API is used to start stream push.
87
+ * @param {StartPublishStreamRequest} req
88
+ * @param {function(string, StartPublishStreamResponse):void} cb
89
+ * @public
90
+ */
91
+ StartPublishStream(req, cb) {
92
+ let resp = new StartPublishStreamResponse();
93
+ this.request("StartPublishStream", req, resp, cb);
94
+ }
95
+
70
96
 
71
97
  }
72
98
  module.exports = CarClient;
@@ -51,6 +51,62 @@ class CreateSessionResponse extends AbstractModel {
51
51
  }
52
52
  }
53
53
 
54
+ /**
55
+ * StopPublishStream request structure.
56
+ * @class
57
+ */
58
+ class StopPublishStreamRequest extends AbstractModel {
59
+ constructor(){
60
+ super();
61
+
62
+ /**
63
+ * Unique user ID, which is customized by you and is not understood by CAR. It can also be randomly generated using the timestamp and should be kept unchanged during user reconnection.
64
+ * @type {string || null}
65
+ */
66
+ this.UserId = null;
67
+
68
+ }
69
+
70
+ /**
71
+ * @private
72
+ */
73
+ deserialize(params) {
74
+ if (!params) {
75
+ return;
76
+ }
77
+ this.UserId = 'UserId' in params ? params.UserId : null;
78
+
79
+ }
80
+ }
81
+
82
+ /**
83
+ * StopPublishStream response structure.
84
+ * @class
85
+ */
86
+ class StopPublishStreamResponse extends AbstractModel {
87
+ constructor(){
88
+ super();
89
+
90
+ /**
91
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
92
+ * @type {string || null}
93
+ */
94
+ this.RequestId = null;
95
+
96
+ }
97
+
98
+ /**
99
+ * @private
100
+ */
101
+ deserialize(params) {
102
+ if (!params) {
103
+ return;
104
+ }
105
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
106
+
107
+ }
108
+ }
109
+
54
110
  /**
55
111
  * DestroySession response structure.
56
112
  * @class
@@ -79,6 +135,34 @@ class DestroySessionResponse extends AbstractModel {
79
135
  }
80
136
  }
81
137
 
138
+ /**
139
+ * StartPublishStream response structure.
140
+ * @class
141
+ */
142
+ class StartPublishStreamResponse extends AbstractModel {
143
+ constructor(){
144
+ super();
145
+
146
+ /**
147
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
148
+ * @type {string || null}
149
+ */
150
+ this.RequestId = null;
151
+
152
+ }
153
+
154
+ /**
155
+ * @private
156
+ */
157
+ deserialize(params) {
158
+ if (!params) {
159
+ return;
160
+ }
161
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
162
+
163
+ }
164
+ }
165
+
82
166
  /**
83
167
  * ApplyConcurrent response structure.
84
168
  * @class
@@ -191,6 +275,41 @@ class DestroySessionRequest extends AbstractModel {
191
275
  }
192
276
  }
193
277
 
278
+ /**
279
+ * StartPublishStream request structure.
280
+ * @class
281
+ */
282
+ class StartPublishStreamRequest extends AbstractModel {
283
+ constructor(){
284
+ super();
285
+
286
+ /**
287
+ * Unique user ID, which is customized by you and is not understood by CAR. It will be used as the `StreamId` for pushing streams. For example, if the bound push domain is **abc.livepush.myqcloud.com**, the push address will be **rtmp://abc.livepush.myqcloud.com/live/UserId?txSecret=xxx&txTime=xxx**.
288
+ * @type {string || null}
289
+ */
290
+ this.UserId = null;
291
+
292
+ /**
293
+ * Push parameter, which is a custom parameter carried during stream pushing.
294
+ * @type {string || null}
295
+ */
296
+ this.PublishStreamArgs = null;
297
+
298
+ }
299
+
300
+ /**
301
+ * @private
302
+ */
303
+ deserialize(params) {
304
+ if (!params) {
305
+ return;
306
+ }
307
+ this.UserId = 'UserId' in params ? params.UserId : null;
308
+ this.PublishStreamArgs = 'PublishStreamArgs' in params ? params.PublishStreamArgs : null;
309
+
310
+ }
311
+ }
312
+
194
313
  /**
195
314
  * CreateSession request structure.
196
315
  * @class
@@ -228,7 +347,11 @@ Empty string (default): Keep the application running on the cloud only when ther
228
347
  /**
229
348
  * Application startup parameter.
230
349
  If the user requests a multi-application project or a prelaunch-disabled single-application project, this parameter takes effect.
350
+
231
351
  If the user requests a prelaunch-enabled single-application project, this parameter is invalid.
352
+
353
+ Note: When this parameter takes effect, the `ApplicationParameters` parameter will be appended to the end of the application startup parameter. The application startup parameter is set in the application or project configuration in the console.
354
+ For example, for a prelaunch-disabled single-application project, if its application startup parameter `bar` is `0` and the `ApplicationParameters` parameter `foo` is `1`, the actual application startup parameters will be `bar=0 foo=1`.
232
355
  * @type {string || null}
233
356
  */
234
357
  this.ApplicationParameters = null;
@@ -270,10 +393,14 @@ If the current user is the host, `HostUserId` must be the same as their `UserId`
270
393
 
271
394
  module.exports = {
272
395
  CreateSessionResponse: CreateSessionResponse,
396
+ StopPublishStreamRequest: StopPublishStreamRequest,
397
+ StopPublishStreamResponse: StopPublishStreamResponse,
273
398
  DestroySessionResponse: DestroySessionResponse,
399
+ StartPublishStreamResponse: StartPublishStreamResponse,
274
400
  ApplyConcurrentResponse: ApplyConcurrentResponse,
275
401
  ApplyConcurrentRequest: ApplyConcurrentRequest,
276
402
  DestroySessionRequest: DestroySessionRequest,
403
+ StartPublishStreamRequest: StartPublishStreamRequest,
277
404
  CreateSessionRequest: CreateSessionRequest,
278
405
 
279
406
  }
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.760";
1
+ const sdkVersion = "3.0.762";
2
2
  module.exports = sdkVersion
@@ -372,7 +372,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
372
372
 
373
373
  /**
374
374
  * The subtitle settings.
375
- Note: u200dThis field may return null, indicating that no valid values can be obtained.
375
+ Note: This field may return null, indicating that no valid values can be obtained.
376
376
  * @type {SubtitleTemplate || null}
377
377
  */
378
378
  this.SubtitleTemplate = null;
@@ -386,14 +386,14 @@ Note: This field may return null, indicating that no valid values can be obtaine
386
386
 
387
387
  /**
388
388
  * An extended field for transcoding.
389
- Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
389
+ Note: This field may return·null, indicating that no valid values can be obtained.
390
390
  * @type {string || null}
391
391
  */
392
392
  this.StdExtInfo = null;
393
393
 
394
394
  /**
395
395
  * The subtitle file to add.
396
- Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
396
+ Note: This field may return·null, indicating that no valid values can be obtained.
397
397
  * @type {Array.<AddOnSubtitle> || null}
398
398
  */
399
399
  this.AddOnSubtitles = null;
@@ -13878,14 +13878,14 @@ class SubtitleTemplate extends AbstractModel {
13878
13878
 
13879
13879
  /**
13880
13880
  * The URL of the subtitles to add to the video.
13881
- Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
13881
+ Note: This field may return·null, indicating that no valid values can be obtained.
13882
13882
  * @type {string || null}
13883
13883
  */
13884
13884
  this.Path = null;
13885
13885
 
13886
13886
  /**
13887
13887
  * The subtitle track to add to the video. If both `Path` and `StreamIndex` are specified, `Path` will be used. You need to specify at least one of the two parameters.
13888
- Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
13888
+ Note: This field may return·null, indicating that no valid values can be obtained.
13889
13889
  * @type {number || null}
13890
13890
  */
13891
13891
  this.StreamIndex = null;
@@ -13897,21 +13897,21 @@ Note: u200dThis field may returnu200d·nullu200d, indicating that no valid value
13897
13897
  <li>`simkai.ttf`: Kaiti.</li>
13898
13898
  <li>`arial.ttf`: Arial.</li>
13899
13899
  The default is `hei.ttf`.
13900
- Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
13900
+ Note: This field may return·null, indicating that no valid values can be obtained.
13901
13901
  * @type {string || null}
13902
13902
  */
13903
13903
  this.FontType = null;
13904
13904
 
13905
13905
  /**
13906
13906
  * The font size (pixels). If this is not specified, the font size in the subtitle file will be used.
13907
- Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
13907
+ Note: This field may return·null, indicating that no valid values can be obtained.
13908
13908
  * @type {string || null}
13909
13909
  */
13910
13910
  this.FontSize = null;
13911
13911
 
13912
13912
  /**
13913
13913
  * The font color in 0xRRGGBB format. Default value: 0xFFFFFF (white).
13914
- Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
13914
+ Note: This field may return·null, indicating that no valid values can be obtained.
13915
13915
  * @type {string || null}
13916
13916
  */
13917
13917
  this.FontColor = null;
@@ -13919,9 +13919,9 @@ Note: u200dThis field may returnu200d·nullu200d, indicating that no valid value
13919
13919
  /**
13920
13920
  * The text transparency. Value range: 0-1.
13921
13921
  <li>`0`: Fully transparent.</li>
13922
- <li>`1`: u200dFully opaque.</li>
13922
+ <li>`1`: Fully opaque.</li>
13923
13923
  Default value: 1.
13924
- Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
13924
+ Note: This field may return·null, indicating that no valid values can be obtained.
13925
13925
  * @type {number || null}
13926
13926
  */
13927
13927
  this.FontAlpha = null;
@@ -15464,14 +15464,14 @@ class TEHDConfigForUpdate extends AbstractModel {
15464
15464
  <li>`TEHD-100`: TSC-100 (video TSC). </li>
15465
15465
  <li>`TEHD-200`: TSC-200 (audio TSC). </li>
15466
15466
  If this parameter is left blank, no modification will be made.
15467
- Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
15467
+ Note: This field may return·null, indicating that no valid values can be obtained.
15468
15468
  * @type {string || null}
15469
15469
  */
15470
15470
  this.Type = null;
15471
15471
 
15472
15472
  /**
15473
- * u200dThe maximum video bitrate. If this parameter is not specified, no modifications will be made.
15474
- Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
15473
+ * The maximum video bitrate. If this parameter is not specified, no modifications will be made.
15474
+ Note: This field may return·null, indicating that no valid values can be obtained.
15475
15475
  * @type {number || null}
15476
15476
  */
15477
15477
  this.MaxVideoBitrate = null;
@@ -17398,7 +17398,7 @@ Note: this field may return null, indicating that no valid values can be obtaine
17398
17398
 
17399
17399
  /**
17400
17400
  * The subtitle file to add.
17401
- Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
17401
+ Note: This field may return·null, indicating that no valid values can be obtained.
17402
17402
  * @type {Array.<AddOnSubtitle> || null}
17403
17403
  */
17404
17404
  this.AddOnSubtitles = null;
@@ -20062,16 +20062,16 @@ class AddOnSubtitle extends AbstractModel {
20062
20062
  /**
20063
20063
  * The mode. Valid values:
20064
20064
  <li>`subtitle-stream`: Add a subtitle track.</li>
20065
- <li>`close-caption-708`: u200dEmbed EA-708 subtitles in SEI frames.</li>
20065
+ <li>`close-caption-708`: Embed CEA-708 subtitles in SEI frames.</li>
20066
20066
  <li>`close-caption-608`: Embed CEA-608 subtitles in SEI frames.</li>
20067
- Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
20067
+ Note: This field may return·null, indicating that no valid values can be obtained.
20068
20068
  * @type {string || null}
20069
20069
  */
20070
20070
  this.Type = null;
20071
20071
 
20072
20072
  /**
20073
20073
  * The subtitle file.
20074
- Note: u200dThis field may returnu200d·nullu200d, indicating that no valid values can be obtained.
20074
+ Note: This field may return·null, indicating that no valid values can be obtained.
20075
20075
  * @type {MediaInputInfo || null}
20076
20076
  */
20077
20077
  this.Subtitle = null;