@polyvharmony/live-scenes-sdk 1.5.0 → 1.6.0
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/BuildProfile.d.ets +4 -4
- package/CHANGELOG.md +27 -0
- package/ets/modules.abc +0 -0
- package/oh-package.json5 +1 -1
- package/package.json +1 -1
- package/src/main/ets/modules/chatroom/PLVChatroomManager.d.ets +1 -1
- package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackDataVO.d.ets +1 -1
- package/src/main/ets/modules/linkmic/PLVLinkMicManager.d.ets +19 -0
- package/src/main/ets/modules/linkmic/di/PLVLinkMicModule.d.ets +10 -0
- package/src/main/ets/modules/linkmic/mediator/PLVLinkMicMediator.d.ets +67 -0
- package/src/main/ets/modules/linkmic/mediator/PLVLinkMicRTCEventCallback.d.ets +5 -0
- package/src/main/ets/modules/linkmic/model/PLVLinkMicRepo.d.ets +11 -0
- package/src/main/ets/modules/linkmic/model/datasource/PLVLinkMicNetworkDataSource.d.ets +3 -0
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRate.d.ets +3 -0
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRateEncodeParam.d.ets +3 -0
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicCameraFacing.d.ets +3 -0
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicChannelStatus.d.ets +3 -0
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicErrorEvent.d.ets +3 -0
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicInteractEvent.d.ets +3 -0
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicMode.d.ets +3 -0
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicPushResolutionRatio.d.ets +3 -0
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicRTCEvent.d.ets +12 -0
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicRTCType.d.ets +3 -0
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicSocketEvent.d.ets +69 -0
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicState.d.ets +3 -0
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicVideoRenderParam.d.ets +3 -0
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicViewer.d.ets +3 -0
- package/src/main/ets/modules/linkmic/viewmodel/PLVLinkMicViewModel.d.ets +59 -0
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicEncodeParamUseCase.d.ets +21 -1
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleQueueOrderUseCase.d.ets +3 -0
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleRTCUseCase.d.ets +17 -0
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleStateUseCase.d.ets +48 -0
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicUpdateChannelViewerUseCase.d.ets +21 -0
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicViewLogUseCase.d.ets +9 -0
- package/src/main/ets/modules/linkmic/viewmodel/usecase/PLVLinkMicUseCases.d.ets +6 -0
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/base/ILinkMicEncodeParamUseCase.d.ets +19 -0
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/base/ILinkMicHandleRTCUseCase.d.ets +17 -0
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/base/ILinkMicHandleStateUseCase.d.ets +48 -0
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestEncodeParamUseCase.d.ets +26 -6
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleRTCUseCase.d.ets +24 -7
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleStateUseCase.d.ets +55 -10
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherEncodeParamUseCase.d.ets +26 -6
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleRTCUseCase.d.ets +24 -7
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleStateUseCase.d.ets +55 -10
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerEncodeParamUseCase.d.ets +25 -6
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleRTCUseCase.d.ets +24 -7
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleStateUseCase.d.ets +55 -10
- package/src/main/ets/modules/log/elog/PLVELogSender.d.ets +4 -4
- package/src/main/ets/modules/log/elog/model/PLVELogDataBean.d.ets +1 -1
- package/src/main/ets/modules/login/PLVSceneLoginManager.d.ets +3 -3
- package/src/main/ets/modules/login/model/PLVChatDomainVO.d.ets +2 -2
- package/src/main/ets/modules/login/model/PLVLiveChannelType.d.ets +1 -1
- package/src/main/ets/modules/login/model/PLVLiveDetailVO.d.ets +1 -1
- package/src/main/ets/modules/login/model/PLVLiveStatus.d.ets +1 -1
- package/src/main/ets/modules/login/model/PLVLiveStatusVO.d.ets +2 -2
- package/src/main/ets/modules/login/model/PLVLoginLiveResult.d.ets +1 -1
- package/src/main/ets/modules/login/model/PLVLoginPlaybackResult.d.ets +1 -1
- package/src/main/ets/modules/login/model/PLVLoginType.d.ets +2 -2
- package/src/main/ets/modules/member/PLVMemberManager.d.ets +3 -3
- package/src/main/ets/modules/member/mediator/PLVMemberMediator.d.ets +3 -3
- package/src/main/ets/modules/member/model/PLVMemberRepo.d.ets +2 -2
- package/src/main/ets/modules/member/model/datasource/PLVMemberNetworkDataSource.d.ets +2 -2
- package/src/main/ets/modules/member/model/vo/PLVMemberChannelViewer.d.ets +1 -1
- package/src/main/ets/modules/member/model/vo/PLVMemberErrorEvent.d.ets +1 -1
- package/src/main/ets/modules/member/viewmodel/PLVMemberViewModel.d.ets +3 -3
- package/src/main/ets/modules/member/viewmodel/usecase/MemberHandleStateUseCase.d.ets +6 -6
- package/src/main/ets/modules/member/viewmodel/usecase/MemberUpdateViewerUseCase.d.ets +9 -9
- package/src/main/ets/modules/member/viewmodel/usecase/PLVMemberUseCases.d.ets +1 -1
- package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestHandleStateUseCase.d.ets +6 -6
- package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestUpdateViewerUseCase.d.ets +9 -9
- package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherHandleStateUseCase.d.ets +6 -6
- package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherUpdateViewerUseCase.d.ets +9 -9
- package/src/main/ets/modules/net/PLVApiChatPlvNetApi.d.ets +10 -10
- package/src/main/ets/modules/net/PLVApiPlvNetApi.d.ets +31 -31
- package/src/main/ets/modules/net/PLVELogPlvNetApi.d.ets +2 -2
- package/src/main/ets/modules/net/PLVLiveImagesVideoNetApi.d.ets +3 -3
- package/src/main/ets/modules/net/PLVNGBPushApi.d.ets +2 -2
- package/src/main/ets/modules/net/PLVRtasVideoNetApi.d.ets +2 -2
- package/src/main/ets/modules/player/PLVPlayerManager.d.ets +3 -3
- package/src/main/ets/modules/player/PLVPlayerMediator.d.ets +1 -1
- package/src/main/ets/modules/player/playback/PLVPreviousManager.d.ets +5 -5
- package/src/main/ets/modules/ppt/PLVPPTWebController.d.ets +6 -6
- package/src/main/ets/modules/product/PLVProductManager.d.ets +5 -5
- package/src/main/ets/modules/product/components/PLVProductControlWeb.d.ets +1 -1
- package/src/main/ets/modules/product/components/PLVProductWeb.d.ets +1 -1
- package/src/main/ets/modules/product/model/PLVProductContentBean.d.ets +1 -1
- package/src/main/ets/modules/product/model/PLVProductDataBean.d.ets +1 -1
- package/src/main/ets/modules/redpack/PLVRedpackManager.d.ets +9 -9
- package/src/main/ets/modules/redpack/database/PLVRedpackCacheVO.d.ets +1 -1
- package/src/main/ets/modules/redpack/database/PLVRedpackLocalDataSource.d.ets +4 -4
- package/src/main/ets/modules/redpack/database/PLVRedpackOpenHelper.d.ets +4 -4
- package/src/main/ets/modules/reward/PLVRewardManager.d.ets +2 -2
- package/src/main/ets/modules/reward/model/PLVRewardPointVO.d.ets +1 -1
- package/src/main/ets/modules/socket/PLVSocketManager.d.ets +8 -8
- package/src/main/ets/modules/socket/PLVSocketMediator.d.ets +7 -7
- package/src/main/ets/modules/socket/model/PLVSocketUserBean.d.ets +5 -5
- package/src/main/ets/modules/socket/model/redpack/RedPaperReceiveType.d.ets +4 -4
- package/src/main/ets/modules/streamer/PLVStreamerManager.d.ets +28 -9
- package/src/main/ets/modules/streamer/di/PLVStreamerModule.d.ets +7 -0
- package/src/main/ets/modules/streamer/mediator/PLVStreamerMediator.d.ets +19 -2
- package/src/main/ets/modules/streamer/model/PLVStreamerRepo.d.ets +27 -10
- package/src/main/ets/modules/streamer/model/datasource/PLVStreamerLocalDataSource.d.ets +5 -2
- package/src/main/ets/modules/streamer/model/datasource/PLVStreamerNetworkDataSource.d.ets +19 -10
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerErrorEvent.d.ets +4 -1
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerLiveStatusResponseVO.d.ts +3 -0
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerMixActionResponse.d.ets +3 -0
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerMixActionVO.d.ets +27 -0
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerMixLayoutType.d.ets +3 -0
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerSessionIdQueryResponse.d.ets +3 -0
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerSocketEvent.d.ets +21 -0
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerState.d.ets +3 -0
- package/src/main/ets/modules/streamer/viewmodel/PLVStreamerViewModel.d.ets +50 -9
- package/src/main/ets/modules/streamer/viewmodel/usecase/PLVStreamerUseCases.d.ets +7 -1
- package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerHandleStateUseCase.d.ets +17 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerMixStreamUseCase.d.ets +11 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerUpdateSplashImageUseCase.d.ets +8 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/base/IStreamerHandleStateUseCase.d.ets +15 -0
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/base/IStreamerMixStreamUseCase.d.ets +9 -0
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestHandleStateUseCase.d.ets +14 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestMixStreamUseCase.d.ets +11 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherHandleStateUseCase.d.ets +17 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherMixStreamUseCase.d.ets +11 -2
- package/src/main/ets/modules/web/PLVSocketWebController.d.ets +2 -2
- package/src/main/ets/modules/web/PLVWebControllerManager.d.ets +2 -2
- package/src/main/ets/modules/web/PLVWebParams.d.ets +1 -1
- package/src/main/ets/modules/web/qa/PLVQAWeb.d.ets +1 -1
- package/src/main/ets/modules/web/tuwen/PLVTuwenWeb.d.ets +1 -1
- package/src/main/module.json +1 -1
package/BuildProfile.d.ets
CHANGED
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Use these variables when you tailor your ArkTS code. They must be of the const type.
|
|
5
5
|
*/
|
|
6
|
-
export declare const HAR_VERSION = "1.
|
|
6
|
+
export declare const HAR_VERSION = "1.6.0";
|
|
7
7
|
export declare const BUILD_MODE_NAME = "release";
|
|
8
8
|
export declare const DEBUG = false;
|
|
9
9
|
export declare const TARGET_NAME = "default";
|
|
10
|
-
export declare const BUILD_TIME = "
|
|
10
|
+
export declare const BUILD_TIME = "20260717";
|
|
11
11
|
/**
|
|
12
12
|
* BuildProfile Class is used only for compatibility purposes.
|
|
13
13
|
*/
|
|
14
14
|
export default class BuildProfile {
|
|
15
|
-
static readonly HAR_VERSION = "1.
|
|
15
|
+
static readonly HAR_VERSION = "1.6.0";
|
|
16
16
|
static readonly BUILD_MODE_NAME = "release";
|
|
17
17
|
static readonly DEBUG = false;
|
|
18
18
|
static readonly TARGET_NAME = "default";
|
|
19
|
-
static readonly BUILD_TIME = "
|
|
19
|
+
static readonly BUILD_TIME = "20260717";
|
|
20
20
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
## [v1.6.0] - 2026-07-17
|
|
2
|
+
|
|
3
|
+
### 【观看端场景】
|
|
4
|
+
|
|
5
|
+
### 修复优化:
|
|
6
|
+
|
|
7
|
+
1. 修复部分回放视频无法播放的问题 [SDK]
|
|
8
|
+
|
|
9
|
+
### 【开播端场景】
|
|
10
|
+
|
|
11
|
+
新增功能:
|
|
12
|
+
|
|
13
|
+
1. TRTC频道支持屏幕共享功能 [Demo、SDK]
|
|
14
|
+
|
|
15
|
+
## [v1.5.1] - 2026-06-26
|
|
16
|
+
|
|
17
|
+
### 【观看端场景】
|
|
18
|
+
|
|
19
|
+
### 修复优化:
|
|
20
|
+
|
|
21
|
+
1. 修复用户统计部分昵称乱码问题
|
|
22
|
+
2. 修复播放全屏时左上角返回按钮点击无效的问题
|
|
23
|
+
3. 移除回放的公告按钮
|
|
24
|
+
4. httpdns库升级,解决偶现闪退问题
|
|
25
|
+
5. 完善音频模式UI交互
|
|
26
|
+
6. 修复播放失败重试按钮点击无效的问题
|
|
27
|
+
|
|
1
28
|
## [v1.5.0] - 2026-03-13
|
|
2
29
|
|
|
3
30
|
### 【开播端场景】
|
package/ets/modules.abc
CHANGED
|
Binary file
|
package/oh-package.json5
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@polyvharmony/live-scenes-sdk","version":"1.
|
|
1
|
+
{"name":"@polyvharmony/live-scenes-sdk","version":"1.6.0","description":"polyv live-scenes-sdk","author":"POLYV","license":"MIT","dependencies":{"@polyvharmony/live-scenes-foundation":"1.6.0","@ohos/dataorm":"2.2.2","@polyvharmony/media-player-sdk":"2.7.4","@polyvharmony/rtc-sdk":"1.5.0"},"types":"Index.d.ets","artifactType":"obfuscation","metadata":{"byteCodeHar":true,"sourceRoots":["./src/main"],"debug":false,"dependencyPkgVersion":{"@polyvharmony/live-scenes-foundation":"1.6.0","@ohos/dataorm":"2.2.2","@polyvharmony/media-player-sdk":"2.7.4","@polyvharmony/rtc-sdk":"1.5.0"},"declarationEntry":[],"useNormalizedOHMUrl":true},"compatibleSdkVersionStage":"beta1","compatibleSdkVersion":12,"compatibleSdkType":"HarmonyOS","obfuscated":true}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@polyvharmony/live-scenes-sdk","version":"1.
|
|
1
|
+
{"name":"@polyvharmony/live-scenes-sdk","version":"1.6.0","description":"polyv live-scenes-sdk","author":"POLYV","license":"MIT","dependencies":{"@polyvharmony/live-scenes-foundation":"1.6.0","@ohos/dataorm":"2.2.2","@polyvharmony/media-player-sdk":"2.7.4","@polyvharmony/rtc-sdk":"1.5.0"},"types":"Index.d.ets","artifactType":"obfuscation","metadata":{"byteCodeHar":true,"sourceRoots":["./src/main"],"debug":false,"dependencyPkgVersion":{"@polyvharmony/live-scenes-foundation":"1.6.0","@ohos/dataorm":"2.2.2","@polyvharmony/media-player-sdk":"2.7.4","@polyvharmony/rtc-sdk":"1.5.0"},"declarationEntry":[],"useNormalizedOHMUrl":true},"compatibleSdkVersionStage":"beta1","compatibleSdkVersion":12,"compatibleSdkType":"HarmonyOS","obfuscated":true}
|
|
@@ -4,7 +4,7 @@ import { IPLVEventNotify, PLVCallback, PLVJSONObject, PLVStateData } from '@poly
|
|
|
4
4
|
import { PLVBaseModule } from '../../common/PLVBaseModule';
|
|
5
5
|
import { PLVSocketMediator } from '../socket/PLVSocketMediator';
|
|
6
6
|
import { PLVLocalSpeakEvent } from './model/PLVLocalSpeakEvent';
|
|
7
|
-
import { BusinessError
|
|
7
|
+
import { BusinessError } from "@ohos.base";
|
|
8
8
|
import { PLVChatQuoteDataBean } from './model/PLVChatQuoteDataBean';
|
|
9
9
|
import { PLVLocalQuizEvent } from './model/PLVLocalQuizEvent';
|
|
10
10
|
import { PLVHistoryQuizListVO } from './model/PLVHistroyQuizListVO';
|
|
@@ -25,7 +25,7 @@ export declare class PLVChatPlaybackDataVO implements IPLVIdEvent {
|
|
|
25
25
|
user?: PLVSocketUserBean;
|
|
26
26
|
parsedData?: string[];
|
|
27
27
|
inserted?: boolean;
|
|
28
|
-
constructor(
|
|
28
|
+
constructor(d114?: string, e114?: number, f114?: string, g114?: string, h114?: string, i114?: string, j114?: string, k114?: string, l114?: string, m114?: string, n114?: string, o114?: number, p114?: number, q114?: number);
|
|
29
29
|
fill(): void;
|
|
30
30
|
getUniqueId(): string;
|
|
31
31
|
isImgMsgType(): boolean;
|
|
@@ -16,6 +16,9 @@ import { PLVLinkMicMode } from './model/vo/PLVLinkMicMode';
|
|
|
16
16
|
import { PLVLinkMicState } from './model/vo/PLVLinkMicState';
|
|
17
17
|
import { PLVLinkMicVideoRenderParam } from './model/vo/PLVLinkMicVideoRenderParam';
|
|
18
18
|
import { PLVLinkMicViewer } from './model/vo/PLVLinkMicViewer';
|
|
19
|
+
/**
|
|
20
|
+
* 连麦模块对外管理器,向业务层暴露连麦状态、事件和控制能力
|
|
21
|
+
*/
|
|
19
22
|
export declare class PLVLinkMicManager extends PLVBaseModule {
|
|
20
23
|
private readonly dependScope;
|
|
21
24
|
private readonly mediator;
|
|
@@ -40,6 +43,14 @@ export declare class PLVLinkMicManager extends PLVBaseModule {
|
|
|
40
43
|
* SDK 是否支持当前频道的连麦
|
|
41
44
|
*/
|
|
42
45
|
readonly sdkSupportChannelLinkMic: State<boolean>;
|
|
46
|
+
/**
|
|
47
|
+
* SDK 是否支持当前频道的屏幕分享
|
|
48
|
+
*/
|
|
49
|
+
readonly sdkSupportScreenCapture: State<boolean>;
|
|
50
|
+
/**
|
|
51
|
+
* 本地是否正在进行屏幕分享
|
|
52
|
+
*/
|
|
53
|
+
readonly isStartScreenCapture: State<boolean>;
|
|
43
54
|
/**
|
|
44
55
|
* 频道当前是否支持连麦
|
|
45
56
|
*/
|
|
@@ -193,6 +204,14 @@ export declare class PLVLinkMicManager extends PLVBaseModule {
|
|
|
193
204
|
* 切换前后摄像头
|
|
194
205
|
*/
|
|
195
206
|
switchCamera(): void;
|
|
207
|
+
/**
|
|
208
|
+
* 开始屏幕分享
|
|
209
|
+
*/
|
|
210
|
+
startScreenCapture(): number;
|
|
211
|
+
/**
|
|
212
|
+
* 停止屏幕分享
|
|
213
|
+
*/
|
|
214
|
+
stopScreenCapture(): number;
|
|
196
215
|
/**
|
|
197
216
|
* 设置自己的画面镜像
|
|
198
217
|
* @param isMirror 是否镜像
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
// @keepTs
|
|
2
2
|
// @ts-nocheck
|
|
3
3
|
import { DependModule } from '@polyvharmony/media-player-sdk';
|
|
4
|
+
/**
|
|
5
|
+
* 连麦模块依赖注入定义。
|
|
6
|
+
*
|
|
7
|
+
* 这里按 Mediator -> DataSource -> Repo -> UseCase -> ViewModel 的顺序装配:
|
|
8
|
+
* - Mediator 持有跨用例共享状态;
|
|
9
|
+
* - DataSource 负责网络接口;
|
|
10
|
+
* - Repo 聚合数据源、RTC、socket 和共享状态;
|
|
11
|
+
* - UseCase 按职责拆分业务流程;
|
|
12
|
+
* - ViewModel 作为 Manager 和 UseCase 之间的调度层。
|
|
13
|
+
*/
|
|
4
14
|
export declare const linkmicModule: DependModule;
|
|
@@ -18,58 +18,125 @@ import { PLVLinkMicPushResolutionRatio } from '../model/vo/PLVLinkMicPushResolut
|
|
|
18
18
|
import { PLVLinkMicRTCEvent } from '../model/vo/PLVLinkMicRTCEvent';
|
|
19
19
|
import { PLVLinkMicState } from '../model/vo/PLVLinkMicState';
|
|
20
20
|
import { PLVLinkMicViewer } from '../model/vo/PLVLinkMicViewer';
|
|
21
|
+
/**
|
|
22
|
+
* 模块内状态中介,集中保存跨用例共享状态并桥接外部模块
|
|
23
|
+
*/
|
|
21
24
|
export declare class PLVLinkMicMediator implements LifecycleAwareDependComponent {
|
|
25
|
+
/** 当前登录频道、用户、角色等全局频道数据。 */
|
|
22
26
|
channelData: PLVChannelData | null;
|
|
27
|
+
/** 聊天室 socket 中介,用于监听和发送连麦协议事件。 */
|
|
23
28
|
socketMediator: PLVSocketMediator | null;
|
|
29
|
+
/** 播放器中介,用于连麦时暂停/恢复播放器或同步播放状态。 */
|
|
24
30
|
playerMediator: PLVPlayerMediator | null;
|
|
31
|
+
/** 成员模块中介,用于查找用户资料和复用成员模块的连麦操作。 */
|
|
25
32
|
memberMediator: PLVMemberMediator | null;
|
|
33
|
+
/** 连麦模块初始化完成信号,外部动作需等待该 Promise 后再执行。 */
|
|
26
34
|
readonly initFinish: {
|
|
27
35
|
promise: Promise<void>;
|
|
28
36
|
resolve: (value: void | PromiseLike<void>) => void;
|
|
29
37
|
reject: (reason?: any) => void;
|
|
30
38
|
};
|
|
39
|
+
/** 本地当前连麦状态。 */
|
|
31
40
|
readonly linkmicState: MutableState<PLVLinkMicState>;
|
|
41
|
+
/** 观众申请连麦后的排队序号,-1 表示当前没有排队。 */
|
|
32
42
|
readonly joinLinkMicWaitingQueueOrder: MutableState<number>;
|
|
43
|
+
/** 讲师邀请连麦的过期时间戳,用于 UI 倒计时。 */
|
|
33
44
|
readonly invitationExpireTimestamp: MutableState<number>;
|
|
45
|
+
/** SDK 是否支持当前频道配置下的连麦能力。 */
|
|
34
46
|
readonly sdkSupportChannelLinkMic: MutableState<boolean>;
|
|
47
|
+
/** SDK 是否支持当前频道配置下的屏幕分享能力。 */
|
|
48
|
+
readonly sdkSupportScreenCapture: MutableState<boolean>;
|
|
49
|
+
/** 本地是否正在进行屏幕分享。 */
|
|
50
|
+
readonly isStartScreenCapture: MutableState<boolean>;
|
|
51
|
+
/** 频道是否允许连麦能力。 */
|
|
35
52
|
readonly channelAllowLinkMic: MutableState<boolean>;
|
|
53
|
+
/** 频道是否允许观众举手申请连麦。 */
|
|
36
54
|
readonly channelAllowRequestHandsUpLinkMic: MutableState<boolean>;
|
|
55
|
+
/** 当前频道连麦模式,视频连麦或音频连麦。 */
|
|
37
56
|
readonly channelLinkMicMode: MutableState<PLVLinkMicMode>;
|
|
57
|
+
/** 本地用户对应的连麦成员信息。 */
|
|
38
58
|
readonly localLinkMicViewer: MutableState<PLVLinkMicViewer>;
|
|
59
|
+
/** 当前频道正在连麦的成员列表。 */
|
|
39
60
|
readonly channelLinkMicViewers: MutableState<PLVLinkMicViewer[]>;
|
|
61
|
+
/** 当前第一画面用户的 linkMicId。 */
|
|
40
62
|
readonly channelMainViewLinkMicId: MutableState<string>;
|
|
63
|
+
/** RTC 网络质量概览。 */
|
|
41
64
|
readonly linkmicNetworkQuality: MutableState<PLVNetworkQuality>;
|
|
65
|
+
/** RTC 网络上下行统计信息。 */
|
|
42
66
|
readonly linkmicNetworkStatistics: MutableState<PLVNetworkStatistics>;
|
|
67
|
+
/** 当前推流画面比例。 */
|
|
43
68
|
readonly currentPushResolutionRatio: MutableState<PLVLinkMicPushResolutionRatio>;
|
|
69
|
+
/** 当前推流方向。 */
|
|
44
70
|
readonly currentPushOrientation: MutableState<PLVPushOrientation>;
|
|
71
|
+
/** 当前推流清晰度档位。 */
|
|
45
72
|
readonly currentBitRate: MutableState<PLVLinkMicBitRate>;
|
|
73
|
+
/** 频道支持的推流清晰度档位。 */
|
|
46
74
|
readonly channelSupportBitRates: MutableState<PLVLinkMicBitRate[]>;
|
|
75
|
+
/** 当前清晰度对应的 RTC 编码参数。 */
|
|
47
76
|
readonly currentBitRateEncodeParam: MutableState<PLVLinkMicBitRateEncodeParam>;
|
|
77
|
+
/** 频道支持的所有 RTC 编码参数。 */
|
|
48
78
|
readonly channelSupportBitRateEncodeParams: MutableState<PLVLinkMicBitRateEncodeParam[]>;
|
|
79
|
+
/** 弱网时推流降级策略。 */
|
|
49
80
|
readonly currentPushDowngradePreference: MutableState<PLVPushDowngradePreference>;
|
|
81
|
+
/** 当前使用的摄像头方向。 */
|
|
50
82
|
readonly cameraFacing: MutableState<PLVLinkMicCameraFacing>;
|
|
83
|
+
/** 本地预览画面是否镜像。 */
|
|
51
84
|
readonly localRenderMirror: MutableState<boolean>;
|
|
85
|
+
/** RTC 推流画面是否镜像。 */
|
|
52
86
|
readonly currentPushMirror: MutableState<boolean>;
|
|
87
|
+
/** 是否使用新版连麦策略。新版策略会区分“讲师 RTC 能力”和“观众举手入口”。 */
|
|
53
88
|
readonly isLinkMicStrategyV2: MutableState<boolean>;
|
|
89
|
+
/** RTC 层事件透出,例如远端用户发布/取消发布流。 */
|
|
54
90
|
readonly rtcEvent: MutableEvent<PLVLinkMicRTCEvent>;
|
|
91
|
+
/** 讲师挂断本地连麦事件。 */
|
|
55
92
|
readonly teacherHangUpLinkMicEvent: MutableEvent<number>;
|
|
93
|
+
/** 成员加入连麦事件。 */
|
|
56
94
|
readonly viewerJoinLinkMicEvent: MutableEvent<PLVLinkMicViewer[]>;
|
|
95
|
+
/** 成员离开连麦事件。 */
|
|
57
96
|
readonly viewerLeaveLinkMicEvent: MutableEvent<PLVLinkMicViewer[]>;
|
|
97
|
+
/** 观众响应讲师邀请事件。 */
|
|
58
98
|
readonly viewerAnswerInvitationEvent: MutableEvent<PLVLinkMicAnswerInvitationEvent>;
|
|
99
|
+
/** 连麦模块统一错误事件。 */
|
|
59
100
|
readonly errorEvent: MutableEvent<PLVLinkMicErrorEvent>;
|
|
101
|
+
/** 当前用户在 RTC/socket 协议中的连麦 ID。部分场景下它和 viewerId 不一致。 */
|
|
60
102
|
linkmicId: string | undefined;
|
|
103
|
+
/** linkmicId 是否和 viewerId 不一致。为 true 时匹配自己需要同时兼容两个 ID。 */
|
|
61
104
|
linkmicIdDifferFromViewerId: boolean;
|
|
105
|
+
/** 推流开始时由 streamer 模块回调,驱动讲师/嘉宾进入连麦状态。 */
|
|
62
106
|
onStreamerStart: (() => void) | undefined;
|
|
107
|
+
/** 直播开始 socket 事件回调。 */
|
|
63
108
|
onLiveStreamStart: (() => void) | undefined;
|
|
109
|
+
/** 直播停止 socket 事件回调。 */
|
|
64
110
|
onLiveStreamStop: (() => void) | undefined;
|
|
111
|
+
/** 推流停止时由 streamer 模块回调,驱动连麦清理。 */
|
|
65
112
|
onStreamerStop: (() => void) | undefined;
|
|
113
|
+
/** 推流模块回调到连麦编码用例,用于更新码率。 */
|
|
66
114
|
setBitRate: ((bitRate: PLVLinkMicBitRate) => void) | undefined;
|
|
115
|
+
/** 推流模块回调到连麦编码用例,用于更新画面比例。 */
|
|
67
116
|
setPushResolutionRatio: ((pushResolutionRatio: PLVLinkMicPushResolutionRatio) => void) | undefined;
|
|
117
|
+
/** 推流模块回调到连麦编码用例,用于更新推流方向。 */
|
|
68
118
|
setPushOrientation: ((pushOrientation: PLVPushOrientation) => void) | undefined;
|
|
119
|
+
/** 推流模块回调到连麦编码用例,用于更新弱网降级策略。 */
|
|
69
120
|
setPushDowngradePreference: ((preference: PLVPushDowngradePreference) => void) | undefined;
|
|
121
|
+
/** 推流模块回调到连麦 RTC 用例,用于开始屏幕分享。 */
|
|
122
|
+
startScreenCapture: (() => number) | undefined;
|
|
123
|
+
/** 推流模块回调到连麦 RTC 用例,用于停止屏幕分享。 */
|
|
124
|
+
stopScreenCapture: (() => number) | undefined;
|
|
125
|
+
/**
|
|
126
|
+
* 统一上报模块错误事件,便于业务层监听和展示。
|
|
127
|
+
*/
|
|
70
128
|
reportError(q21: number, r21: string): void;
|
|
71
129
|
isMySocketLinkMicId(n21: string | undefined | null): boolean;
|
|
130
|
+
/**
|
|
131
|
+
* 按 linkMicId 查找当前频道连麦成员。
|
|
132
|
+
*/
|
|
72
133
|
findViewerByLinkMicId(l21?: string | null): PLVLinkMicViewer | undefined;
|
|
134
|
+
/**
|
|
135
|
+
* 按 viewerId 查找当前频道连麦成员。
|
|
136
|
+
*/
|
|
73
137
|
findViewerByViewerId(j21?: string | null): PLVLinkMicViewer | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* 释放当前对象持有的监听、定时器和临时状态,避免页面退出后继续收到回调。
|
|
140
|
+
*/
|
|
74
141
|
onDestroy(): void;
|
|
75
142
|
}
|
|
@@ -2,10 +2,15 @@
|
|
|
2
2
|
// @ts-nocheck
|
|
3
3
|
import { PLVRTCConfig, PLVRTCEngineEventCallback, PLVRTCMediaState, PLVRTCNetworkQuality, PLVRTCNetworkStatistics } from '@polyvharmony/rtc-sdk';
|
|
4
4
|
import { PLVLinkMicMediator } from './PLVLinkMicMediator';
|
|
5
|
+
/**
|
|
6
|
+
* 业务模型,承载当前模块内的结构化数据
|
|
7
|
+
*/
|
|
5
8
|
export declare class PLVLinkMicRTCEventCallback extends PLVRTCEngineEventCallback {
|
|
6
9
|
private readonly mediator;
|
|
7
10
|
constructor(m22: PLVLinkMicMediator);
|
|
8
11
|
onJoinChannelSuccess(j22: PLVRTCConfig, k22: string): void;
|
|
12
|
+
onScreenCaptureStarted(): void;
|
|
13
|
+
onScreenCaptureStoped(): void;
|
|
9
14
|
onUserMediaStateChanged(g22: string, h22: PLVRTCMediaState): void;
|
|
10
15
|
onTokenExpired(d22: string | undefined, e22: PLVRTCConfig): void;
|
|
11
16
|
onNetworkQuality(z21: string, a22: PLVRTCNetworkQuality, b22: PLVRTCNetworkQuality): void;
|
|
@@ -6,12 +6,18 @@ import { PLVLinkMicNetworkDataSource } from './datasource/PLVLinkMicNetworkDataS
|
|
|
6
6
|
import { PLVRTCClientRole, PLVRTCMediaState, PLVRTCRenderViewParam, PLVRTCVideoEncodeParam, PLVRTCVideoRenderParam } from '@polyvharmony/rtc-sdk';
|
|
7
7
|
import { PLVLinkMicChannelStatus } from './vo/PLVLinkMicChannelStatus';
|
|
8
8
|
import { PLVLiveViewLogVO } from '../../business/model/PLVLiveViewLogVO';
|
|
9
|
+
/**
|
|
10
|
+
* 模块数据仓库,封装 mediator、网络数据源、本地数据源和 RTC 依赖的访问入口
|
|
11
|
+
*/
|
|
9
12
|
export declare class PLVLinkMicRepo implements LifecycleAwareDependComponent {
|
|
10
13
|
readonly mediator: PLVLinkMicMediator;
|
|
11
14
|
private readonly networkDataSource;
|
|
12
15
|
private readonly rtcConfig;
|
|
13
16
|
private rtcEngine;
|
|
14
17
|
constructor(p25: PLVLinkMicMediator, q25: PLVLinkMicNetworkDataSource);
|
|
18
|
+
/**
|
|
19
|
+
* 初始化当前用例或模块,注册依赖、状态监听和 socket/RTC 回调。
|
|
20
|
+
*/
|
|
15
21
|
init(): Promise<void>;
|
|
16
22
|
private initLinkMicId;
|
|
17
23
|
private initRtcEngine;
|
|
@@ -22,6 +28,8 @@ export declare class PLVLinkMicRepo implements LifecycleAwareDependComponent {
|
|
|
22
28
|
sendLiveViewLog(t24: PLVLiveViewLogVO): Promise<void>;
|
|
23
29
|
joinRTCChannel(): void;
|
|
24
30
|
switchRTCRole(q24: PLVRTCClientRole): void;
|
|
31
|
+
startScreenCapture(): number;
|
|
32
|
+
stopScreenCapture(): number;
|
|
25
33
|
enableLocalVideo(p24: boolean): void;
|
|
26
34
|
enableLocalAudio(o24: boolean): void;
|
|
27
35
|
switchCamera(): void;
|
|
@@ -32,5 +40,8 @@ export declare class PLVLinkMicRepo implements LifecycleAwareDependComponent {
|
|
|
32
40
|
getRemoteViewerMediaState(j24: string): PLVRTCMediaState | undefined;
|
|
33
41
|
renewToken(): Promise<void>;
|
|
34
42
|
leaveRTCChannel(): void;
|
|
43
|
+
/**
|
|
44
|
+
* 释放当前对象持有的监听、定时器和临时状态,避免页面退出后继续收到回调。
|
|
45
|
+
*/
|
|
35
46
|
onDestroy(): Promise<void>;
|
|
36
47
|
}
|
|
@@ -4,6 +4,9 @@ import { PLVLinkMicMediator } from '../../mediator/PLVLinkMicMediator';
|
|
|
4
4
|
import { PLVRTCAppToken } from '@polyvharmony/rtc-sdk';
|
|
5
5
|
import { PLVLinkMicChannelStatus } from '../vo/PLVLinkMicChannelStatus';
|
|
6
6
|
import { PLVLiveViewLogVO } from '../../../business/model/PLVLiveViewLogVO';
|
|
7
|
+
/**
|
|
8
|
+
* 网络数据源,负责调用服务端接口并屏蔽接口细节
|
|
9
|
+
*/
|
|
7
10
|
export declare class PLVLinkMicNetworkDataSource {
|
|
8
11
|
private readonly mediator;
|
|
9
12
|
constructor(h24: PLVLinkMicMediator);
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// @keepTs
|
|
2
2
|
// @ts-nocheck
|
|
3
3
|
import { PLVMemberChannelViewer } from "../../../member/model/vo/PLVMemberChannelViewer";
|
|
4
|
+
/**
|
|
5
|
+
* 连麦交互事件模型,描述邀请、响应等 UI 可感知事件
|
|
6
|
+
*/
|
|
4
7
|
export declare class PLVLinkMicAnswerInvitationEvent {
|
|
5
8
|
readonly viewer: PLVMemberChannelViewer;
|
|
6
9
|
readonly accept: boolean;
|
|
@@ -1,16 +1,28 @@
|
|
|
1
1
|
// @keepTs
|
|
2
2
|
// @ts-nocheck
|
|
3
3
|
import { PLVRTCConfig } from '@polyvharmony/rtc-sdk';
|
|
4
|
+
/**
|
|
5
|
+
* 业务模型,承载当前模块内的结构化数据
|
|
6
|
+
*/
|
|
4
7
|
export declare class PLVLinkMicRTCEvent {
|
|
5
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* 业务模型,承载当前模块内的结构化数据
|
|
11
|
+
*/
|
|
6
12
|
export declare class PLVLinkMicRTCJoinSuccess extends PLVLinkMicRTCEvent {
|
|
7
13
|
rtcConfig?: PLVRTCConfig;
|
|
8
14
|
channelId?: string;
|
|
9
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* 业务模型,承载当前模块内的结构化数据
|
|
18
|
+
*/
|
|
10
19
|
export declare class PLVLinkMicRTCTokenExpired extends PLVLinkMicRTCEvent {
|
|
11
20
|
rtcConfig?: PLVRTCConfig;
|
|
12
21
|
channelId?: string;
|
|
13
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* 业务模型,承载当前模块内的结构化数据
|
|
25
|
+
*/
|
|
14
26
|
export declare class PLVLinkMicRTCKickOut extends PLVLinkMicRTCEvent {
|
|
15
27
|
code?: number;
|
|
16
28
|
}
|
|
@@ -1,41 +1,65 @@
|
|
|
1
1
|
// @keepTs
|
|
2
2
|
// @ts-nocheck
|
|
3
3
|
import { PLVSocketUserRecv, PLVSocketUserSend } from '../../../socket/model/PLVSocketUserBean';
|
|
4
|
+
/**
|
|
5
|
+
* 观众响应连麦邀请发送模型
|
|
6
|
+
*/
|
|
4
7
|
export declare class PLVLinkMicSocketJoinAnswerSend {
|
|
5
8
|
user?: PLVSocketUserSend | null;
|
|
6
9
|
roomId?: string | null;
|
|
7
10
|
status?: number | null;
|
|
8
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* 观众响应连麦邀请接收模型
|
|
14
|
+
*/
|
|
9
15
|
export declare class PLVLinkMicSocketJoinAnswerRecv {
|
|
10
16
|
status?: number | null;
|
|
11
17
|
userId?: string | null;
|
|
12
18
|
result?: boolean | null;
|
|
13
19
|
isAutoAnswer?: boolean | null;
|
|
14
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* 连麦邀请倒计时/过期时间发送模型
|
|
23
|
+
*/
|
|
15
24
|
export declare class PLVLinkMicSocketJoinAnswerTTLSend {
|
|
16
25
|
userId?: string | null;
|
|
17
26
|
roomId?: string | null;
|
|
18
27
|
sessionId?: string | null;
|
|
19
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* 成员离开连麦接收模型
|
|
31
|
+
*/
|
|
20
32
|
export declare class PLVLinkMicSocketJoinLeaveRecv {
|
|
21
33
|
user?: PLVSocketUserRecv | null;
|
|
22
34
|
isLeaveMic?: number | null;
|
|
23
35
|
requestIndex?: number | null;
|
|
24
36
|
roomId?: string | null;
|
|
25
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* 成员离开连麦发送模型
|
|
40
|
+
*/
|
|
26
41
|
export declare class PLVLinkMicSocketJoinLeaveSend {
|
|
27
42
|
user?: PLVSocketUserSend | null;
|
|
28
43
|
roomId?: string | null;
|
|
29
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* 观众举手申请连麦接收模型
|
|
47
|
+
*/
|
|
30
48
|
export declare class PLVLinkMicSocketJoinRequestRecv {
|
|
31
49
|
user?: PLVSocketUserRecv | null;
|
|
32
50
|
requestIndex?: number | null;
|
|
33
51
|
roomId?: string | null;
|
|
34
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* 观众举手申请连麦发送模型
|
|
55
|
+
*/
|
|
35
56
|
export declare class PLVLinkMicSocketJoinRequestSend {
|
|
36
57
|
user?: PLVSocketUserSend | null;
|
|
37
58
|
roomId?: string | null;
|
|
38
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* 讲师接受或拒绝连麦申请接收模型
|
|
62
|
+
*/
|
|
39
63
|
export declare class PLVLinkMicSocketJoinResponseRecv {
|
|
40
64
|
user?: PLVSocketUserRecv | null;
|
|
41
65
|
roomId?: string | null;
|
|
@@ -45,6 +69,9 @@ export declare class PLVLinkMicSocketJoinResponseRecv {
|
|
|
45
69
|
needAnswer?: number | boolean | string | null;
|
|
46
70
|
isNeedAnswer(): boolean;
|
|
47
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* 讲师接受或拒绝连麦申请发送模型
|
|
74
|
+
*/
|
|
48
75
|
export declare class PLVLinkMicSocketJoinResponseSend {
|
|
49
76
|
user?: PLVSocketUserSend | null;
|
|
50
77
|
roomId?: string | null;
|
|
@@ -52,23 +79,35 @@ export declare class PLVLinkMicSocketJoinResponseSend {
|
|
|
52
79
|
toEmitAll?: number | null;
|
|
53
80
|
needAnswer?: number | null;
|
|
54
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* 成员成功加入连麦接收模型
|
|
84
|
+
*/
|
|
55
85
|
export declare class PLVLinkMicSocketJoinSuccessRecv {
|
|
56
86
|
user?: PLVSocketUserRecv | null;
|
|
57
87
|
roomId?: string | null;
|
|
58
88
|
sessionId?: string | null;
|
|
59
89
|
requestIndex?: number | null;
|
|
60
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* 成员成功加入连麦发送模型
|
|
93
|
+
*/
|
|
61
94
|
export declare class PLVLinkMicSocketJoinSuccessSend {
|
|
62
95
|
user?: PLVSocketUserSend | null;
|
|
63
96
|
roomId?: string | null;
|
|
64
97
|
sessionId?: string | null;
|
|
65
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* 频道连麦开关和连麦模式同步接收模型
|
|
101
|
+
*/
|
|
66
102
|
export declare class PLVLinkMicSocketOpenMicrophoneRecv {
|
|
67
103
|
roomId?: string | null;
|
|
68
104
|
status?: string | null;
|
|
69
105
|
type?: string | null;
|
|
70
106
|
userId?: string | null;
|
|
71
107
|
}
|
|
108
|
+
/**
|
|
109
|
+
* 频道连麦开关和连麦模式同步发送模型
|
|
110
|
+
*/
|
|
72
111
|
export declare class PLVLinkMicSocketOpenMicrophoneSend {
|
|
73
112
|
EVENT: string;
|
|
74
113
|
roomId?: string | null;
|
|
@@ -77,12 +116,21 @@ export declare class PLVLinkMicSocketOpenMicrophoneSend {
|
|
|
77
116
|
userId?: string | null;
|
|
78
117
|
type?: string | null;
|
|
79
118
|
}
|
|
119
|
+
/**
|
|
120
|
+
* 连麦邀请倒计时/过期时间确认回包模型
|
|
121
|
+
*/
|
|
80
122
|
export declare class PLVLinkMicSocketJoinAnswerTTLAck {
|
|
81
123
|
message?: number[] | null;
|
|
82
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* PLVLinkMicSocketMicSettingSend 发送模型
|
|
127
|
+
*/
|
|
83
128
|
export declare class PLVLinkMicSocketMicSettingSend {
|
|
84
129
|
EVENT: string;
|
|
85
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* PLVLinkMicSocketMicSettingAck 确认回包模型
|
|
133
|
+
*/
|
|
86
134
|
export declare class PLVLinkMicSocketMicSettingAck {
|
|
87
135
|
message?: PLVLinkMicSocketMicSettingAckMessage[] | null;
|
|
88
136
|
}
|
|
@@ -96,23 +144,35 @@ declare class PLVLinkMicSocketMicSettingAckMessageData {
|
|
|
96
144
|
status?: string | null;
|
|
97
145
|
type?: string | null;
|
|
98
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* 第一画面切换接收模型
|
|
149
|
+
*/
|
|
99
150
|
export declare class PLVLinkMicSocketSwitchViewRecv {
|
|
100
151
|
socketId?: string | null;
|
|
101
152
|
roomId?: string | null;
|
|
102
153
|
userId?: string | null;
|
|
103
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* 第一画面切换发送模型
|
|
157
|
+
*/
|
|
104
158
|
export declare class PLVLinkMicSocketSwitchViewSend {
|
|
105
159
|
emitMode?: number | null;
|
|
106
160
|
roomId?: string | null;
|
|
107
161
|
userId?: string | null;
|
|
108
162
|
socketId?: string | null;
|
|
109
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* PLVLinkMicSocketMuteUserMicroRecv 接收模型
|
|
166
|
+
*/
|
|
110
167
|
export declare class PLVLinkMicSocketMuteUserMicroRecv {
|
|
111
168
|
socketId?: string | null;
|
|
112
169
|
userId?: string | null;
|
|
113
170
|
type?: string | null;
|
|
114
171
|
mute?: boolean | null;
|
|
115
172
|
}
|
|
173
|
+
/**
|
|
174
|
+
* 讲师控制成员摄像头或麦克风开关发送模型
|
|
175
|
+
*/
|
|
116
176
|
export declare class PLVLinkMicSocketMuteUserMediaSend {
|
|
117
177
|
EVENT: string;
|
|
118
178
|
sessionId?: string | null;
|
|
@@ -121,6 +181,9 @@ export declare class PLVLinkMicSocketMuteUserMediaSend {
|
|
|
121
181
|
userId?: string | null;
|
|
122
182
|
type?: string | null;
|
|
123
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* 讲师授予或收回成员权限发送模型
|
|
186
|
+
*/
|
|
124
187
|
export declare class PLVLinkMicSocketTeacherSetPermissionSend {
|
|
125
188
|
EVENT: string;
|
|
126
189
|
roomId?: string | null;
|
|
@@ -132,6 +195,9 @@ export declare class PLVLinkMicSocketTeacherSetPermissionSend {
|
|
|
132
195
|
toAll?: boolean | null;
|
|
133
196
|
sign?: string | null;
|
|
134
197
|
}
|
|
198
|
+
/**
|
|
199
|
+
* 讲师授予或收回成员权限接收模型
|
|
200
|
+
*/
|
|
135
201
|
export declare class PLVLinkMicSocketTeacherSetPermissionRecv {
|
|
136
202
|
roomId?: string | null;
|
|
137
203
|
userId?: string | null;
|
|
@@ -142,6 +208,9 @@ export declare class PLVLinkMicSocketTeacherSetPermissionRecv {
|
|
|
142
208
|
toDelete?: boolean | null;
|
|
143
209
|
toJoinMicList?: boolean | null;
|
|
144
210
|
}
|
|
211
|
+
/**
|
|
212
|
+
* PLVLinkMicSocketSwitchJoinVoiceRecv 接收模型
|
|
213
|
+
*/
|
|
145
214
|
export declare class PLVLinkMicSocketSwitchJoinVoiceRecv {
|
|
146
215
|
status?: number | null;
|
|
147
216
|
currentTime?: number | null;
|