-
Notifications
You must be signed in to change notification settings - Fork 99
/
mps_client.js
717 lines (706 loc) · 25.4 KB
/
mps_client.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Client = void 0;
/* eslint-disable @typescript-eslint/no-unused-vars */
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
const abstract_client_1 = require("../../../common/abstract_client");
/**
* mps client
* @class
*/
class Client extends abstract_client_1.AbstractClient {
constructor(clientConfig) {
super("mps.tencentcloudapi.com", "2019-06-12", clientConfig);
}
/**
* 创建用户自定义指定时间点截图模板,数量上限:16。
*/
async CreateSnapshotByTimeOffsetTemplate(req, cb) {
return this.request("CreateSnapshotByTimeOffsetTemplate", req, cb);
}
/**
* 实时查询流的当前状态
*/
async DescribeStreamLinkFlowRealtimeStatus(req, cb) {
return this.request("DescribeStreamLinkFlowRealtimeStatus", req, cb);
}
/**
* 对视频进行编辑,生成一个新的视频。编辑的功能包括:
一、**剪辑任务**:简单的视频剪辑,如剪辑、拼接等
1. 对一个文件进行剪辑,生成一个新的视频;
2. 对多个文件进行拼接,生成一个新的视频;
3. 对多个文件进行剪辑,然后再拼接,生成一个新的视频。
二、**合成任务**:通过接口描述信息,合成一个新的视频。
1. 多轨道(视频、音频、字幕)、多类型元素(视频、图片、音频、文字、空)
2. 图像级别:贴图、缩放、任意角度旋转、镜像等
3. 音频级别:音量控制、淡入淡出、混音等
4. 视频级别:转场、倍数播放、拼接、剪切、字幕、画中画、音画分离、出入场动效等
*/
async EditMedia(req, cb) {
return this.request("EditMedia", req, cb);
}
/**
* 查询媒体传输事件的配置信息。
*/
async DescribeStreamLinkEvent(req, cb) {
return this.request("DescribeStreamLinkEvent", req, cb);
}
/**
* 删除用户自定义转动图模板。
*/
async DeleteAnimatedGraphicsTemplate(req, cb) {
return this.request("DeleteAnimatedGraphicsTemplate", req, cb);
}
/**
* 根据内容分析模板唯一标识,获取内容分析模板详情列表。返回结果包含符合条件的所有用户自定义内容分析模板及系统预置视频内容分析模板
*/
async DescribeAIAnalysisTemplates(req, cb) {
return this.request("DescribeAIAnalysisTemplates", req, cb);
}
/**
* 从 CMQ 获取到消息后,从消息的 msgBody 字段中解析出 MPS 直播流处理事件通知的内容。
该接口不用于发起网络调用,而是用来帮助生成各个语言平台的 SDK,您可以参考 SDK 中的解析实现事件通知的解析。
*/
async ParseLiveStreamProcessNotification(req, cb) {
return this.request("ParseLiveStreamProcessNotification", req, cb);
}
/**
* 删除用户自定义转码模板。
*/
async DeleteTranscodeTemplate(req, cb) {
return this.request("DeleteTranscodeTemplate", req, cb);
}
/**
* 通过任务 ID 查询任务的执行状态和结果的详细信息(最多可以查询7天之内提交的任务)。
*/
async DescribeTaskDetail(req, cb) {
return this.request("DescribeTaskDetail", req, cb);
}
/**
* 该接口用于根据应用场景、关键词、标签,分页查询关键词样本信息。
*/
async DescribeWordSamples(req, cb) {
return this.request("DescribeWordSamples", req, cb);
}
/**
* 对 URL视频链接 或 COS 中的媒体文件发起处理任务,功能包括:
1. 视频转码(普通转码、极速高清转码、音视频增强);
2. 视频转动图;
3. 对视频按指定时间点截图;
4. 对视频采样截图;
5. 对视频截图雪碧图;
6. 对视频转自适应码流;
7. 智能内容审核(鉴黄、敏感信息检测);
8. 智能内容分析(标签、分类、封面、按帧标签、拆条、集锦、片头片尾、游戏打点);
9. 智能内容识别(人脸、文本全文、文本关键词、语音全文、语音关键词、语音翻译、物体识别)。
10. 媒体质检(直播流格式诊断、音画内容检测(抖动、模糊、低光照、过曝光、黑边、白边、黑屏、白屏、花屏、噪点、马赛克、二维码等)、无参考打分)
*/
async ProcessMedia(req, cb) {
return this.request("ProcessMedia", req, cb);
}
/**
* 修改用户自定义内容分析模板。
注意:模板 ID 10000 以下的为系统预置模板,不允许修改。
*/
async ModifyAIAnalysisTemplate(req, cb) {
return this.request("ModifyAIAnalysisTemplate", req, cb);
}
/**
* 删除转自适应码流模板
*/
async DeleteAdaptiveDynamicStreamingTemplate(req, cb) {
return this.request("DeleteAdaptiveDynamicStreamingTemplate", req, cb);
}
/**
* 创建转自适应码流模板,数量上限:100。
*/
async CreateAdaptiveDynamicStreamingTemplate(req, cb) {
return this.request("CreateAdaptiveDynamicStreamingTemplate", req, cb);
}
/**
* 禁用工作流。
*/
async DisableWorkflow(req, cb) {
return this.request("DisableWorkflow", req, cb);
}
/**
* 查询采样截图模板,支持根据条件,分页查询。
*/
async DescribeSampleSnapshotTemplates(req, cb) {
return this.request("DescribeSampleSnapshotTemplates", req, cb);
}
/**
* 查询媒体传输流的媒体质量数据。
*/
async DescribeStreamLinkFlowStatistics(req, cb) {
return this.request("DescribeStreamLinkFlowStatistics", req, cb);
}
/**
* 批量删除媒体传输流。
*/
async BatchDeleteStreamLinkFlow(req, cb) {
return this.request("BatchDeleteStreamLinkFlow", req, cb);
}
/**
* 删除用户自定义指定时间点截图模板。
*/
async DeleteSnapshotByTimeOffsetTemplate(req, cb) {
return this.request("DeleteSnapshotByTimeOffsetTemplate", req, cb);
}
/**
* 启用工作流。
*/
async EnableWorkflow(req, cb) {
return this.request("EnableWorkflow", req, cb);
}
/**
* 智能媒体识别,包含表情和动作识别。仅用于智学,其他调用无效。
*/
async RecognizeMediaForZhiXue(req, cb) {
return this.request("RecognizeMediaForZhiXue", req, cb);
}
/**
* 修改媒体传输的传输流配置信息。
*/
async ModifyStreamLinkFlow(req, cb) {
return this.request("ModifyStreamLinkFlow", req, cb);
}
/**
* * 该接口用于查询任务列表;
* 当列表数据比较多时,单次接口调用无法拉取整个列表,可通过 ScrollToken 参数,分批拉取;
* 只能查询到最近七天(168小时)内的任务。
*/
async DescribeTasks(req, cb) {
return this.request("DescribeTasks", req, cb);
}
/**
* 批量启动媒体传输流。
*/
async BatchStartStreamLinkFlow(req, cb) {
return this.request("BatchStartStreamLinkFlow", req, cb);
}
/**
* 创建用户自定义转码模板,数量上限:1000
*/
async CreateTranscodeTemplate(req, cb) {
return this.request("CreateTranscodeTemplate", req, cb);
}
/**
* 创建媒体传输的传输流配置。
*/
async CreateStreamLinkFlow(req, cb) {
return this.request("CreateStreamLinkFlow", req, cb);
}
/**
* 本接口仅用于定制开发的特殊场景,除非云媒体处理客服人员主动告知您需要使用本接口,其它情况请勿调用。
*/
async ExecuteFunction(req, cb) {
return this.request("ExecuteFunction", req, cb);
}
/**
* 批量查询媒体输入流的配置信息。
*/
async DescribeStreamLinkFlows(req, cb) {
return this.request("DescribeStreamLinkFlows", req, cb);
}
/**
* 修改用户自定义转动图模板。
*/
async ModifyAnimatedGraphicsTemplate(req, cb) {
return this.request("ModifyAnimatedGraphicsTemplate", req, cb);
}
/**
* 删除媒体传输流的输出配置。
*/
async DeleteStreamLinkOutput(req, cb) {
return this.request("DeleteStreamLinkOutput", req, cb);
}
/**
* 创建用户自定义内容审核模板,数量上限:50。
*/
async CreateContentReviewTemplate(req, cb) {
return this.request("CreateContentReviewTemplate", req, cb);
}
/**
* 创建用户自定义采样截图模板,数量上限:16。
*/
async CreateSampleSnapshotTemplate(req, cb) {
return this.request("CreateSampleSnapshotTemplate", req, cb);
}
/**
* 删除用户自定义内容分析模板。
注意:模板 ID 为 10000 以下的为系统预置模板,不允许删除。
*/
async DeleteAIAnalysisTemplate(req, cb) {
return this.request("DeleteAIAnalysisTemplate", req, cb);
}
/**
* 修改编排
*/
async ModifySchedule(req, cb) {
return this.request("ModifySchedule", req, cb);
}
/**
* 获取媒体的元信息,包括视频画面宽、高、编码格式、时长、帧率等。
*/
async DescribeMediaMetaData(req, cb) {
return this.request("DescribeMediaMetaData", req, cb);
}
/**
* 修改用户自定义采样截图模板。
*/
async ModifySampleSnapshotTemplate(req, cb) {
return this.request("ModifySampleSnapshotTemplate", req, cb);
}
/**
* 重新设置一个已经存在且处于禁用状态的工作流。
*/
async ResetWorkflow(req, cb) {
return this.request("ResetWorkflow", req, cb);
}
/**
* 删除媒体质检模板
*/
async DeleteQualityControlTemplate(req, cb) {
return this.request("DeleteQualityControlTemplate", req, cb);
}
/**
* 删除工作流。对于已启用的工作流,需要禁用后才能删除。
*/
async DeleteWorkflow(req, cb) {
return this.request("DeleteWorkflow", req, cb);
}
/**
* 创建媒体质检模板,数量上限:50。
*/
async CreateQualityControlTemplate(req, cb) {
return this.request("CreateQualityControlTemplate", req, cb);
}
/**
* 修改用户自定义雪碧图模板。
*/
async ModifyImageSpriteTemplate(req, cb) {
return this.request("ModifyImageSpriteTemplate", req, cb);
}
/**
* 根据转码模板唯一标识,获取转码模板详情列表。返回结果包含符合条件的所有用户自定义模板及[系统预置转码模板](https://cloud.tencent.com/document/product/266/33476#.E9.A2.84.E7.BD.AE.E8.BD.AC.E7.A0.81.E6.A8.A1.E6.9D.BF)。
*/
async DescribeTranscodeTemplates(req, cb) {
return this.request("DescribeTranscodeTemplates", req, cb);
}
/**
* 删除媒体传输的传输流配置。
*/
async DeleteStreamLinkFlow(req, cb) {
return this.request("DeleteStreamLinkFlow", req, cb);
}
/**
* 启动媒体传输流。
*/
async StartStreamLinkFlow(req, cb) {
return this.request("StartStreamLinkFlow", req, cb);
}
/**
* 修改媒体传输流的输入信息。
*/
async ModifyStreamLinkInput(req, cb) {
return this.request("ModifyStreamLinkInput", req, cb);
}
/**
* 查询媒体传输所有地区。
*/
async DescribeStreamLinkRegions(req, cb) {
return this.request("DescribeStreamLinkRegions", req, cb);
}
/**
* 查询编排。
*/
async DescribeSchedules(req, cb) {
return this.request("DescribeSchedules", req, cb);
}
/**
* 该接口用于根据素材 ID,修改素材样本信息,包括名称、描述的修改,以及五官、标签的添加、删除、重置操作。五官删除操作需保证至少剩余 1 张图片,否则,请使用重置操作。
*/
async ModifyPersonSample(req, cb) {
return this.request("ModifyPersonSample", req, cb);
}
/**
* 删除用户自定义内容审核模板。
*/
async DeleteContentReviewTemplate(req, cb) {
return this.request("DeleteContentReviewTemplate", req, cb);
}
/**
* 创建用户自定义内容分析模板,数量上限:50。
*/
async CreateAIAnalysisTemplate(req, cb) {
return this.request("CreateAIAnalysisTemplate", req, cb);
}
/**
* 修改媒体质检模板。
*/
async ModifyQualityControlTemplate(req, cb) {
return this.request("ModifyQualityControlTemplate", req, cb);
}
/**
* 停止媒体传输流。
*/
async StopStreamLinkFlow(req, cb) {
return this.request("StopStreamLinkFlow", req, cb);
}
/**
* 查询媒体传输事件关联的所有媒体输入流的配置信息。
*/
async DescribeStreamLinkEventAttachedFlows(req, cb) {
return this.request("DescribeStreamLinkEventAttachedFlows", req, cb);
}
/**
* 修改媒体传输流的输出配置。
*/
async ModifyStreamLinkOutputInfo(req, cb) {
return this.request("ModifyStreamLinkOutputInfo", req, cb);
}
/**
* 查询指定时间点截图模板,支持根据条件,分页查询。
*/
async DescribeSnapshotByTimeOffsetTemplates(req, cb) {
return this.request("DescribeSnapshotByTimeOffsetTemplates", req, cb);
}
/**
* 修改用户自定义转码模板信息。
*/
async ModifyTranscodeTemplate(req, cb) {
return this.request("ModifyTranscodeTemplate", req, cb);
}
/**
* 根据智能审核模板唯一标识,获取智能审核模板详情列表。返回结果包含符合条件的所有用户自定义模板及系统预置智能审核模板。
*/
async DescribeContentReviewTemplates(req, cb) {
return this.request("DescribeContentReviewTemplates", req, cb);
}
/**
* 批量查询媒体传输事件的配置信息。
*/
async DescribeStreamLinkEvents(req, cb) {
return this.request("DescribeStreamLinkEvents", req, cb);
}
/**
* 查询媒体传输流的SRT质量数据。
*/
async DescribeStreamLinkFlowSRTStatistics(req, cb) {
return this.request("DescribeStreamLinkFlowSRTStatistics", req, cb);
}
/**
* 创建媒体传输流的输出信息。
*/
async CreateStreamLinkOutputInfo(req, cb) {
return this.request("CreateStreamLinkOutputInfo", req, cb);
}
/**
* 根据工作流 ID,获取工作流详情列表。
*/
async DescribeWorkflows(req, cb) {
return this.request("DescribeWorkflows", req, cb);
}
/**
* 修改用户自定义水印模板,水印类型不允许修改。
*/
async ModifyWatermarkTemplate(req, cb) {
return this.request("ModifyWatermarkTemplate", req, cb);
}
/**
* 该接口用于批量删除关键词样本。
*/
async DeleteWordSamples(req, cb) {
return this.request("DeleteWordSamples", req, cb);
}
/**
* 查询媒体传输开通状态。
*/
async DescribeStreamLinkActivateState(req, cb) {
return this.request("DescribeStreamLinkActivateState", req, cb);
}
/**
* 创建用户自定义水印模板,数量上限:1000。
*/
async CreateWatermarkTemplate(req, cb) {
return this.request("CreateWatermarkTemplate", req, cb);
}
/**
* 该接口用于查询素材样本信息,支持根据素材 ID、名称、标签,分页查询。
*/
async DescribePersonSamples(req, cb) {
return this.request("DescribePersonSamples", req, cb);
}
/**
* 从 CMQ 获取到消息后,从消息的 msgBody 字段中解析出 MPS 事件通知的内容。
该接口不用于发起网络调用,而是用来帮助生成各个语言平台的 SDK,您可以参考 SDK 中的解析函数,实现事件通知的解析。
*/
async ParseNotification(req, cb) {
return this.request("ParseNotification", req, cb);
}
/**
* 删除用户自定义内容识别模板。
*/
async DeleteAIRecognitionTemplate(req, cb) {
return this.request("DeleteAIRecognitionTemplate", req, cb);
}
/**
* 查询转动图模板列表,支持根据条件,分页查询。
*/
async DescribeAnimatedGraphicsTemplates(req, cb) {
return this.request("DescribeAnimatedGraphicsTemplates", req, cb);
}
/**
* 对已发起的任务进行管理。
*/
async ManageTask(req, cb) {
return this.request("ManageTask", req, cb);
}
/**
* 修改用户自定义指定时间点截图模板。
*/
async ModifySnapshotByTimeOffsetTemplate(req, cb) {
return this.request("ModifySnapshotByTimeOffsetTemplate", req, cb);
}
/**
* 该接口用于批量创建关键词样本,样本用于通过OCR、ASR技术,进行不适宜内容识别、内容识别等视频处理。
*/
async CreateWordSamples(req, cb) {
return this.request("CreateWordSamples", req, cb);
}
/**
* 对 COS 中指定 Bucket 的目录下上传的媒体文件,设置处理规则,包括:
1. 视频转码(带水印);
2. 视频转动图;
3. 对视频按指定时间点截图;
4. 对视频采样截图;
5. 对视频截图雪碧图;
6. 对视频转自适应码流;
7. 智能内容审核(鉴黄、敏感信息检测);
8. 智能内容分析(标签、分类、封面、按帧标签);
9. 智能内容识别(人脸、文本全文、文本关键词、语音全文、语音关键词)。
注意:创建工作流成功后是禁用状态,需要手动启用。
*/
async CreateWorkflow(req, cb) {
return this.request("CreateWorkflow", req, cb);
}
/**
* 查询转自适应码流模板,支持根据条件,分页查询。
*/
async DescribeAdaptiveDynamicStreamingTemplates(req, cb) {
return this.request("DescribeAdaptiveDynamicStreamingTemplates", req, cb);
}
/**
* 对 COS 中指定 Bucket 的目录下上传的媒体文件,设置处理规则,包括:
1. 视频转码(带水印);
2. 视频转动图;
3. 对视频按指定时间点截图;
4. 对视频采样截图;
5. 对视频截图雪碧图;
6. 对视频转自适应码流;
7. 智能内容审核(鉴黄、敏感信息检测);
8. 智能内容分析(标签、分类、封面、按帧标签);
9. 智能内容识别(人脸、文本全文、文本关键词、语音全文、语音关键词)。
注意:创建编排成功后是禁用状态,需要手动启用。
*/
async CreateSchedule(req, cb) {
return this.request("CreateSchedule", req, cb);
}
/**
* 该接口用于修改关键词的应用场景、标签,关键词本身不可修改,如需修改,可删除重建。
*/
async ModifyWordSample(req, cb) {
return this.request("ModifyWordSample", req, cb);
}
/**
* 查询雪碧图模板,支持根据条件,分页查询。
*/
async DescribeImageSpriteTemplates(req, cb) {
return this.request("DescribeImageSpriteTemplates", req, cb);
}
/**
* 查询用户自定义水印模板,支持根据条件,分页查询。
*/
async DescribeWatermarkTemplates(req, cb) {
return this.request("DescribeWatermarkTemplates", req, cb);
}
/**
* 创建用户自定义雪碧图模板,数量上限:16。
*/
async CreateImageSpriteTemplate(req, cb) {
return this.request("CreateImageSpriteTemplate", req, cb);
}
/**
* 修改媒体传输的事件配置信息。
*/
async ModifyStreamLinkEvent(req, cb) {
return this.request("ModifyStreamLinkEvent", req, cb);
}
/**
* 根据内容识别模板唯一标识,获取内容识别模板详情列表。返回结果包含符合条件的所有用户自定义内容识别模板及系统预置视频内容识别模板
*/
async DescribeAIRecognitionTemplates(req, cb) {
return this.request("DescribeAIRecognitionTemplates", req, cb);
}
/**
* 提取视频中的盲水印。
*/
async WithdrawsWatermark(req, cb) {
return this.request("WithdrawsWatermark", req, cb);
}
/**
* 查询媒体输入流的配置信息。
*/
async DescribeStreamLinkFlow(req, cb) {
return this.request("DescribeStreamLinkFlow", req, cb);
}
/**
* 删除编排
*/
async DeleteSchedule(req, cb) {
return this.request("DeleteSchedule", req, cb);
}
/**
* 修改转自适应码流模板
*/
async ModifyAdaptiveDynamicStreamingTemplate(req, cb) {
return this.request("ModifyAdaptiveDynamicStreamingTemplate", req, cb);
}
/**
* 删除用户自定义水印模板。
*/
async DeleteWatermarkTemplate(req, cb) {
return this.request("DeleteWatermarkTemplate", req, cb);
}
/**
* 该接口用于根据素材 ID,删除素材样本。
*/
async DeletePersonSample(req, cb) {
return this.request("DeletePersonSample", req, cb);
}
/**
* 创建用户自定义转动图模板,数量上限:16。
*/
async CreateAnimatedGraphicsTemplate(req, cb) {
return this.request("CreateAnimatedGraphicsTemplate", req, cb);
}
/**
* 启用自动化触发编排任务。
*/
async EnableSchedule(req, cb) {
return this.request("EnableSchedule", req, cb);
}
/**
* 对直播流媒体发起处理任务,功能包括:
* 智能内容审核(画面鉴黄、敏感信息检测、声音鉴黄);
* 智能内容识别(人脸、文本全文、文本关键词、语音全文、语音关键词、语音实时翻译、物体识别、游戏打点)。
* 智能内容分析(新闻实时拆条)。
* 质检(直播流格式诊断、音画内容检测(抖动、模糊、低光照、过曝光、黑边、白边、黑屏、白屏、花屏、噪点、马赛克、二维码等)、无参考打分)。
* 录制
直播流处理事件通知支持HTTP回调,也支持实时写入用户指定的消息队列 CMQ 中,用户从消息队列 CMQ 中获取事件通知结果,同时处理过程中存在输出文件的,会写入用户指定的输出文件的目标存储中。
*/
async ProcessLiveStream(req, cb) {
return this.request("ProcessLiveStream", req, cb);
}
/**
* 删除用户自定义采样截图模板。
*/
async DeleteSampleSnapshotTemplate(req, cb) {
return this.request("DeleteSampleSnapshotTemplate", req, cb);
}
/**
* 查询媒体传输流的媒体质量数据。
*/
async DescribeStreamLinkFlowMediaStatistics(req, cb) {
return this.request("DescribeStreamLinkFlowMediaStatistics", req, cb);
}
/**
* 创建媒体传输的事件Event。
*/
async CreateStreamLinkEvent(req, cb) {
return this.request("CreateStreamLinkEvent", req, cb);
}
/**
* 该接口用于创建素材样本,用于通过五官定位等技术,进行内容识别、内容不适宜等视频处理。
*/
async CreatePersonSample(req, cb) {
return this.request("CreatePersonSample", req, cb);
}
/**
* 查询用户自定义媒体质检模板,支持根据条件,分页查询。
*/
async DescribeQualityControlTemplates(req, cb) {
return this.request("DescribeQualityControlTemplates", req, cb);
}
/**
* 禁用自动化触发编排任务。
*/
async DisableSchedule(req, cb) {
return this.request("DisableSchedule", req, cb);
}
/**
* 创建媒体传输的输入配置。
*/
async CreateStreamLinkInput(req, cb) {
return this.request("CreateStreamLinkInput", req, cb);
}
/**
* 修改用户自定义内容审核模板。
*/
async ModifyContentReviewTemplate(req, cb) {
return this.request("ModifyContentReviewTemplate", req, cb);
}
/**
* 创建用户自定义内容识别模板,数量上限:50。
*/
async CreateAIRecognitionTemplate(req, cb) {
return this.request("CreateAIRecognitionTemplate", req, cb);
}
/**
* 批量停止媒体传输流。
*/
async BatchStopStreamLinkFlow(req, cb) {
return this.request("BatchStopStreamLinkFlow", req, cb);
}
/**
* 修改用户自定义内容识别模板。
*/
async ModifyAIRecognitionTemplate(req, cb) {
return this.request("ModifyAIRecognitionTemplate", req, cb);
}
/**
* 删除媒体传输的事件配置。
*/
async DeleteStreamLinkEvent(req, cb) {
return this.request("DeleteStreamLinkEvent", req, cb);
}
/**
* 查询媒体传输流的日志信息。
*/
async DescribeStreamLinkFlowLogs(req, cb) {
return this.request("DescribeStreamLinkFlowLogs", req, cb);
}
/**
* 删除雪碧图模板。
*/
async DeleteImageSpriteTemplate(req, cb) {
return this.request("DeleteImageSpriteTemplate", req, cb);
}
}
exports.Client = Client;