@polyvharmony/live-scenes-sdk 1.2.0 → 1.3.0-rc.1
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 +4 -0
- package/Index.d.ets +15 -4
- package/Index.js +13 -3
- package/ResourceTable.txt +72 -51
- package/oh-package.json5 +1 -1
- package/package.json +1 -1
- package/src/main/ets/common/PLVBaseModule.d.ets +1 -1
- package/src/main/ets/common/PLVBaseModule.js +2 -2
- package/src/main/ets/common/PLVChannelData.d.ets +48 -7
- package/src/main/ets/common/PLVChannelData.js +62 -28
- package/src/main/ets/common/PLVLiveSceneSDK.d.ets +9 -4
- package/src/main/ets/common/PLVLiveSceneSDK.js +14 -8
- package/src/main/ets/modules/business/PLVBusinessApiManager.js +8 -8
- package/src/main/ets/modules/chatroom/PLVChatroomManager.d.ets +20 -13
- package/src/main/ets/modules/chatroom/PLVChatroomManager.js +204 -232
- package/src/main/ets/modules/chatroom/handler/PLVChatroomBanIpMessageHandler.js +4 -4
- package/src/main/ets/modules/chatroom/handler/PLVChatroomBaseHandler.d.ets +1 -1
- package/src/main/ets/modules/chatroom/handler/PLVChatroomBaseHandler.js +2 -2
- package/src/main/ets/modules/chatroom/handler/PLVChatroomCancelTopHandler.js +2 -2
- package/src/main/ets/modules/chatroom/handler/PLVChatroomCloseRoomMessageHandler.js +3 -3
- package/src/main/ets/modules/chatroom/handler/PLVChatroomDataHandlerFactory.d.ets +1 -1
- package/src/main/ets/modules/chatroom/handler/PLVChatroomDataHandlerFactory.js +11 -11
- package/src/main/ets/modules/chatroom/handler/PLVChatroomFocusModeHandler.js +3 -3
- package/src/main/ets/modules/chatroom/handler/PLVChatroomLikesMessageHandler.js +4 -4
- package/src/main/ets/modules/chatroom/handler/PLVChatroomLoginMessageHandler.js +13 -13
- package/src/main/ets/modules/chatroom/handler/PLVChatroomLogoutMessageHandler.js +4 -4
- package/src/main/ets/modules/chatroom/handler/PLVChatroomOnSliceIdMessageHandler.js +6 -6
- package/src/main/ets/modules/chatroom/handler/PLVChatroomToTopHandler.js +3 -3
- package/src/main/ets/modules/chatroom/handler/PLVChatroomUnShieldMessageHandler.js +4 -4
- package/src/main/ets/modules/chatroom/model/IPLVIdEvent.js +4 -4
- package/src/main/ets/modules/chatroom/model/IPLVTimestampEvent.d.ets +6 -0
- package/src/main/ets/modules/chatroom/model/IPLVTimestampEvent.js +1 -0
- package/src/main/ets/modules/chatroom/model/PLVBulletinEvent.d.ets +1 -0
- package/src/main/ets/modules/chatroom/model/PLVChatImgContentBean.js +4 -4
- package/src/main/ets/modules/chatroom/model/PLVChatImgEvent.d.ets +3 -1
- package/src/main/ets/modules/chatroom/model/PLVChatImgEvent.js +15 -12
- package/src/main/ets/modules/chatroom/model/PLVChatQuoteDataBean.js +4 -4
- package/src/main/ets/modules/chatroom/model/PLVEmotionEvent.d.ets +3 -1
- package/src/main/ets/modules/chatroom/model/PLVEmotionEvent.js +16 -13
- package/src/main/ets/modules/chatroom/model/PLVEmotionImagesVO.js +4 -4
- package/src/main/ets/modules/chatroom/model/PLVHistoryChatImgEvent.d.ets +3 -1
- package/src/main/ets/modules/chatroom/model/PLVHistoryChatImgEvent.js +15 -12
- package/src/main/ets/modules/chatroom/model/PLVHistoryFileShareEvent.d.ets +3 -1
- package/src/main/ets/modules/chatroom/model/PLVHistoryFileShareEvent.js +15 -12
- package/src/main/ets/modules/chatroom/model/PLVHistorySpeakEvent.d.ets +3 -1
- package/src/main/ets/modules/chatroom/model/PLVHistorySpeakEvent.js +16 -13
- package/src/main/ets/modules/chatroom/model/PLVHistroyQuizListVO.js +3 -3
- package/src/main/ets/modules/chatroom/model/PLVImageBean.d.ets +3 -3
- package/src/main/ets/modules/chatroom/model/PLVImageBean.js +31 -31
- package/src/main/ets/modules/chatroom/model/PLVLikesEvent.js +4 -4
- package/src/main/ets/modules/chatroom/model/PLVLocalQuizEvent.d.ets +3 -1
- package/src/main/ets/modules/chatroom/model/PLVLocalQuizEvent.js +7 -4
- package/src/main/ets/modules/chatroom/model/PLVLocalSpeakEvent.d.ets +3 -1
- package/src/main/ets/modules/chatroom/model/PLVLocalSpeakEvent.js +14 -11
- package/src/main/ets/modules/chatroom/model/PLVNotSupportEvent.d.ets +6 -0
- package/src/main/ets/modules/chatroom/model/PLVNotSupportEvent.js +3 -0
- package/src/main/ets/modules/chatroom/model/PLVPPTShareFileDataBean.js +4 -4
- package/src/main/ets/modules/chatroom/model/PLVRewardEvent.d.ets +4 -1
- package/src/main/ets/modules/chatroom/model/PLVRewardEvent.js +7 -4
- package/src/main/ets/modules/chatroom/model/PLVSpeakEvent.d.ets +3 -1
- package/src/main/ets/modules/chatroom/model/PLVSpeakEvent.js +18 -15
- package/src/main/ets/modules/chatroom/model/PLVTAnswerEvent.d.ets +3 -1
- package/src/main/ets/modules/chatroom/model/PLVTAnswerEvent.js +10 -7
- package/src/main/ets/modules/chatroom/playback/PLVChatPlaybackManager.d.ets +2 -2
- package/src/main/ets/modules/chatroom/playback/PLVChatPlaybackManager.js +108 -108
- package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackDataVO.d.ets +1 -1
- package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackDataVO.js +11 -11
- package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackOpenHelper.d.ets +4 -4
- package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackOpenHelper.js +18 -18
- package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackToTopVO.js +29 -29
- package/src/main/ets/modules/i18n/PLVI18NDataMapper.d.ets +4 -2
- package/src/main/ets/modules/i18n/PLVI18NDataMapper.js +35 -8
- package/src/main/ets/modules/i18n/PLVLanguageManager.js +5 -5
- package/src/main/ets/modules/interact/PLVInteractManager.d.ets +12 -4
- package/src/main/ets/modules/interact/PLVInteractManager.js +14 -8
- package/src/main/ets/modules/interact/PLVInteractWeb.d.ets +15 -8
- package/src/main/ets/modules/interact/PLVInteractWeb.js +129 -74
- 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/model/PLVInteractBean.d.ets +2 -0
- 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 +5 -0
- package/src/main/ets/modules/interact/pushcard/repo/PLVCardLookTimeLocalRepository.js +13 -0
- package/src/main/ets/modules/interact/redpack/model/PLVHistoryRedPaperEvent.d.ets +3 -1
- package/src/main/ets/modules/interact/redpack/model/PLVHistoryRedPaperEvent.js +7 -4
- package/src/main/ets/modules/interact/redpack/model/PLVRedPaperEvent.d.ets +3 -1
- package/src/main/ets/modules/interact/redpack/model/PLVRedPaperEvent.js +7 -4
- package/src/main/ets/modules/interact/redpack/model/PLVRedPaperResultEvent.d.ets +3 -1
- package/src/main/ets/modules/interact/redpack/model/PLVRedPaperResultEvent.js +11 -1
- 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/PLVLinkMicBitRate.js +7 -22
- 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/PLVLinkMicPushResolutionRatio.js +4 -20
- 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 +128 -128
- 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 +141 -141
- 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 +111 -111
- 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 +108 -108
- 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 +3 -2
- package/src/main/ets/modules/login/model/PLVChatDomainVO.js +7 -4
- package/src/main/ets/modules/login/model/PLVLiveChannelType.js +9 -9
- package/src/main/ets/modules/login/model/PLVLiveDetailVO.d.ets +7 -1
- package/src/main/ets/modules/login/model/PLVLiveDetailVO.js +26 -10
- 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 +6 -1
- package/src/main/ets/modules/login/model/PLVLoginType.js +27 -6
- 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 +2 -2
- package/src/main/ets/modules/member/model/PLVMemberRepo.js +7 -7
- 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 +207 -207
- 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 +131 -131
- 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 +207 -207
- package/src/main/ets/modules/net/PLVApiChatPlvNetApi.d.ets +11 -8
- package/src/main/ets/modules/net/PLVApiChatPlvNetApi.js +47 -27
- package/src/main/ets/modules/net/PLVApiPlvNetApi.d.ets +30 -28
- package/src/main/ets/modules/net/PLVApiPlvNetApi.js +117 -100
- 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 +3 -1
- package/src/main/ets/modules/player/PLVPlayerManager.js +26 -20
- package/src/main/ets/modules/player/PLVPlayerMediator.d.ets +8 -1
- package/src/main/ets/modules/player/PLVPlayerMediator.js +32 -2
- package/src/main/ets/modules/player/playback/PLVChapterDataVO.d.ets +10 -0
- package/src/main/ets/modules/player/playback/PLVChapterDataVO.js +2 -0
- package/src/main/ets/modules/player/playback/PLVPlaybackListType.js +4 -4
- package/src/main/ets/modules/player/playback/PLVPreviousListVO.d.ets +48 -0
- package/src/main/ets/modules/player/playback/PLVPreviousListVO.js +21 -0
- package/src/main/ets/modules/player/playback/PLVPreviousManager.d.ets +73 -0
- package/src/main/ets/modules/player/playback/PLVPreviousManager.js +164 -0
- package/src/main/ets/modules/ppt/PLVPPTWeb.d.ets +15 -0
- package/src/main/ets/modules/ppt/PLVPPTWeb.js +97 -0
- package/src/main/ets/modules/ppt/PLVPPTWebController.d.ets +29 -0
- package/src/main/ets/modules/ppt/PLVPPTWebController.js +220 -0
- package/src/main/ets/modules/ppt/model/PLVPPTSocketEvent.d.ets +5 -0
- package/src/main/ets/modules/ppt/model/PLVPPTSocketEvent.js +7 -0
- package/src/main/ets/modules/ppt/model/PLVPPTStatus.d.ets +17 -0
- package/src/main/ets/modules/ppt/model/PLVPPTStatus.js +2 -0
- package/src/main/ets/modules/product/PLVProductManager.d.ets +5 -5
- package/src/main/ets/modules/product/PLVProductManager.js +54 -45
- package/src/main/ets/modules/product/components/PLVProductControlWeb.d.ets +5 -2
- package/src/main/ets/modules/product/components/PLVProductControlWeb.js +61 -29
- package/src/main/ets/modules/product/components/PLVProductWeb.d.ets +5 -2
- package/src/main/ets/modules/product/components/PLVProductWeb.js +64 -34
- package/src/main/ets/modules/product/model/PLVProductContentBean.d.ets +4 -0
- package/src/main/ets/modules/product/model/PLVProductContentBean.js +11 -7
- package/src/main/ets/modules/product/model/PLVProductControlEvent.js +8 -8
- 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/product/model/PLVProductEvent.d.ets +1 -0
- package/src/main/ets/modules/product/model/PLVProductEvent.js +12 -9
- 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 +13 -7
- package/src/main/ets/modules/socket/PLVSocketManager.js +73 -68
- package/src/main/ets/modules/socket/PLVSocketMediator.d.ets +7 -5
- package/src/main/ets/modules/socket/PLVSocketMediator.js +16 -10
- package/src/main/ets/modules/socket/model/PLVOnSliceIDEvent.d.ets +4 -2
- package/src/main/ets/modules/socket/model/PLVSocketEventConstants.d.ets +8 -0
- package/src/main/ets/modules/socket/model/PLVSocketEventConstants.js +10 -1
- 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 +3 -2
- package/src/main/ets/modules/web/PLVSocketWebController.js +28 -16
- package/src/main/ets/modules/web/PLVWebControllerManager.d.ets +10 -2
- package/src/main/ets/modules/web/PLVWebControllerManager.js +10 -5
- package/src/main/ets/modules/web/PLVWebParams.d.ets +2 -1
- package/src/main/ets/modules/web/PLVWebParams.js +21 -20
- package/src/main/ets/modules/web/qa/PLVQAWeb.d.ets +16 -0
- package/src/main/ets/modules/web/qa/PLVQAWeb.js +120 -0
- package/src/main/ets/modules/web/tuwen/PLVTuwenWeb.d.ets +17 -0
- package/src/main/ets/modules/web/tuwen/PLVTuwenWeb.js +129 -0
- package/src/main/module.json +1 -28
- package/src/main/resources/base/element/string.json +80 -0
- package/src/main/resources/en_US/element/string.json +80 -0
- package/src/main/resources/zh_CN/element/string.json +80 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (l130, 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(l130, target, key, desc);
|
|
5
5
|
else
|
|
6
|
-
for (var
|
|
7
|
-
if (d =
|
|
6
|
+
for (var m130 = l130.length - 1; m130 >= 0; m130--)
|
|
7
|
+
if (d = l130[m130])
|
|
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
|
};
|
|
@@ -22,48 +22,48 @@ const TAG = '[PLVSceneLoginManager]';
|
|
|
22
22
|
const STREAMER_SUPPORT_CHANNEL_TYPE = [PLVLiveChannelType.ALONE];
|
|
23
23
|
const STREAMER_SUPPORT_RTC_TYPE = [PLVLinkMicRTCType.ARTC];
|
|
24
24
|
export class PLVSceneLoginManager extends PLVBaseModule {
|
|
25
|
-
loginLive(userId,
|
|
26
|
-
PLVLogger.info(TAG, `loginLive userId: ${userId}, channelId: ${
|
|
27
|
-
return PLVUtils.safePromise(async (
|
|
25
|
+
loginLive(userId, e130, appId, f130) {
|
|
26
|
+
PLVLogger.info(TAG, `loginLive userId: ${userId}, channelId: ${e130}, appId: ${appId}`);
|
|
27
|
+
return PLVUtils.safePromise(async (g130, reject) => {
|
|
28
28
|
this.loginThrottling();
|
|
29
29
|
const result = await Promise.all([
|
|
30
|
-
apiPlvNetApi(this.channelData).checkLoginToken(userId,
|
|
30
|
+
apiPlvNetApi(this.channelData).checkLoginToken(userId, f130, appId, e130)
|
|
31
31
|
.catch((err) => {
|
|
32
32
|
return Promise.reject(err.log(TAG, 'loginLive error while checkLoginToken'));
|
|
33
33
|
}),
|
|
34
|
-
apiPlvNetApi(this.channelData).getLiveDetail(
|
|
34
|
+
apiPlvNetApi(this.channelData).getLiveDetail(e130, appId, f130)
|
|
35
35
|
.catch((err) => {
|
|
36
36
|
return Promise.reject(err.log(TAG, 'loginLive error while getLiveDetail'));
|
|
37
37
|
})
|
|
38
38
|
]);
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
this.setupChannelData(
|
|
44
|
-
|
|
39
|
+
const h130 = result[0];
|
|
40
|
+
const i130 = result[1];
|
|
41
|
+
const j130 = channelTypeMapFromServerString(i130.data.data?.scene);
|
|
42
|
+
const k130 = j130 == PLVLiveChannelType.PPT ? PLVUserType.USERTYPE_SLICE : PLVUserType.USERTYPE_STUDENT;
|
|
43
|
+
this.setupChannelData(e130, userId, appId, f130, j130, k130, PLVLoginType.LIVE, h130.data.data, i130.data.data, undefined, undefined, undefined);
|
|
44
|
+
g130(this.channelData);
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
-
loginPlayback(userId,
|
|
48
|
-
PLVLogger.info(TAG, `loginPlayback userId: ${userId}, channelId: ${
|
|
49
|
-
return PLVUtils.safePromise(async (
|
|
47
|
+
loginPlayback(userId, w129, appId, x129, y129) {
|
|
48
|
+
PLVLogger.info(TAG, `loginPlayback userId: ${userId}, channelId: ${w129}, appId: ${appId}, videoId: ${y129}`);
|
|
49
|
+
return PLVUtils.safePromise(async (z129, reject) => {
|
|
50
50
|
this.loginThrottling();
|
|
51
51
|
const result = await Promise.all([
|
|
52
|
-
apiPlvNetApi(this.channelData).checkLoginToken(userId,
|
|
52
|
+
apiPlvNetApi(this.channelData).checkLoginToken(userId, x129, appId, w129, y129)
|
|
53
53
|
.catch((err) => {
|
|
54
54
|
return Promise.reject(err.log(TAG, 'loginPlayback error while checkLoginToken'));
|
|
55
55
|
}),
|
|
56
|
-
apiPlvNetApi(this.channelData).getLiveDetail(
|
|
56
|
+
apiPlvNetApi(this.channelData).getLiveDetail(w129, appId, x129)
|
|
57
57
|
.catch((err) => {
|
|
58
58
|
return Promise.reject(err.log(TAG, 'loginPlayback error while getLiveDetail'));
|
|
59
59
|
})
|
|
60
60
|
]);
|
|
61
|
-
const
|
|
62
|
-
const
|
|
63
|
-
const
|
|
64
|
-
const
|
|
65
|
-
this.setupChannelData(
|
|
66
|
-
|
|
61
|
+
const a130 = result[0];
|
|
62
|
+
const b130 = result[1];
|
|
63
|
+
const c130 = channelTypeMapFromServerString(b130.data.data?.scene);
|
|
64
|
+
const d130 = c130 == PLVLiveChannelType.PPT ? PLVUserType.USERTYPE_SLICE : PLVUserType.USERTYPE_STUDENT;
|
|
65
|
+
this.setupChannelData(w129, userId, appId, x129, c130, d130, PLVLoginType.PLAYBACK, a130.data.data, b130.data.data, y129, undefined, undefined);
|
|
66
|
+
z129(this.channelData);
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
async loginStreamer(channel, password, nickname = undefined) {
|
|
@@ -71,78 +71,78 @@ export class PLVSceneLoginManager extends PLVBaseModule {
|
|
|
71
71
|
this.loginThrottling();
|
|
72
72
|
require(!isTextEmpty(channel), () => "channelId is empty");
|
|
73
73
|
require(!isTextEmpty(password), () => "password is empty");
|
|
74
|
-
const
|
|
75
|
-
const
|
|
76
|
-
const
|
|
74
|
+
const m129 = apiPlvNetApi(this.channelData);
|
|
75
|
+
const n129 = channel.startsWith("00");
|
|
76
|
+
const o129 = md5(password);
|
|
77
77
|
const version = "polyv-harmony-live-sdk";
|
|
78
|
-
const
|
|
79
|
-
if (
|
|
80
|
-
throw
|
|
78
|
+
const p129 = await runCatching(m129.loginStreamer(channel, o129, version));
|
|
79
|
+
if (p129.success === false) {
|
|
80
|
+
throw p129.error;
|
|
81
81
|
}
|
|
82
|
-
const
|
|
83
|
-
require(
|
|
84
|
-
const
|
|
85
|
-
require(STREAMER_SUPPORT_CHANNEL_TYPE.includes(
|
|
86
|
-
require(STREAMER_SUPPORT_RTC_TYPE.includes(
|
|
87
|
-
const
|
|
88
|
-
const
|
|
89
|
-
if (
|
|
90
|
-
throw
|
|
82
|
+
const q129 = requireNotNull(p129.data.data.data, () => "loginStreamer Response is null");
|
|
83
|
+
require(q129.status === "ok", () => q129.msg);
|
|
84
|
+
const r129 = channelTypeMapFromServerString(q129.liveScene);
|
|
85
|
+
require(STREAMER_SUPPORT_CHANNEL_TYPE.includes(r129), () => "暂不支持该频道登录");
|
|
86
|
+
require(STREAMER_SUPPORT_RTC_TYPE.includes(q129.rtcType ?? ""), () => "暂不支持非声网频道登录,如需帮助请联系工作人员。");
|
|
87
|
+
const s129 = this.streamerGetPushStreamUrl(q129);
|
|
88
|
+
const t129 = await runCatching(m129.getLiveDetail(q129.channelId, q129.appId, q129.appSecret));
|
|
89
|
+
if (t129.success === false) {
|
|
90
|
+
throw t129.error;
|
|
91
91
|
}
|
|
92
|
-
const
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
this.setupChannelData(
|
|
97
|
-
this.channelData.viewerId =
|
|
98
|
-
this.channelData.viewerName = isTextEmpty(nickname) ?
|
|
99
|
-
this.channelData.viewerAvatar =
|
|
100
|
-
this.channelData.viewerActor =
|
|
92
|
+
const u129 = requireNotNull(t129.data.data.data, () => "liveDetail Response is null");
|
|
93
|
+
const v129 = new PLVChatDomainVO();
|
|
94
|
+
v129.setChatDomain(requireNotNull(q129.chatDomain, () => "chatDomain is null"));
|
|
95
|
+
v129.setChatApiDomain(requireNotNull(q129.chatApiDomain, () => "chatApiDomain is null"));
|
|
96
|
+
this.setupChannelData(q129.channelId, q129.useId, q129.appId, q129.appSecret, r129, n129 ? PLVUserType.USERTYPE_GUEST : PLVUserType.USERTYPE_TEACHER, PLVLoginType.LIVE, v129, u129, undefined, q129, await s129);
|
|
97
|
+
this.channelData.viewerId = q129.InteractUid;
|
|
98
|
+
this.channelData.viewerName = isTextEmpty(nickname) ? q129.teacherNickname : nickname;
|
|
99
|
+
this.channelData.viewerAvatar = q129.teacherAvatar;
|
|
100
|
+
this.channelData.viewerActor = q129.teacherActor;
|
|
101
101
|
return true;
|
|
102
102
|
}
|
|
103
103
|
loginThrottling() {
|
|
104
104
|
}
|
|
105
|
-
async streamerGetPushStreamUrl(
|
|
106
|
-
const
|
|
107
|
-
if (
|
|
108
|
-
const
|
|
109
|
-
let result = await runCatching(
|
|
105
|
+
async streamerGetPushStreamUrl(i129) {
|
|
106
|
+
const j129 = isLiteralTrue(i129.isNgbEnabled);
|
|
107
|
+
if (j129) {
|
|
108
|
+
const l129 = createNGBPushApi(this.channelData);
|
|
109
|
+
let result = await runCatching(l129.getNGBPushStreamUrl((i129.ngbUrl ?? "") + (i129.stream ?? "")));
|
|
110
110
|
if (result.success) {
|
|
111
111
|
const url = result.data.data.data ?? "";
|
|
112
112
|
PLVLogger.info(TAG, `NGB push stream url1=${url}`);
|
|
113
113
|
return url;
|
|
114
114
|
}
|
|
115
|
-
result = await runCatching(
|
|
115
|
+
result = await runCatching(l129.getNGBPushStreamUrl((i129.bakUrl ?? "") + (i129.stream ?? "")));
|
|
116
116
|
if (result.success) {
|
|
117
117
|
const url = result.data.data.data ?? "";
|
|
118
118
|
PLVLogger.info(TAG, `NGB push stream url2=${url}`);
|
|
119
119
|
return url;
|
|
120
120
|
}
|
|
121
|
-
return (
|
|
121
|
+
return (i129.url ?? "") + (i129.stream + "");
|
|
122
122
|
}
|
|
123
123
|
else {
|
|
124
|
-
const
|
|
125
|
-
if (
|
|
126
|
-
return (
|
|
124
|
+
const k129 = isLiteralTrue(i129.isUrlProtected);
|
|
125
|
+
if (k129) {
|
|
126
|
+
return (i129.bakUrl ?? "") + (i129.stream ?? "") + (i129.suffix ?? "");
|
|
127
127
|
}
|
|
128
128
|
else {
|
|
129
|
-
return (
|
|
129
|
+
return (i129.url ?? "") + (i129.stream ?? "");
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
setupChannelData(
|
|
134
|
-
this.channelData.loginChannelId =
|
|
133
|
+
setupChannelData(z128, userId, appId, a129, b129, c129, loginType, d129, e129, f129, g129, h129) {
|
|
134
|
+
this.channelData.loginChannelId = z128;
|
|
135
135
|
this.channelData.userId = userId;
|
|
136
136
|
this.channelData.appId = appId;
|
|
137
|
-
this.channelData.appSecret =
|
|
138
|
-
this.channelData.channelType =
|
|
139
|
-
this.channelData.viewerType =
|
|
137
|
+
this.channelData.appSecret = a129;
|
|
138
|
+
this.channelData.channelType = b129;
|
|
139
|
+
this.channelData.viewerType = c129;
|
|
140
140
|
this.channelData.loginType = loginType;
|
|
141
|
-
this.channelData.chatDomain =
|
|
142
|
-
this.channelData.liveDetail =
|
|
143
|
-
this.channelData.playbackVid =
|
|
144
|
-
this.channelData.streamerData =
|
|
145
|
-
this.channelData.pushStreamUrl =
|
|
141
|
+
this.channelData.chatDomain = d129;
|
|
142
|
+
this.channelData.liveDetail = e129;
|
|
143
|
+
this.channelData.playbackVid = f129;
|
|
144
|
+
this.channelData.streamerData = g129;
|
|
145
|
+
this.channelData.pushStreamUrl = h129;
|
|
146
146
|
this.channelData.afterLoginSetup();
|
|
147
147
|
}
|
|
148
148
|
}
|
|
@@ -5,8 +5,9 @@ export declare class PLVChatDomainVO {
|
|
|
5
5
|
private chatDomain;
|
|
6
6
|
private chatApiDomain;
|
|
7
7
|
getChatApiDomain(): string;
|
|
8
|
-
|
|
8
|
+
getChatApiDomainHost(): string;
|
|
9
|
+
setChatApiDomain(f128: string): void;
|
|
9
10
|
getChatDomain(): string;
|
|
10
11
|
getHttpChatDomain(): string;
|
|
11
|
-
setChatDomain(
|
|
12
|
+
setChatDomain(e128: string): void;
|
|
12
13
|
}
|
|
@@ -12,8 +12,11 @@ export class PLVChatDomainVO {
|
|
|
12
12
|
}
|
|
13
13
|
return PLVChatDomainVO.HOST + PLVChatDomainVO.DEFAULT_CHAT_API_DOMAIN;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
this.
|
|
15
|
+
getChatApiDomainHost() {
|
|
16
|
+
return this.getChatApiDomain().replace('https://', '').replace('http://', '').replaceAll('/', '');
|
|
17
|
+
}
|
|
18
|
+
setChatApiDomain(f128) {
|
|
19
|
+
this.chatApiDomain = f128;
|
|
17
20
|
}
|
|
18
21
|
getChatDomain() {
|
|
19
22
|
if (this.chatDomain) {
|
|
@@ -27,8 +30,8 @@ export class PLVChatDomainVO {
|
|
|
27
30
|
getHttpChatDomain() {
|
|
28
31
|
return this.getChatDomain().replace('https', 'http');
|
|
29
32
|
}
|
|
30
|
-
setChatDomain(
|
|
31
|
-
this.chatDomain =
|
|
33
|
+
setChatDomain(e128) {
|
|
34
|
+
this.chatDomain = e128;
|
|
32
35
|
}
|
|
33
36
|
}
|
|
34
37
|
PLVChatDomainVO.HOST = 'https://';
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
export var PLVLiveChannelType;
|
|
2
|
-
(function (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
(function (h128) {
|
|
3
|
+
h128["PPT"] = "ppt";
|
|
4
|
+
h128["ALONE"] = "alone";
|
|
5
|
+
h128["SEMINAR"] = "seminar";
|
|
6
6
|
})(PLVLiveChannelType || (PLVLiveChannelType = {}));
|
|
7
7
|
export function mapFromServerString(type) {
|
|
8
8
|
if (!type) {
|
|
9
9
|
throw new Error(`unknownChannelType=${type}`);
|
|
10
10
|
}
|
|
11
|
-
let
|
|
11
|
+
let g128;
|
|
12
12
|
switch (type) {
|
|
13
13
|
case PLVLiveChannelType.PPT.valueOf():
|
|
14
|
-
|
|
14
|
+
g128 = PLVLiveChannelType.PPT;
|
|
15
15
|
break;
|
|
16
16
|
case PLVLiveChannelType.ALONE.valueOf():
|
|
17
17
|
case 'topclass':
|
|
18
|
-
|
|
18
|
+
g128 = PLVLiveChannelType.ALONE;
|
|
19
19
|
break;
|
|
20
20
|
case PLVLiveChannelType.SEMINAR.valueOf():
|
|
21
|
-
|
|
21
|
+
g128 = PLVLiveChannelType.SEMINAR;
|
|
22
22
|
break;
|
|
23
23
|
default: throw new Error(`unknownChannelType=${type}`);
|
|
24
24
|
}
|
|
25
|
-
return
|
|
25
|
+
return g128;
|
|
26
26
|
}
|
|
@@ -72,10 +72,15 @@ export declare class PLVLiveDetailVO {
|
|
|
72
72
|
isChatRobotEnabled(): boolean;
|
|
73
73
|
isProductHotEffectEnabled(): boolean;
|
|
74
74
|
getPublisher(): string | Resource | undefined;
|
|
75
|
+
getI18NMenuName(i128?: string): string | Resource | undefined;
|
|
75
76
|
isFollowSystemLangType(): boolean;
|
|
76
77
|
isZHCNLangType(): boolean;
|
|
77
78
|
isENLangType(): boolean;
|
|
78
79
|
isLiveStatus(): boolean;
|
|
80
|
+
isPPTWatchLayout(): boolean;
|
|
81
|
+
isVideoWatchLayout(): boolean;
|
|
82
|
+
isFollowTeacherWatchLayout(): boolean;
|
|
83
|
+
isViewerPptTurningEnabled(): boolean;
|
|
79
84
|
}
|
|
80
85
|
export interface WatchThemeModelBean {
|
|
81
86
|
pageSkin?: string;
|
|
@@ -157,5 +162,6 @@ export declare enum MenuType {
|
|
|
157
162
|
TUWEN = "tuwen",
|
|
158
163
|
BUY = "buy",
|
|
159
164
|
PREVIOUS = "previous",
|
|
160
|
-
QA = "qa"
|
|
165
|
+
QA = "qa",
|
|
166
|
+
CHAPTER = "chapter"
|
|
161
167
|
}
|
|
@@ -18,6 +18,9 @@ export class PLVLiveDetailVO {
|
|
|
18
18
|
getPublisher() {
|
|
19
19
|
return PLVI18NDataMapper.getRole(this.publisher);
|
|
20
20
|
}
|
|
21
|
+
getI18NMenuName(i128) {
|
|
22
|
+
return PLVI18NDataMapper.getMenuName(i128);
|
|
23
|
+
}
|
|
21
24
|
isFollowSystemLangType() {
|
|
22
25
|
return 'follow_browser' === this.watchLangType || !this.watchLangType;
|
|
23
26
|
}
|
|
@@ -30,16 +33,29 @@ export class PLVLiveDetailVO {
|
|
|
30
33
|
isLiveStatus() {
|
|
31
34
|
return 'live' === this.watchStatus;
|
|
32
35
|
}
|
|
36
|
+
isPPTWatchLayout() {
|
|
37
|
+
return 'ppt' === this.watchThemeModel?.watchLayout;
|
|
38
|
+
}
|
|
39
|
+
isVideoWatchLayout() {
|
|
40
|
+
return 'video' === this.watchThemeModel?.watchLayout;
|
|
41
|
+
}
|
|
42
|
+
isFollowTeacherWatchLayout() {
|
|
43
|
+
return !this.isPPTWatchLayout() && !this.isVideoWatchLayout();
|
|
44
|
+
}
|
|
45
|
+
isViewerPptTurningEnabled() {
|
|
46
|
+
return 'Y' === this.viewerPptTurningEnabled;
|
|
47
|
+
}
|
|
33
48
|
}
|
|
34
49
|
export var MenuType;
|
|
35
|
-
(function (
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
50
|
+
(function (MenuType) {
|
|
51
|
+
MenuType["TEXT"] = "text";
|
|
52
|
+
MenuType["DESC"] = "desc";
|
|
53
|
+
MenuType["CHAT"] = "chat";
|
|
54
|
+
MenuType["QUIZ"] = "quiz";
|
|
55
|
+
MenuType["IFRAME"] = "iframe";
|
|
56
|
+
MenuType["TUWEN"] = "tuwen";
|
|
57
|
+
MenuType["BUY"] = "buy";
|
|
58
|
+
MenuType["PREVIOUS"] = "previous";
|
|
59
|
+
MenuType["QA"] = "qa";
|
|
60
|
+
MenuType["CHAPTER"] = "chapter";
|
|
45
61
|
})(MenuType || (MenuType = {}));
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
export var PLVLiveStatus;
|
|
2
|
-
(function (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
(function (k128) {
|
|
3
|
+
k128["LIVE"] = "live";
|
|
4
|
+
k128["STOP"] = "stop";
|
|
5
|
+
k128["END"] = "end";
|
|
6
6
|
})(PLVLiveStatus || (PLVLiveStatus = {}));
|
|
7
7
|
export function mapFromServerString(status) {
|
|
8
8
|
if (!status) {
|
|
9
9
|
throw new Error(`unknownLiveStatus=${status}`);
|
|
10
10
|
}
|
|
11
|
-
let
|
|
11
|
+
let j128;
|
|
12
12
|
switch (status) {
|
|
13
13
|
case PLVLiveStatus.LIVE.valueOf():
|
|
14
|
-
|
|
14
|
+
j128 = PLVLiveStatus.LIVE;
|
|
15
15
|
break;
|
|
16
16
|
case PLVLiveStatus.STOP.valueOf():
|
|
17
|
-
|
|
17
|
+
j128 = PLVLiveStatus.STOP;
|
|
18
18
|
break;
|
|
19
19
|
case PLVLiveStatus.END.valueOf():
|
|
20
|
-
|
|
20
|
+
j128 = PLVLiveStatus.END;
|
|
21
21
|
break;
|
|
22
22
|
default: throw new Error(`unknownLiveStatus=${status}`);
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return j128;
|
|
25
25
|
}
|
|
@@ -3,24 +3,24 @@ export class PLVLiveStatusVO {
|
|
|
3
3
|
if (!obj) {
|
|
4
4
|
return '';
|
|
5
5
|
}
|
|
6
|
-
const
|
|
7
|
-
if (
|
|
6
|
+
const m128 = obj.toString().split(",");
|
|
7
|
+
if (m128.length < 2) {
|
|
8
8
|
return "";
|
|
9
9
|
}
|
|
10
10
|
else {
|
|
11
|
-
return
|
|
11
|
+
return m128[1];
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
static getLiveStatus(obj) {
|
|
15
15
|
if (!obj) {
|
|
16
16
|
return '';
|
|
17
17
|
}
|
|
18
|
-
const
|
|
19
|
-
if (
|
|
18
|
+
const l128 = obj.toString().split(",");
|
|
19
|
+
if (l128.length < 2) {
|
|
20
20
|
return "";
|
|
21
21
|
}
|
|
22
22
|
else {
|
|
23
|
-
return
|
|
23
|
+
return l128[0];
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -4,5 +4,5 @@ export declare class PLVLoginLiveResult {
|
|
|
4
4
|
channelType: PLVLiveChannelType;
|
|
5
5
|
liveStatus: PLVLiveStatus;
|
|
6
6
|
langType?: string;
|
|
7
|
-
constructor(
|
|
7
|
+
constructor(n128: PLVLiveChannelType, o128: PLVLiveStatus, p128?: string);
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export class PLVLoginLiveResult {
|
|
2
|
-
constructor(
|
|
3
|
-
this.channelType =
|
|
4
|
-
this.liveStatus =
|
|
5
|
-
this.langType =
|
|
2
|
+
constructor(n128, o128, p128) {
|
|
3
|
+
this.channelType = n128;
|
|
4
|
+
this.liveStatus = o128;
|
|
5
|
+
this.langType = p128;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
@@ -4,6 +4,6 @@ export declare class PLVLoginPlaybackResult {
|
|
|
4
4
|
playbackOrigin?: string;
|
|
5
5
|
playbackType?: string;
|
|
6
6
|
langType?: string;
|
|
7
|
-
constructor(
|
|
7
|
+
constructor(q128: PLVLiveChannelType, r128?: string, s128?: string, t128?: string);
|
|
8
8
|
isVodAndListType(): boolean;
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export class PLVLoginPlaybackResult {
|
|
2
|
-
constructor(
|
|
3
|
-
this.channelType =
|
|
4
|
-
this.playbackOrigin =
|
|
5
|
-
this.playbackType =
|
|
6
|
-
this.langType =
|
|
2
|
+
constructor(q128, r128, s128, t128) {
|
|
3
|
+
this.channelType = q128;
|
|
4
|
+
this.playbackOrigin = r128;
|
|
5
|
+
this.playbackType = s128;
|
|
6
|
+
this.langType = t128;
|
|
7
7
|
}
|
|
8
8
|
isVodAndListType() {
|
|
9
9
|
return "vod" === this.playbackOrigin && "list" === this.playbackType;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import { PLVLiveChannelType } from "./PLVLiveChannelType";
|
|
1
2
|
export declare enum PLVLoginType {
|
|
2
3
|
LIVE = 0,
|
|
3
4
|
PLAYBACK = 1
|
|
4
5
|
}
|
|
5
6
|
export declare enum PLVLiveScene {
|
|
6
7
|
CLOUD_CLASS = "0",
|
|
7
|
-
LIVE_ECOMMERCE = "1"
|
|
8
|
+
LIVE_ECOMMERCE = "1",
|
|
9
|
+
LAND_TEMPLATE = "2",
|
|
10
|
+
PORTRAIT_TEMPLATE = "3"
|
|
8
11
|
}
|
|
12
|
+
export declare function isSupportChannelType(v128?: PLVLiveScene, w128?: PLVLiveChannelType): boolean;
|
|
13
|
+
export declare function getBusinessValue(u128?: PLVLiveScene): "0" | "1";
|
|
@@ -1,10 +1,31 @@
|
|
|
1
|
+
import { PLVLiveChannelType } from "./PLVLiveChannelType";
|
|
1
2
|
export var PLVLoginType;
|
|
2
|
-
(function (
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
(function (y128) {
|
|
4
|
+
y128[y128["LIVE"] = 0] = "LIVE";
|
|
5
|
+
y128[y128["PLAYBACK"] = 1] = "PLAYBACK";
|
|
5
6
|
})(PLVLoginType || (PLVLoginType = {}));
|
|
6
7
|
export var PLVLiveScene;
|
|
7
|
-
(function (
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
(function (x128) {
|
|
9
|
+
x128["CLOUD_CLASS"] = "0";
|
|
10
|
+
x128["LIVE_ECOMMERCE"] = "1";
|
|
11
|
+
x128["LAND_TEMPLATE"] = "2";
|
|
12
|
+
x128["PORTRAIT_TEMPLATE"] = "3";
|
|
10
13
|
})(PLVLiveScene || (PLVLiveScene = {}));
|
|
14
|
+
export function isSupportChannelType(v128, w128) {
|
|
15
|
+
switch (v128) {
|
|
16
|
+
case PLVLiveScene.CLOUD_CLASS: return w128 === PLVLiveChannelType.PPT || w128 === PLVLiveChannelType.ALONE;
|
|
17
|
+
case PLVLiveScene.LIVE_ECOMMERCE: return w128 === PLVLiveChannelType.ALONE;
|
|
18
|
+
case PLVLiveScene.LAND_TEMPLATE: return w128 === PLVLiveChannelType.PPT || w128 === PLVLiveChannelType.ALONE;
|
|
19
|
+
case PLVLiveScene.PORTRAIT_TEMPLATE: return w128 === PLVLiveChannelType.PPT || w128 === PLVLiveChannelType.ALONE;
|
|
20
|
+
default: return false;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export function getBusinessValue(u128) {
|
|
24
|
+
switch (u128) {
|
|
25
|
+
case PLVLiveScene.CLOUD_CLASS: return '0';
|
|
26
|
+
case PLVLiveScene.LIVE_ECOMMERCE: return '1';
|
|
27
|
+
case PLVLiveScene.LAND_TEMPLATE: return '0';
|
|
28
|
+
case PLVLiveScene.PORTRAIT_TEMPLATE: return '1';
|
|
29
|
+
default: return '0';
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -24,7 +24,7 @@ export declare class PLVMemberManager extends PLVBaseModule {
|
|
|
24
24
|
* 成员模块错误事件
|
|
25
25
|
*/
|
|
26
26
|
readonly errorEvent: MutableEvent<PLVMemberErrorEvent>;
|
|
27
|
-
constructor(
|
|
27
|
+
constructor(g131: DependScope, h131: PLVChannelData, i131: PLVSocketMediator);
|
|
28
28
|
private init;
|
|
29
29
|
/**
|
|
30
30
|
* 开始轮询更新频道观众列表
|
|
@@ -37,10 +37,10 @@ export declare class PLVMemberManager extends PLVBaseModule {
|
|
|
37
37
|
/**
|
|
38
38
|
* 踢出指定观众
|
|
39
39
|
*/
|
|
40
|
-
kickViewer(
|
|
40
|
+
kickViewer(e131: string): void;
|
|
41
41
|
/**
|
|
42
42
|
* 禁言指定观众
|
|
43
43
|
* @param ban 禁言/取消禁言
|
|
44
44
|
*/
|
|
45
|
-
banViewer(
|
|
45
|
+
banViewer(c131: string, d131?: boolean): void;
|
|
46
46
|
}
|
|
@@ -2,21 +2,21 @@ import { PLVBaseModule } from '../../common/PLVBaseModule';
|
|
|
2
2
|
import { PLVMemberMediator } from './mediator/PLVMemberMediator';
|
|
3
3
|
import { PLVMemberViewModel } from './viewmodel/PLVMemberViewModel';
|
|
4
4
|
export class PLVMemberManager extends PLVBaseModule {
|
|
5
|
-
constructor(
|
|
6
|
-
super(
|
|
7
|
-
this.dependScope =
|
|
5
|
+
constructor(g131, h131, i131) {
|
|
6
|
+
super(h131);
|
|
7
|
+
this.dependScope = g131;
|
|
8
8
|
this.mediator = this.dependScope.get(PLVMemberMediator);
|
|
9
9
|
this.viewModel = this.dependScope.get(PLVMemberViewModel);
|
|
10
10
|
this.channelViewerCount = this.mediator.channelViewerCount;
|
|
11
11
|
this.channelViewers = this.mediator.channelViewers;
|
|
12
12
|
this.onViewerRequestLinkMic = this.mediator.onViewerRequestLinkMic;
|
|
13
13
|
this.errorEvent = this.mediator.errorEvent;
|
|
14
|
-
this.init(
|
|
14
|
+
this.init(i131);
|
|
15
15
|
}
|
|
16
|
-
async init(
|
|
16
|
+
async init(f131) {
|
|
17
17
|
await this.channelData.initializedPromise.get();
|
|
18
18
|
this.mediator.channelData = this.channelData;
|
|
19
|
-
this.mediator.socketMediator =
|
|
19
|
+
this.mediator.socketMediator = f131;
|
|
20
20
|
this.viewModel.init();
|
|
21
21
|
}
|
|
22
22
|
startUpdateChannelViewersInterval() {
|
|
@@ -25,10 +25,10 @@ export class PLVMemberManager extends PLVBaseModule {
|
|
|
25
25
|
stopUpdateChannelViewersInterval() {
|
|
26
26
|
this.viewModel.stopUpdateChannelViewersInterval();
|
|
27
27
|
}
|
|
28
|
-
kickViewer(
|
|
29
|
-
this.viewModel.kickViewer(
|
|
28
|
+
kickViewer(e131) {
|
|
29
|
+
this.viewModel.kickViewer(e131);
|
|
30
30
|
}
|
|
31
|
-
banViewer(
|
|
32
|
-
this.viewModel.banViewer(
|
|
31
|
+
banViewer(c131, d131 = true) {
|
|
32
|
+
this.viewModel.banViewer(c131, d131);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -15,8 +15,8 @@ export declare class PLVMemberMediator implements LifecycleAwareDependComponent
|
|
|
15
15
|
inviteViewerLinkMic: ((viewerId: string, needAnswer: boolean) => void) | null;
|
|
16
16
|
hangupViewerLinkMic: ((viewerId: string) => void) | null;
|
|
17
17
|
updateByLinkMicStatusList: ((linkmicStatus: PLVLinkMicChannelStatus) => void) | null;
|
|
18
|
-
findViewerByViewerId(
|
|
19
|
-
findViewerByLinkmicId(
|
|
18
|
+
findViewerByViewerId(p130: string | undefined | null): PLVMemberChannelViewer | undefined;
|
|
19
|
+
findViewerByLinkmicId(n130: string | undefined): PLVMemberChannelViewer | undefined;
|
|
20
20
|
reportError(code: number, message: string): void;
|
|
21
21
|
onDestroy(): void;
|
|
22
22
|
}
|
|
@@ -15,17 +15,17 @@ export class PLVMemberMediator {
|
|
|
15
15
|
this.hangupViewerLinkMic = null;
|
|
16
16
|
this.updateByLinkMicStatusList = null;
|
|
17
17
|
}
|
|
18
|
-
findViewerByViewerId(
|
|
19
|
-
if (isNullOrUndefined(
|
|
18
|
+
findViewerByViewerId(p130) {
|
|
19
|
+
if (isNullOrUndefined(p130)) {
|
|
20
20
|
return undefined;
|
|
21
21
|
}
|
|
22
|
-
return (this.channelViewers.value ?? []).find(
|
|
22
|
+
return (this.channelViewers.value ?? []).find(q130 => q130.viewerId === p130);
|
|
23
23
|
}
|
|
24
|
-
findViewerByLinkmicId(
|
|
25
|
-
if (isNullOrUndefined(
|
|
24
|
+
findViewerByLinkmicId(n130) {
|
|
25
|
+
if (isNullOrUndefined(n130)) {
|
|
26
26
|
return undefined;
|
|
27
27
|
}
|
|
28
|
-
return (this.channelViewers.value ?? []).find(
|
|
28
|
+
return (this.channelViewers.value ?? []).find(o130 => o130.linkmicId === n130);
|
|
29
29
|
}
|
|
30
30
|
reportError(code, message) {
|
|
31
31
|
this.errorEvent.value = new PLVMemberErrorEvent(code, message);
|