@polyvharmony/live-scenes-sdk 1.3.4 → 1.4.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 +23 -0
- package/ets/modules.abc +0 -0
- package/oh-package.json5 +1 -1
- package/package.json +1 -1
- package/src/main/ets/common/PLVChannelData.d.ets +21 -10
- package/src/main/ets/common/PLVDataBaseModule.d.ets +1 -1
- package/src/main/ets/common/PLVLiveSceneSDK.d.ets +4 -4
- package/src/main/ets/modules/business/model/PLVLiveChannelSettingUpdateRequestVO.d.ets +1 -0
- package/src/main/ets/modules/business/model/PLVReportPageViewerVO.d.ets +1 -1
- package/src/main/ets/modules/chatroom/PLVChatroomManager.d.ets +22 -22
- package/src/main/ets/modules/chatroom/handler/PLVChatroomBanIpMessageHandler.d.ets +1 -1
- package/src/main/ets/modules/chatroom/handler/PLVChatroomBaseHandler.d.ets +2 -2
- package/src/main/ets/modules/chatroom/handler/PLVChatroomCancelTopHandler.d.ets +1 -1
- package/src/main/ets/modules/chatroom/handler/PLVChatroomCloseRoomMessageHandler.d.ets +1 -1
- package/src/main/ets/modules/chatroom/handler/PLVChatroomDataHandlerFactory.d.ets +1 -1
- package/src/main/ets/modules/chatroom/handler/PLVChatroomFocusModeHandler.d.ets +1 -1
- package/src/main/ets/modules/chatroom/handler/PLVChatroomLikesMessageHandler.d.ets +1 -1
- package/src/main/ets/modules/chatroom/handler/PLVChatroomLoginMessageHandler.d.ets +1 -1
- package/src/main/ets/modules/chatroom/handler/PLVChatroomLogoutMessageHandler.d.ets +1 -1
- package/src/main/ets/modules/chatroom/handler/PLVChatroomOnSliceIdMessageHandler.d.ets +1 -1
- package/src/main/ets/modules/chatroom/handler/PLVChatroomToTopHandler.d.ets +1 -1
- package/src/main/ets/modules/chatroom/handler/PLVChatroomUnShieldMessageHandler.d.ets +1 -1
- package/src/main/ets/modules/chatroom/model/PLVImageBean.d.ets +3 -3
- package/src/main/ets/modules/chatroom/model/PLVToTopEvent.d.ets +1 -1
- package/src/main/ets/modules/chatroom/playback/PLVChatPlaybackManager.d.ets +4 -4
- package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackDataVO.d.ets +2 -2
- package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackOpenHelper.d.ets +7 -7
- package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackToTopVO.d.ets +3 -3
- package/src/main/ets/modules/i18n/PLVI18NDataMapper.d.ets +5 -5
- package/src/main/ets/modules/interact/PLVInteractManager.d.ets +6 -6
- package/src/main/ets/modules/interact/PLVInteractWeb.d.ets +13 -13
- package/src/main/ets/modules/interact/invitePoster/PLVInteractInvitePoster.d.ets +1 -1
- package/src/main/ets/modules/interact/model/PLVFunctionSwitchBean.d.ets +1 -1
- package/src/main/ets/modules/interact/pushcard/PLVPushCardManager.d.ets +2 -2
- package/src/main/ets/modules/interact/pushcard/model/PLVShowPushCardEvent.d.ets +1 -1
- package/src/main/ets/modules/interact/pushcard/repo/PLVCardLookTimeLocalRepository.d.ets +3 -3
- package/src/main/ets/modules/linkmic/PLVLinkMicManager.d.ets +15 -15
- package/src/main/ets/modules/linkmic/mediator/PLVLinkMicMediator.d.ets +4 -4
- package/src/main/ets/modules/linkmic/mediator/PLVLinkMicRTCEventCallback.d.ets +8 -8
- package/src/main/ets/modules/linkmic/model/PLVLinkMicRepo.d.ets +10 -10
- package/src/main/ets/modules/linkmic/model/datasource/PLVLinkMicNetworkDataSource.d.ets +4 -4
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRate.d.ets +1 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRateEncodeParam.d.ets +1 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicErrorEvent.d.ets +1 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicInteractEvent.d.ets +1 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicPushResolutionRatio.d.ets +1 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicVideoRenderParam.d.ets +1 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicViewer.d.ets +1 -1
- package/src/main/ets/modules/linkmic/viewmodel/PLVLinkMicViewModel.d.ets +16 -16
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicEncodeParamUseCase.d.ets +6 -6
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleQueueOrderUseCase.d.ets +4 -4
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleRTCUseCase.d.ets +7 -7
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleStateUseCase.d.ets +10 -10
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicUpdateChannelViewerUseCase.d.ets +6 -6
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicViewLogUseCase.d.ets +1 -1
- package/src/main/ets/modules/linkmic/viewmodel/usecase/PLVLinkMicUseCases.d.ets +1 -1
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestEncodeParamUseCase.d.ets +6 -6
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleRTCUseCase.d.ets +7 -7
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleStateUseCase.d.ets +10 -10
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherEncodeParamUseCase.d.ets +6 -6
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleRTCUseCase.d.ets +7 -7
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleStateUseCase.d.ets +10 -10
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerEncodeParamUseCase.d.ets +6 -6
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleRTCUseCase.d.ets +7 -7
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleStateUseCase.d.ets +10 -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 +5 -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 +30 -30
- 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 +14 -8
- package/src/main/ets/modules/streamer/mediator/PLVStreamerMediator.d.ets +2 -2
- package/src/main/ets/modules/streamer/model/PLVStreamerRepo.d.ets +10 -8
- package/src/main/ets/modules/streamer/model/datasource/PLVStreamerLocalDataSource.d.ets +2 -2
- package/src/main/ets/modules/streamer/model/datasource/PLVStreamerNetworkDataSource.d.ets +12 -7
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerErrorEvent.d.ets +1 -1
- package/src/main/ets/modules/streamer/viewmodel/PLVStreamerViewModel.d.ets +9 -8
- package/src/main/ets/modules/streamer/viewmodel/usecase/PLVStreamerUseCases.d.ets +3 -1
- package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerHandleStateUseCase.d.ets +2 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerMixStreamUseCase.d.ets +2 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerUpdateSplashImageUseCase.d.ets +9 -0
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestHandleStateUseCase.d.ets +2 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestMixStreamUseCase.d.ets +2 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherHandleStateUseCase.d.ets +2 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherMixStreamUseCase.d.ets +2 -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.4.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 = "20260206";
|
|
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.4.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 = "20260206";
|
|
20
20
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
## [v1.4.0] - 2026-02-06
|
|
2
|
+
|
|
3
|
+
### 【观看端场景】
|
|
4
|
+
|
|
5
|
+
新增功能:
|
|
6
|
+
|
|
7
|
+
1. 商品库推广外链跳转外链携带参数 [Demo、SDK]
|
|
8
|
+
|
|
9
|
+
### 【开播端场景】
|
|
10
|
+
|
|
11
|
+
新增功能:
|
|
12
|
+
|
|
13
|
+
1. 开播端支持开播前修改频道封面图 [Demo、SDK]
|
|
14
|
+
2. 开播端支持小班课场景开播 [SDK]
|
|
15
|
+
|
|
16
|
+
## [v1.3.5] - 2026-01-16
|
|
17
|
+
|
|
18
|
+
### 【观看端场景】
|
|
19
|
+
|
|
20
|
+
新增功能:
|
|
21
|
+
|
|
22
|
+
1. 登录频道支持自动选择后台配置的观看模板 [Demo、SDK]
|
|
23
|
+
|
|
1
24
|
## [v1.3.4] - 2025-12-26
|
|
2
25
|
|
|
3
26
|
### 【观看端场景】
|
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.4.0","description":"polyv live-scenes-sdk","author":"POLYV","license":"MIT","dependencies":{"@polyvharmony/live-scenes-foundation":"1.4.0","@ohos/dataorm":"2.2.2","@polyvharmony/media-player-sdk":"2.7.1","@polyvharmony/rtc-sdk":"1.3.0"},"types":"Index.d.ets","artifactType":"obfuscation","metadata":{"byteCodeHar":true,"sourceRoots":["./src/main"],"debug":false,"dependencyPkgVersion":{"@polyvharmony/live-scenes-foundation":"1.4.0","@ohos/dataorm":"2.2.2","@polyvharmony/media-player-sdk":"2.7.1","@polyvharmony/rtc-sdk":"1.3.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.4.0","description":"polyv live-scenes-sdk","author":"POLYV","license":"MIT","dependencies":{"@polyvharmony/live-scenes-foundation":"1.4.0","@ohos/dataorm":"2.2.2","@polyvharmony/media-player-sdk":"2.7.1","@polyvharmony/rtc-sdk":"1.3.0"},"types":"Index.d.ets","artifactType":"obfuscation","metadata":{"byteCodeHar":true,"sourceRoots":["./src/main"],"debug":false,"dependencyPkgVersion":{"@polyvharmony/live-scenes-foundation":"1.4.0","@ohos/dataorm":"2.2.2","@polyvharmony/media-player-sdk":"2.7.1","@polyvharmony/rtc-sdk":"1.3.0"},"declarationEntry":[],"useNormalizedOHMUrl":true},"compatibleSdkVersionStage":"beta1","compatibleSdkVersion":12,"compatibleSdkType":"HarmonyOS","obfuscated":true}
|
|
@@ -161,7 +161,7 @@ export declare class PLVChannelData {
|
|
|
161
161
|
* SDK中开启“点播列表”/通过vid观看时——优先响应“点播列表”/vid观看开关配置
|
|
162
162
|
* @param isOnVodList
|
|
163
163
|
*/
|
|
164
|
-
setupPlaybackListType(
|
|
164
|
+
setupPlaybackListType(r: boolean): void;
|
|
165
165
|
/**
|
|
166
166
|
* 是否点播列表类型
|
|
167
167
|
* @returns
|
|
@@ -171,33 +171,33 @@ export declare class PLVChannelData {
|
|
|
171
171
|
* 设置观看热度
|
|
172
172
|
* @param pageViewer
|
|
173
173
|
*/
|
|
174
|
-
setupPageViewer(
|
|
174
|
+
setupPageViewer(q: number): void;
|
|
175
175
|
/**
|
|
176
176
|
* 设置场次Id
|
|
177
177
|
* @param sessionId
|
|
178
178
|
*/
|
|
179
|
-
setupSessionId(
|
|
179
|
+
setupSessionId(p: string): void;
|
|
180
180
|
/**
|
|
181
181
|
* 设置播放Id
|
|
182
182
|
* @param playId
|
|
183
183
|
*/
|
|
184
|
-
setupPlayId(
|
|
184
|
+
setupPlayId(o: string): void;
|
|
185
185
|
/**
|
|
186
186
|
* 设置语言值,并不会改变当前页面语言
|
|
187
187
|
* @param language
|
|
188
188
|
*/
|
|
189
|
-
setupLanguage(
|
|
189
|
+
setupLanguage(n: PLVLanguage): void;
|
|
190
190
|
/**
|
|
191
191
|
* 设置实际登录socket的房间Id
|
|
192
192
|
* @param loginRoomId
|
|
193
193
|
*/
|
|
194
|
-
setupLoginRoomId(
|
|
194
|
+
setupLoginRoomId(m: string): void;
|
|
195
195
|
/**
|
|
196
196
|
* 设置聊天token
|
|
197
197
|
* @param chatToken
|
|
198
198
|
*/
|
|
199
|
-
setupChatToken(
|
|
200
|
-
setupChannelFunctionSwitch(
|
|
199
|
+
setupChatToken(l: string): void;
|
|
200
|
+
setupChannelFunctionSwitch(k?: ArrayList<PLVChatFunctionSwitchVO>): void;
|
|
201
201
|
/**
|
|
202
202
|
* 获取ua
|
|
203
203
|
* @returns
|
|
@@ -228,7 +228,7 @@ export declare class PLVChannelData {
|
|
|
228
228
|
* @param menuType
|
|
229
229
|
* @returns
|
|
230
230
|
*/
|
|
231
|
-
getMenuBean(
|
|
231
|
+
getMenuBean(h: string): ChannelMenusBean | undefined;
|
|
232
232
|
/**
|
|
233
233
|
* 是否有往期菜单
|
|
234
234
|
* @returns
|
|
@@ -238,12 +238,23 @@ export declare class PLVChannelData {
|
|
|
238
238
|
* 获取往期菜单名称
|
|
239
239
|
* @returns
|
|
240
240
|
*/
|
|
241
|
-
getPreviousMenuName(
|
|
241
|
+
getPreviousMenuName(e?: ResourceStr): ResourceStr | undefined;
|
|
242
242
|
/**
|
|
243
243
|
* 是否有章节菜单
|
|
244
244
|
* @returns
|
|
245
245
|
*/
|
|
246
246
|
hasChapterMenu(): boolean;
|
|
247
|
+
/**
|
|
248
|
+
* 是否横屏观看模版
|
|
249
|
+
* @returns
|
|
250
|
+
*/
|
|
251
|
+
isNormalWatchLayout(): boolean;
|
|
252
|
+
/**
|
|
253
|
+
* 构建iframe链接参数
|
|
254
|
+
* @param url
|
|
255
|
+
* @returns
|
|
256
|
+
*/
|
|
257
|
+
buildIFrameLinkParams(d: string): string;
|
|
247
258
|
string(): string;
|
|
248
259
|
/**
|
|
249
260
|
* 销毁
|
|
@@ -44,18 +44,18 @@ export declare class PLVLiveSceneSDK {
|
|
|
44
44
|
* @param uniqueId
|
|
45
45
|
* @returns
|
|
46
46
|
*/
|
|
47
|
-
static get(
|
|
47
|
+
static get(d1: number): PLVLiveSceneSDK | undefined;
|
|
48
48
|
/**
|
|
49
49
|
* 移除
|
|
50
50
|
* @param uniqueId
|
|
51
51
|
*/
|
|
52
|
-
static remove(
|
|
52
|
+
static remove(c1: number): void;
|
|
53
53
|
/**
|
|
54
54
|
* 初始化资源
|
|
55
55
|
* @param context
|
|
56
56
|
* @param windowStage
|
|
57
57
|
*/
|
|
58
|
-
static init(
|
|
58
|
+
static init(y: common.UIAbilityContext, z: window.WindowStage): void;
|
|
59
59
|
private readonly dependScope;
|
|
60
60
|
private observers;
|
|
61
61
|
/**
|
|
@@ -139,7 +139,7 @@ export declare class PLVLiveSceneSDK {
|
|
|
139
139
|
* @param importSDKModuleContext
|
|
140
140
|
* @param initPageLanguage
|
|
141
141
|
*/
|
|
142
|
-
initData(
|
|
142
|
+
initData(w: common.UIAbilityContext, x?: boolean): void;
|
|
143
143
|
/**
|
|
144
144
|
* 销毁,释放资源
|
|
145
145
|
*/
|
|
@@ -64,21 +64,21 @@ export declare class PLVChatroomManager extends PLVBaseModule {
|
|
|
64
64
|
* 事件通知
|
|
65
65
|
*/
|
|
66
66
|
eventNotify: IPLVEventNotify<EventType>;
|
|
67
|
-
constructor(
|
|
67
|
+
constructor(k14: PLVChannelData, l14: PLVSocketMediator);
|
|
68
68
|
/**
|
|
69
69
|
* 监听socket通道的聊天事件
|
|
70
70
|
* @param event
|
|
71
71
|
* @param callback
|
|
72
72
|
* @param onTag
|
|
73
73
|
*/
|
|
74
|
-
onData(
|
|
74
|
+
onData(h14: string, i14: Function, j14?: string | Object): void;
|
|
75
75
|
/**
|
|
76
76
|
* 取消监听socket通道的聊天事件
|
|
77
77
|
* @param event
|
|
78
78
|
* @param callback
|
|
79
79
|
* @param onTag
|
|
80
80
|
*/
|
|
81
|
-
offData(
|
|
81
|
+
offData(e14: string, f14: Function, g14?: string | Object): void;
|
|
82
82
|
/**
|
|
83
83
|
* 是否处于已连接状态
|
|
84
84
|
* @returns
|
|
@@ -88,27 +88,27 @@ export declare class PLVChatroomManager extends PLVBaseModule {
|
|
|
88
88
|
* 设置专注模式值
|
|
89
89
|
* @param isFocusModeOpen
|
|
90
90
|
*/
|
|
91
|
-
setupFocusMode(
|
|
91
|
+
setupFocusMode(d14: boolean): void;
|
|
92
92
|
/**
|
|
93
93
|
* 设置关闭房间值
|
|
94
94
|
* @param isCloseRoom
|
|
95
95
|
*/
|
|
96
|
-
setupCloseRoom(
|
|
96
|
+
setupCloseRoom(c14: boolean): void;
|
|
97
97
|
/**
|
|
98
98
|
* 设置在线人数值
|
|
99
99
|
* @param onlineUserNumber
|
|
100
100
|
*/
|
|
101
|
-
setupOnlineUserNumber(
|
|
101
|
+
setupOnlineUserNumber(b14: number): void;
|
|
102
102
|
/**
|
|
103
103
|
* 设置点赞数
|
|
104
104
|
* @param added
|
|
105
105
|
*/
|
|
106
|
-
setupLikesCount(
|
|
106
|
+
setupLikesCount(z13: number): void;
|
|
107
107
|
/**
|
|
108
108
|
* 设置评论上墙数据,为undefined时为下墙
|
|
109
109
|
* @param toTopEvent
|
|
110
110
|
*/
|
|
111
|
-
setupToTopEvent(
|
|
111
|
+
setupToTopEvent(x13?: PLVToTopEvent): void;
|
|
112
112
|
/**
|
|
113
113
|
* 发言
|
|
114
114
|
* @param message
|
|
@@ -116,20 +116,20 @@ export declare class PLVChatroomManager extends PLVBaseModule {
|
|
|
116
116
|
* @param source
|
|
117
117
|
* @returns
|
|
118
118
|
*/
|
|
119
|
-
speak(
|
|
119
|
+
speak(n13?: string, o13?: PLVChatQuoteDataBean, p13?: string): Promise<PLVLocalSpeakEvent>;
|
|
120
120
|
/**
|
|
121
121
|
* 提问
|
|
122
122
|
* @param message
|
|
123
123
|
* @returns
|
|
124
124
|
*/
|
|
125
|
-
quiz(
|
|
126
|
-
sendEmotionImage(
|
|
127
|
-
sendLocalImage(
|
|
125
|
+
quiz(i13?: string): Promise<PLVLocalQuizEvent>;
|
|
126
|
+
sendEmotionImage(b13: PLVEmotionImageBean): Promise<PLVEmotionEvent>;
|
|
127
|
+
sendLocalImage(j12: string): Promise<PLVChatImgEvent>;
|
|
128
128
|
/**
|
|
129
129
|
* 点赞
|
|
130
130
|
* @param addedCount
|
|
131
131
|
*/
|
|
132
|
-
likes(
|
|
132
|
+
likes(i12?: number): void;
|
|
133
133
|
/**
|
|
134
134
|
* 讲师 切换全体禁言
|
|
135
135
|
*/
|
|
@@ -139,14 +139,14 @@ export declare class PLVChatroomManager extends PLVBaseModule {
|
|
|
139
139
|
* @param msgId
|
|
140
140
|
* @returns
|
|
141
141
|
*/
|
|
142
|
-
getOverLengthFullMessage(
|
|
142
|
+
getOverLengthFullMessage(z11: string): Promise<string>;
|
|
143
143
|
/**
|
|
144
144
|
* 获取提问历史记录
|
|
145
145
|
* @param page
|
|
146
146
|
* @param size
|
|
147
147
|
* @returns
|
|
148
148
|
*/
|
|
149
|
-
getQuizHistoryList(
|
|
149
|
+
getQuizHistoryList(t11: number, u11: number): Promise<PLVHistoryQuizListVO>;
|
|
150
150
|
/**
|
|
151
151
|
* 获取聊天历史记录
|
|
152
152
|
* @param size
|
|
@@ -154,7 +154,7 @@ export declare class PLVChatroomManager extends PLVBaseModule {
|
|
|
154
154
|
* @param index
|
|
155
155
|
* @returns
|
|
156
156
|
*/
|
|
157
|
-
getChatHistoryList(
|
|
157
|
+
getChatHistoryList(l11: number, m11?: number, n11?: number): Promise<PLVJSONObject[]>;
|
|
158
158
|
/**
|
|
159
159
|
* 获取聊天历史记录
|
|
160
160
|
* @param size
|
|
@@ -162,27 +162,27 @@ export declare class PLVChatroomManager extends PLVBaseModule {
|
|
|
162
162
|
* @param index
|
|
163
163
|
* @returns
|
|
164
164
|
*/
|
|
165
|
-
getChatHistoryListBySessionId(
|
|
165
|
+
getChatHistoryListBySessionId(b11: number, c11?: number, d11?: string): Promise<PLVJSONObject[]>;
|
|
166
166
|
/**
|
|
167
167
|
* 解析聊天历史记录数据
|
|
168
168
|
* @param value
|
|
169
169
|
* @param syncParsedCallback
|
|
170
170
|
*/
|
|
171
|
-
parseChatHistoryData(
|
|
171
|
+
parseChatHistoryData(z10: PLVJSONObject, a11: PLVCallback<PLVJSONObject, void>): void;
|
|
172
172
|
/**
|
|
173
173
|
* 解析聊天历史记录数据
|
|
174
174
|
* @param value
|
|
175
175
|
* @param fromSessionIdHistoryApi
|
|
176
176
|
* @param syncParsedCallback
|
|
177
177
|
*/
|
|
178
|
-
parseChatHistoryDataFromApi(
|
|
178
|
+
parseChatHistoryDataFromApi(i10: PLVJSONObject, j10: boolean, k10: PLVCallback<PLVJSONObject, void>): void;
|
|
179
179
|
/**
|
|
180
180
|
* 获取个性表情数据
|
|
181
181
|
* @param page
|
|
182
182
|
* @param size
|
|
183
183
|
* @returns
|
|
184
184
|
*/
|
|
185
|
-
getEmotionImages(
|
|
185
|
+
getEmotionImages(c10?: number, d10?: number): Promise<PLVEmotionImagesVO>;
|
|
186
186
|
/**
|
|
187
187
|
* 销毁
|
|
188
188
|
*/
|
|
@@ -238,6 +238,6 @@ export declare class PLVChatroomError extends Error implements BusinessError<obj
|
|
|
238
238
|
message: string;
|
|
239
239
|
code: number;
|
|
240
240
|
data?: object | undefined;
|
|
241
|
-
constructor(
|
|
242
|
-
bindData(
|
|
241
|
+
constructor(x8: string, y8: number);
|
|
242
|
+
bindData(w8?: object): this;
|
|
243
243
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { PLVChatroomManager } from '../PLVChatroomManager';
|
|
4
4
|
export declare abstract class PLVChatroomBaseHandler {
|
|
5
5
|
chatroomManager: PLVChatroomManager;
|
|
6
|
-
constructor(
|
|
7
|
-
abstract handle(
|
|
6
|
+
constructor(w1: PLVChatroomManager);
|
|
7
|
+
abstract handle(v1: string): any;
|
|
8
8
|
}
|
|
9
9
|
export declare abstract class PLVChatroomBaseMessageHandler extends PLVChatroomBaseHandler {
|
|
10
10
|
static readonly ON_EVENT: string;
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
import { PLVChatroomBaseMessageHandler } from './PLVChatroomBaseHandler';
|
|
4
4
|
export declare class PLVChatroomCloseRoomMessageHandler extends PLVChatroomBaseMessageHandler {
|
|
5
5
|
static readonly EVENT = "CLOSEROOM";
|
|
6
|
-
handle(
|
|
6
|
+
handle(z1: string): void;
|
|
7
7
|
}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
import { PLVChatroomManager } from '../PLVChatroomManager';
|
|
4
4
|
import { PLVChatroomBaseHandler } from './PLVChatroomBaseHandler';
|
|
5
5
|
export declare class PLVChatroomDataHandlerFactory {
|
|
6
|
-
static getMessageHandler(
|
|
6
|
+
static getMessageHandler(c2: PLVChatroomManager, d2: string, e2: string): PLVChatroomBaseHandler | undefined;
|
|
7
7
|
}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
import { PLVChatroomBaseMessageHandler } from './PLVChatroomBaseHandler';
|
|
4
4
|
export declare class PLVChatroomOnSliceIdMessageHandler extends PLVChatroomBaseMessageHandler {
|
|
5
5
|
static readonly EVENT = "onSliceID";
|
|
6
|
-
handle(
|
|
6
|
+
handle(r2: string): void;
|
|
7
7
|
}
|
|
@@ -10,7 +10,7 @@ export declare class PLVImageBean {
|
|
|
10
10
|
height: number;
|
|
11
11
|
width: number;
|
|
12
12
|
url?: string | Resource;
|
|
13
|
-
static toImageBeanForChatImg(
|
|
14
|
-
static toImageBeanForEmotion(
|
|
15
|
-
static toImageBeanForFileShare(
|
|
13
|
+
static toImageBeanForChatImg(r3?: PLVChatImgContentBean): PLVImageBean;
|
|
14
|
+
static toImageBeanForEmotion(n3?: PLVEmotionEvent, o3?: PLVEmotionImageBean[]): PLVImageBean;
|
|
15
|
+
static toImageBeanForFileShare(l3?: PLVPPTShareFileDataBean): PLVImageBean;
|
|
16
16
|
}
|
|
@@ -34,23 +34,23 @@ export declare class PLVChatPlaybackManager extends PLVBaseModule {
|
|
|
34
34
|
* 事件通知
|
|
35
35
|
*/
|
|
36
36
|
eventNotify: IPLVEventNotify<EventType>;
|
|
37
|
-
constructor(
|
|
37
|
+
constructor(v8: PLVChannelData);
|
|
38
38
|
/**
|
|
39
39
|
* 设置播放时间回调
|
|
40
40
|
* @param callback
|
|
41
41
|
*/
|
|
42
|
-
setupPlayTimeCallback(
|
|
42
|
+
setupPlayTimeCallback(u8: PLVCallback<void, number>): void;
|
|
43
43
|
/**
|
|
44
44
|
* 开始
|
|
45
45
|
* @param sessionId
|
|
46
46
|
* @param fileId
|
|
47
47
|
*/
|
|
48
|
-
start(
|
|
48
|
+
start(s8: string, t8: string): Promise<void>;
|
|
49
49
|
/**
|
|
50
50
|
* seek
|
|
51
51
|
* @param time
|
|
52
52
|
*/
|
|
53
|
-
seek(
|
|
53
|
+
seek(r8: number): void;
|
|
54
54
|
/**
|
|
55
55
|
* 销毁
|
|
56
56
|
*/
|
|
@@ -25,11 +25,11 @@ export declare class PLVChatPlaybackDataVO implements IPLVIdEvent {
|
|
|
25
25
|
user?: PLVSocketUserBean;
|
|
26
26
|
parsedData?: string[];
|
|
27
27
|
inserted?: boolean;
|
|
28
|
-
constructor(
|
|
28
|
+
constructor(y111?: string, z111?: number, a112?: string, b112?: string, c112?: string, d112?: string, e112?: string, f112?: string, g112?: string, h112?: string, i112?: string, j112?: number, k112?: number, l112?: number);
|
|
29
29
|
fill(): void;
|
|
30
30
|
getUniqueId(): string;
|
|
31
31
|
isImgMsgType(): boolean;
|
|
32
32
|
isSpeakMsgType(): boolean;
|
|
33
|
-
setPic(
|
|
33
|
+
setPic(a4?: string): void;
|
|
34
34
|
getPic(): string;
|
|
35
35
|
}
|
|
@@ -4,18 +4,18 @@ import common from "@ohos.app.ability.common";
|
|
|
4
4
|
import { Database, OpenHelper } from '@ohos/dataorm';
|
|
5
5
|
import { PLVChatPlaybackDataVO } from './PLVChatPlaybackDataVO';
|
|
6
6
|
export declare class PLVChatPlaybackOpenHelper extends OpenHelper {
|
|
7
|
-
constructor(
|
|
8
|
-
onCreateDatabase(
|
|
9
|
-
onUpgradeDatabase(
|
|
10
|
-
onDowngradeDatabase(
|
|
7
|
+
constructor(e5: common.UIAbilityContext, f5: string, g5?: string);
|
|
8
|
+
onCreateDatabase(d5: Database): Promise<void>;
|
|
9
|
+
onUpgradeDatabase(a5: Database, b5: number, c5: number): Promise<void>;
|
|
10
|
+
onDowngradeDatabase(x4: Database, y4: number, z4: number): Promise<void>;
|
|
11
11
|
}
|
|
12
12
|
export declare class PLVChatPlaybackDataSource {
|
|
13
13
|
static readonly INSTANCE: PLVChatPlaybackDataSource;
|
|
14
14
|
private dataDao;
|
|
15
15
|
private properties?;
|
|
16
16
|
private constructor();
|
|
17
|
-
initDB(
|
|
18
|
-
insert(...
|
|
19
|
-
query(
|
|
17
|
+
initDB(s4: common.UIAbilityContext): Promise<void>;
|
|
18
|
+
insert(...r4: PLVChatPlaybackDataVO[]): Promise<void>;
|
|
19
|
+
query(p4: string, q4: number): Promise<PLVChatPlaybackDataVO[] | undefined>;
|
|
20
20
|
deleteAll(): Promise<void>;
|
|
21
21
|
}
|
|
@@ -14,7 +14,7 @@ export declare class PLVChatPlaybackToTopVO {
|
|
|
14
14
|
isToTop(): boolean;
|
|
15
15
|
toTopEvent(): PLVToTopEvent;
|
|
16
16
|
toCancelTopEvent(): PLVCancelTopEvent;
|
|
17
|
-
equals(
|
|
17
|
+
equals(y5: PLVChatPlaybackToTopVO): boolean;
|
|
18
18
|
}
|
|
19
19
|
export type EventType = 'to_top';
|
|
20
20
|
export declare class PLVChatPlaybackToTopModel {
|
|
@@ -22,8 +22,8 @@ export declare class PLVChatPlaybackToTopModel {
|
|
|
22
22
|
private dataList;
|
|
23
23
|
private lastCallToTopData?;
|
|
24
24
|
eventNotify: IPLVEventNotify<EventType>;
|
|
25
|
-
put(
|
|
26
|
-
checkEmitByTime(
|
|
25
|
+
put(u5: string, v5: PLVChatPlaybackToTopVO): void;
|
|
26
|
+
checkEmitByTime(q5: string, r5: number): void;
|
|
27
27
|
clearToTop(): void;
|
|
28
28
|
clear(): void;
|
|
29
29
|
private getToTopList;
|
|
@@ -7,9 +7,9 @@ export declare class PLVI18NDataMapper {
|
|
|
7
7
|
static readonly UNIT_MAPPER: PLVHashMap<string, Resource>;
|
|
8
8
|
static readonly EXCEPTION_MAPPER: PLVHashMap<string, Resource>;
|
|
9
9
|
static readonly MENU_MAPPER: PLVHashMap<string, Resource>;
|
|
10
|
-
static getRole(
|
|
11
|
-
static getRewardName(
|
|
12
|
-
static getUnit(
|
|
13
|
-
static getException(
|
|
14
|
-
static getMenuName(
|
|
10
|
+
static getRole(q14?: string): string | Resource;
|
|
11
|
+
static getRewardName(p14?: string): string | Resource;
|
|
12
|
+
static getUnit(o14?: string): string | Resource;
|
|
13
|
+
static getException(n14?: string): string | Resource;
|
|
14
|
+
static getMenuName(m14?: string): string | Resource;
|
|
15
15
|
}
|
|
@@ -25,12 +25,12 @@ export declare class PLVInteractManager extends PLVBaseModule {
|
|
|
25
25
|
* 发送数据互动数据
|
|
26
26
|
* @param dataBean
|
|
27
27
|
*/
|
|
28
|
-
notifyPostValue(
|
|
28
|
+
notifyPostValue(q15: PLVInteractDataBean): void;
|
|
29
29
|
/**
|
|
30
30
|
* 注册互动页面
|
|
31
31
|
* @param view
|
|
32
32
|
*/
|
|
33
|
-
registerInteractView(
|
|
33
|
+
registerInteractView(p15: IPLVInteractView): void;
|
|
34
34
|
/**
|
|
35
35
|
* 展示问答页面
|
|
36
36
|
*/
|
|
@@ -39,7 +39,7 @@ export declare class PLVInteractManager extends PLVBaseModule {
|
|
|
39
39
|
* 展示推送卡片页面
|
|
40
40
|
* @param showPushCardEvent
|
|
41
41
|
*/
|
|
42
|
-
showCardPush(
|
|
42
|
+
showCardPush(o15: PLVShowPushCardEvent | undefined): void;
|
|
43
43
|
/**
|
|
44
44
|
* 展示抽奖页面
|
|
45
45
|
*/
|
|
@@ -51,7 +51,7 @@ export declare class PLVInteractManager extends PLVBaseModule {
|
|
|
51
51
|
/**
|
|
52
52
|
* 展示动态互动功能
|
|
53
53
|
*/
|
|
54
|
-
showDynamicAction(
|
|
54
|
+
showDynamicAction(n15: string): void;
|
|
55
55
|
/**
|
|
56
56
|
* 销毁
|
|
57
57
|
*/
|
|
@@ -60,10 +60,10 @@ export declare class PLVInteractManager extends PLVBaseModule {
|
|
|
60
60
|
* 接收红包事件
|
|
61
61
|
* @param redPaperEvent
|
|
62
62
|
*/
|
|
63
|
-
receiveRedPaper(
|
|
63
|
+
receiveRedPaper(m15: PLVRedPaperEvent): void;
|
|
64
64
|
/**
|
|
65
65
|
* 展示投递职业页面
|
|
66
66
|
* @param event
|
|
67
67
|
*/
|
|
68
|
-
onShowJobDetail(
|
|
68
|
+
onShowJobDetail(l15?: PLVShowJobDetailEvent): void;
|
|
69
69
|
}
|