@polyvharmony/rtc-sdk 1.1.0 → 1.2.0-dev.250908.1

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.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ## [v1.1.0] - 2025-02-10
1
+ ## [v1.2.0-dev.250908.1] - 2025-09-08
2
2
 
3
3
  此项目是保利威鸿蒙 RTC SDK
4
4
 
package/Index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './src/main/ets/engine/PLVRTCEngine';
2
2
  export * from './src/main/ets/engine/PLVRTCEngineEventCallback';
3
+ export * from './src/main/ets/vo/PLVRTCAudioEncodeParam';
3
4
  export * from './src/main/ets/vo/PLVRTCClientRole';
4
5
  export * from './src/main/ets/vo/PLVRTCConfig';
5
6
  export * from './src/main/ets/vo/PLVRTCMediaState';
package/ResourceTable.txt CHANGED
@@ -1 +1 @@
1
- string page_show 0x03000000
1
+ string page_show 0x04000000
package/ets/modules.abc CHANGED
Binary file
package/oh-package.json5 CHANGED
@@ -1 +1 @@
1
- {"name":"@polyvharmony/rtc-sdk","version":"1.1.0","description":"rtc-sdk","author":"POLYV","repository":"https://github.com/polyv/polyv-harmony-livescenes-sdk-demo","license":"MIT","dependencies":{"@polyvharmony/media-player-foundation":"2.4.0"},"types":"Index.d.ts","artifactType":"obfuscation","metadata":{"byteCodeHar":true,"sourceRoots":["./src/main"],"debug":false,"declarationEntry":[],"useNormalizedOHMUrl":true},"compatibleSdkVersion":12,"compatibleSdkType":"HarmonyOS","obfuscated":true}
1
+ {"name":"@polyvharmony/rtc-sdk","version":"1.2.0-dev.250908.1","description":"rtc-sdk","author":"POLYV","repository":"https://github.com/polyv/polyv-harmony-livescenes-sdk-demo","license":"MIT","dependencies":{"@polyvharmony/common-libs":"1.0.0"},"types":"Index.d.ts","artifactType":"obfuscation","metadata":{"byteCodeHar":true,"sourceRoots":["./src/main"],"debug":false,"dependencyPkgVersion":{"@polyvharmony/common-libs":"1.0.0"},"declarationEntry":[],"useNormalizedOHMUrl":true},"compatibleSdkVersion":12,"compatibleSdkType":"HarmonyOS","obfuscated":true}
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@polyvharmony/rtc-sdk","version":"1.1.0","description":"rtc-sdk","author":"POLYV","repository":"https://github.com/polyv/polyv-harmony-livescenes-sdk-demo","license":"MIT","dependencies":{"@polyvharmony/media-player-foundation":"2.4.0"},"types":"Index.d.ts","artifactType":"obfuscation","metadata":{"byteCodeHar":true,"sourceRoots":["./src/main"],"debug":false,"declarationEntry":[],"useNormalizedOHMUrl":true},"compatibleSdkVersion":12,"compatibleSdkType":"HarmonyOS","obfuscated":true}
1
+ {"name":"@polyvharmony/rtc-sdk","version":"1.2.0-dev.250908.1","description":"rtc-sdk","author":"POLYV","repository":"https://github.com/polyv/polyv-harmony-livescenes-sdk-demo","license":"MIT","dependencies":{"@polyvharmony/common-libs":"1.0.0"},"types":"Index.d.ts","artifactType":"obfuscation","metadata":{"byteCodeHar":true,"sourceRoots":["./src/main"],"debug":false,"dependencyPkgVersion":{"@polyvharmony/common-libs":"1.0.0"},"declarationEntry":[],"useNormalizedOHMUrl":true},"compatibleSdkVersion":12,"compatibleSdkType":"HarmonyOS","obfuscated":true}
@@ -1,9 +1,11 @@
1
1
  import { PLVRTCEngine } from './engine/PLVRTCEngine';
2
- import { PLVRTCConfig } from './vo/PLVRTCConfig';
2
+ import { PLVRTCConfig, PLVRTCType } from './vo/PLVRTCConfig';
3
3
  import { PLVRTCEngineEventCallback } from './engine/PLVRTCEngineEventCallback';
4
4
  export declare abstract class PLVRTCEngineFactory {
5
5
  private static readonly factoryImpls;
6
6
  static register(factory: PLVRTCEngineFactory): void;
7
+ static isEngineSupport(rtcType: PLVRTCType): boolean;
7
8
  static create(rtcConfig: PLVRTCConfig, eventCallback: PLVRTCEngineEventCallback): PLVRTCEngine;
9
+ abstract isEngineSupport(rtcType: PLVRTCType): boolean;
8
10
  abstract create(rtcConfig: PLVRTCConfig, eventCallback: PLVRTCEngineEventCallback): PLVRTCEngine | null;
9
11
  }
@@ -0,0 +1,14 @@
1
+ export declare enum PLVRTCAudioQuality {
2
+ /**
3
+ * 高降噪级别,适合会议对话场景
4
+ */
5
+ SPEECH = 0,
6
+ /**
7
+ * 默认降噪级别
8
+ */
9
+ DEFAULT = 1,
10
+ /**
11
+ * 低降噪级别,适合音乐播放场景
12
+ */
13
+ MUSIC = 2
14
+ }
@@ -10,10 +10,15 @@ export declare class PLVRTCConfig {
10
10
  linkmicId: string | null;
11
11
  }
12
12
  export declare enum PLVRTCType {
13
- ARTC = "artc"
13
+ ARTC = "artc",
14
+ TRTC = "trtc"
14
15
  }
15
- export type PLVRTCAppToken = PLVARTCAppToken;
16
+ export type PLVRTCAppToken = PLVARTCAppToken | PLVTRTCAppToken;
16
17
  export type PLVARTCAppToken = {
17
18
  appId: string;
18
19
  token: string;
19
20
  };
21
+ export type PLVTRTCAppToken = {
22
+ sdkAppId: number;
23
+ userSig: string;
24
+ };
@@ -1,27 +1 @@
1
- {
2
- "app": {
3
- "bundleName": "net.polyv.rtc",
4
- "versionCode": 10000,
5
- "versionName": "1.0.0",
6
- "minAPIVersion": 50000012,
7
- "targetAPIVersion": 50000012,
8
- "apiReleaseType": "Release",
9
- "compileSdkVersion": "5.0.0.71",
10
- "compileSdkType": "HarmonyOS",
11
- "appEnvironments": [],
12
- "bundleType": "app"
13
- },
14
- "module": {
15
- "name": "rtc_sdk",
16
- "type": "har",
17
- "deviceTypes": [
18
- "default",
19
- "tablet"
20
- ],
21
- "packageName": "@polyvharmony/rtc-sdk",
22
- "installationFree": false,
23
- "virtualMachine": "ark12.0.2.0",
24
- "compileMode": "esmodule",
25
- "dependencies": []
26
- }
27
- }
1
+ {"app":{"bundleName":"net.polyv.rtc","debug":false,"versionCode":10000,"versionName":"1.0.0","minAPIVersion":50000012,"targetAPIVersion":50004016,"apiReleaseType":"Release","compileSdkVersion":"5.0.4.150","compileSdkType":"HarmonyOS","appEnvironments":[],"bundleType":"app","buildMode":"release"},"module":{"name":"rtc_sdk","type":"har","deviceTypes":["default","tablet"],"packageName":"@polyvharmony/rtc-sdk","installationFree":false,"virtualMachine":"ark12.0.2.0","compileMode":"esmodule","dependencies":[]}}