@ray-js/ray-ipc-utils 1.1.0-beta-14 → 1.1.0-beta-16

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.
@@ -4,6 +4,7 @@ export declare enum ClarityType {
4
4
  HD = "HD",
5
5
  UD = "UD",
6
6
  SSP = "SSP",
7
+ AUTO = "AUTO",
7
8
  AUDIO = "AUDIO"
8
9
  }
9
10
  export declare enum IntercomMode {
package/lib/interface.js CHANGED
@@ -4,6 +4,7 @@ export let ClarityType = /*#__PURE__*/function (ClarityType) {
4
4
  ClarityType["HD"] = "HD";
5
5
  ClarityType["UD"] = "UD";
6
6
  ClarityType["SSP"] = "SSP";
7
+ ClarityType["AUTO"] = "AUTO";
7
8
  ClarityType["AUDIO"] = "AUDIO";
8
9
  return ClarityType;
9
10
  }({}); // 音频模式
@@ -80,14 +80,12 @@ export const setNativeStorage = (key, data) => {
80
80
  key,
81
81
  data,
82
82
  success: res => {
83
- console.log(res, '______');
84
83
  resolve({
85
84
  code: 0,
86
85
  data: res
87
86
  });
88
87
  },
89
88
  fail: err => {
90
- console.log(err, '___________');
91
89
  resolve({
92
90
  code: -1,
93
91
  msg: err
@@ -299,14 +297,12 @@ export const getVideoBitrateKbps = function (deviceId) {
299
297
  deviceId,
300
298
  extendParam: extendParam,
301
299
  success: res => {
302
- console.log('res===getVideoBitrateKbps success', res);
303
300
  resolve({
304
301
  code: 0,
305
302
  data: res
306
303
  });
307
304
  },
308
305
  fail: err => {
309
- console.log('res===getVideoBitrateKbps err', err);
310
306
  resolve({
311
307
  code: -1,
312
308
  msg: err
@@ -346,14 +342,12 @@ export const getMobileOrientation = () => {
346
342
  const {
347
343
  deviceOrientation = ''
348
344
  } = res;
349
- console.log('res===getMobileOrientation success', deviceOrientation);
350
345
  resolve({
351
346
  code: 0,
352
347
  data: deviceOrientation
353
348
  });
354
349
  },
355
350
  fail: err => {
356
- console.log('res===getMobileOrientation err', err);
357
351
  resolve({
358
352
  code: -1,
359
353
  msg: err
@@ -414,14 +408,12 @@ export const setScreenOrientation = pageOrientation => {
414
408
  ty.setPageOrientation({
415
409
  pageOrientation: pageOrientation,
416
410
  success: res => {
417
- console.log('res===setScreenOrientation success', res);
418
411
  resolve({
419
412
  code: 0,
420
413
  data: res
421
414
  });
422
415
  },
423
416
  fail: err => {
424
- console.log('res===setScreenOrientation err', err);
425
417
  resolve({
426
418
  code: -1,
427
419
  msg: err
@@ -451,14 +443,12 @@ export const isSupportFloatWindow = function (deviceId) {
451
443
  deviceId,
452
444
  extendParam: extendParam,
453
445
  success: res => {
454
- console.log('res===isSupportFloatWindow success', res);
455
446
  resolve({
456
447
  code: 0,
457
448
  data: res
458
449
  });
459
450
  },
460
451
  fail: err => {
461
- console.log('res===isSupportFloatWindow err', err);
462
452
  resolve({
463
453
  code: -1,
464
454
  msg: err
@@ -488,14 +478,12 @@ export const openFloatWindow = function (deviceId) {
488
478
  deviceId,
489
479
  extendParam: extendParam,
490
480
  success: res => {
491
- console.log('res===openFloatWindow success', res);
492
481
  resolve({
493
482
  code: 0,
494
483
  data: res
495
484
  });
496
485
  },
497
486
  fail: err => {
498
- console.log('res===openFloatWindow err', err);
499
487
  resolve({
500
488
  code: -1,
501
489
  msg: err
@@ -562,14 +550,12 @@ export const getCurrentSupportedTalkMode = function (deviceId) {
562
550
  deviceId,
563
551
  extendParam: extendParam,
564
552
  success: res => {
565
- console.log('res===getCurrentSupportedTalkMode success', res);
566
553
  resolve({
567
554
  code: 0,
568
555
  data: res
569
556
  });
570
557
  },
571
558
  fail: err => {
572
- console.log('res===getCurrentSupportedTalkMode err', err);
573
559
  resolve({
574
560
  code: -1,
575
561
  msg: err
@@ -784,7 +770,6 @@ export const ipcTTTOperatorLog = ipcLogString => {
784
770
  ty.ipc.ipcTTTOperatorLog({
785
771
  ipcLogString,
786
772
  success: res => {
787
- console.log(res, 'res');
788
773
  resolve({
789
774
  code: 0,
790
775
  data: res
@@ -50,6 +50,7 @@ const videoResolutionMode = {
50
50
  4: ClarityType.HD,
51
51
  8: ClarityType.UD,
52
52
  16: ClarityType.SSP,
53
+ 32: ClarityType.AUTO,
53
54
  65535: ClarityType.AUDIO
54
55
  };
55
56
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/ray-ipc-utils",
3
- "version": "1.1.0-beta-14",
3
+ "version": "1.1.0-beta-16",
4
4
  "description": "IPC 工具库",
5
5
  "main": "lib/index",
6
6
  "files": [