@polyvharmony/rtc-sdk 1.0.0-beta.1 → 1.0.0-beta.3

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.0.0-beta.1] - 2024-10-22
1
+ ## [v1.0.0-beta.3] - 2024-10-23
2
2
 
3
3
  此项目是保利威鸿蒙 RTC SDK
4
4
 
package/Index.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from './src/main/ets/engine/PLVRTCEngineEventCallback';
3
3
  export * from './src/main/ets/vo/PLVRTCClientRole';
4
4
  export * from './src/main/ets/vo/PLVRTCConfig';
5
5
  export * from './src/main/ets/vo/PLVRTCMediaState';
6
+ export * from './src/main/ets/vo/PLVRTCNetworkQuality';
6
7
  export * from './src/main/ets/vo/PLVRTCRenderViewParam';
7
8
  export * from './src/main/ets/vo/PLVRTCVideoEncodeParam';
8
9
  export * from './src/main/ets/vo/PLVRTCVideoRenderParam';
package/ets/modules.abc CHANGED
Binary file
package/oh-package.json5 CHANGED
@@ -1 +1 @@
1
- {"name":"@polyvharmony/rtc-sdk","version":"1.0.0-beta.1","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-beta.1"},"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.0.0-beta.3","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-beta.1"},"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-beta.1","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-beta.1"},"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.0.0-beta.3","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-beta.1"},"types":"Index.d.ts","artifactType":"obfuscation","metadata":{"byteCodeHar":true,"sourceRoots":["./src/main"],"debug":false,"declarationEntry":[],"useNormalizedOHMUrl":true},"compatibleSdkVersion":12,"compatibleSdkType":"HarmonyOS","obfuscated":true}
@@ -1,6 +1,6 @@
1
- import { PLVRTCEngine } from "./engine/PLVRTCEngine";
2
- import { PLVRTCConfig } from "./vo/PLVRTCConfig";
3
- import { PLVRTCEngineEventCallback } from "./engine/PLVRTCEngineEventCallback";
1
+ import { PLVRTCEngine } from './engine/PLVRTCEngine';
2
+ import { PLVRTCConfig } from './vo/PLVRTCConfig';
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;
@@ -1,9 +1,10 @@
1
- import { PLVRTCAppToken, PLVRTCConfig } from "../vo/PLVRTCConfig";
2
- import { PLVRTCVideoEncodeParam } from "../vo/PLVRTCVideoEncodeParam";
3
- import { PLVRTCVideoRenderParam } from "../vo/PLVRTCVideoRenderParam";
4
- import { PLVRTCRenderViewParam } from "../vo/PLVRTCRenderViewParam";
5
- import { PLVRTCEngineEventCallback } from "./PLVRTCEngineEventCallback";
6
- import { PLVRTCClientRole } from "../vo/PLVRTCClientRole";
1
+ import { PLVRTCAppToken, PLVRTCConfig } from '../vo/PLVRTCConfig';
2
+ import { PLVRTCVideoEncodeParam } from '../vo/PLVRTCVideoEncodeParam';
3
+ import { PLVRTCVideoRenderParam } from '../vo/PLVRTCVideoRenderParam';
4
+ import { PLVRTCRenderViewParam } from '../vo/PLVRTCRenderViewParam';
5
+ import { PLVRTCEngineEventCallback } from './PLVRTCEngineEventCallback';
6
+ import { PLVRTCClientRole } from '../vo/PLVRTCClientRole';
7
+ import { PLVRTCMediaState } from '../vo/PLVRTCMediaState';
7
8
  export declare abstract class PLVRTCEngine {
8
9
  readonly rtcConfig: PLVRTCConfig;
9
10
  readonly eventCallback: PLVRTCEngineEventCallback;
@@ -68,6 +69,11 @@ export declare abstract class PLVRTCEngine {
68
69
  * 切换前后摄像头
69
70
  */
70
71
  abstract switchCamera(): number;
72
+ /**
73
+ * 获取远端用户RTC音视频状态
74
+ * @returns 对应连麦ID用户的音视频状态,不存在该远端用户时为undefined
75
+ */
76
+ abstract getRemoteViewerMediaState(linkmicId: string): PLVRTCMediaState | undefined;
71
77
  /**
72
78
  * 销毁
73
79
  */
@@ -1,6 +1,6 @@
1
- import { PLVRTCConfig } from "../vo/PLVRTCConfig";
2
- import { PLVRTCMediaState } from "../vo/PLVRTCMediaState";
3
- import { PLVRTCNetworkQuality } from "../vo/PLVRTCNetworkQuality";
1
+ import { PLVRTCConfig } from '../vo/PLVRTCConfig';
2
+ import { PLVRTCMediaState } from '../vo/PLVRTCMediaState';
3
+ import { PLVRTCNetworkQuality } from '../vo/PLVRTCNetworkQuality';
4
4
  export declare abstract class PLVRTCEngineEventCallback {
5
5
  /**
6
6
  * 成功加入频道
@@ -1,9 +1,10 @@
1
- import { PLVRTCEngine } from "../engine/PLVRTCEngine";
2
- import { PLVRTCRenderViewParam } from "../vo/PLVRTCRenderViewParam";
3
- import { PLVRTCAppToken } from "../vo/PLVRTCConfig";
4
- import { PLVRTCVideoEncodeParam } from "../vo/PLVRTCVideoEncodeParam";
5
- import { PLVRTCVideoRenderParam } from "../vo/PLVRTCVideoRenderParam";
6
- import { PLVRTCClientRole } from "../vo/PLVRTCClientRole";
1
+ import { PLVRTCEngine } from '../engine/PLVRTCEngine';
2
+ import { PLVRTCRenderViewParam } from '../vo/PLVRTCRenderViewParam';
3
+ import { PLVRTCAppToken } from '../vo/PLVRTCConfig';
4
+ import { PLVRTCVideoEncodeParam } from '../vo/PLVRTCVideoEncodeParam';
5
+ import { PLVRTCVideoRenderParam } from '../vo/PLVRTCVideoRenderParam';
6
+ import { PLVRTCClientRole } from '../vo/PLVRTCClientRole';
7
+ import { PLVRTCMediaState } from '../vo/PLVRTCMediaState';
7
8
  export declare class PLVRTCEngineNoOp extends PLVRTCEngine {
8
9
  createRenderViewParam(linkmicId: string): PLVRTCRenderViewParam;
9
10
  enableAudio(enable: boolean): number;
@@ -19,6 +20,7 @@ export declare class PLVRTCEngineNoOp extends PLVRTCEngine {
19
20
  setVideoRender(renderParam: PLVRTCVideoRenderParam): number;
20
21
  switchRole(role: PLVRTCClientRole): number;
21
22
  switchCamera(): number;
23
+ getRemoteViewerMediaState(linkmicId: string): PLVRTCMediaState | undefined;
22
24
  destroy(): number;
23
25
  leaveChannel(): number;
24
26
  }