@polyvharmony/rtc-sdk 1.0.0-dev.2 → 1.0.0-dev.4
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 +0 -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 -3
- package/src/main/ets/engine/PLVRTCEngine.d.ts +14 -14
- package/src/main/ets/engine/PLVRTCEngineEventCallback.d.ts +8 -8
- package/src/main/ets/noop/PLVRTCEngineNoOp.d.ts +13 -13
- package/src/main/ets/vo/PLVRTCMediaState.d.ts +2 -1
- package/src/main/ets/vo/PLVRTCRenderViewParam.d.ts +1 -1
- package/src/main/ets/aop/PLVRTCLogAspect.d.ts +0 -1
package/CHANGELOG.md
CHANGED
package/Index.d.ts
CHANGED
package/ets/modules.abc
CHANGED
|
Binary file
|
package/oh-package.json5
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@polyvharmony/rtc-sdk","version":"1.0.0-dev.
|
|
1
|
+
{"name":"@polyvharmony/rtc-sdk","version":"1.0.0-dev.4","description":"rtc-sdk","author":"POLYV","repository":"https://github.com/polyv/polyv-harmony-livescenes-sdk-demo","license":"MIT","dependencies":{"@polyvharmony/media-player-foundation":"2.3.1-dev.2"},"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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@polyvharmony/rtc-sdk","version":"1.0.0-dev.
|
|
1
|
+
{"name":"@polyvharmony/rtc-sdk","version":"1.0.0-dev.4","description":"rtc-sdk","author":"POLYV","repository":"https://github.com/polyv/polyv-harmony-livescenes-sdk-demo","license":"MIT","dependencies":{"@polyvharmony/media-player-foundation":"2.3.1-dev.2"},"types":"Index.d.ts","artifactType":"obfuscation","metadata":{"byteCodeHar":true,"sourceRoots":["./src/main"],"debug":false,"declarationEntry":[],"useNormalizedOHMUrl":true},"compatibleSdkVersion":12,"compatibleSdkType":"HarmonyOS","obfuscated":true}
|
|
@@ -3,7 +3,7 @@ import { PLVRTCConfig } from "./vo/PLVRTCConfig";
|
|
|
3
3
|
import { PLVRTCEngineEventCallback } from "./engine/PLVRTCEngineEventCallback";
|
|
4
4
|
export declare abstract class PLVRTCEngineFactory {
|
|
5
5
|
private static readonly factoryImpls;
|
|
6
|
-
static register(
|
|
7
|
-
static create(
|
|
8
|
-
abstract create(
|
|
6
|
+
static register(factory: PLVRTCEngineFactory): void;
|
|
7
|
+
static create(rtcConfig: PLVRTCConfig, eventCallback: PLVRTCEngineEventCallback): PLVRTCEngine;
|
|
8
|
+
abstract create(rtcConfig: PLVRTCConfig, eventCallback: PLVRTCEngineEventCallback): PLVRTCEngine | null;
|
|
9
9
|
}
|
|
@@ -7,11 +7,11 @@ import { PLVRTCClientRole } from "../vo/PLVRTCClientRole";
|
|
|
7
7
|
export declare abstract class PLVRTCEngine {
|
|
8
8
|
readonly rtcConfig: PLVRTCConfig;
|
|
9
9
|
readonly eventCallback: PLVRTCEngineEventCallback;
|
|
10
|
-
constructor(
|
|
10
|
+
constructor(rtcConfig: PLVRTCConfig, eventCallback: PLVRTCEngineEventCallback);
|
|
11
11
|
/**
|
|
12
12
|
* 加入频道
|
|
13
13
|
*/
|
|
14
|
-
abstract joinChannel(
|
|
14
|
+
abstract joinChannel(channelId: string): number;
|
|
15
15
|
/**
|
|
16
16
|
* 离开频道
|
|
17
17
|
*/
|
|
@@ -19,51 +19,51 @@ export declare abstract class PLVRTCEngine {
|
|
|
19
19
|
/**
|
|
20
20
|
* 更新token
|
|
21
21
|
*/
|
|
22
|
-
abstract renewToken(
|
|
22
|
+
abstract renewToken(appToken: PLVRTCAppToken): number;
|
|
23
23
|
/**
|
|
24
24
|
* 音频模块开关
|
|
25
25
|
*/
|
|
26
|
-
abstract enableAudio(
|
|
26
|
+
abstract enableAudio(enable: boolean): number;
|
|
27
27
|
/**
|
|
28
28
|
* 本地音频采集开关
|
|
29
29
|
*/
|
|
30
|
-
abstract enableLocalAudioCapture(
|
|
30
|
+
abstract enableLocalAudioCapture(enable: boolean): number;
|
|
31
31
|
/**
|
|
32
32
|
* 是否将本地音频发布到远端
|
|
33
33
|
*/
|
|
34
|
-
abstract enableLocalAudioPublish(
|
|
34
|
+
abstract enableLocalAudioPublish(enable: boolean): number;
|
|
35
35
|
/**
|
|
36
36
|
* 视频模块开关
|
|
37
37
|
*/
|
|
38
|
-
abstract enableVideo(
|
|
38
|
+
abstract enableVideo(enable: boolean): number;
|
|
39
39
|
/**
|
|
40
40
|
* 本地视频采集开关
|
|
41
41
|
*/
|
|
42
|
-
abstract enableLocalVideoCapture(
|
|
42
|
+
abstract enableLocalVideoCapture(enable: boolean): number;
|
|
43
43
|
/**
|
|
44
44
|
* 是否将本地视频发布到远端
|
|
45
45
|
*/
|
|
46
|
-
abstract enableLocalVideoPublish(
|
|
46
|
+
abstract enableLocalVideoPublish(enable: boolean): number;
|
|
47
47
|
/**
|
|
48
48
|
* 设置本地视频编码参数
|
|
49
49
|
*/
|
|
50
|
-
abstract setLocalVideoEncodeParam(
|
|
50
|
+
abstract setLocalVideoEncodeParam(videoEncodeParam: PLVRTCVideoEncodeParam): number;
|
|
51
51
|
/**
|
|
52
52
|
* 创建渲染视图 XComponent 配置参数
|
|
53
53
|
*/
|
|
54
|
-
abstract createRenderViewParam(
|
|
54
|
+
abstract createRenderViewParam(linkmicId: string): PLVRTCRenderViewParam;
|
|
55
55
|
/**
|
|
56
56
|
* 设置视频渲染 本地&远端
|
|
57
57
|
*/
|
|
58
|
-
abstract setVideoRender(
|
|
58
|
+
abstract setVideoRender(renderParam: PLVRTCVideoRenderParam): number;
|
|
59
59
|
/**
|
|
60
60
|
* 设置是否订阅远端音频
|
|
61
61
|
*/
|
|
62
|
-
abstract setRemoteAudioRender(
|
|
62
|
+
abstract setRemoteAudioRender(linkmicId: string, isRender: boolean): number;
|
|
63
63
|
/**
|
|
64
64
|
* 切换角色
|
|
65
65
|
*/
|
|
66
|
-
abstract switchRole(
|
|
66
|
+
abstract switchRole(role: PLVRTCClientRole): number;
|
|
67
67
|
/**
|
|
68
68
|
* 切换前后摄像头
|
|
69
69
|
*/
|
|
@@ -4,34 +4,34 @@ export declare abstract class PLVRTCEngineEventCallback {
|
|
|
4
4
|
/**
|
|
5
5
|
* 成功加入频道
|
|
6
6
|
*/
|
|
7
|
-
onJoinChannelSuccess(
|
|
7
|
+
onJoinChannelSuccess(rtcConfig: PLVRTCConfig, channelId: string): void;
|
|
8
8
|
/**
|
|
9
9
|
* 断网重连重新加入频道
|
|
10
10
|
*/
|
|
11
|
-
onRejoinChannelSuccess(
|
|
11
|
+
onRejoinChannelSuccess(rtcConfig: PLVRTCConfig, channelId: string): void;
|
|
12
12
|
/**
|
|
13
13
|
* 离开频道
|
|
14
14
|
*/
|
|
15
|
-
onLeaveChannel(
|
|
15
|
+
onLeaveChannel(rtcConfig: PLVRTCConfig, channelId: string): void;
|
|
16
16
|
/**
|
|
17
17
|
* 远端用户加入频道
|
|
18
18
|
*/
|
|
19
|
-
onRemoteUserJoin(
|
|
19
|
+
onRemoteUserJoin(channelId: string, mediaState: PLVRTCMediaState): void;
|
|
20
20
|
/**
|
|
21
21
|
* 远端用户音视频状态变化
|
|
22
22
|
*/
|
|
23
|
-
onRemoteUserMediaStateChanged(
|
|
23
|
+
onRemoteUserMediaStateChanged(channelId: string, mediaState: PLVRTCMediaState): void;
|
|
24
24
|
/**
|
|
25
25
|
* 远端用户离开频道
|
|
26
26
|
*/
|
|
27
|
-
onRemoteUserLeave(
|
|
27
|
+
onRemoteUserLeave(channelId: string, mediaState: PLVRTCMediaState): void;
|
|
28
28
|
/**
|
|
29
29
|
* token 过期回调
|
|
30
30
|
* @see PLVRTCEngine#renewToken
|
|
31
31
|
*/
|
|
32
|
-
onTokenExpired(
|
|
32
|
+
onTokenExpired(channelId: string | undefined, rtcConfig: PLVRTCConfig): void;
|
|
33
33
|
/**
|
|
34
34
|
* 错误回调
|
|
35
35
|
*/
|
|
36
|
-
onError(
|
|
36
|
+
onError(code: number, message: string): void;
|
|
37
37
|
}
|
|
@@ -5,19 +5,19 @@ import { PLVRTCVideoEncodeParam } from "../vo/PLVRTCVideoEncodeParam";
|
|
|
5
5
|
import { PLVRTCVideoRenderParam } from "../vo/PLVRTCVideoRenderParam";
|
|
6
6
|
import { PLVRTCClientRole } from "../vo/PLVRTCClientRole";
|
|
7
7
|
export declare class PLVRTCEngineNoOp extends PLVRTCEngine {
|
|
8
|
-
createRenderViewParam(
|
|
9
|
-
enableAudio(
|
|
10
|
-
enableLocalAudioCapture(
|
|
11
|
-
enableLocalAudioPublish(
|
|
12
|
-
enableLocalVideoCapture(
|
|
13
|
-
enableLocalVideoPublish(
|
|
14
|
-
enableVideo(
|
|
15
|
-
joinChannel(
|
|
16
|
-
renewToken(
|
|
17
|
-
setLocalVideoEncodeParam(
|
|
18
|
-
setRemoteAudioRender(
|
|
19
|
-
setVideoRender(
|
|
20
|
-
switchRole(
|
|
8
|
+
createRenderViewParam(linkmicId: string): PLVRTCRenderViewParam;
|
|
9
|
+
enableAudio(enable: boolean): number;
|
|
10
|
+
enableLocalAudioCapture(enable: boolean): number;
|
|
11
|
+
enableLocalAudioPublish(enable: boolean): number;
|
|
12
|
+
enableLocalVideoCapture(enable: boolean): number;
|
|
13
|
+
enableLocalVideoPublish(enable: boolean): number;
|
|
14
|
+
enableVideo(enable: boolean): number;
|
|
15
|
+
joinChannel(channelId: string): number;
|
|
16
|
+
renewToken(appToken: PLVRTCAppToken): number;
|
|
17
|
+
setLocalVideoEncodeParam(videoEncodeParam: PLVRTCVideoEncodeParam): number;
|
|
18
|
+
setRemoteAudioRender(linkmicId: string, isRender: boolean): number;
|
|
19
|
+
setVideoRender(renderParam: PLVRTCVideoRenderParam): number;
|
|
20
|
+
switchRole(role: PLVRTCClientRole): number;
|
|
21
21
|
switchCamera(): number;
|
|
22
22
|
destroy(): number;
|
|
23
23
|
leaveChannel(): number;
|
|
@@ -2,5 +2,6 @@ export declare class PLVRTCMediaState {
|
|
|
2
2
|
readonly linkmicId: string;
|
|
3
3
|
readonly audioEnable: boolean;
|
|
4
4
|
readonly videoEnable: boolean;
|
|
5
|
-
|
|
5
|
+
readonly audioVolume: number;
|
|
6
|
+
constructor(linkmicId: string, audioEnable: boolean, videoEnable: boolean, audioVolume: number);
|
|
6
7
|
}
|
|
@@ -2,5 +2,5 @@ export declare class PLVRTCRenderViewParam {
|
|
|
2
2
|
readonly linkmicId: string;
|
|
3
3
|
readonly componentId: string;
|
|
4
4
|
readonly componentLibraryName: string;
|
|
5
|
-
constructor(
|
|
5
|
+
constructor(linkmicId: string, componentId: string, componentLibraryName: string);
|
|
6
6
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function RTCLogTrace(a?: string): MethodDecorator;
|