@ray-js/api 1.7.81 → 1.7.82

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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * AVideoKit
3
3
  *
4
- * @version 1.0.6
4
+ * @version 1.0.12
5
5
  */
6
6
  declare namespace ty.avideo {
7
7
  /**
@@ -24,7 +24,7 @@ declare namespace ty.avideo {
24
24
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
25
25
  complete?: () => void
26
26
  /** 接口调用成功的回调函数 */
27
- success?: (params: null) => void
27
+ success?: () => void
28
28
  /** 接口调用失败的回调函数 */
29
29
  fail?: (params: {
30
30
  /** 错误信息 */
@@ -51,9 +51,10 @@ declare namespace ty.avideo {
51
51
  /**
52
52
  * vad 级别
53
53
  * @since AVideoKit 1.0.0
54
- * @defaultValue VadLevel.vzero
54
+ * @defaultValue 4
55
+ * @TEnum VadLevel
55
56
  */
56
- level?: VadLevel
57
+ level?: 0 | 1 | 2 | 3 | 4
57
58
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
58
59
  complete?: () => void
59
60
  /** 接口调用成功的回调函数 */
@@ -294,15 +295,30 @@ declare namespace ty.avideo {
294
295
  complete?: () => void
295
296
  /** 接口调用成功的回调函数 */
296
297
  success?: (params: {
297
- /** @since AVideoKit 1.0.0 */
298
+ /**
299
+ * 状态码
300
+ * @since AVideoKit 1.0.0
301
+ */
298
302
  status_code: number
299
- /** @since AVideoKit 1.0.0 */
303
+ /**
304
+ * 采样率
305
+ * @since AVideoKit 1.0.0
306
+ */
300
307
  sampleRate: number
301
- /** @since AVideoKit 1.0.0 */
308
+ /**
309
+ * 声道数
310
+ * @since AVideoKit 1.0.0
311
+ */
302
312
  channelCount: number
303
- /** @since AVideoKit 1.0.0 */
313
+ /**
314
+ * 数据包长度
315
+ * @since AVideoKit 1.0.0
316
+ */
304
317
  packetLength: number
305
- /** @since AVideoKit 1.0.0 */
318
+ /**
319
+ * 解码后的数据
320
+ * @since AVideoKit 1.0.0
321
+ */
306
322
  packet_data: number[]
307
323
  }) => void
308
324
  /** 接口调用失败的回调函数 */
@@ -346,7 +362,7 @@ declare namespace ty.avideo {
346
362
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
347
363
  complete?: () => void
348
364
  /** 接口调用成功的回调函数 */
349
- success?: (params: null) => void
365
+ success?: () => void
350
366
  /** 接口调用失败的回调函数 */
351
367
  fail?: (params: {
352
368
  /** 错误信息 */
@@ -384,7 +400,10 @@ declare namespace ty.avideo {
384
400
  complete?: () => void
385
401
  /** 接口调用成功的回调函数 */
386
402
  success?: (params: {
387
- /** @since AVideoKit 1.0.0 */
403
+ /**
404
+ * 音频流数据
405
+ * @since AVideoKit 1.0.0
406
+ */
388
407
  data: number[]
389
408
  }) => void
390
409
  /** 接口调用失败的回调函数 */
@@ -428,7 +447,7 @@ declare namespace ty.avideo {
428
447
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
429
448
  complete?: () => void
430
449
  /** 接口调用成功的回调函数 */
431
- success?: (params: null) => void
450
+ success?: () => void
432
451
  /** 接口调用失败的回调函数 */
433
452
  fail?: (params: {
434
453
  /** 错误信息 */
@@ -456,7 +475,10 @@ declare namespace ty.avideo {
456
475
  complete?: () => void
457
476
  /** 接口调用成功的回调函数 */
458
477
  success?: (params: {
459
- /** @since AVideoKit 1.0.0 */
478
+ /**
479
+ * 音频流数据
480
+ * @since AVideoKit 1.0.0
481
+ */
460
482
  data: number[]
461
483
  }) => void
462
484
  /** 接口调用失败的回调函数 */
@@ -496,7 +518,10 @@ declare namespace ty.avideo {
496
518
  complete?: () => void
497
519
  /** 接口调用成功的回调函数 */
498
520
  success?: (params: {
499
- /** @since AVideoKit 1.0.0 */
521
+ /**
522
+ * 音频流数据
523
+ * @since AVideoKit 1.0.0
524
+ */
500
525
  data: number[]
501
526
  }) => void
502
527
  /** 接口调用失败的回调函数 */
@@ -526,7 +551,10 @@ declare namespace ty.avideo {
526
551
  complete?: () => void
527
552
  /** 接口调用成功的回调函数 */
528
553
  success?: (params: {
529
- /** @since AVideoKit 1.0.0 */
554
+ /**
555
+ * 音频流数据
556
+ * @since AVideoKit 1.0.0
557
+ */
530
558
  data: number[]
531
559
  }) => void
532
560
  /** 接口调用失败的回调函数 */
@@ -566,15 +594,30 @@ declare namespace ty.avideo {
566
594
  complete?: () => void
567
595
  /** 接口调用成功的回调函数 */
568
596
  success?: (params: {
569
- /** @since AVideoKit 1.0.0 */
597
+ /**
598
+ * 状态码
599
+ * @since AVideoKit 1.0.0
600
+ */
570
601
  status_code: number
571
- /** @since AVideoKit 1.0.0 */
602
+ /**
603
+ * 采样率
604
+ * @since AVideoKit 1.0.0
605
+ */
572
606
  sampleRate: number
573
- /** @since AVideoKit 1.0.0 */
607
+ /**
608
+ * 声道数
609
+ * @since AVideoKit 1.0.0
610
+ */
574
611
  channelCount: number
575
- /** @since AVideoKit 1.0.0 */
612
+ /**
613
+ * 数据包长度
614
+ * @since AVideoKit 1.0.0
615
+ */
576
616
  packetLength: number
577
- /** @since AVideoKit 1.0.0 */
617
+ /**
618
+ * 解包后的数据
619
+ * @since AVideoKit 1.0.0
620
+ */
578
621
  packet_data: number[]
579
622
  }) => void
580
623
  /** 接口调用失败的回调函数 */
@@ -608,7 +651,7 @@ declare namespace ty.avideo {
608
651
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
609
652
  complete?: () => void
610
653
  /** 接口调用成功的回调函数 */
611
- success?: (params: null) => void
654
+ success?: () => void
612
655
  /** 接口调用失败的回调函数 */
613
656
  fail?: (params: {
614
657
  /** 错误信息 */
@@ -640,7 +683,7 @@ declare namespace ty.avideo {
640
683
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
641
684
  complete?: () => void
642
685
  /** 接口调用成功的回调函数 */
643
- success?: (params: null) => void
686
+ success?: () => void
644
687
  /** 接口调用失败的回调函数 */
645
688
  fail?: (params: {
646
689
  /** 错误信息 */
@@ -667,7 +710,7 @@ declare namespace ty.avideo {
667
710
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
668
711
  complete?: () => void
669
712
  /** 接口调用成功的回调函数 */
670
- success?: (params: null) => void
713
+ success?: () => void
671
714
  /** 接口调用失败的回调函数 */
672
715
  fail?: (params: {
673
716
  /** 错误信息 */
@@ -694,7 +737,7 @@ declare namespace ty.avideo {
694
737
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
695
738
  complete?: () => void
696
739
  /** 接口调用成功的回调函数 */
697
- success?: (params: null) => void
740
+ success?: () => void
698
741
  /** 接口调用失败的回调函数 */
699
742
  fail?: (params: {
700
743
  /** 错误信息 */
@@ -721,7 +764,7 @@ declare namespace ty.avideo {
721
764
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
722
765
  complete?: () => void
723
766
  /** 接口调用成功的回调函数 */
724
- success?: (params: null) => void
767
+ success?: () => void
725
768
  /** 接口调用失败的回调函数 */
726
769
  fail?: (params: {
727
770
  /** 错误信息 */
@@ -895,9 +938,10 @@ declare namespace ty.avideo {
895
938
  /**
896
939
  * 压缩算法 ,目前只支持 IMA-ADPCM
897
940
  * @since AVideoKit 1.0.1
898
- * @defaultValue CompressionAlgorithm.NO_Algorithm
941
+ * @defaultValue 0
942
+ * @TEnum CompressionAlgorithm
899
943
  */
900
- compressType?: CompressionAlgorithm
944
+ compressType?: 0 | 1
901
945
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
902
946
  complete?: () => void
903
947
  /** 接口调用成功的回调函数 */
@@ -939,9 +983,10 @@ declare namespace ty.avideo {
939
983
  /**
940
984
  * 编码格式
941
985
  * @since AVideoKit 1.0.0
942
- * @defaultValue VideoCodecId.unknow
986
+ * @defaultValue -1
987
+ * @TEnum VideoCodecId
943
988
  */
944
- codec?: VideoCodecId
989
+ codec?: -1 | 0 | 1 | 2
945
990
  /**
946
991
  * 宽
947
992
  * @since AVideoKit 1.0.0
@@ -960,7 +1005,7 @@ declare namespace ty.avideo {
960
1005
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
961
1006
  complete?: () => void
962
1007
  /** 接口调用成功的回调函数 */
963
- success?: (params: null) => void
1008
+ success?: () => void
964
1009
  /** 接口调用失败的回调函数 */
965
1010
  fail?: (params: {
966
1011
  /** 错误信息 */
@@ -1002,9 +1047,10 @@ declare namespace ty.avideo {
1002
1047
  /**
1003
1048
  * 数据格式
1004
1049
  * @since AVideoKit 1.0.0
1005
- * @defaultValue PixelFormat.unknow
1050
+ * @defaultValue -1
1051
+ * @TEnum PixelFormat
1006
1052
  */
1007
- pixelFormat?: PixelFormat
1053
+ pixelFormat?: -1 | 0 | 1 | 2
1008
1054
  /**
1009
1055
  * 时间戳
1010
1056
  * @since AVideoKit 1.0.0
@@ -1013,7 +1059,7 @@ declare namespace ty.avideo {
1013
1059
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1014
1060
  complete?: () => void
1015
1061
  /** 接口调用成功的回调函数 */
1016
- success?: (params: null) => void
1062
+ success?: () => void
1017
1063
  /** 接口调用失败的回调函数 */
1018
1064
  fail?: (params: {
1019
1065
  /** 错误信息 */
@@ -1040,7 +1086,7 @@ declare namespace ty.avideo {
1040
1086
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1041
1087
  complete?: () => void
1042
1088
  /** 接口调用成功的回调函数 */
1043
- success?: (params: null) => void
1089
+ success?: () => void
1044
1090
  /** 接口调用失败的回调函数 */
1045
1091
  fail?: (params: {
1046
1092
  /** 错误信息 */
@@ -1067,13 +1113,14 @@ declare namespace ty.avideo {
1067
1113
  /**
1068
1114
  * 编码格式
1069
1115
  * @since AVideoKit 1.0.0
1070
- * @defaultValue VideoCodecId.unknow
1116
+ * @defaultValue -1
1117
+ * @TEnum VideoCodecId
1071
1118
  */
1072
- codecId?: VideoCodecId
1119
+ codecId?: -1 | 0 | 1 | 2
1073
1120
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1074
1121
  complete?: () => void
1075
1122
  /** 接口调用成功的回调函数 */
1076
- success?: (params: null) => void
1123
+ success?: () => void
1077
1124
  /** 接口调用失败的回调函数 */
1078
1125
  fail?: (params: {
1079
1126
  /** 错误信息 */
@@ -1110,7 +1157,7 @@ declare namespace ty.avideo {
1110
1157
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1111
1158
  complete?: () => void
1112
1159
  /** 接口调用成功的回调函数 */
1113
- success?: (params: null) => void
1160
+ success?: () => void
1114
1161
  /** 接口调用失败的回调函数 */
1115
1162
  fail?: (params: {
1116
1163
  /** 错误信息 */
@@ -1137,7 +1184,7 @@ declare namespace ty.avideo {
1137
1184
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1138
1185
  complete?: () => void
1139
1186
  /** 接口调用成功的回调函数 */
1140
- success?: (params: null) => void
1187
+ success?: () => void
1141
1188
  /** 接口调用失败的回调函数 */
1142
1189
  fail?: (params: {
1143
1190
  /** 错误信息 */
@@ -1246,9 +1293,10 @@ declare namespace ty.avideo {
1246
1293
  /**
1247
1294
  * vad 级别
1248
1295
  * @since AVideoKit 1.0.0
1249
- * @defaultValue VadLevel.vzero
1296
+ * @defaultValue 4
1297
+ * @TEnum VadLevel
1250
1298
  */
1251
- level?: VadLevel
1299
+ level?: 0 | 1 | 2 | 3 | 4
1252
1300
  }
1253
1301
 
1254
1302
  /** @since AVideoKit 1.0.0 */
@@ -1357,15 +1405,30 @@ declare namespace ty.avideo {
1357
1405
 
1358
1406
  /** @since AVideoKit 1.0.0 */
1359
1407
  export interface DecodeMp3FrameResponseModel {
1360
- /** @since AVideoKit 1.0.0 */
1408
+ /**
1409
+ * 状态码
1410
+ * @since AVideoKit 1.0.0
1411
+ */
1361
1412
  status_code: number
1362
- /** @since AVideoKit 1.0.0 */
1413
+ /**
1414
+ * 采样率
1415
+ * @since AVideoKit 1.0.0
1416
+ */
1363
1417
  sampleRate: number
1364
- /** @since AVideoKit 1.0.0 */
1418
+ /**
1419
+ * 声道数
1420
+ * @since AVideoKit 1.0.0
1421
+ */
1365
1422
  channelCount: number
1366
- /** @since AVideoKit 1.0.0 */
1423
+ /**
1424
+ * 数据包长度
1425
+ * @since AVideoKit 1.0.0
1426
+ */
1367
1427
  packetLength: number
1368
- /** @since AVideoKit 1.0.0 */
1428
+ /**
1429
+ * 解码后的数据
1430
+ * @since AVideoKit 1.0.0
1431
+ */
1369
1432
  packet_data: number[]
1370
1433
  }
1371
1434
 
@@ -1404,7 +1467,10 @@ declare namespace ty.avideo {
1404
1467
 
1405
1468
  /** @since AVideoKit 1.0.0 */
1406
1469
  export interface IntArrayResponseModel {
1407
- /** @since AVideoKit 1.0.0 */
1470
+ /**
1471
+ * 音频流数据
1472
+ * @since AVideoKit 1.0.0
1473
+ */
1408
1474
  data: number[]
1409
1475
  }
1410
1476
 
@@ -1457,15 +1523,30 @@ declare namespace ty.avideo {
1457
1523
 
1458
1524
  /** @since AVideoKit 1.0.0 */
1459
1525
  export interface UnpackOpusDataResponseModel {
1460
- /** @since AVideoKit 1.0.0 */
1526
+ /**
1527
+ * 状态码
1528
+ * @since AVideoKit 1.0.0
1529
+ */
1461
1530
  status_code: number
1462
- /** @since AVideoKit 1.0.0 */
1531
+ /**
1532
+ * 采样率
1533
+ * @since AVideoKit 1.0.0
1534
+ */
1463
1535
  sampleRate: number
1464
- /** @since AVideoKit 1.0.0 */
1536
+ /**
1537
+ * 声道数
1538
+ * @since AVideoKit 1.0.0
1539
+ */
1465
1540
  channelCount: number
1466
- /** @since AVideoKit 1.0.0 */
1541
+ /**
1542
+ * 数据包长度
1543
+ * @since AVideoKit 1.0.0
1544
+ */
1467
1545
  packetLength: number
1468
- /** @since AVideoKit 1.0.0 */
1546
+ /**
1547
+ * 解包后的数据
1548
+ * @since AVideoKit 1.0.0
1549
+ */
1469
1550
  packet_data: number[]
1470
1551
  }
1471
1552
 
@@ -1563,9 +1644,10 @@ declare namespace ty.avideo {
1563
1644
  /**
1564
1645
  * 压缩算法 ,目前只支持 IMA-ADPCM
1565
1646
  * @since AVideoKit 1.0.1
1566
- * @defaultValue CompressionAlgorithm.NO_Algorithm
1647
+ * @defaultValue 0
1648
+ * @TEnum CompressionAlgorithm
1567
1649
  */
1568
- compressType?: CompressionAlgorithm
1650
+ compressType?: 0 | 1
1569
1651
  }
1570
1652
 
1571
1653
  /** @since AVideoKit 1.0.0 */
@@ -1600,9 +1682,10 @@ declare namespace ty.avideo {
1600
1682
  /**
1601
1683
  * 编码格式
1602
1684
  * @since AVideoKit 1.0.0
1603
- * @defaultValue VideoCodecId.unknow
1685
+ * @defaultValue -1
1686
+ * @TEnum VideoCodecId
1604
1687
  */
1605
- codec?: VideoCodecId
1688
+ codec?: -1 | 0 | 1 | 2
1606
1689
  /**
1607
1690
  * 宽
1608
1691
  * @since AVideoKit 1.0.0
@@ -1667,9 +1750,10 @@ declare namespace ty.avideo {
1667
1750
  /**
1668
1751
  * 数据格式
1669
1752
  * @since AVideoKit 1.0.0
1670
- * @defaultValue PixelFormat.unknow
1753
+ * @defaultValue -1
1754
+ * @TEnum PixelFormat
1671
1755
  */
1672
- pixelFormat?: PixelFormat
1756
+ pixelFormat?: -1 | 0 | 1 | 2
1673
1757
  /**
1674
1758
  * 时间戳
1675
1759
  * @since AVideoKit 1.0.0
@@ -1706,9 +1790,10 @@ declare namespace ty.avideo {
1706
1790
  /**
1707
1791
  * 编码格式
1708
1792
  * @since AVideoKit 1.0.0
1709
- * @defaultValue VideoCodecId.unknow
1793
+ * @defaultValue -1
1794
+ * @TEnum VideoCodecId
1710
1795
  */
1711
- codecId?: VideoCodecId
1796
+ codecId?: -1 | 0 | 1 | 2
1712
1797
  }
1713
1798
 
1714
1799
  /** @since AVideoKit 1.0.0 */
@@ -1745,8 +1830,9 @@ declare namespace ty.avideo {
1745
1830
  /**
1746
1831
  * 数据格式
1747
1832
  * @since AVideoKit 1.0.0
1748
- * @defaultValue PixelFormat.unknow
1833
+ * @defaultValue -1
1834
+ * @TEnum PixelFormat
1749
1835
  */
1750
- pixelFormat?: PixelFormat
1836
+ pixelFormat?: -1 | 0 | 1 | 2
1751
1837
  }
1752
1838
  }