tencentcloud-sdk-nodejs-intl-en 3.0.515 → 3.0.516
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,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.516";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -947,7 +947,11 @@ You can specify only one backup source URL.
|
|
|
947
947
|
this.BackupSourceUrl = null;
|
|
948
948
|
|
|
949
949
|
/**
|
|
950
|
-
*
|
|
950
|
+
* The information of watermarks to add.
|
|
951
|
+
Notes:
|
|
952
|
+
1. You can add up to four watermarks to different locations of the video.
|
|
953
|
+
2. Make sure you use publicly accessible URLs for the watermark images.
|
|
954
|
+
3. Supported image formats include PNG, JPG, and GIF.
|
|
951
955
|
* @type {Array.<PullPushWatermarkInfo> || null}
|
|
952
956
|
*/
|
|
953
957
|
this.WatermarkList = null;
|
|
@@ -5401,8 +5405,7 @@ class DescribeLiveWatermarkRulesRequest extends AbstractModel {
|
|
|
5401
5405
|
}
|
|
5402
5406
|
|
|
5403
5407
|
/**
|
|
5404
|
-
*
|
|
5405
|
-
|
|
5408
|
+
* The watermark configuration for a relay task.
|
|
5406
5409
|
* @class
|
|
5407
5410
|
*/
|
|
5408
5411
|
class PullPushWatermarkInfo extends AbstractModel {
|
|
@@ -5410,58 +5413,46 @@ class PullPushWatermarkInfo extends AbstractModel {
|
|
|
5410
5413
|
super();
|
|
5411
5414
|
|
|
5412
5415
|
/**
|
|
5413
|
-
*
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
this.WatermarkId = null;
|
|
5417
|
-
|
|
5418
|
-
/**
|
|
5419
|
-
* Watermark image URL.
|
|
5416
|
+
* The watermark image URL.
|
|
5417
|
+
Characters not allowed:
|
|
5418
|
+
;(){}$>`#"'|
|
|
5420
5419
|
* @type {string || null}
|
|
5421
5420
|
*/
|
|
5422
5421
|
this.PictureUrl = null;
|
|
5423
5422
|
|
|
5424
5423
|
/**
|
|
5425
|
-
*
|
|
5424
|
+
* The horizontal offset (%) of the watermark. The default value is 0.
|
|
5426
5425
|
* @type {number || null}
|
|
5427
5426
|
*/
|
|
5428
5427
|
this.XPosition = null;
|
|
5429
5428
|
|
|
5430
5429
|
/**
|
|
5431
|
-
*
|
|
5430
|
+
* The vertical offset (%) of the watermark. The default value is 0.
|
|
5432
5431
|
* @type {number || null}
|
|
5433
5432
|
*/
|
|
5434
5433
|
this.YPosition = null;
|
|
5435
5434
|
|
|
5436
5435
|
/**
|
|
5437
|
-
*
|
|
5438
|
-
* @type {string || null}
|
|
5439
|
-
*/
|
|
5440
|
-
this.WatermarkName = null;
|
|
5441
|
-
|
|
5442
|
-
/**
|
|
5443
|
-
* Current status. 0: not used. 1: in use.
|
|
5436
|
+
* The watermark width as a percentage of the video width. To avoid distorted images, we recommend you specify only the width or height so that the other side can be scaled proportionally. By default, the original width of the watermark image is used.
|
|
5444
5437
|
* @type {number || null}
|
|
5445
5438
|
*/
|
|
5446
|
-
this.
|
|
5447
|
-
|
|
5448
|
-
/**
|
|
5449
|
-
* Creation time.
|
|
5450
|
-
* @type {string || null}
|
|
5451
|
-
*/
|
|
5452
|
-
this.CreateTime = null;
|
|
5439
|
+
this.Width = null;
|
|
5453
5440
|
|
|
5454
5441
|
/**
|
|
5455
|
-
*
|
|
5442
|
+
* The watermark height as a percentage of the video height. To avoid distorted images, we recommend you specify only the width or height so that the other side can be scaled proportionally. By default, the original height of the watermark image is used.
|
|
5456
5443
|
* @type {number || null}
|
|
5457
5444
|
*/
|
|
5458
|
-
this.
|
|
5445
|
+
this.Height = null;
|
|
5459
5446
|
|
|
5460
5447
|
/**
|
|
5461
|
-
*
|
|
5448
|
+
* The origin. The default value is 0.
|
|
5449
|
+
0: Top left corner
|
|
5450
|
+
1: Top right corner
|
|
5451
|
+
2: Bottom right corner
|
|
5452
|
+
3: Bottom left corner
|
|
5462
5453
|
* @type {number || null}
|
|
5463
5454
|
*/
|
|
5464
|
-
this.
|
|
5455
|
+
this.Location = null;
|
|
5465
5456
|
|
|
5466
5457
|
}
|
|
5467
5458
|
|
|
@@ -5472,15 +5463,12 @@ class PullPushWatermarkInfo extends AbstractModel {
|
|
|
5472
5463
|
if (!params) {
|
|
5473
5464
|
return;
|
|
5474
5465
|
}
|
|
5475
|
-
this.WatermarkId = 'WatermarkId' in params ? params.WatermarkId : null;
|
|
5476
5466
|
this.PictureUrl = 'PictureUrl' in params ? params.PictureUrl : null;
|
|
5477
5467
|
this.XPosition = 'XPosition' in params ? params.XPosition : null;
|
|
5478
5468
|
this.YPosition = 'YPosition' in params ? params.YPosition : null;
|
|
5479
|
-
this.WatermarkName = 'WatermarkName' in params ? params.WatermarkName : null;
|
|
5480
|
-
this.Status = 'Status' in params ? params.Status : null;
|
|
5481
|
-
this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
|
|
5482
5469
|
this.Width = 'Width' in params ? params.Width : null;
|
|
5483
5470
|
this.Height = 'Height' in params ? params.Height : null;
|
|
5471
|
+
this.Location = 'Location' in params ? params.Location : null;
|
|
5484
5472
|
|
|
5485
5473
|
}
|
|
5486
5474
|
}
|
|
@@ -7826,6 +7814,20 @@ You can specify only one backup source URL.
|
|
|
7826
7814
|
*/
|
|
7827
7815
|
this.BackupSourceUrl = null;
|
|
7828
7816
|
|
|
7817
|
+
/**
|
|
7818
|
+
* The information of watermarks to add.
|
|
7819
|
+
Notes:
|
|
7820
|
+
1. You can add up to four watermarks to different locations of the video.
|
|
7821
|
+
2. Make sure you use publicly accessible URLs for the watermark images.
|
|
7822
|
+
3. Supported image formats include PNG and JPG.
|
|
7823
|
+
4. If you change the watermark configuration of a task whose source is a list of video files, the new configuration will take effect for the next file in the list.
|
|
7824
|
+
5. If you change the watermark configuration of a task whose source is a live stream, the new configuration will take effect immediately.
|
|
7825
|
+
6. If you want to stop using watermarks, pass in an empty array.
|
|
7826
|
+
7. Currently, animated watermarks are not supported.
|
|
7827
|
+
* @type {Array.<PullPushWatermarkInfo> || null}
|
|
7828
|
+
*/
|
|
7829
|
+
this.WatermarkList = null;
|
|
7830
|
+
|
|
7829
7831
|
}
|
|
7830
7832
|
|
|
7831
7833
|
/**
|
|
@@ -7851,6 +7853,15 @@ You can specify only one backup source URL.
|
|
|
7851
7853
|
this.BackupSourceType = 'BackupSourceType' in params ? params.BackupSourceType : null;
|
|
7852
7854
|
this.BackupSourceUrl = 'BackupSourceUrl' in params ? params.BackupSourceUrl : null;
|
|
7853
7855
|
|
|
7856
|
+
if (params.WatermarkList) {
|
|
7857
|
+
this.WatermarkList = new Array();
|
|
7858
|
+
for (let z in params.WatermarkList) {
|
|
7859
|
+
let obj = new PullPushWatermarkInfo();
|
|
7860
|
+
obj.deserialize(params.WatermarkList[z]);
|
|
7861
|
+
this.WatermarkList.push(obj);
|
|
7862
|
+
}
|
|
7863
|
+
}
|
|
7864
|
+
|
|
7854
7865
|
}
|
|
7855
7866
|
}
|
|
7856
7867
|
|
|
@@ -12290,6 +12301,29 @@ The information includes the source URL, offset, and report time.
|
|
|
12290
12301
|
*/
|
|
12291
12302
|
this.Comment = null;
|
|
12292
12303
|
|
|
12304
|
+
/**
|
|
12305
|
+
* The backup source type. Valid values:
|
|
12306
|
+
PullLivePushLive: Live streaming
|
|
12307
|
+
PullVodPushLive: Video files
|
|
12308
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
12309
|
+
* @type {string || null}
|
|
12310
|
+
*/
|
|
12311
|
+
this.BackupSourceType = null;
|
|
12312
|
+
|
|
12313
|
+
/**
|
|
12314
|
+
* The URL of the backup source.
|
|
12315
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
12316
|
+
* @type {string || null}
|
|
12317
|
+
*/
|
|
12318
|
+
this.BackupSourceUrl = null;
|
|
12319
|
+
|
|
12320
|
+
/**
|
|
12321
|
+
* The information of watermarks to add.
|
|
12322
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
12323
|
+
* @type {Array.<PullPushWatermarkInfo> || null}
|
|
12324
|
+
*/
|
|
12325
|
+
this.WatermarkList = null;
|
|
12326
|
+
|
|
12293
12327
|
}
|
|
12294
12328
|
|
|
12295
12329
|
/**
|
|
@@ -12327,6 +12361,17 @@ The information includes the source URL, offset, and report time.
|
|
|
12327
12361
|
this.RecentPullInfo = obj;
|
|
12328
12362
|
}
|
|
12329
12363
|
this.Comment = 'Comment' in params ? params.Comment : null;
|
|
12364
|
+
this.BackupSourceType = 'BackupSourceType' in params ? params.BackupSourceType : null;
|
|
12365
|
+
this.BackupSourceUrl = 'BackupSourceUrl' in params ? params.BackupSourceUrl : null;
|
|
12366
|
+
|
|
12367
|
+
if (params.WatermarkList) {
|
|
12368
|
+
this.WatermarkList = new Array();
|
|
12369
|
+
for (let z in params.WatermarkList) {
|
|
12370
|
+
let obj = new PullPushWatermarkInfo();
|
|
12371
|
+
obj.deserialize(params.WatermarkList[z]);
|
|
12372
|
+
this.WatermarkList.push(obj);
|
|
12373
|
+
}
|
|
12374
|
+
}
|
|
12330
12375
|
|
|
12331
12376
|
}
|
|
12332
12377
|
}
|