armcloud-rtc 1.5.7 → 1.6.0

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.
@@ -388,6 +388,7 @@ declare class customRtc {
388
388
  private remoteResolution;
389
389
  private touchConfig;
390
390
  private _listenKeyboardShortcut;
391
+ private isContainerActive;
391
392
  private touchInfo;
392
393
  private simulateTouchInfo;
393
394
  private options;
@@ -396,6 +397,9 @@ declare class customRtc {
396
397
  private groupEngine;
397
398
  private groupRtc;
398
399
  private inputElement;
400
+ private mediaRecorder;
401
+ private recordedChunks;
402
+ private recordedMimeType;
399
403
  private promiseMap;
400
404
  roomMessage: any;
401
405
  autoRecoveryTimer: any;
@@ -448,6 +452,7 @@ declare class customRtc {
448
452
  joinGroupRoom(pads: any): void;
449
453
  start(isGroupControl?: boolean, pads?: never[]): void;
450
454
  startCV(): void;
455
+ private bindContainerActiveState;
451
456
  enableKeyboardShortcut(): void;
452
457
  disableKeyboardShortcut(): void;
453
458
  listenKeyboardShortcut(e: KeyboardEvent): void;
@@ -471,6 +476,11 @@ declare class customRtc {
471
476
  onRemoteVideoFirstFrame(): void;
472
477
  stop(): Promise<undefined>;
473
478
  onUserPublishStream(): void;
479
+ startRecordStream(options?: {
480
+ mimeType?: string;
481
+ timeslice?: number;
482
+ }): boolean;
483
+ stopRecordStream(filename?: string): Promise<Blob | null>;
474
484
  sendShakeInfo(time: number): void;
475
485
  checkInputState(msg: any): void;
476
486
  onRoomMessageReceived(): void;
@@ -711,6 +721,7 @@ declare class tcgRtc {
711
721
  private lastStreamResolution;
712
722
  private remoteDesktopResolution;
713
723
  private enterkeyhintObj;
724
+ private cameraProfile;
714
725
  constructor(initDomId: string, options: ArmcloudRtcOptions, callbacks: ArmcloudCallbacks);
715
726
  private setupVideoDom;
716
727
  private getMsgTemplate;
@@ -724,7 +735,7 @@ declare class tcgRtc {
724
735
  muted(): void;
725
736
  getRequestId(): string;
726
737
  unmuted(): void;
727
- startPlay(): void;
738
+ startPlay(): void | Promise<void>;
728
739
  sendGroupRoomMessage(message: string): Promise<void>;
729
740
  getEquipmentInfo(type: EquipmentInfoType): void;
730
741
  getInjectStreamStatus(type: InjectStreamStatusType, timeout?: number): Promise<unknown>;
package/package.json CHANGED
@@ -1,44 +1,29 @@
1
- {
2
- "name": "armcloud-rtc",
3
- "version": "1.5.7",
4
- "main": "./src/index.ts",
5
- "module": "./src/index.ts",
6
- "types": "./src/index.ts",
7
- "files": [
8
- "dist"
9
- ],
10
- "keywords": [
11
- "rtc",
12
- "armcloud-rtc",
13
- "webrtc"
14
- ],
15
- "scripts": {
16
- "build": "rimraf dist && rollup --config rollup.config.ts --configPlugin typescript"
17
- },
18
- "author": "ask",
19
- "license": "ISC",
20
- "description": "armcloud-rtc sdk",
21
- "dependencies": {
22
- "@volcengine/rtc": "^4.61.2",
23
- "axios": "^1.7.3",
24
- "clipboard-copy": "^4.0.1",
25
- "crypto-js": "^4.2.0",
26
- "webrtc-adapter": "^9.0.1"
27
- },
28
- "devDependencies": {
29
- "@babel/core": "^7.25.2",
30
- "@babel/preset-env": "^7.25.3",
31
- "@rollup/plugin-babel": "^6.0.4",
32
- "@rollup/plugin-commonjs": "^26.0.1",
33
- "@rollup/plugin-json": "^6.1.0",
34
- "@rollup/plugin-node-resolve": "^15.2.3",
35
- "@rollup/plugin-terser": "^0.4.4",
36
- "@rollup/plugin-typescript": "^11.1.6",
37
- "@types/axios": "^0.14.4",
38
- "@types/crypto-js": "^4.2.2",
39
- "rimraf": "^6.0.1",
40
- "rollup": "^4.46.4",
41
- "rollup-plugin-dts": "^6.2.3",
42
- "tslib": "^2.6.3"
43
- }
1
+ {
2
+ "name": "armcloud-rtc",
3
+ "version": "1.6.0",
4
+ "main": "./dist/index.cjs.js",
5
+ "module": "./dist/index.es.js",
6
+ "types": "./dist/types/index.d.ts",
7
+ "files": [
8
+ "dist/*.js",
9
+ "dist/types/**/*.d.ts"
10
+ ],
11
+ "keywords": [
12
+ "rtc",
13
+ "armcloud-rtc",
14
+ "webrtc"
15
+ ],
16
+ "scripts": {},
17
+ "author": "ask",
18
+ "license": "ISC",
19
+ "description": "armcloud-rtc sdk",
20
+ "dependencies": {},
21
+ "devDependencies": {},
22
+ "exports": {
23
+ ".": {
24
+ "types": "./dist/types/index.d.ts",
25
+ "import": "./dist/index.es.js",
26
+ "require": "./dist/index.cjs.js"
27
+ }
28
+ }
44
29
  }