@polyvharmony/live-scenes-sdk 1.3.0-rc.1 → 1.3.0-rc.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/BuildProfile.d.ets +2 -2
- package/BuildProfile.js +1 -1
- package/CHANGELOG.md +12 -2
- package/oh-package.json5 +1 -1
- package/package.json +1 -1
- package/src/main/ets/modules/chatroom/PLVChatroomManager.d.ets +9 -9
- package/src/main/ets/modules/chatroom/PLVChatroomManager.js +57 -58
- package/src/main/ets/modules/i18n/PLVI18NDataMapper.d.ets +3 -3
- package/src/main/ets/modules/i18n/PLVI18NDataMapper.js +12 -12
- package/src/main/ets/modules/i18n/PLVLanguageManager.js +8 -5
- package/src/main/ets/modules/interact/PLVInteractManager.d.ets +4 -4
- package/src/main/ets/modules/interact/PLVInteractManager.js +8 -8
- package/src/main/ets/modules/interact/PLVInteractWeb.d.ets +2 -2
- package/src/main/ets/modules/interact/PLVInteractWeb.js +39 -39
- package/src/main/ets/modules/interact/invitePoster/PLVInteractInvitePoster.d.ets +1 -1
- package/src/main/ets/modules/interact/invitePoster/PLVInteractInvitePoster.js +16 -16
- package/src/main/ets/modules/interact/model/PLVFunctionSwitchBean.d.ets +1 -1
- package/src/main/ets/modules/interact/model/PLVFunctionSwitchBean.js +2 -2
- package/src/main/ets/modules/interact/pushcard/PLVPushCardManager.d.ets +2 -2
- package/src/main/ets/modules/interact/pushcard/PLVPushCardManager.js +16 -16
- package/src/main/ets/modules/interact/pushcard/repo/PLVCardLookTimeLocalRepository.d.ets +3 -3
- package/src/main/ets/modules/interact/pushcard/repo/PLVCardLookTimeLocalRepository.js +6 -6
- package/src/main/ets/modules/interact/redpack/model/PLVHistoryRedPaperEvent.js +4 -4
- package/src/main/ets/modules/interact/redpack/model/PLVRedPaperEvent.js +4 -4
- package/src/main/ets/modules/linkmic/PLVLinkMicManager.d.ets +12 -12
- package/src/main/ets/modules/linkmic/PLVLinkMicManager.js +33 -33
- package/src/main/ets/modules/linkmic/mediator/PLVLinkMicMediator.d.ets +2 -2
- package/src/main/ets/modules/linkmic/mediator/PLVLinkMicMediator.js +10 -10
- package/src/main/ets/modules/linkmic/mediator/PLVLinkMicRTCEventCallback.d.ets +6 -6
- package/src/main/ets/modules/linkmic/mediator/PLVLinkMicRTCEventCallback.js +29 -29
- package/src/main/ets/modules/linkmic/model/PLVLinkMicRepo.d.ets +5 -5
- package/src/main/ets/modules/linkmic/model/PLVLinkMicRepo.js +52 -52
- package/src/main/ets/modules/linkmic/model/datasource/PLVLinkMicNetworkDataSource.d.ets +4 -4
- package/src/main/ets/modules/linkmic/model/datasource/PLVLinkMicNetworkDataSource.js +32 -32
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRateEncodeParam.d.ets +1 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRateEncodeParam.js +6 -6
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicInteractEvent.d.ets +1 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicInteractEvent.js +2 -2
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicMode.js +3 -3
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicRTCType.js +2 -2
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicState.js +6 -6
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicVideoRenderParam.d.ets +1 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicVideoRenderParam.js +3 -3
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicViewer.d.ets +1 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicViewer.js +5 -5
- package/src/main/ets/modules/linkmic/viewmodel/PLVLinkMicViewModel.d.ets +13 -13
- package/src/main/ets/modules/linkmic/viewmodel/PLVLinkMicViewModel.js +34 -34
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicEncodeParamUseCase.d.ets +5 -5
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicEncodeParamUseCase.js +13 -13
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleQueueOrderUseCase.d.ets +4 -4
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleQueueOrderUseCase.js +25 -25
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleRTCUseCase.d.ets +4 -4
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleRTCUseCase.js +13 -13
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleStateUseCase.d.ets +10 -10
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleStateUseCase.js +26 -26
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicUpdateChannelViewerUseCase.d.ets +5 -5
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicUpdateChannelViewerUseCase.js +127 -127
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicViewLogUseCase.d.ets +1 -1
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicViewLogUseCase.js +27 -27
- package/src/main/ets/modules/linkmic/viewmodel/usecase/PLVLinkMicUseCases.d.ets +1 -1
- package/src/main/ets/modules/linkmic/viewmodel/usecase/PLVLinkMicUseCases.js +7 -7
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestEncodeParamUseCase.d.ets +5 -5
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestEncodeParamUseCase.js +79 -79
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleRTCUseCase.d.ets +4 -4
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleRTCUseCase.js +26 -26
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleStateUseCase.d.ets +10 -10
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleStateUseCase.js +135 -135
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherEncodeParamUseCase.d.ets +5 -5
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherEncodeParamUseCase.js +79 -79
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleRTCUseCase.d.ets +4 -4
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleRTCUseCase.js +22 -22
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleStateUseCase.d.ets +10 -10
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleStateUseCase.js +106 -106
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerEncodeParamUseCase.d.ets +5 -5
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerEncodeParamUseCase.js +12 -12
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleRTCUseCase.d.ets +4 -4
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleRTCUseCase.js +31 -31
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleStateUseCase.d.ets +10 -10
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleStateUseCase.js +102 -102
- package/src/main/ets/modules/log/elog/PLVELogSender.d.ets +4 -4
- package/src/main/ets/modules/log/elog/PLVELogSender.js +11 -11
- package/src/main/ets/modules/log/elog/model/PLVELogDataBean.d.ets +1 -1
- package/src/main/ets/modules/log/elog/model/PLVELogDataBean.js +9 -9
- package/src/main/ets/modules/log/elog/model/PLVELogModuleConstants.js +8 -8
- package/src/main/ets/modules/login/PLVSceneLoginManager.d.ets +2 -2
- package/src/main/ets/modules/login/PLVSceneLoginManager.js +71 -71
- package/src/main/ets/modules/login/model/PLVChatDomainVO.d.ets +2 -2
- package/src/main/ets/modules/login/model/PLVChatDomainVO.js +4 -4
- package/src/main/ets/modules/login/model/PLVLiveChannelType.js +9 -9
- package/src/main/ets/modules/login/model/PLVLiveDetailVO.d.ets +1 -1
- package/src/main/ets/modules/login/model/PLVLiveDetailVO.js +2 -2
- package/src/main/ets/modules/login/model/PLVLiveStatus.js +9 -9
- package/src/main/ets/modules/login/model/PLVLiveStatusVO.js +6 -6
- package/src/main/ets/modules/login/model/PLVLoginLiveResult.d.ets +1 -1
- package/src/main/ets/modules/login/model/PLVLoginLiveResult.js +4 -4
- package/src/main/ets/modules/login/model/PLVLoginPlaybackResult.d.ets +1 -1
- package/src/main/ets/modules/login/model/PLVLoginPlaybackResult.js +5 -5
- package/src/main/ets/modules/login/model/PLVLoginType.d.ets +2 -2
- package/src/main/ets/modules/login/model/PLVLoginType.js +16 -16
- package/src/main/ets/modules/member/PLVMemberManager.d.ets +3 -3
- package/src/main/ets/modules/member/PLVMemberManager.js +10 -10
- package/src/main/ets/modules/member/mediator/PLVMemberMediator.d.ets +2 -2
- package/src/main/ets/modules/member/mediator/PLVMemberMediator.js +6 -6
- package/src/main/ets/modules/member/model/PLVMemberRepo.d.ets +1 -1
- package/src/main/ets/modules/member/model/PLVMemberRepo.js +6 -6
- package/src/main/ets/modules/member/model/datasource/PLVMemberNetworkDataSource.d.ets +2 -2
- package/src/main/ets/modules/member/model/datasource/PLVMemberNetworkDataSource.js +7 -7
- package/src/main/ets/modules/member/model/vo/PLVMemberChannelViewer.d.ets +1 -1
- package/src/main/ets/modules/member/model/vo/PLVMemberChannelViewer.js +3 -3
- package/src/main/ets/modules/member/viewmodel/PLVMemberViewModel.d.ets +3 -3
- package/src/main/ets/modules/member/viewmodel/PLVMemberViewModel.js +15 -15
- package/src/main/ets/modules/member/viewmodel/usecase/MemberHandleStateUseCase.d.ets +6 -6
- package/src/main/ets/modules/member/viewmodel/usecase/MemberHandleStateUseCase.js +16 -16
- package/src/main/ets/modules/member/viewmodel/usecase/MemberUpdateViewerUseCase.d.ets +8 -8
- package/src/main/ets/modules/member/viewmodel/usecase/MemberUpdateViewerUseCase.js +19 -19
- package/src/main/ets/modules/member/viewmodel/usecase/PLVMemberUseCases.d.ets +1 -1
- package/src/main/ets/modules/member/viewmodel/usecase/PLVMemberUseCases.js +3 -3
- 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/MemberGuestHandleStateUseCase.js +60 -60
- package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestUpdateViewerUseCase.d.ets +8 -8
- package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestUpdateViewerUseCase.js +202 -202
- 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/MemberTeacherHandleStateUseCase.js +128 -128
- package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherUpdateViewerUseCase.d.ets +8 -8
- package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherUpdateViewerUseCase.js +202 -202
- package/src/main/ets/modules/net/PLVApiChatPlvNetApi.d.ets +9 -9
- package/src/main/ets/modules/net/PLVApiChatPlvNetApi.js +30 -30
- package/src/main/ets/modules/net/PLVApiPlvNetApi.d.ets +29 -29
- package/src/main/ets/modules/net/PLVApiPlvNetApi.js +103 -103
- package/src/main/ets/modules/net/PLVELogPlvNetApi.d.ets +2 -2
- package/src/main/ets/modules/net/PLVELogPlvNetApi.js +4 -4
- package/src/main/ets/modules/net/PLVLiveImagesVideoNetApi.d.ets +3 -3
- package/src/main/ets/modules/net/PLVLiveImagesVideoNetApi.js +7 -7
- package/src/main/ets/modules/net/PLVNGBPushApi.d.ets +2 -2
- package/src/main/ets/modules/net/PLVNGBPushApi.js +4 -4
- package/src/main/ets/modules/net/PLVRtasVideoNetApi.d.ets +2 -2
- package/src/main/ets/modules/net/PLVRtasVideoNetApi.js +4 -4
- package/src/main/ets/modules/net/vo/PLVNetworkQuality.js +8 -8
- package/src/main/ets/modules/player/PLVPlayerManager.d.ets +2 -2
- package/src/main/ets/modules/player/PLVPlayerManager.js +6 -6
- package/src/main/ets/modules/player/PLVPlayerMediator.d.ets +1 -1
- package/src/main/ets/modules/player/PLVPlayerMediator.js +8 -8
- package/src/main/ets/modules/player/playback/PLVPlaybackListType.js +4 -4
- package/src/main/ets/modules/player/playback/PLVPreviousManager.d.ets +4 -4
- package/src/main/ets/modules/player/playback/PLVPreviousManager.js +48 -48
- package/src/main/ets/modules/ppt/PLVPPTWebController.d.ets +5 -5
- package/src/main/ets/modules/ppt/PLVPPTWebController.js +42 -42
- package/src/main/ets/modules/product/PLVProductManager.d.ets +4 -4
- package/src/main/ets/modules/product/PLVProductManager.js +48 -48
- package/src/main/ets/modules/product/components/PLVProductWeb.js +5 -5
- package/src/main/ets/modules/product/model/PLVProductContentBean.js +7 -7
- package/src/main/ets/modules/product/model/PLVProductControlEvent.js +4 -4
- package/src/main/ets/modules/product/model/PLVProductDataBean.d.ets +1 -1
- package/src/main/ets/modules/product/model/PLVProductDataBean.js +13 -13
- package/src/main/ets/modules/redpack/PLVRedpackManager.d.ets +9 -9
- package/src/main/ets/modules/redpack/PLVRedpackManager.js +61 -61
- package/src/main/ets/modules/redpack/database/PLVRedpackCacheVO.d.ets +1 -1
- package/src/main/ets/modules/redpack/database/PLVRedpackCacheVO.js +10 -10
- package/src/main/ets/modules/redpack/database/PLVRedpackLocalDataSource.d.ets +3 -3
- package/src/main/ets/modules/redpack/database/PLVRedpackLocalDataSource.js +18 -18
- package/src/main/ets/modules/redpack/database/PLVRedpackOpenHelper.d.ets +3 -3
- package/src/main/ets/modules/redpack/database/PLVRedpackOpenHelper.js +4 -4
- package/src/main/ets/modules/reward/PLVRewardManager.d.ets +2 -2
- package/src/main/ets/modules/reward/PLVRewardManager.js +18 -18
- package/src/main/ets/modules/reward/model/PLVRewardSettingVO.js +8 -8
- package/src/main/ets/modules/socket/PLVSocketManager.d.ets +8 -8
- package/src/main/ets/modules/socket/PLVSocketManager.js +70 -70
- package/src/main/ets/modules/socket/PLVSocketMediator.d.ets +7 -7
- package/src/main/ets/modules/socket/PLVSocketMediator.js +14 -14
- package/src/main/ets/modules/socket/model/PLVSocketUserBean.d.ets +3 -3
- package/src/main/ets/modules/socket/model/PLVSocketUserBean.js +12 -12
- package/src/main/ets/modules/socket/model/PLVUserType.js +15 -15
- package/src/main/ets/modules/socket/model/interact/PLVCallAppEvent.js +5 -5
- package/src/main/ets/modules/socket/model/redpack/RedPaperReceiveType.d.ets +3 -3
- package/src/main/ets/modules/socket/model/redpack/RedPaperReceiveType.js +13 -13
- package/src/main/ets/modules/streamer/PLVStreamerManager.d.ets +5 -5
- package/src/main/ets/modules/streamer/PLVStreamerManager.js +18 -18
- package/src/main/ets/modules/streamer/mediator/PLVStreamerMediator.d.ets +1 -1
- package/src/main/ets/modules/streamer/mediator/PLVStreamerMediator.js +2 -2
- package/src/main/ets/modules/streamer/model/PLVStreamerRepo.d.ets +3 -3
- package/src/main/ets/modules/streamer/model/PLVStreamerRepo.js +30 -30
- package/src/main/ets/modules/streamer/model/datasource/PLVStreamerLocalDataSource.d.ets +2 -2
- package/src/main/ets/modules/streamer/model/datasource/PLVStreamerLocalDataSource.js +8 -8
- package/src/main/ets/modules/streamer/model/datasource/PLVStreamerNetworkDataSource.d.ets +7 -7
- package/src/main/ets/modules/streamer/model/datasource/PLVStreamerNetworkDataSource.js +32 -32
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerMixActionVO.js +15 -15
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerMixLayoutType.js +4 -4
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerState.js +4 -4
- package/src/main/ets/modules/streamer/viewmodel/PLVStreamerViewModel.d.ets +5 -5
- package/src/main/ets/modules/streamer/viewmodel/PLVStreamerViewModel.js +14 -14
- package/src/main/ets/modules/streamer/viewmodel/usecase/PLVStreamerUseCases.d.ets +1 -1
- package/src/main/ets/modules/streamer/viewmodel/usecase/PLVStreamerUseCases.js +3 -3
- package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerHandleStateUseCase.d.ets +1 -1
- package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerHandleStateUseCase.js +6 -6
- package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerMixStreamUseCase.d.ets +2 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerMixStreamUseCase.js +7 -7
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestHandleStateUseCase.d.ets +1 -1
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestHandleStateUseCase.js +27 -27
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestMixStreamUseCase.d.ets +2 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestMixStreamUseCase.js +3 -3
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherHandleStateUseCase.d.ets +1 -1
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherHandleStateUseCase.js +14 -14
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherMixStreamUseCase.d.ets +2 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherMixStreamUseCase.js +41 -41
- package/src/main/ets/modules/web/PLVSocketWebController.d.ets +2 -2
- package/src/main/ets/modules/web/PLVSocketWebController.js +19 -19
- package/src/main/ets/modules/web/PLVWebControllerManager.d.ets +2 -2
- package/src/main/ets/modules/web/PLVWebControllerManager.js +6 -6
- package/src/main/ets/modules/web/PLVWebParams.d.ets +1 -1
- package/src/main/ets/modules/web/PLVWebParams.js +20 -20
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { extendString, formatDate, isLiteralTrue, requireNotNull, runCatching } from "@polyvharmony/media-player-sdk";
|
|
2
2
|
import { apiPlvNetApi } from "../../net/PLVApiPlvNetApi";
|
|
3
3
|
export class PLVInteractInvitePoster {
|
|
4
|
-
constructor(
|
|
4
|
+
constructor(s106) {
|
|
5
5
|
this.invitePosterSetting = undefined;
|
|
6
|
-
this.channelData =
|
|
6
|
+
this.channelData = s106;
|
|
7
7
|
}
|
|
8
8
|
async getInvitePosterUrl() {
|
|
9
9
|
const setting = await this.getInvitePosterSetting();
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
10
|
+
const n106 = requireNotNull(this.channelData.loginChannelId);
|
|
11
|
+
const o106 = requireNotNull(this.channelData.viewerId);
|
|
12
|
+
const p106 = requireNotNull(this.channelData.viewerName);
|
|
13
|
+
const q106 = this.channelData.viewerAvatar;
|
|
14
14
|
let type = setting.invitePosterTheme;
|
|
15
|
-
let
|
|
15
|
+
let r106 = setting.inviteCoverImage;
|
|
16
16
|
if (type == -1 || !isLiteralTrue(setting.invitePosterEnabled)) {
|
|
17
17
|
type = 3;
|
|
18
|
-
|
|
18
|
+
r106 = "//s1.videocc.net/default-img/channel/default-splash.png";
|
|
19
19
|
}
|
|
20
20
|
return extendString("https://live.polyv.cn/invite-poster/poster.html")
|
|
21
21
|
.setUrlQueryParam_ext({
|
|
22
22
|
type: type?.toString(),
|
|
23
|
-
avatar:
|
|
24
|
-
nickname:
|
|
23
|
+
avatar: q106,
|
|
24
|
+
nickname: p106,
|
|
25
25
|
name: setting.name,
|
|
26
|
-
inviteCoverImage:
|
|
26
|
+
inviteCoverImage: r106,
|
|
27
27
|
time: Date.now().toString(),
|
|
28
28
|
publisher: setting.publisher,
|
|
29
|
-
invitePosterId:
|
|
29
|
+
invitePosterId: o106,
|
|
30
30
|
watchDomain: setting.watchDomain,
|
|
31
|
-
channelId:
|
|
31
|
+
channelId: n106,
|
|
32
32
|
watchUrl: setting.watchUrl,
|
|
33
33
|
customUserType: setting.customUserType,
|
|
34
34
|
footerText: setting.footerSetting?.footerText
|
|
@@ -42,10 +42,10 @@ export class PLVInteractInvitePoster {
|
|
|
42
42
|
if (this.invitePosterSetting !== undefined) {
|
|
43
43
|
return this.invitePosterSetting;
|
|
44
44
|
}
|
|
45
|
-
const
|
|
45
|
+
const l106 = requireNotNull(this.channelData.loginChannelId);
|
|
46
46
|
const appId = requireNotNull(this.channelData.appId);
|
|
47
|
-
const
|
|
48
|
-
const result = await runCatching(apiPlvNetApi(this.channelData).getInvitePosterSetting(
|
|
47
|
+
const m106 = requireNotNull(this.channelData.appSecret);
|
|
48
|
+
const result = await runCatching(apiPlvNetApi(this.channelData).getInvitePosterSetting(l106, appId, m106));
|
|
49
49
|
if (result.success === false) {
|
|
50
50
|
throw result.error;
|
|
51
51
|
}
|
|
@@ -5,5 +5,5 @@ export declare class PLVFunctionSwitchBean {
|
|
|
5
5
|
isShow?: boolean;
|
|
6
6
|
isSelected?: boolean;
|
|
7
7
|
icon?: string;
|
|
8
|
-
constructor(type?: string,
|
|
8
|
+
constructor(type?: string, t106?: Resource, name?: string | Resource, isShow?: boolean, icon?: string);
|
|
9
9
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export class PLVFunctionSwitchBean {
|
|
2
|
-
constructor(type,
|
|
2
|
+
constructor(type, t106, name, isShow, icon) {
|
|
3
3
|
this.type = type;
|
|
4
|
-
this.imageResource =
|
|
4
|
+
this.imageResource = t106;
|
|
5
5
|
this.isShow = isShow;
|
|
6
6
|
this.name = name;
|
|
7
7
|
this.icon = icon;
|
|
@@ -14,7 +14,7 @@ export declare class PLVPushCardManager extends PLVBaseModule {
|
|
|
14
14
|
private socketMediator;
|
|
15
15
|
private getCardPushInfoDisposable;
|
|
16
16
|
eventNotify: IPLVEventNotify<EventType>;
|
|
17
|
-
constructor(
|
|
17
|
+
constructor(t107: PLVChannelData, u107: PLVSocketMediator);
|
|
18
18
|
private init;
|
|
19
19
|
private notifyPushStart;
|
|
20
20
|
private notifyPushCancel;
|
|
@@ -23,6 +23,6 @@ export declare class PLVPushCardManager extends PLVBaseModule {
|
|
|
23
23
|
* @param cardId
|
|
24
24
|
* @returns
|
|
25
25
|
*/
|
|
26
|
-
getCardPushInfo(
|
|
26
|
+
getCardPushInfo(n107?: string): Promise<PLVCardPushVO>;
|
|
27
27
|
disposable(): void;
|
|
28
28
|
}
|
|
@@ -5,19 +5,19 @@ import { PLVSocketOnEvent, PLVSocketPushCardEvent } from '../../socket/model/PLV
|
|
|
5
5
|
import { PLVNewsPushEvent } from './model/PLVNewsPushEvent';
|
|
6
6
|
const TAG = '[PLVNewsPushStartEvent]';
|
|
7
7
|
export class PLVPushCardManager extends PLVBaseModule {
|
|
8
|
-
constructor(
|
|
9
|
-
super(
|
|
8
|
+
constructor(t107, u107) {
|
|
9
|
+
super(t107);
|
|
10
10
|
this.getCardPushInfoDisposable = new PLVDisposable();
|
|
11
11
|
this.eventNotify = new PLVEventNotify(this);
|
|
12
|
-
this.socketMediator =
|
|
12
|
+
this.socketMediator = u107;
|
|
13
13
|
this.init();
|
|
14
14
|
}
|
|
15
15
|
async init() {
|
|
16
16
|
this.socketMediator.onData(PLVSocketOnEvent.NEWS_PUSH, (data, event) => {
|
|
17
17
|
if (PLVSocketPushCardEvent.NEWS_PUSH_START === event) {
|
|
18
|
-
const
|
|
19
|
-
if (
|
|
20
|
-
this.notifyPushStart(
|
|
18
|
+
const s107 = PLVJSONUtils.json2Bean(PLVNewsPushEvent, data);
|
|
19
|
+
if (s107) {
|
|
20
|
+
this.notifyPushStart(s107);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
else if (PLVSocketPushCardEvent.NEWS_PUSH_CANCEL === event) {
|
|
@@ -25,23 +25,23 @@ export class PLVPushCardManager extends PLVBaseModule {
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
notifyPushStart(
|
|
29
|
-
this.eventNotify.emit("pushcard_data",
|
|
28
|
+
notifyPushStart(r107) {
|
|
29
|
+
this.eventNotify.emit("pushcard_data", r107);
|
|
30
30
|
}
|
|
31
31
|
notifyPushCancel() {
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
this.eventNotify.emit("pushcard_data",
|
|
32
|
+
const q107 = new PLVNewsPushEvent();
|
|
33
|
+
q107.EVENT = PLVSocketPushCardEvent.NEWS_PUSH_CANCEL;
|
|
34
|
+
this.eventNotify.emit("pushcard_data", q107);
|
|
35
35
|
}
|
|
36
|
-
getCardPushInfo(
|
|
36
|
+
getCardPushInfo(n107) {
|
|
37
37
|
this.getCardPushInfoDisposable = new PLVDisposable();
|
|
38
|
-
return PLVUtils.safePromise(async (
|
|
39
|
-
const
|
|
40
|
-
.getCardPushInfo(this.channelData.loginChannelId,
|
|
38
|
+
return PLVUtils.safePromise(async (o107, reject) => {
|
|
39
|
+
const p107 = await PLVUtils.disposablePromise(apiPlvLiveImagesApi(this.channelData)
|
|
40
|
+
.getCardPushInfo(this.channelData.loginChannelId, n107)
|
|
41
41
|
.catch((err) => {
|
|
42
42
|
return Promise.reject(err.log(TAG, 'getCardPushInfo error'));
|
|
43
43
|
}), this.getCardPushInfoDisposable);
|
|
44
|
-
p107
|
|
44
|
+
o107(p107.data.data);
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
disposable() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare class PLVCardLookTimeLocalRepository {
|
|
2
|
-
static saveCache(
|
|
3
|
-
static getCache(
|
|
4
|
-
static hasSaveCache(
|
|
2
|
+
static saveCache(x107: string, id: string, y107: number): void;
|
|
3
|
+
static getCache(w107: string, id: string): Promise<number>;
|
|
4
|
+
static hasSaveCache(v107: string, id: string): void;
|
|
5
5
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { PLVPreferencesUtils } from '@polyvharmony/live-scenes-foundation';
|
|
2
2
|
const PREFERENCE_NAME = "plv_card_look_time_local_cache";
|
|
3
3
|
export class PLVCardLookTimeLocalRepository {
|
|
4
|
-
static saveCache(
|
|
5
|
-
PLVPreferencesUtils.put(`${
|
|
4
|
+
static saveCache(x107, id, y107) {
|
|
5
|
+
PLVPreferencesUtils.put(`${x107}_${id}`, y107, PREFERENCE_NAME);
|
|
6
6
|
}
|
|
7
|
-
static getCache(
|
|
8
|
-
return PLVPreferencesUtils.getNumber(`${
|
|
7
|
+
static getCache(w107, id) {
|
|
8
|
+
return PLVPreferencesUtils.getNumber(`${w107}_${id}`, PREFERENCE_NAME);
|
|
9
9
|
}
|
|
10
|
-
static hasSaveCache(
|
|
11
|
-
PLVPreferencesUtils.has(`${
|
|
10
|
+
static hasSaveCache(v107, id) {
|
|
11
|
+
PLVPreferencesUtils.has(`${v107}_${id}`, PREFERENCE_NAME);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (z107, target, key, desc) {
|
|
2
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
-
r = Reflect.decorate(
|
|
4
|
+
r = Reflect.decorate(z107, target, key, desc);
|
|
5
5
|
else
|
|
6
|
-
for (var
|
|
7
|
-
if (d = a108
|
|
6
|
+
for (var a108 = z107.length - 1; a108 >= 0; a108--)
|
|
7
|
+
if (d = z107[a108])
|
|
8
8
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
9
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (b108, target, key, desc) {
|
|
2
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
-
r = Reflect.decorate(
|
|
4
|
+
r = Reflect.decorate(b108, target, key, desc);
|
|
5
5
|
else
|
|
6
|
-
for (var
|
|
7
|
-
if (d = c108
|
|
6
|
+
for (var c108 = b108.length - 1; c108 >= 0; c108--)
|
|
7
|
+
if (d = b108[c108])
|
|
8
8
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
9
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
10
|
};
|
|
@@ -101,7 +101,7 @@ export declare class PLVLinkMicManager extends PLVBaseModule {
|
|
|
101
101
|
* 连麦模块错误事件
|
|
102
102
|
*/
|
|
103
103
|
readonly errorEvent: MutableEvent<PLVLinkMicErrorEvent>;
|
|
104
|
-
constructor(
|
|
104
|
+
constructor(v111: DependScope, w111: PLVChannelData, x111: PLVSocketMediator, y111: PLVPlayerMediator, z111: PLVMemberMediator);
|
|
105
105
|
private init;
|
|
106
106
|
/**
|
|
107
107
|
* [观众、嘉宾]
|
|
@@ -128,7 +128,7 @@ export declare class PLVLinkMicManager extends PLVBaseModule {
|
|
|
128
128
|
*
|
|
129
129
|
* 在频道已经开启连麦的情况下,更改连麦模式将自动下麦全体成员
|
|
130
130
|
*/
|
|
131
|
-
setLinkMicMode(
|
|
131
|
+
setLinkMicMode(q111: PLVLinkMicMode): Promise<boolean>;
|
|
132
132
|
/**
|
|
133
133
|
* [讲师] 打开连麦
|
|
134
134
|
*/
|
|
@@ -140,15 +140,15 @@ export declare class PLVLinkMicManager extends PLVBaseModule {
|
|
|
140
140
|
/**
|
|
141
141
|
* [讲师] 接受观众连麦申请
|
|
142
142
|
*/
|
|
143
|
-
acceptViewerLinkMicRequest(
|
|
143
|
+
acceptViewerLinkMicRequest(p111: string): void;
|
|
144
144
|
/**
|
|
145
145
|
* [讲师] 邀请观众连麦
|
|
146
146
|
*/
|
|
147
|
-
inviteViewerLinkMic(
|
|
147
|
+
inviteViewerLinkMic(n111: string, o111?: boolean): void;
|
|
148
148
|
/**
|
|
149
149
|
* [讲师] 挂断观众的连麦
|
|
150
150
|
*/
|
|
151
|
-
hangupViewerLinkMic(
|
|
151
|
+
hangupViewerLinkMic(m111: string): void;
|
|
152
152
|
/**
|
|
153
153
|
* [讲师] 全体下麦
|
|
154
154
|
*/
|
|
@@ -156,23 +156,23 @@ export declare class PLVLinkMicManager extends PLVBaseModule {
|
|
|
156
156
|
/**
|
|
157
157
|
* [讲师] 设置观众开关摄像头
|
|
158
158
|
*/
|
|
159
|
-
setViewerEnableCamera(
|
|
159
|
+
setViewerEnableCamera(l111: string, enable: boolean): void;
|
|
160
160
|
/**
|
|
161
161
|
* [讲师] 设置观众开关麦克风
|
|
162
162
|
*/
|
|
163
|
-
setViewerEnableMicrophone(
|
|
163
|
+
setViewerEnableMicrophone(k111: string, enable: boolean): void;
|
|
164
164
|
/**
|
|
165
165
|
* [讲师] 授予主讲权限
|
|
166
166
|
*
|
|
167
167
|
* [嘉宾] 移交主讲权限
|
|
168
168
|
*/
|
|
169
|
-
grantSpeaker(
|
|
169
|
+
grantSpeaker(j111: string): void;
|
|
170
170
|
/**
|
|
171
171
|
* [讲师] 撤销主讲权限
|
|
172
172
|
*
|
|
173
173
|
* [嘉宾] 主动移除自己的主讲权限
|
|
174
174
|
*/
|
|
175
|
-
revokeSpeaker(
|
|
175
|
+
revokeSpeaker(i111: string): void;
|
|
176
176
|
/**
|
|
177
177
|
* 切换摄像头开关
|
|
178
178
|
*/
|
|
@@ -194,18 +194,18 @@ export declare class PLVLinkMicManager extends PLVBaseModule {
|
|
|
194
194
|
* 设置自己的画面镜像
|
|
195
195
|
* @param isMirror 是否镜像
|
|
196
196
|
*/
|
|
197
|
-
setLocalMirror(
|
|
197
|
+
setLocalMirror(h111: boolean): void;
|
|
198
198
|
/**
|
|
199
199
|
* 设置视频渲染
|
|
200
200
|
* @param renderParam 渲染参数
|
|
201
201
|
*/
|
|
202
|
-
setupVideoRender(
|
|
202
|
+
setupVideoRender(g111: PLVLinkMicVideoRenderParam): void;
|
|
203
203
|
/**
|
|
204
204
|
* 移除视频渲染
|
|
205
205
|
* @param renderParam 其中 xcomponentId 为 null 时移除视频渲染,
|
|
206
206
|
* 不为 null 时只有当前 linkmicId 绑定的 xcomponentId 与传入参数一致才移除视频渲染
|
|
207
207
|
*/
|
|
208
|
-
removeVideoRender(
|
|
208
|
+
removeVideoRender(f111: PLVLinkMicVideoRenderParam): void;
|
|
209
209
|
/**
|
|
210
210
|
* 销毁
|
|
211
211
|
*/
|
|
@@ -4,9 +4,9 @@ import { PLVLinkMicMediator } from './mediator/PLVLinkMicMediator';
|
|
|
4
4
|
import { PLVLinkMicErrorEvent } from './model/vo/PLVLinkMicErrorEvent';
|
|
5
5
|
import { PLVLinkMicViewModel } from './viewmodel/PLVLinkMicViewModel';
|
|
6
6
|
export class PLVLinkMicManager extends PLVBaseModule {
|
|
7
|
-
constructor(w111, x111, y111, z111
|
|
8
|
-
super(
|
|
9
|
-
this.dependScope =
|
|
7
|
+
constructor(v111, w111, x111, y111, z111) {
|
|
8
|
+
super(w111);
|
|
9
|
+
this.dependScope = v111;
|
|
10
10
|
this.mediator = this.dependScope.get(PLVLinkMicMediator);
|
|
11
11
|
this.viewModel = this.dependScope.get(PLVLinkMicViewModel);
|
|
12
12
|
this.initPromise = this.mediator.initFinish.promise;
|
|
@@ -30,17 +30,17 @@ export class PLVLinkMicManager extends PLVBaseModule {
|
|
|
30
30
|
this.viewerLeaveLinkMicEvent = this.mediator.viewerLeaveLinkMicEvent;
|
|
31
31
|
this.viewerAnswerInvitationEvent = this.mediator.viewerAnswerInvitationEvent;
|
|
32
32
|
this.errorEvent = this.mediator.errorEvent;
|
|
33
|
-
this.init(y111, z111
|
|
33
|
+
this.init(x111, y111, z111);
|
|
34
34
|
}
|
|
35
|
-
async init(s111, t111
|
|
35
|
+
async init(r111, s111, t111) {
|
|
36
36
|
await this.channelData.initializedPromise.get();
|
|
37
37
|
this.mediator.channelData = this.channelData;
|
|
38
|
-
this.mediator.socketMediator =
|
|
39
|
-
this.mediator.playerMediator =
|
|
40
|
-
this.mediator.memberMediator =
|
|
41
|
-
const
|
|
42
|
-
if (
|
|
43
|
-
this.mediator.reportError(PLVLinkMicErrorEvent.LINKMIC_INIT_FAILED,
|
|
38
|
+
this.mediator.socketMediator = r111;
|
|
39
|
+
this.mediator.playerMediator = s111;
|
|
40
|
+
this.mediator.memberMediator = t111;
|
|
41
|
+
const u111 = await runCatching(this.viewModel.init());
|
|
42
|
+
if (u111.success === false) {
|
|
43
|
+
this.mediator.reportError(PLVLinkMicErrorEvent.LINKMIC_INIT_FAILED, u111.error.message);
|
|
44
44
|
}
|
|
45
45
|
this.mediator.initFinish.resolve();
|
|
46
46
|
}
|
|
@@ -56,8 +56,8 @@ export class PLVLinkMicManager extends PLVBaseModule {
|
|
|
56
56
|
leaveLinkMic() {
|
|
57
57
|
this.viewModel.leaveLinkMic();
|
|
58
58
|
}
|
|
59
|
-
async setLinkMicMode(
|
|
60
|
-
return this.viewModel.setLinkMicMode(
|
|
59
|
+
async setLinkMicMode(q111) {
|
|
60
|
+
return this.viewModel.setLinkMicMode(q111);
|
|
61
61
|
}
|
|
62
62
|
async openLinkMic() {
|
|
63
63
|
return this.viewModel.openLinkMic();
|
|
@@ -65,29 +65,29 @@ export class PLVLinkMicManager extends PLVBaseModule {
|
|
|
65
65
|
async closeLinkMic() {
|
|
66
66
|
return this.viewModel.closeLinkMic();
|
|
67
67
|
}
|
|
68
|
-
acceptViewerLinkMicRequest(
|
|
69
|
-
this.viewModel.acceptViewerLinkMicRequest(
|
|
68
|
+
acceptViewerLinkMicRequest(p111) {
|
|
69
|
+
this.viewModel.acceptViewerLinkMicRequest(p111);
|
|
70
70
|
}
|
|
71
|
-
inviteViewerLinkMic(
|
|
72
|
-
this.viewModel.inviteViewerLinkMic(
|
|
71
|
+
inviteViewerLinkMic(n111, o111 = true) {
|
|
72
|
+
this.viewModel.inviteViewerLinkMic(n111, o111);
|
|
73
73
|
}
|
|
74
|
-
hangupViewerLinkMic(
|
|
75
|
-
this.viewModel.hangupViewerLinkMic(
|
|
74
|
+
hangupViewerLinkMic(m111) {
|
|
75
|
+
this.viewModel.hangupViewerLinkMic(m111);
|
|
76
76
|
}
|
|
77
77
|
hangupAllViewersLinkMic() {
|
|
78
78
|
this.viewModel.hangupAllViewersLinkMic();
|
|
79
79
|
}
|
|
80
|
-
setViewerEnableCamera(
|
|
81
|
-
this.viewModel.setViewerEnableCamera(
|
|
80
|
+
setViewerEnableCamera(l111, enable) {
|
|
81
|
+
this.viewModel.setViewerEnableCamera(l111, enable);
|
|
82
82
|
}
|
|
83
|
-
setViewerEnableMicrophone(
|
|
84
|
-
this.viewModel.setViewerEnableMicrophone(
|
|
83
|
+
setViewerEnableMicrophone(k111, enable) {
|
|
84
|
+
this.viewModel.setViewerEnableMicrophone(k111, enable);
|
|
85
85
|
}
|
|
86
|
-
grantSpeaker(
|
|
87
|
-
this.viewModel.grantSpeaker(
|
|
86
|
+
grantSpeaker(j111) {
|
|
87
|
+
this.viewModel.grantSpeaker(j111);
|
|
88
88
|
}
|
|
89
|
-
revokeSpeaker(
|
|
90
|
-
this.viewModel.revokeSpeaker(
|
|
89
|
+
revokeSpeaker(i111) {
|
|
90
|
+
this.viewModel.revokeSpeaker(i111);
|
|
91
91
|
}
|
|
92
92
|
enableCamera(enable) {
|
|
93
93
|
this.viewModel.enableCamera(enable);
|
|
@@ -101,14 +101,14 @@ export class PLVLinkMicManager extends PLVBaseModule {
|
|
|
101
101
|
switchCamera() {
|
|
102
102
|
this.viewModel.switchCamera();
|
|
103
103
|
}
|
|
104
|
-
setLocalMirror(
|
|
105
|
-
this.viewModel.setLocalMirror(
|
|
104
|
+
setLocalMirror(h111) {
|
|
105
|
+
this.viewModel.setLocalMirror(h111);
|
|
106
106
|
}
|
|
107
|
-
setupVideoRender(
|
|
108
|
-
this.viewModel.setupVideoRender(
|
|
107
|
+
setupVideoRender(g111) {
|
|
108
|
+
this.viewModel.setupVideoRender(g111);
|
|
109
109
|
}
|
|
110
|
-
removeVideoRender(
|
|
111
|
-
this.viewModel.removeVideoRender(
|
|
110
|
+
removeVideoRender(f111) {
|
|
111
|
+
this.viewModel.removeVideoRender(f111);
|
|
112
112
|
}
|
|
113
113
|
destroy() {
|
|
114
114
|
this.leaveLinkMic();
|
|
@@ -67,7 +67,7 @@ export declare class PLVLinkMicMediator implements LifecycleAwareDependComponent
|
|
|
67
67
|
setPushDowngradePreference: ((preference: PLVPushDowngradePreference) => void) | undefined;
|
|
68
68
|
reportError(code: number, message: string): void;
|
|
69
69
|
isMySocketLinkMicId(userId: string | undefined | null): boolean;
|
|
70
|
-
findViewerByLinkMicId(
|
|
71
|
-
findViewerByViewerId(
|
|
70
|
+
findViewerByLinkMicId(f108?: string | null): PLVLinkMicViewer | undefined;
|
|
71
|
+
findViewerByViewerId(d108?: string | null): PLVLinkMicViewer | undefined;
|
|
72
72
|
onDestroy(): void;
|
|
73
73
|
}
|
|
@@ -60,26 +60,26 @@ export class PLVLinkMicMediator {
|
|
|
60
60
|
PLVLogger.error(TAG, `Linkmic module error, code:${code}, message:${message}`, true);
|
|
61
61
|
}
|
|
62
62
|
isMySocketLinkMicId(userId) {
|
|
63
|
-
const
|
|
64
|
-
const
|
|
63
|
+
const h108 = this.linkmicId;
|
|
64
|
+
const i108 = this.channelData?.viewerId;
|
|
65
65
|
if (this.linkmicIdDifferFromViewerId) {
|
|
66
|
-
return
|
|
66
|
+
return i108 === userId || h108 === userId;
|
|
67
67
|
}
|
|
68
68
|
else {
|
|
69
|
-
return
|
|
69
|
+
return i108 === userId;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
findViewerByLinkMicId(
|
|
73
|
-
if (isNullOrUndefined(
|
|
72
|
+
findViewerByLinkMicId(f108) {
|
|
73
|
+
if (isNullOrUndefined(f108)) {
|
|
74
74
|
return undefined;
|
|
75
75
|
}
|
|
76
|
-
return this.channelLinkMicViewers.value?.find(
|
|
76
|
+
return this.channelLinkMicViewers.value?.find(g108 => g108.linkmicId === f108);
|
|
77
77
|
}
|
|
78
|
-
findViewerByViewerId(
|
|
79
|
-
if (isNullOrUndefined(
|
|
78
|
+
findViewerByViewerId(d108) {
|
|
79
|
+
if (isNullOrUndefined(d108)) {
|
|
80
80
|
return undefined;
|
|
81
81
|
}
|
|
82
|
-
return this.channelLinkMicViewers.value?.find(
|
|
82
|
+
return this.channelLinkMicViewers.value?.find(e108 => e108.viewerId === d108);
|
|
83
83
|
}
|
|
84
84
|
onDestroy() {
|
|
85
85
|
MutableSource.disposeAll(this);
|
|
@@ -2,12 +2,12 @@ import { PLVRTCConfig, PLVRTCEngineEventCallback, PLVRTCMediaState, PLVRTCNetwor
|
|
|
2
2
|
import { PLVLinkMicMediator } from './PLVLinkMicMediator';
|
|
3
3
|
export declare class PLVLinkMicRTCEventCallback extends PLVRTCEngineEventCallback {
|
|
4
4
|
private readonly mediator;
|
|
5
|
-
constructor(
|
|
6
|
-
onJoinChannelSuccess(
|
|
7
|
-
onRemoteUserMediaStateChanged(
|
|
8
|
-
onTokenExpired(
|
|
9
|
-
onNetworkQuality(
|
|
10
|
-
onNetworkStatistics(
|
|
5
|
+
constructor(x108: PLVLinkMicMediator);
|
|
6
|
+
onJoinChannelSuccess(v108: PLVRTCConfig, w108: string): void;
|
|
7
|
+
onRemoteUserMediaStateChanged(s108: string, t108: PLVRTCMediaState): void;
|
|
8
|
+
onTokenExpired(q108: string | undefined, r108: PLVRTCConfig): void;
|
|
9
|
+
onNetworkQuality(m108: string, n108: PLVRTCNetworkQuality, o108: PLVRTCNetworkQuality): void;
|
|
10
|
+
onNetworkStatistics(k108: PLVRTCNetworkStatistics): void;
|
|
11
11
|
onKickOut(code: number): void;
|
|
12
12
|
onError(code: number, message: string): void;
|
|
13
13
|
private convertNetworkQuality;
|
|
@@ -4,47 +4,47 @@ import { PLVNetworkStatistics } from '../../net/vo/PLVNetworkStatistics';
|
|
|
4
4
|
import { PLVLinkMicErrorEvent } from '../model/vo/PLVLinkMicErrorEvent';
|
|
5
5
|
import { PLVLinkMicRTCJoinSuccess, PLVLinkMicRTCKickOut, PLVLinkMicRTCTokenExpired } from '../model/vo/PLVLinkMicRTCEvent';
|
|
6
6
|
export class PLVLinkMicRTCEventCallback extends PLVRTCEngineEventCallback {
|
|
7
|
-
constructor(
|
|
7
|
+
constructor(x108) {
|
|
8
8
|
super();
|
|
9
|
-
this.mediator =
|
|
9
|
+
this.mediator = x108;
|
|
10
10
|
}
|
|
11
|
-
onJoinChannelSuccess(
|
|
11
|
+
onJoinChannelSuccess(v108, w108) {
|
|
12
12
|
const event = new PLVLinkMicRTCJoinSuccess();
|
|
13
|
-
event.rtcConfig =
|
|
14
|
-
event.channelId =
|
|
13
|
+
event.rtcConfig = v108;
|
|
14
|
+
event.channelId = w108;
|
|
15
15
|
this.mediator.rtcEvent.value = event;
|
|
16
16
|
}
|
|
17
|
-
onRemoteUserMediaStateChanged(
|
|
18
|
-
const
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
onRemoteUserMediaStateChanged(s108, t108) {
|
|
18
|
+
const u108 = this.mediator.findViewerByLinkMicId(t108.linkmicId);
|
|
19
|
+
if (u108) {
|
|
20
|
+
u108.isVideoEnable.setValue(t108.videoEnable);
|
|
21
|
+
u108.isAudioEnable.setValue(t108.audioEnable);
|
|
22
|
+
u108.audioVolume.setValue(t108.audioVolume);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
onTokenExpired(
|
|
25
|
+
onTokenExpired(q108, r108) {
|
|
26
26
|
const event = new PLVLinkMicRTCTokenExpired();
|
|
27
|
-
event.rtcConfig =
|
|
28
|
-
event.channelId =
|
|
27
|
+
event.rtcConfig = r108;
|
|
28
|
+
event.channelId = q108;
|
|
29
29
|
this.mediator.rtcEvent.value = event;
|
|
30
30
|
}
|
|
31
|
-
onNetworkQuality(n108, o108
|
|
32
|
-
if (
|
|
31
|
+
onNetworkQuality(m108, n108, o108) {
|
|
32
|
+
if (m108 !== this.mediator.linkmicId) {
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
|
-
let
|
|
36
|
-
if (
|
|
37
|
-
|
|
35
|
+
let p108 = this.convertNetworkQuality(n108);
|
|
36
|
+
if (p108 === PLVNetworkQuality.UNKNOWN) {
|
|
37
|
+
p108 = this.convertNetworkQuality(o108);
|
|
38
38
|
}
|
|
39
|
-
this.mediator.linkmicNetworkQuality.setValue(
|
|
39
|
+
this.mediator.linkmicNetworkQuality.setValue(p108);
|
|
40
40
|
}
|
|
41
|
-
onNetworkStatistics(
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
this.mediator.linkmicNetworkStatistics.setValue(
|
|
41
|
+
onNetworkStatistics(k108) {
|
|
42
|
+
const l108 = new PLVNetworkStatistics();
|
|
43
|
+
l108.upLossRate = k108.upLossRate;
|
|
44
|
+
l108.downLossRate = k108.downLossRate;
|
|
45
|
+
l108.upDelayMs = k108.upDelayMs;
|
|
46
|
+
l108.downDelayMs = k108.downDelayMs;
|
|
47
|
+
this.mediator.linkmicNetworkStatistics.setValue(l108);
|
|
48
48
|
}
|
|
49
49
|
onKickOut(code) {
|
|
50
50
|
const event = new PLVLinkMicRTCKickOut();
|
|
@@ -54,8 +54,8 @@ export class PLVLinkMicRTCEventCallback extends PLVRTCEngineEventCallback {
|
|
|
54
54
|
onError(code, message) {
|
|
55
55
|
this.mediator.reportError(PLVLinkMicErrorEvent.RTC_ENGINE_ERROR, `RTC engine error code:${code}, message:${message}`);
|
|
56
56
|
}
|
|
57
|
-
convertNetworkQuality(
|
|
58
|
-
switch (
|
|
57
|
+
convertNetworkQuality(j108) {
|
|
58
|
+
switch (j108) {
|
|
59
59
|
case PLVRTCNetworkQuality.EXCELLENT: return PLVNetworkQuality.EXCELLENT;
|
|
60
60
|
case PLVRTCNetworkQuality.GOOD: return PLVNetworkQuality.GOOD;
|
|
61
61
|
case PLVRTCNetworkQuality.POOR: return PLVNetworkQuality.POOR;
|
|
@@ -9,7 +9,7 @@ export declare class PLVLinkMicRepo implements LifecycleAwareDependComponent {
|
|
|
9
9
|
private readonly networkDataSource;
|
|
10
10
|
private readonly rtcConfig;
|
|
11
11
|
private rtcEngine;
|
|
12
|
-
constructor(
|
|
12
|
+
constructor(o110: PLVLinkMicMediator, p110: PLVLinkMicNetworkDataSource);
|
|
13
13
|
init(): Promise<void>;
|
|
14
14
|
private initLinkMicId;
|
|
15
15
|
private initRtcEngine;
|
|
@@ -17,7 +17,7 @@ export declare class PLVLinkMicRepo implements LifecycleAwareDependComponent {
|
|
|
17
17
|
private initLinkMicStrategy;
|
|
18
18
|
getChannelLinkMicStatus(): Promise<PLVLinkMicChannelStatus>;
|
|
19
19
|
sendLinkMicIdRelation(): Promise<void>;
|
|
20
|
-
sendLiveViewLog(
|
|
20
|
+
sendLiveViewLog(u109: PLVLiveViewLogVO): Promise<void>;
|
|
21
21
|
joinRTCChannel(): void;
|
|
22
22
|
switchRTCRole(role: PLVRTCClientRole): void;
|
|
23
23
|
enableLocalVideo(enable: boolean): void;
|
|
@@ -25,9 +25,9 @@ export declare class PLVLinkMicRepo implements LifecycleAwareDependComponent {
|
|
|
25
25
|
switchCamera(): void;
|
|
26
26
|
setLocalVideoEncodeParam(param: PLVRTCVideoEncodeParam): void;
|
|
27
27
|
setVideoRender(param: PLVRTCVideoRenderParam): void;
|
|
28
|
-
getVideoRenderParam(
|
|
29
|
-
createRenderViewParam(
|
|
30
|
-
getRemoteViewerMediaState(
|
|
28
|
+
getVideoRenderParam(r109: string): PLVRTCVideoRenderParam | null;
|
|
29
|
+
createRenderViewParam(q109: string): PLVRTCRenderViewParam | undefined;
|
|
30
|
+
getRemoteViewerMediaState(p109: string): PLVRTCMediaState | undefined;
|
|
31
31
|
renewToken(): Promise<void>;
|
|
32
32
|
leaveRTCChannel(): void;
|
|
33
33
|
onDestroy(): Promise<void>;
|