@polyvharmony/rtc-sdk 1.1.0 → 1.2.0-alpha.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 +1 -1
- package/Index.d.ts +1 -0
- package/ResourceTable.txt +1 -1
- package/ets/modules.abc +0 -0
- package/oh-package.json5 +1 -1
- package/package.json +1 -1
- package/src/main/ets/PLVRTCEngineFactory.d.ts +3 -1
- package/src/main/ets/vo/PLVRTCAudioEncodeParam.d.ts +14 -0
- package/src/main/ets/vo/PLVRTCConfig.d.ts +7 -2
- package/src/main/module.json +1 -27
package/CHANGELOG.md
CHANGED
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
|
|
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
|
+
{"name":"@polyvharmony/rtc-sdk","version":"1.2.0-alpha.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
|
+
{"name":"@polyvharmony/rtc-sdk","version":"1.2.0-alpha.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
|
}
|
|
@@ -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
|
+
};
|
package/src/main/module.json
CHANGED
|
@@ -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":[]}}
|