@polyvharmony/rtc-sdk 1.0.0-dev.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 +5 -0
- package/Index.d.ts +10 -0
- package/LICENSE +20 -0
- package/README.md +13 -0
- package/ResourceTable.txt +1 -0
- package/ets/modules.abc +0 -0
- package/obfuscation.txt +2 -0
- package/oh-package.json5 +1 -0
- package/package.json +1 -0
- package/src/main/ets/d/e.d.ts +1 -0
- package/src/main/ets/f/g.d.ts +75 -0
- package/src/main/ets/f/h.d.ts +37 -0
- package/src/main/ets/i/j.d.ts +10 -0
- package/src/main/ets/i/k.d.ts +16 -0
- package/src/main/ets/i/l.d.ts +6 -0
- package/src/main/ets/i/m.d.ts +6 -0
- package/src/main/ets/i/n.d.ts +19 -0
- package/src/main/ets/i/o.d.ts +10 -0
- package/src/main/ets/p.d.ts +9 -0
- package/src/main/ets/q/r.d.ts +24 -0
- package/src/main/module.json +27 -0
- package/src/main/resources/base/element/string.json +8 -0
- package/src/main/resources/en_US/element/string.json +8 -0
- package/src/main/resources/zh_CN/element/string.json +8 -0
package/CHANGELOG.md
ADDED
package/Index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./src/main/ets/d/e";
|
|
2
|
+
export * from "./src/main/ets/f/g";
|
|
3
|
+
export * from "./src/main/ets/f/h";
|
|
4
|
+
export * from "./src/main/ets/i/j";
|
|
5
|
+
export * from "./src/main/ets/i/k";
|
|
6
|
+
export * from "./src/main/ets/i/l";
|
|
7
|
+
export * from "./src/main/ets/i/m";
|
|
8
|
+
export * from "./src/main/ets/i/n";
|
|
9
|
+
export * from "./src/main/ets/i/o";
|
|
10
|
+
export * from "./src/main/ets/p";
|
package/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
Copyright (c) 2024, contributors of the POLYV project
|
|
3
|
+
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
in the Software without restriction, including without limitation the rights
|
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in
|
|
12
|
+
all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
+
THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
string page_show 0x03000000
|
package/ets/modules.abc
ADDED
|
Binary file
|
package/obfuscation.txt
ADDED
package/oh-package.json5
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"@polyvharmony/rtc-sdk","version":"1.0.0-dev.1","description":"rtc-sdk","author":"POLYV","repository":"https://github.com/polyv/polyv-harmony-livescenes-sdk-demo","license":"MIT","dependencies":{"@polyvharmony/media-player-foundation":"2.2.0"},"types":"Index.d.ts","artifactType":"obfuscation","metadata":{"byteCodeHar":true,"sourceRoots":["./src/main"],"debug":false,"declarationEntry":[],"useNormalizedOHMUrl":true},"compatibleSdkVersion":12,"compatibleSdkType":"HarmonyOS","obfuscated":true}
|
package/package.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"@polyvharmony/rtc-sdk","version":"1.0.0-dev.1","description":"rtc-sdk","author":"POLYV","repository":"https://github.com/polyv/polyv-harmony-livescenes-sdk-demo","license":"MIT","dependencies":{"@polyvharmony/media-player-foundation":"2.2.0"},"types":"Index.d.ts","artifactType":"obfuscation","metadata":{"byteCodeHar":true,"sourceRoots":["./src/main"],"debug":false,"declarationEntry":[],"useNormalizedOHMUrl":true},"compatibleSdkVersion":12,"compatibleSdkType":"HarmonyOS","obfuscated":true}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function m(tag?: string): MethodDecorator;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { b1, c1 } from "../i/k";
|
|
2
|
+
import { d1 } from "../i/n";
|
|
3
|
+
import { e1 } from "../i/o";
|
|
4
|
+
import { f1 } from "../i/m";
|
|
5
|
+
import { g1 } from "./h";
|
|
6
|
+
import { h1 } from "../i/j";
|
|
7
|
+
export declare abstract class i1 {
|
|
8
|
+
readonly o: c1;
|
|
9
|
+
readonly t: g1;
|
|
10
|
+
constructor(r3: c1, s3: g1);
|
|
11
|
+
/**
|
|
12
|
+
* 加入频道
|
|
13
|
+
*/
|
|
14
|
+
abstract u(p1: string): number;
|
|
15
|
+
/**
|
|
16
|
+
* 离开频道
|
|
17
|
+
*/
|
|
18
|
+
abstract a1(): number;
|
|
19
|
+
/**
|
|
20
|
+
* 更新token
|
|
21
|
+
*/
|
|
22
|
+
abstract j1(o1: b1): number;
|
|
23
|
+
/**
|
|
24
|
+
* 音频模块开关
|
|
25
|
+
*/
|
|
26
|
+
abstract l1(enable: boolean): number;
|
|
27
|
+
/**
|
|
28
|
+
* 本地音频采集开关
|
|
29
|
+
*/
|
|
30
|
+
abstract m1(enable: boolean): number;
|
|
31
|
+
/**
|
|
32
|
+
* 是否将本地音频发布到远端
|
|
33
|
+
*/
|
|
34
|
+
abstract n1(enable: boolean): number;
|
|
35
|
+
/**
|
|
36
|
+
* 视频模块开关
|
|
37
|
+
*/
|
|
38
|
+
abstract o1(enable: boolean): number;
|
|
39
|
+
/**
|
|
40
|
+
* 本地视频采集开关
|
|
41
|
+
*/
|
|
42
|
+
abstract q1(enable: boolean): number;
|
|
43
|
+
/**
|
|
44
|
+
* 是否将本地视频发布到远端
|
|
45
|
+
*/
|
|
46
|
+
abstract s1(enable: boolean): number;
|
|
47
|
+
/**
|
|
48
|
+
* 设置本地视频编码参数
|
|
49
|
+
*/
|
|
50
|
+
abstract t1(n1: d1): number;
|
|
51
|
+
/**
|
|
52
|
+
* 创建渲染视图 XComponent 配置参数
|
|
53
|
+
*/
|
|
54
|
+
abstract u1(m1: string): f1;
|
|
55
|
+
/**
|
|
56
|
+
* 设置视频渲染 本地&远端
|
|
57
|
+
*/
|
|
58
|
+
abstract v1(l1: e1): number;
|
|
59
|
+
/**
|
|
60
|
+
* 设置是否订阅远端音频
|
|
61
|
+
*/
|
|
62
|
+
abstract w1(j1: string, k1: boolean): number;
|
|
63
|
+
/**
|
|
64
|
+
* 切换角色
|
|
65
|
+
*/
|
|
66
|
+
abstract z1(role: h1): number;
|
|
67
|
+
/**
|
|
68
|
+
* 切换前后摄像头
|
|
69
|
+
*/
|
|
70
|
+
abstract a2(): number;
|
|
71
|
+
/**
|
|
72
|
+
* 销毁
|
|
73
|
+
*/
|
|
74
|
+
abstract destroy(): number;
|
|
75
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { c1 } from "../i/k";
|
|
2
|
+
import { b2 } from "../i/l";
|
|
3
|
+
export declare abstract class g1 {
|
|
4
|
+
/**
|
|
5
|
+
* 成功加入频道
|
|
6
|
+
*/
|
|
7
|
+
c2(o2: c1, q2: string): void;
|
|
8
|
+
/**
|
|
9
|
+
* 断网重连重新加入频道
|
|
10
|
+
*/
|
|
11
|
+
d2(m2: c1, n2: string): void;
|
|
12
|
+
/**
|
|
13
|
+
* 离开频道
|
|
14
|
+
*/
|
|
15
|
+
e2(k2: c1, l2: string): void;
|
|
16
|
+
/**
|
|
17
|
+
* 远端用户加入频道
|
|
18
|
+
*/
|
|
19
|
+
f2(i2: string, j2: b2): void;
|
|
20
|
+
/**
|
|
21
|
+
* 远端用户音视频状态变化
|
|
22
|
+
*/
|
|
23
|
+
g2(g2: string, h2: b2): void;
|
|
24
|
+
/**
|
|
25
|
+
* 远端用户离开频道
|
|
26
|
+
*/
|
|
27
|
+
h2(e2: string, f2: b2): void;
|
|
28
|
+
/**
|
|
29
|
+
* token 过期回调
|
|
30
|
+
* @see PLVRTCEngine#renewToken
|
|
31
|
+
*/
|
|
32
|
+
i2(c2: string | undefined, d2: c1): void;
|
|
33
|
+
/**
|
|
34
|
+
* 错误回调
|
|
35
|
+
*/
|
|
36
|
+
onError(code: number, message: string): void;
|
|
37
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare class d1 {
|
|
2
|
+
width: number;
|
|
3
|
+
height: number;
|
|
4
|
+
frameRate: number;
|
|
5
|
+
u2: number | undefined;
|
|
6
|
+
v2: number | undefined;
|
|
7
|
+
w2: m3;
|
|
8
|
+
z2: n3;
|
|
9
|
+
a3: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare enum m3 {
|
|
12
|
+
PREFER_BETTER_QUALITY = 0,
|
|
13
|
+
PREFER_BETTER_FLUENCY = 1
|
|
14
|
+
}
|
|
15
|
+
export declare enum n3 {
|
|
16
|
+
AUTO = 0,
|
|
17
|
+
LANDSCAPE = 1,
|
|
18
|
+
PORTRAIT = 2
|
|
19
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { i1 } from "./f/g";
|
|
2
|
+
import { c1 } from "./i/k";
|
|
3
|
+
import { g1 } from "./f/h";
|
|
4
|
+
export declare abstract class c3 {
|
|
5
|
+
private static readonly j2;
|
|
6
|
+
static register(j3: c3): void;
|
|
7
|
+
static create(f3: c1, g3: g1): i1;
|
|
8
|
+
abstract create(f3: c1, g3: g1): i1 | null;
|
|
9
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { i1 } from "../f/g";
|
|
2
|
+
import { f1 } from "../i/m";
|
|
3
|
+
import { b1 } from "../i/k";
|
|
4
|
+
import { d1 } from "../i/n";
|
|
5
|
+
import { e1 } from "../i/o";
|
|
6
|
+
import { h1 } from "../i/j";
|
|
7
|
+
export declare class s2 extends i1 {
|
|
8
|
+
u1(b3: string): f1;
|
|
9
|
+
l1(enable: boolean): number;
|
|
10
|
+
m1(enable: boolean): number;
|
|
11
|
+
n1(enable: boolean): number;
|
|
12
|
+
q1(enable: boolean): number;
|
|
13
|
+
s1(enable: boolean): number;
|
|
14
|
+
o1(enable: boolean): number;
|
|
15
|
+
u(a3: string): number;
|
|
16
|
+
j1(z2: b1): number;
|
|
17
|
+
t1(w2: d1): number;
|
|
18
|
+
w1(u2: string, v2: boolean): number;
|
|
19
|
+
v1(t2: e1): number;
|
|
20
|
+
z1(role: h1): number;
|
|
21
|
+
a2(): number;
|
|
22
|
+
destroy(): number;
|
|
23
|
+
a1(): number;
|
|
24
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
}
|