aliyun-rtc-sdk 7.2.0-beta.0 → 7.2.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.
@@ -81,6 +81,7 @@ export declare enum AliRtcCapabilityProfile {
81
81
  export declare type AliRtcChannelParam = {
82
82
  userName?: string;
83
83
  capabilityProfile?: AliRtcCapabilityProfile;
84
+ robotUserId?: string;
84
85
  };
85
86
 
86
87
  export declare interface AliRtcCheckResult {
@@ -158,6 +159,7 @@ export declare enum AliRtcDataMsgType {
158
159
  declare type AliRtcDualVideoPluginOptions = VideoScalerOptions;
159
160
 
160
161
  declare class AliRtcEngine_2 extends default_2<AliRtcEngineEventListener> {
162
+ private config?;
161
163
  /**
162
164
  * @ignore
163
165
  */
@@ -265,7 +267,7 @@ declare class AliRtcEngine_2 extends default_2<AliRtcEngineEventListener> {
265
267
  private _localCheckAuthInfoTimestamp;
266
268
  private _proxyAiTid;
267
269
  private _agentParam;
268
- constructor(config?: AliRtcEngineConfig);
270
+ constructor(config?: AliRtcEngineConfig | undefined);
269
271
  /**
270
272
  * 获取当前频道号,已经入会成功返回频道号,否则返回undefined
271
273
  */
@@ -275,7 +277,7 @@ declare class AliRtcEngine_2 extends default_2<AliRtcEngineEventListener> {
275
277
  */
276
278
  get userId(): string | undefined;
277
279
  get remoteUsers(): RemoteUser[];
278
- get publisher(): LocalUser | undefined;
280
+ get publisher(): LocalUser;
279
281
  get publishAudioStream(): LocalStream | undefined;
280
282
  get isPublishing(): boolean;
281
283
  private get currentRoleCanPublish();
@@ -2334,7 +2336,7 @@ declare class BizControl extends default_2<BizControlListener> {
2334
2336
  /**
2335
2337
  * 获取推流对象,只能是自己
2336
2338
  */
2337
- get publisher(): LocalUser | undefined;
2339
+ get publisher(): LocalUser;
2338
2340
  get isSubscribing(): boolean;
2339
2341
  /**
2340
2342
  * 处理远端用户推流状态变化
@@ -3125,13 +3127,13 @@ declare interface PackageAdaptInfo {
3125
3127
  version: string;
3126
3128
  }
3127
3129
 
3128
- declare class PackageCreater {
3130
+ declare class PackageCreator {
3129
3131
  protected authInfo: AliRtcAuthInfo;
3130
3132
  protected userName: string;
3131
3133
  protected seqIndex: number;
3132
3134
  constructor(authInfo: AliRtcAuthInfo, userName: string);
3133
3135
  get roleAuth(): SendPackageAuthInfo | undefined;
3134
- get adaptInfo(): PackageAdaptInfo | undefined;
3136
+ static get adaptInfo(): PackageAdaptInfo;
3135
3137
  refreshAuthInfo(authInfo: AliRtcAuthInfo): void;
3136
3138
  getSeqIndex(): number;
3137
3139
  /**
@@ -3148,7 +3150,7 @@ declare class PackageCreater {
3148
3150
  * 创建一个用于发送离会消息的Package
3149
3151
  * @returns
3150
3152
  */
3151
- crateLeavePackage(): ISendPackage;
3153
+ createLeavePackage(): ISendPackage;
3152
3154
  createStatusPackage(status: string): ISendPackage;
3153
3155
  /**
3154
3156
  * 创建一个用于发送推流消息的Package
@@ -3699,7 +3701,7 @@ declare class RoomServerMessageCenter extends default_2<RoomServerListener> {
3699
3701
  protected clientRole: AliRtcSdkClientRole;
3700
3702
  private slsReporter;
3701
3703
  protected wsClient: Socket;
3702
- protected packageCreater: PackageCreater;
3704
+ protected packageCreator: PackageCreator;
3703
3705
  protected keepAliveTimer: number;
3704
3706
  protected lastKeepAliveResponseTime: number;
3705
3707
  protected maxConnectRetryDuration: number;
package/package.json CHANGED
@@ -1,24 +1,72 @@
1
1
  {
2
2
  "name": "aliyun-rtc-sdk",
3
- "version": "7.2.0-beta.0",
3
+ "version": "7.2.0",
4
4
  "type": "module",
5
5
  "description": "rtc web sdk of aliyun",
6
+ "homepage": "https://help.aliyun.com/zh/live/user-guide/quick-use",
6
7
  "main": "dist/aliyun-rtc-sdk.umd.js",
7
8
  "module": "dist/aliyun-rtc-sdk.es.js",
8
9
  "types": "dist/types/index.d.ts",
10
+ "scripts": {
11
+ "test": "vitest",
12
+ "coverage": "vitest run --coverage",
13
+ "build": "tsc && vite build",
14
+ "build:esm": "tsc && vite build -c vite.config.esm.js",
15
+ "build:plugins": "rollup -c ./scripts/rollup.config.plugins.js && rollup -c ./scripts/rollup.config.plugins.dts.js",
16
+ "publish:npm": "node ./scripts/publish.js",
17
+ "publish:npm-beta": "node ./scripts/publish-beta.js",
18
+ "publish:tnpm-beta": "node ./scripts/publish-tnpm-beta.js",
19
+ "lint": "eslint src demo --quiet --ext .ts,.tsx",
20
+ "typedoc": "typedoc"
21
+ },
9
22
  "dependencies": {
10
23
  "@aliyun-sls/web-sts-plugin": "^0.3.5",
11
24
  "@aliyun-sls/web-track-browser": "^0.3.5",
12
25
  "aliyun-queen-engine": "^6.3.14",
13
- "aliyun-rts-sdk": "2.13.5-beta.0",
26
+ "aliyun-rts-sdk": "2.13.7",
14
27
  "crypto-js": "^4.1.1",
15
28
  "dateformat": "^5.0.3",
16
29
  "eventemitter3": "^5.0.1",
17
30
  "ua-parser-js": "1.0.40",
18
31
  "uuid": "^10.0.0"
19
32
  },
20
- "homepage": "https://help.aliyun.com/zh/live/user-guide/quick-use",
33
+ "devDependencies": {
34
+ "@ali/aliyun-audio-3a": "0.0.6",
35
+ "@ali/eslint-config-att": "^1.0.6",
36
+ "@ali/mediabox-quality-tracer": "^0.23.0",
37
+ "@ali/vc-apm": "1.1.1-beta.2",
38
+ "@rollup/plugin-alias": "^5.1.0",
39
+ "@rollup/plugin-commonjs": "^25.0.7",
40
+ "@rollup/plugin-multi-entry": "^6.0.1",
41
+ "@rollup/plugin-node-resolve": "^15.2.3",
42
+ "@rollup/plugin-replace": "^5.0.5",
43
+ "@rollup/plugin-terser": "^0.4.4",
44
+ "@rollup/plugin-typescript": "^11.1.6",
45
+ "@types/crypto-js": "^4.2.2",
46
+ "@types/dateformat": "^5.0.2",
47
+ "@types/ua-parser-js": "^0.7.39",
48
+ "@types/uuid": "^10.0.0",
49
+ "@typescript-eslint/eslint-plugin": "^6.1.0",
50
+ "@typescript-eslint/parser": "^6.1.0",
51
+ "commit-and-tag-version": "^12.4.0",
52
+ "eslint": "^8.45.0",
53
+ "eslint-plugin-react": "^7.32.2",
54
+ "eslint-plugin-react-hooks": "^4.6.0",
55
+ "media-device": "^1.2.0",
56
+ "prettier": "3.5.3",
57
+ "rollup": "^4.17.2",
58
+ "rollup-plugin-dts": "^6.1.0",
59
+ "rollup-plugin-esbuild": "^6.1.1",
60
+ "rollup-plugin-visualizer": "^5.9.0",
61
+ "terser": "^5.39.2",
62
+ "typedoc": "^0.25.13",
63
+ "typescript": "^4.9.3",
64
+ "vite": "^4.1.0",
65
+ "vite-plugin-dts": "^3.8.2",
66
+ "vitest": "^0.29.3"
67
+ },
21
68
  "files": [
22
69
  "dist"
23
- ]
24
- }
70
+ ],
71
+ "repository": "git@gitlab.alibaba-inc.com:apsara-media-box/imp-web-rtc.git"
72
+ }