@polyvharmony/live-scenes-sdk 1.3.2-rc.1 → 1.3.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 +6 -2
- package/CHANGELOG.md +29 -1
- package/Index.d.ets +2 -0
- package/ets/modules.abc +0 -0
- package/oh-package.json5 +1 -1
- package/package.json +1 -1
- package/src/main/ets/common/PLVBaseModule.d.ets +2 -0
- package/src/main/ets/common/PLVChannelData.d.ets +6 -0
- package/src/main/ets/common/PLVDataBaseModule.d.ets +2 -0
- package/src/main/ets/common/PLVLiveSceneSDK.d.ets +2 -0
- package/src/main/ets/modules/business/PLVBusinessApiManager.d.ets +2 -0
- package/src/main/ets/modules/business/model/PLVGetPageViewerVO.d.ets +2 -0
- package/src/main/ets/modules/business/model/PLVLiveChannelSettingUpdateRequestVO.d.ets +2 -0
- package/src/main/ets/modules/business/model/PLVLiveViewLogVO.d.ets +2 -0
- package/src/main/ets/modules/business/model/PLVReportPageViewerVO.d.ets +2 -0
- package/src/main/ets/modules/chatroom/PLVChatroomManager.d.ets +24 -22
- package/src/main/ets/modules/chatroom/handler/PLVChatroomBanIpMessageHandler.d.ets +2 -0
- package/src/main/ets/modules/chatroom/handler/PLVChatroomBaseHandler.d.ets +4 -2
- package/src/main/ets/modules/chatroom/handler/PLVChatroomCancelTopHandler.d.ets +3 -1
- package/src/main/ets/modules/chatroom/handler/PLVChatroomCloseRoomMessageHandler.d.ets +3 -1
- package/src/main/ets/modules/chatroom/handler/PLVChatroomDataHandlerFactory.d.ets +3 -1
- package/src/main/ets/modules/chatroom/handler/PLVChatroomFocusModeHandler.d.ets +3 -1
- package/src/main/ets/modules/chatroom/handler/PLVChatroomLikesMessageHandler.d.ets +3 -1
- package/src/main/ets/modules/chatroom/handler/PLVChatroomLoginMessageHandler.d.ets +3 -1
- package/src/main/ets/modules/chatroom/handler/PLVChatroomLogoutMessageHandler.d.ets +3 -1
- package/src/main/ets/modules/chatroom/handler/PLVChatroomOnSliceIdMessageHandler.d.ets +3 -1
- package/src/main/ets/modules/chatroom/handler/PLVChatroomToTopHandler.d.ets +3 -1
- package/src/main/ets/modules/chatroom/handler/PLVChatroomUnShieldMessageHandler.d.ets +3 -1
- package/src/main/ets/modules/chatroom/model/IPLVIdEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/IPLVTimestampEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVBanIpEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVBulletinEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVCancelTopEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVChatImageUploadTokenVO.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVChatImgContentBean.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVChatImgEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVChatQuoteDataBean.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVCloseRoomEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVEmotionEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVEmotionImagesVO.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVFocusModeEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVGetFullMessageAckBean.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVHistoryChatImgEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVHistoryFileShareEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVHistorySpeakEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVHistroyQuizListVO.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVImageBean.d.ets +5 -3
- package/src/main/ets/modules/chatroom/model/PLVLikesEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVLocalQuizEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVLocalSpeakEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVLoginEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVLogoutEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVNotSupportEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVPPTShareFileDataBean.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVRemoveBulletinEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVRemoveContentEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVRemoveHistoryEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVRewardEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVSpeakEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVTAnswerEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/model/PLVToTopEvent.d.ets +3 -1
- package/src/main/ets/modules/chatroom/model/PLVUnShieldEvent.d.ets +2 -0
- package/src/main/ets/modules/chatroom/playback/PLVChatPlaybackManager.d.ets +11 -4
- package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackDataVO.d.ets +4 -2
- package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackOpenHelper.d.ets +9 -7
- package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackPartVO.d.ets +2 -0
- package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackToTopVO.d.ets +5 -3
- package/src/main/ets/modules/i18n/PLVI18NDataMapper.d.ets +7 -5
- package/src/main/ets/modules/i18n/PLVLanguageManager.d.ets +2 -0
- package/src/main/ets/modules/interact/PLVInteractManager.d.ets +8 -6
- package/src/main/ets/modules/interact/PLVInteractWeb.d.ets +15 -13
- package/src/main/ets/modules/interact/invitePoster/PLVInteractInvitePoster.d.ets +3 -1
- package/src/main/ets/modules/interact/invitePoster/model/PLVInvitePosterSettingVO.d.ets +2 -0
- package/src/main/ets/modules/interact/lottery/PLVShowLotteryEvent.d.ets +2 -0
- package/src/main/ets/modules/interact/model/PLVFunctionSwitchBean.d.ets +3 -1
- package/src/main/ets/modules/interact/model/PLVInteractBean.d.ets +2 -0
- package/src/main/ets/modules/interact/model/PLVWebviewUpdateAppStatusVO.d.ets +2 -0
- package/src/main/ets/modules/interact/model/info/PLVInteractInfo.d.ets +2 -0
- package/src/main/ets/modules/interact/pushcard/PLVPushCardManager.d.ets +4 -2
- package/src/main/ets/modules/interact/pushcard/model/PLVCardPushVO.d.ets +2 -0
- package/src/main/ets/modules/interact/pushcard/model/PLVNewsPushEvent.d.ets +2 -0
- package/src/main/ets/modules/interact/pushcard/model/PLVShowPushCardEvent.d.ets +3 -1
- package/src/main/ets/modules/interact/pushcard/repo/PLVCardLookTimeLocalRepository.d.ets +5 -3
- package/src/main/ets/modules/interact/redpack/model/PLVDelayRedpackStatusVO.d.ets +2 -0
- package/src/main/ets/modules/interact/redpack/model/PLVDelayRedpackVO.d.ets +2 -0
- package/src/main/ets/modules/interact/redpack/model/PLVHistoryRedPaperEvent.d.ets +2 -0
- package/src/main/ets/modules/interact/redpack/model/PLVRedPaperEvent.d.ets +2 -0
- package/src/main/ets/modules/interact/redpack/model/PLVRedPaperForDelayEvent.d.ets +2 -0
- package/src/main/ets/modules/interact/redpack/model/PLVRedPaperResultEvent.d.ets +2 -0
- package/src/main/ets/modules/linkmic/PLVLinkMicManager.d.ets +22 -14
- package/src/main/ets/modules/linkmic/di/PLVLinkMicModule.d.ets +2 -0
- package/src/main/ets/modules/linkmic/mediator/PLVLinkMicMediator.d.ets +6 -4
- package/src/main/ets/modules/linkmic/mediator/PLVLinkMicRTCEventCallback.d.ets +10 -8
- package/src/main/ets/modules/linkmic/model/PLVLinkMicRepo.d.ets +12 -10
- package/src/main/ets/modules/linkmic/model/datasource/PLVLinkMicNetworkDataSource.d.ets +6 -4
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRate.d.ets +3 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRateEncodeParam.d.ets +3 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicCameraFacing.d.ets +2 -0
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicChannelStatus.d.ets +2 -0
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicErrorEvent.d.ets +3 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicInteractEvent.d.ets +3 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicMode.d.ets +2 -0
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicPushResolutionRatio.d.ets +3 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicRTCEvent.d.ets +2 -0
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicRTCType.d.ets +2 -0
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicSocketEvent.d.ets +2 -0
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicState.d.ets +2 -0
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicTokenRequestStatisticsData.d.ets +2 -0
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicVideoRenderParam.d.ets +3 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicViewer.d.ets +5 -1
- package/src/main/ets/modules/linkmic/viewmodel/PLVLinkMicViewModel.d.ets +19 -15
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicEncodeParamUseCase.d.ets +8 -6
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleQueueOrderUseCase.d.ets +6 -4
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleRTCUseCase.d.ets +9 -7
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleStateUseCase.d.ets +12 -10
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicUpdateChannelViewerUseCase.d.ets +8 -6
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicViewLogUseCase.d.ets +3 -1
- package/src/main/ets/modules/linkmic/viewmodel/usecase/PLVLinkMicUseCases.d.ets +3 -1
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/base/ILinkMicEncodeParamUseCase.d.ets +2 -0
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/base/ILinkMicHandleRTCUseCase.d.ets +2 -0
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/base/ILinkMicHandleStateUseCase.d.ets +2 -0
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestEncodeParamUseCase.d.ets +8 -6
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleRTCUseCase.d.ets +9 -7
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleStateUseCase.d.ets +12 -10
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherEncodeParamUseCase.d.ets +8 -6
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleRTCUseCase.d.ets +9 -7
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleStateUseCase.d.ets +12 -10
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerEncodeParamUseCase.d.ets +9 -6
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleRTCUseCase.d.ets +9 -7
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleStateUseCase.d.ets +12 -10
- package/src/main/ets/modules/log/elog/PLVELogSender.d.ets +6 -4
- package/src/main/ets/modules/log/elog/model/PLVELogDataBean.d.ets +3 -1
- package/src/main/ets/modules/log/elog/model/PLVELogModuleConstants.d.ets +2 -0
- package/src/main/ets/modules/login/PLVSceneLoginManager.d.ets +5 -3
- package/src/main/ets/modules/login/model/PLVChatDomainVO.d.ets +4 -2
- package/src/main/ets/modules/login/model/PLVChatFunctionSwitchVO.d.ets +2 -0
- package/src/main/ets/modules/login/model/PLVLiveChannelType.d.ets +3 -1
- package/src/main/ets/modules/login/model/PLVLiveDetailVO.d.ets +3 -1
- package/src/main/ets/modules/login/model/PLVLiveStatus.d.ets +3 -1
- package/src/main/ets/modules/login/model/PLVLiveStatusVO.d.ets +4 -2
- package/src/main/ets/modules/login/model/PLVLoginLiveResult.d.ets +3 -1
- package/src/main/ets/modules/login/model/PLVLoginPlaybackResult.d.ets +3 -1
- package/src/main/ets/modules/login/model/PLVLoginStreamerVO.d.ets +2 -0
- package/src/main/ets/modules/login/model/PLVLoginType.d.ets +4 -2
- package/src/main/ets/modules/member/PLVMemberManager.d.ets +5 -3
- package/src/main/ets/modules/member/di/PLVMemberModule.d.ets +2 -0
- package/src/main/ets/modules/member/mediator/PLVMemberMediator.d.ets +5 -3
- package/src/main/ets/modules/member/model/PLVMemberRepo.d.ets +4 -2
- package/src/main/ets/modules/member/model/datasource/PLVMemberNetworkDataSource.d.ets +4 -2
- package/src/main/ets/modules/member/model/vo/PLVMemberChannelViewer.d.ets +3 -1
- package/src/main/ets/modules/member/model/vo/PLVMemberErrorEvent.d.ets +3 -1
- package/src/main/ets/modules/member/model/vo/PLVMemberListResponseData.d.ets +2 -0
- package/src/main/ets/modules/member/model/vo/PLVMemberSocketEvent.d.ets +2 -0
- package/src/main/ets/modules/member/viewmodel/PLVMemberViewModel.d.ets +5 -3
- package/src/main/ets/modules/member/viewmodel/usecase/MemberHandleStateUseCase.d.ets +8 -6
- package/src/main/ets/modules/member/viewmodel/usecase/MemberUpdateViewerUseCase.d.ets +11 -9
- package/src/main/ets/modules/member/viewmodel/usecase/PLVMemberUseCases.d.ets +3 -1
- package/src/main/ets/modules/member/viewmodel/usecase/roles/base/IMemberHandleStateUseCase.d.ets +2 -0
- package/src/main/ets/modules/member/viewmodel/usecase/roles/base/IMemberUpdateViewerUseCase.d.ets +2 -0
- package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestHandleStateUseCase.d.ets +8 -6
- package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestUpdateViewerUseCase.d.ets +11 -9
- package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherHandleStateUseCase.d.ets +8 -6
- package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherUpdateViewerUseCase.d.ets +11 -9
- package/src/main/ets/modules/net/PLVApiChatPlvNetApi.d.ets +12 -10
- package/src/main/ets/modules/net/PLVApiPlvNetApi.d.ets +32 -30
- package/src/main/ets/modules/net/PLVELogPlvNetApi.d.ets +4 -2
- package/src/main/ets/modules/net/PLVLiveImagesVideoNetApi.d.ets +5 -3
- package/src/main/ets/modules/net/PLVNGBPushApi.d.ets +4 -2
- package/src/main/ets/modules/net/PLVRtasVideoNetApi.d.ets +4 -2
- package/src/main/ets/modules/net/vo/PLVNetworkQuality.d.ets +2 -0
- package/src/main/ets/modules/net/vo/PLVNetworkStatistics.d.ets +2 -0
- package/src/main/ets/modules/player/PLVPlayerManager.d.ets +5 -3
- package/src/main/ets/modules/player/PLVPlayerMediator.d.ets +3 -1
- package/src/main/ets/modules/player/playback/PLVChapterDataVO.d.ets +2 -0
- package/src/main/ets/modules/player/playback/PLVPlaybackListType.d.ets +2 -0
- package/src/main/ets/modules/player/playback/PLVPreviousListVO.d.ets +2 -0
- package/src/main/ets/modules/player/playback/PLVPreviousManager.d.ets +7 -5
- package/src/main/ets/modules/ppt/PLVPPTWeb.d.ets +2 -0
- package/src/main/ets/modules/ppt/PLVPPTWebController.d.ets +8 -6
- package/src/main/ets/modules/ppt/model/PLVPPTSocketEvent.d.ets +2 -0
- package/src/main/ets/modules/ppt/model/PLVPPTStatus.d.ets +2 -0
- package/src/main/ets/modules/product/PLVProductManager.d.ets +7 -5
- package/src/main/ets/modules/product/components/PLVProductControlWeb.d.ets +3 -1
- package/src/main/ets/modules/product/components/PLVProductWeb.d.ets +3 -1
- package/src/main/ets/modules/product/model/PLVLocalProductClickEvent.d.ets +2 -0
- package/src/main/ets/modules/product/model/PLVProductClickTimesEvent.d.ets +2 -0
- package/src/main/ets/modules/product/model/PLVProductContentBean.d.ets +3 -1
- package/src/main/ets/modules/product/model/PLVProductControlEvent.d.ets +2 -0
- package/src/main/ets/modules/product/model/PLVProductDataBean.d.ets +3 -1
- package/src/main/ets/modules/product/model/PLVProductEvent.d.ets +2 -0
- package/src/main/ets/modules/product/model/PLVProductMenuSwitchEvent.d.ets +2 -0
- package/src/main/ets/modules/product/model/PLVProductMoveEvent.d.ets +2 -0
- package/src/main/ets/modules/product/model/PLVProductRemoveEvent.d.ets +2 -0
- package/src/main/ets/modules/redpack/PLVRedpackManager.d.ets +11 -9
- package/src/main/ets/modules/redpack/database/PLVRedpackCacheVO.d.ets +3 -1
- package/src/main/ets/modules/redpack/database/PLVRedpackLocalDataSource.d.ets +6 -4
- package/src/main/ets/modules/redpack/database/PLVRedpackOpenHelper.d.ets +6 -4
- package/src/main/ets/modules/reward/PLVRewardManager.d.ets +4 -2
- package/src/main/ets/modules/reward/model/PLVRewardPointVO.d.ets +3 -1
- package/src/main/ets/modules/reward/model/PLVRewardSettingVO.d.ets +2 -0
- package/src/main/ets/modules/socket/PLVSocketManager.d.ets +10 -8
- package/src/main/ets/modules/socket/PLVSocketMediator.d.ets +9 -7
- package/src/main/ets/modules/socket/model/PLVChatTokenVO.d.ets +2 -0
- package/src/main/ets/modules/socket/model/PLVKickEvent.d.ets +2 -0
- package/src/main/ets/modules/socket/model/PLVLocalLoginEvent.d.ets +2 -0
- package/src/main/ets/modules/socket/model/PLVLoginRefuseEvent.d.ets +2 -0
- package/src/main/ets/modules/socket/model/PLVOnSliceIDEvent.d.ets +2 -0
- package/src/main/ets/modules/socket/model/PLVReLoginEvent.d.ets +2 -0
- package/src/main/ets/modules/socket/model/PLVSocketEvent.d.ets +2 -0
- package/src/main/ets/modules/socket/model/PLVSocketEventConstants.d.ets +2 -0
- package/src/main/ets/modules/socket/model/PLVSocketUserBean.d.ets +7 -5
- package/src/main/ets/modules/socket/model/PLVUserConstants.d.ets +2 -0
- package/src/main/ets/modules/socket/model/PLVUserType.d.ets +2 -0
- package/src/main/ets/modules/socket/model/interact/PLVCallAppEvent.d.ets +2 -0
- package/src/main/ets/modules/socket/model/interact/PLVChangeRedpackStatusEvent.d.ets +2 -0
- package/src/main/ets/modules/socket/model/interact/PLVShowJobDetailEvent.d.ets +2 -0
- package/src/main/ets/modules/socket/model/interact/PLVUpdateChannelSwitchEvent.d.ets +2 -0
- package/src/main/ets/modules/socket/model/redpack/RedPaperReceiveType.d.ets +6 -4
- package/src/main/ets/modules/streamer/PLVStreamerManager.d.ets +10 -8
- package/src/main/ets/modules/streamer/di/PLVStreamerModule.d.ets +2 -0
- package/src/main/ets/modules/streamer/mediator/PLVStreamerMediator.d.ets +4 -2
- package/src/main/ets/modules/streamer/model/PLVStreamerRepo.d.ets +10 -8
- package/src/main/ets/modules/streamer/model/datasource/PLVStreamerLocalDataSource.d.ets +4 -2
- package/src/main/ets/modules/streamer/model/datasource/PLVStreamerNetworkDataSource.d.ets +9 -7
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerErrorEvent.d.ets +3 -1
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerMixActionResponse.d.ets +2 -0
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerMixActionVO.d.ets +2 -0
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerMixLayoutType.d.ets +2 -0
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerSessionIdQueryResponse.d.ets +2 -0
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerSocketEvent.d.ets +2 -0
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerState.d.ets +2 -0
- package/src/main/ets/modules/streamer/viewmodel/PLVStreamerViewModel.d.ets +10 -8
- package/src/main/ets/modules/streamer/viewmodel/usecase/PLVStreamerUseCases.d.ets +3 -1
- package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerHandleStateUseCase.d.ets +4 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerMixStreamUseCase.d.ets +4 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/base/IStreamerHandleStateUseCase.d.ets +2 -0
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/base/IStreamerMixStreamUseCase.d.ets +2 -0
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestHandleStateUseCase.d.ets +4 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestMixStreamUseCase.d.ets +4 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherHandleStateUseCase.d.ets +4 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherMixStreamUseCase.d.ets +4 -2
- package/src/main/ets/modules/web/PLVSocketWebController.d.ets +4 -2
- package/src/main/ets/modules/web/PLVWebControllerManager.d.ets +4 -2
- package/src/main/ets/modules/web/PLVWebParams.d.ets +3 -1
- package/src/main/ets/modules/web/qa/PLVQAWeb.d.ets +3 -1
- package/src/main/ets/modules/web/tuwen/PLVTuwenWeb.d.ets +3 -1
- package/src/main/module.json +1 -1
- package/BuildProfile.js +0 -10
- package/Index.js +0 -130
- package/src/main/ets/common/PLVBaseModule.js +0 -5
- package/src/main/ets/common/PLVChannelData.js +0 -132
- package/src/main/ets/common/PLVDataBaseModule.js +0 -9
- package/src/main/ets/common/PLVLiveSceneSDK.js +0 -136
- package/src/main/ets/modules/business/PLVBusinessApiManager.js +0 -51
- package/src/main/ets/modules/business/model/PLVGetPageViewerVO.js +0 -2
- package/src/main/ets/modules/business/model/PLVLiveChannelSettingUpdateRequestVO.js +0 -4
- package/src/main/ets/modules/business/model/PLVLiveViewLogVO.js +0 -7
- package/src/main/ets/modules/business/model/PLVReportPageViewerVO.js +0 -8
- package/src/main/ets/modules/chatroom/PLVChatroomManager.js +0 -482
- package/src/main/ets/modules/chatroom/handler/PLVChatroomBanIpMessageHandler.js +0 -18
- package/src/main/ets/modules/chatroom/handler/PLVChatroomBaseHandler.js +0 -15
- package/src/main/ets/modules/chatroom/handler/PLVChatroomCancelTopHandler.js +0 -13
- package/src/main/ets/modules/chatroom/handler/PLVChatroomCloseRoomMessageHandler.js +0 -15
- package/src/main/ets/modules/chatroom/handler/PLVChatroomDataHandlerFactory.js +0 -57
- package/src/main/ets/modules/chatroom/handler/PLVChatroomFocusModeHandler.js +0 -13
- package/src/main/ets/modules/chatroom/handler/PLVChatroomLikesMessageHandler.js +0 -15
- package/src/main/ets/modules/chatroom/handler/PLVChatroomLoginMessageHandler.js +0 -29
- package/src/main/ets/modules/chatroom/handler/PLVChatroomLogoutMessageHandler.js +0 -15
- package/src/main/ets/modules/chatroom/handler/PLVChatroomOnSliceIdMessageHandler.js +0 -21
- package/src/main/ets/modules/chatroom/handler/PLVChatroomToTopHandler.js +0 -13
- package/src/main/ets/modules/chatroom/handler/PLVChatroomUnShieldMessageHandler.js +0 -18
- package/src/main/ets/modules/chatroom/model/IPLVIdEvent.js +0 -35
- package/src/main/ets/modules/chatroom/model/IPLVTimestampEvent.js +0 -1
- package/src/main/ets/modules/chatroom/model/PLVBanIpEvent.js +0 -4
- package/src/main/ets/modules/chatroom/model/PLVBulletinEvent.js +0 -4
- package/src/main/ets/modules/chatroom/model/PLVCancelTopEvent.js +0 -4
- package/src/main/ets/modules/chatroom/model/PLVChatImageUploadTokenVO.js +0 -2
- package/src/main/ets/modules/chatroom/model/PLVChatImgContentBean.js +0 -26
- package/src/main/ets/modules/chatroom/model/PLVChatImgEvent.js +0 -38
- package/src/main/ets/modules/chatroom/model/PLVChatQuoteDataBean.js +0 -44
- package/src/main/ets/modules/chatroom/model/PLVCloseRoomEvent.js +0 -4
- package/src/main/ets/modules/chatroom/model/PLVEmotionEvent.js +0 -44
- package/src/main/ets/modules/chatroom/model/PLVEmotionImagesVO.js +0 -22
- package/src/main/ets/modules/chatroom/model/PLVFocusModeEvent.js +0 -7
- package/src/main/ets/modules/chatroom/model/PLVGetFullMessageAckBean.js +0 -9
- package/src/main/ets/modules/chatroom/model/PLVHistoryChatImgEvent.js +0 -36
- package/src/main/ets/modules/chatroom/model/PLVHistoryFileShareEvent.js +0 -44
- package/src/main/ets/modules/chatroom/model/PLVHistorySpeakEvent.js +0 -49
- package/src/main/ets/modules/chatroom/model/PLVHistroyQuizListVO.js +0 -15
- package/src/main/ets/modules/chatroom/model/PLVImageBean.js +0 -61
- package/src/main/ets/modules/chatroom/model/PLVLikesEvent.js +0 -19
- package/src/main/ets/modules/chatroom/model/PLVLocalQuizEvent.js +0 -26
- package/src/main/ets/modules/chatroom/model/PLVLocalSpeakEvent.js +0 -38
- package/src/main/ets/modules/chatroom/model/PLVLoginEvent.js +0 -5
- package/src/main/ets/modules/chatroom/model/PLVLogoutEvent.js +0 -4
- package/src/main/ets/modules/chatroom/model/PLVNotSupportEvent.js +0 -3
- package/src/main/ets/modules/chatroom/model/PLVPPTShareFileDataBean.js +0 -16
- package/src/main/ets/modules/chatroom/model/PLVRemoveBulletinEvent.js +0 -4
- package/src/main/ets/modules/chatroom/model/PLVRemoveContentEvent.js +0 -4
- package/src/main/ets/modules/chatroom/model/PLVRemoveHistoryEvent.js +0 -4
- package/src/main/ets/modules/chatroom/model/PLVRewardEvent.js +0 -41
- package/src/main/ets/modules/chatroom/model/PLVSpeakEvent.js +0 -64
- package/src/main/ets/modules/chatroom/model/PLVTAnswerEvent.js +0 -41
- package/src/main/ets/modules/chatroom/model/PLVToTopEvent.js +0 -11
- package/src/main/ets/modules/chatroom/model/PLVUnShieldEvent.js +0 -4
- package/src/main/ets/modules/chatroom/playback/PLVChatPlaybackManager.js +0 -263
- package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackDataVO.js +0 -130
- package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackOpenHelper.js +0 -48
- package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackPartVO.js +0 -2
- package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackToTopVO.js +0 -104
- package/src/main/ets/modules/i18n/PLVI18NDataMapper.js +0 -80
- package/src/main/ets/modules/i18n/PLVLanguageManager.js +0 -61
- package/src/main/ets/modules/interact/PLVInteractManager.js +0 -45
- package/src/main/ets/modules/interact/PLVInteractWeb.js +0 -362
- package/src/main/ets/modules/interact/invitePoster/PLVInteractInvitePoster.js +0 -55
- package/src/main/ets/modules/interact/invitePoster/model/PLVInvitePosterSettingVO.js +0 -4
- package/src/main/ets/modules/interact/lottery/PLVShowLotteryEvent.js +0 -5
- package/src/main/ets/modules/interact/model/PLVFunctionSwitchBean.js +0 -9
- package/src/main/ets/modules/interact/model/PLVInteractBean.js +0 -9
- package/src/main/ets/modules/interact/model/PLVWebviewUpdateAppStatusVO.js +0 -6
- package/src/main/ets/modules/interact/model/info/PLVInteractInfo.js +0 -4
- package/src/main/ets/modules/interact/pushcard/PLVPushCardManager.js +0 -50
- package/src/main/ets/modules/interact/pushcard/model/PLVCardPushVO.js +0 -11
- package/src/main/ets/modules/interact/pushcard/model/PLVNewsPushEvent.js +0 -5
- package/src/main/ets/modules/interact/pushcard/model/PLVShowPushCardEvent.js +0 -9
- package/src/main/ets/modules/interact/pushcard/repo/PLVCardLookTimeLocalRepository.js +0 -13
- package/src/main/ets/modules/interact/redpack/model/PLVDelayRedpackStatusVO.js +0 -2
- package/src/main/ets/modules/interact/redpack/model/PLVDelayRedpackVO.js +0 -5
- package/src/main/ets/modules/interact/redpack/model/PLVHistoryRedPaperEvent.js +0 -24
- package/src/main/ets/modules/interact/redpack/model/PLVRedPaperEvent.js +0 -54
- package/src/main/ets/modules/interact/redpack/model/PLVRedPaperForDelayEvent.js +0 -16
- package/src/main/ets/modules/interact/redpack/model/PLVRedPaperResultEvent.js +0 -29
- package/src/main/ets/modules/linkmic/PLVLinkMicManager.js +0 -116
- package/src/main/ets/modules/linkmic/di/PLVLinkMicModule.js +0 -25
- package/src/main/ets/modules/linkmic/mediator/PLVLinkMicMediator.js +0 -87
- package/src/main/ets/modules/linkmic/mediator/PLVLinkMicRTCEventCallback.js +0 -76
- package/src/main/ets/modules/linkmic/model/PLVLinkMicRepo.js +0 -155
- package/src/main/ets/modules/linkmic/model/datasource/PLVLinkMicNetworkDataSource.js +0 -110
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRate.js +0 -19
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRateEncodeParam.js +0 -34
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicCameraFacing.js +0 -14
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicChannelStatus.js +0 -8
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicErrorEvent.js +0 -9
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicInteractEvent.js +0 -6
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicMode.js +0 -5
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicPushResolutionRatio.js +0 -9
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicRTCEvent.js +0 -8
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicRTCType.js +0 -5
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicSocketEvent.js +0 -67
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicState.js +0 -8
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicTokenRequestStatisticsData.js +0 -21
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicVideoRenderParam.js +0 -6
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicViewer.js +0 -15
- package/src/main/ets/modules/linkmic/viewmodel/PLVLinkMicViewModel.js +0 -104
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicEncodeParamUseCase.js +0 -38
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleQueueOrderUseCase.js +0 -47
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleRTCUseCase.js +0 -70
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleStateUseCase.js +0 -92
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicUpdateChannelViewerUseCase.js +0 -247
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicViewLogUseCase.js +0 -79
- package/src/main/ets/modules/linkmic/viewmodel/usecase/PLVLinkMicUseCases.js +0 -17
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/base/ILinkMicEncodeParamUseCase.js +0 -1
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/base/ILinkMicHandleRTCUseCase.js +0 -1
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/base/ILinkMicHandleStateUseCase.js +0 -1
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestEncodeParamUseCase.js +0 -153
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleRTCUseCase.js +0 -91
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleStateUseCase.js +0 -392
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherEncodeParamUseCase.js +0 -153
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleRTCUseCase.js +0 -76
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleStateUseCase.js +0 -256
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerEncodeParamUseCase.js +0 -24
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleRTCUseCase.js +0 -106
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleStateUseCase.js +0 -376
- package/src/main/ets/modules/log/elog/PLVELogSender.js +0 -47
- package/src/main/ets/modules/log/elog/model/PLVELogDataBean.js +0 -40
- package/src/main/ets/modules/log/elog/model/PLVELogModuleConstants.js +0 -12
- package/src/main/ets/modules/login/PLVSceneLoginManager.js +0 -161
- package/src/main/ets/modules/login/model/PLVChatDomainVO.js +0 -39
- package/src/main/ets/modules/login/model/PLVChatFunctionSwitchVO.js +0 -2
- package/src/main/ets/modules/login/model/PLVLiveChannelType.js +0 -27
- package/src/main/ets/modules/login/model/PLVLiveDetailVO.js +0 -61
- package/src/main/ets/modules/login/model/PLVLiveStatus.js +0 -26
- package/src/main/ets/modules/login/model/PLVLiveStatusVO.js +0 -26
- package/src/main/ets/modules/login/model/PLVLoginLiveResult.js +0 -7
- package/src/main/ets/modules/login/model/PLVLoginPlaybackResult.js +0 -11
- package/src/main/ets/modules/login/model/PLVLoginStreamerVO.js +0 -18
- package/src/main/ets/modules/login/model/PLVLoginType.js +0 -41
- package/src/main/ets/modules/member/PLVMemberManager.js +0 -34
- package/src/main/ets/modules/member/di/PLVMemberModule.js +0 -19
- package/src/main/ets/modules/member/mediator/PLVMemberMediator.js +0 -37
- package/src/main/ets/modules/member/model/PLVMemberRepo.js +0 -12
- package/src/main/ets/modules/member/model/datasource/PLVMemberNetworkDataSource.js +0 -21
- package/src/main/ets/modules/member/model/vo/PLVMemberChannelViewer.js +0 -12
- package/src/main/ets/modules/member/model/vo/PLVMemberErrorEvent.js +0 -8
- package/src/main/ets/modules/member/model/vo/PLVMemberListResponseData.js +0 -8
- package/src/main/ets/modules/member/model/vo/PLVMemberSocketEvent.js +0 -28
- package/src/main/ets/modules/member/viewmodel/PLVMemberViewModel.js +0 -33
- package/src/main/ets/modules/member/viewmodel/usecase/MemberHandleStateUseCase.js +0 -40
- package/src/main/ets/modules/member/viewmodel/usecase/MemberUpdateViewerUseCase.js +0 -56
- package/src/main/ets/modules/member/viewmodel/usecase/PLVMemberUseCases.js +0 -10
- package/src/main/ets/modules/member/viewmodel/usecase/roles/base/IMemberHandleStateUseCase.js +0 -1
- package/src/main/ets/modules/member/viewmodel/usecase/roles/base/IMemberUpdateViewerUseCase.js +0 -2
- package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestHandleStateUseCase.js +0 -146
- package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestUpdateViewerUseCase.js +0 -344
- package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherHandleStateUseCase.js +0 -252
- package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherUpdateViewerUseCase.js +0 -344
- package/src/main/ets/modules/net/PLVApiChatPlvNetApi.js +0 -124
- package/src/main/ets/modules/net/PLVApiPlvNetApi.js +0 -454
- package/src/main/ets/modules/net/PLVELogPlvNetApi.js +0 -23
- package/src/main/ets/modules/net/PLVLiveImagesVideoNetApi.js +0 -44
- package/src/main/ets/modules/net/PLVNGBPushApi.js +0 -20
- package/src/main/ets/modules/net/PLVRtasVideoNetApi.js +0 -17
- package/src/main/ets/modules/net/vo/PLVNetworkQuality.js +0 -10
- package/src/main/ets/modules/net/vo/PLVNetworkStatistics.js +0 -8
- package/src/main/ets/modules/player/PLVPlayerManager.js +0 -72
- package/src/main/ets/modules/player/PLVPlayerMediator.js +0 -38
- package/src/main/ets/modules/player/playback/PLVChapterDataVO.js +0 -2
- package/src/main/ets/modules/player/playback/PLVPlaybackListType.js +0 -6
- package/src/main/ets/modules/player/playback/PLVPreviousListVO.js +0 -21
- package/src/main/ets/modules/player/playback/PLVPreviousManager.js +0 -164
- package/src/main/ets/modules/ppt/PLVPPTWeb.js +0 -95
- package/src/main/ets/modules/ppt/PLVPPTWebController.js +0 -220
- package/src/main/ets/modules/ppt/model/PLVPPTSocketEvent.js +0 -7
- package/src/main/ets/modules/ppt/model/PLVPPTStatus.js +0 -2
- package/src/main/ets/modules/product/PLVProductManager.js +0 -164
- package/src/main/ets/modules/product/components/PLVProductControlWeb.js +0 -116
- package/src/main/ets/modules/product/components/PLVProductWeb.js +0 -151
- package/src/main/ets/modules/product/model/PLVLocalProductClickEvent.js +0 -6
- package/src/main/ets/modules/product/model/PLVProductClickTimesEvent.js +0 -4
- package/src/main/ets/modules/product/model/PLVProductContentBean.js +0 -77
- package/src/main/ets/modules/product/model/PLVProductControlEvent.js +0 -35
- package/src/main/ets/modules/product/model/PLVProductDataBean.js +0 -36
- package/src/main/ets/modules/product/model/PLVProductEvent.js +0 -46
- package/src/main/ets/modules/product/model/PLVProductMenuSwitchEvent.js +0 -4
- package/src/main/ets/modules/product/model/PLVProductMoveEvent.js +0 -10
- package/src/main/ets/modules/product/model/PLVProductRemoveEvent.js +0 -4
- package/src/main/ets/modules/redpack/PLVRedpackManager.js +0 -128
- package/src/main/ets/modules/redpack/database/PLVRedpackCacheVO.js +0 -47
- package/src/main/ets/modules/redpack/database/PLVRedpackLocalDataSource.js +0 -60
- package/src/main/ets/modules/redpack/database/PLVRedpackOpenHelper.js +0 -15
- package/src/main/ets/modules/reward/PLVRewardManager.js +0 -50
- package/src/main/ets/modules/reward/model/PLVRewardPointVO.js +0 -8
- package/src/main/ets/modules/reward/model/PLVRewardSettingVO.js +0 -83
- package/src/main/ets/modules/socket/PLVSocketManager.js +0 -230
- package/src/main/ets/modules/socket/PLVSocketMediator.js +0 -26
- package/src/main/ets/modules/socket/model/PLVChatTokenVO.js +0 -5
- package/src/main/ets/modules/socket/model/PLVKickEvent.js +0 -4
- package/src/main/ets/modules/socket/model/PLVLocalLoginEvent.js +0 -7
- package/src/main/ets/modules/socket/model/PLVLoginRefuseEvent.js +0 -4
- package/src/main/ets/modules/socket/model/PLVOnSliceIDEvent.js +0 -7
- package/src/main/ets/modules/socket/model/PLVReLoginEvent.js +0 -4
- package/src/main/ets/modules/socket/model/PLVSocketEvent.js +0 -4
- package/src/main/ets/modules/socket/model/PLVSocketEventConstants.js +0 -97
- package/src/main/ets/modules/socket/model/PLVSocketUserBean.js +0 -89
- package/src/main/ets/modules/socket/model/PLVUserConstants.js +0 -3
- package/src/main/ets/modules/socket/model/PLVUserType.js +0 -19
- package/src/main/ets/modules/socket/model/interact/PLVCallAppEvent.js +0 -41
- package/src/main/ets/modules/socket/model/interact/PLVChangeRedpackStatusEvent.js +0 -8
- package/src/main/ets/modules/socket/model/interact/PLVShowJobDetailEvent.js +0 -5
- package/src/main/ets/modules/socket/model/interact/PLVUpdateChannelSwitchEvent.js +0 -6
- package/src/main/ets/modules/socket/model/redpack/RedPaperReceiveType.js +0 -57
- package/src/main/ets/modules/streamer/PLVStreamerManager.js +0 -58
- package/src/main/ets/modules/streamer/di/PLVStreamerModule.js +0 -19
- package/src/main/ets/modules/streamer/mediator/PLVStreamerMediator.js +0 -25
- package/src/main/ets/modules/streamer/model/PLVStreamerRepo.js +0 -58
- package/src/main/ets/modules/streamer/model/datasource/PLVStreamerLocalDataSource.js +0 -17
- package/src/main/ets/modules/streamer/model/datasource/PLVStreamerNetworkDataSource.js +0 -65
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerErrorEvent.js +0 -10
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerLiveStatusResponseVO.js +0 -2
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerMixActionResponse.js +0 -2
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerMixActionVO.js +0 -40
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerMixLayoutType.js +0 -6
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerSessionIdQueryResponse.js +0 -2
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerSocketEvent.js +0 -21
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerState.js +0 -6
- package/src/main/ets/modules/streamer/viewmodel/PLVStreamerViewModel.js +0 -53
- package/src/main/ets/modules/streamer/viewmodel/usecase/PLVStreamerUseCases.js +0 -10
- package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerHandleStateUseCase.js +0 -31
- package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerMixStreamUseCase.js +0 -30
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/base/IStreamerHandleStateUseCase.js +0 -1
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/base/IStreamerMixStreamUseCase.js +0 -1
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestHandleStateUseCase.js +0 -112
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestMixStreamUseCase.js +0 -13
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherHandleStateUseCase.js +0 -75
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherMixStreamUseCase.js +0 -133
- package/src/main/ets/modules/web/PLVSocketWebController.js +0 -158
- package/src/main/ets/modules/web/PLVWebControllerManager.js +0 -19
- package/src/main/ets/modules/web/PLVWebParams.js +0 -36
- package/src/main/ets/modules/web/qa/PLVQAWeb.js +0 -118
- package/src/main/ets/modules/web/tuwen/PLVTuwenWeb.js +0 -127
|
@@ -1,376 +0,0 @@
|
|
|
1
|
-
import { PLVDisposable, PLVLogger, PLVScheduledTask } from '@polyvharmony/live-scenes-foundation';
|
|
2
|
-
import { decodeFromJson, encodeToJson, isNullOrUndefined, MutableObserver, requireNotNull, runCatching, seconds } from '@polyvharmony/media-player-sdk';
|
|
3
|
-
import { PLVSocketMessageEvent, PLVSocketOnEvent } from '../../../../../socket/model/PLVSocketEventConstants';
|
|
4
|
-
import { PLVUserType } from '../../../../../socket/model/PLVUserType';
|
|
5
|
-
import { PLVLinkMicErrorEvent } from '../../../../model/vo/PLVLinkMicErrorEvent';
|
|
6
|
-
import { PLVLinkMicMode } from '../../../../model/vo/PLVLinkMicMode';
|
|
7
|
-
import { PLVLinkMicRTCJoinSuccess, PLVLinkMicRTCKickOut } from '../../../../model/vo/PLVLinkMicRTCEvent';
|
|
8
|
-
import { PLVLinkMicSocketJoinAnswerSend, PLVLinkMicSocketJoinAnswerTTLAck, PLVLinkMicSocketJoinAnswerTTLSend, PLVLinkMicSocketJoinLeaveRecv, PLVLinkMicSocketJoinLeaveSend, PLVLinkMicSocketJoinRequestRecv, PLVLinkMicSocketJoinRequestSend, PLVLinkMicSocketJoinResponseRecv, PLVLinkMicSocketJoinSuccessRecv, PLVLinkMicSocketJoinSuccessSend, PLVLinkMicSocketMicSettingAck, PLVLinkMicSocketMicSettingSend, PLVLinkMicSocketMuteUserMicroRecv, PLVLinkMicSocketOpenMicrophoneRecv, PLVLinkMicSocketSwitchViewRecv } from '../../../../model/vo/PLVLinkMicSocketEvent';
|
|
9
|
-
import { PLVLinkMicState } from '../../../../model/vo/PLVLinkMicState';
|
|
10
|
-
import { PLVSocketUserSend } from '../../../../../socket/model/PLVSocketUserBean';
|
|
11
|
-
import { PLVMemberSocketSetNickRecv } from '../../../../../member/model/vo/PLVMemberSocketEvent';
|
|
12
|
-
const TAG = "PLVLinkMicManager";
|
|
13
|
-
export class LinkMicViewerHandleStateUseCase {
|
|
14
|
-
constructor(d52, e52, f52, g52) {
|
|
15
|
-
this.taskUpdateMicSetting = undefined;
|
|
16
|
-
this.disposables = [];
|
|
17
|
-
this.observers = [];
|
|
18
|
-
this.repo = d52;
|
|
19
|
-
this.handleQueueOrderUseCase = e52;
|
|
20
|
-
this.handleRTCUseCase = f52;
|
|
21
|
-
this.updateChannelViewerUseCase = g52;
|
|
22
|
-
}
|
|
23
|
-
init() {
|
|
24
|
-
this.disposables.push(this.observeSocketEvent(PLVSocketOnEvent.MESSAGE, (b52, c52) => this.onSocketMessage(b52, c52)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_REQUEST, (a52) => this.onSocketJoinRequest(a52)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_RESPONSE, (z51) => this.onSocketJoinResponse(z51)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_SUCCESS, (y51) => this.onSocketJoinSuccess(y51)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_LEAVE, (x51) => this.onSocketJoinLeave(x51)), this.observeSocketEvent(PLVSocketOnEvent.SWITCH_VIEW, (w51) => this.onSocketSwitchView(w51)));
|
|
25
|
-
this.repo.mediator.rtcEvent.observe((v51) => this.onRTCEvent(v51))
|
|
26
|
-
.pushTo(this.observers);
|
|
27
|
-
this.repo.mediator.viewerLeaveLinkMicEvent.observe(u51 => this.onViewerLeaveLinkMic(u51))
|
|
28
|
-
.pushTo(this.observers);
|
|
29
|
-
this.taskUpdateMicSetting = new PLVScheduledTask(() => this.updateMicSetting(), seconds(1).toMillis(), seconds(10).toMillis());
|
|
30
|
-
this.taskUpdateMicSetting.start();
|
|
31
|
-
}
|
|
32
|
-
async requestJoinLinkMic() {
|
|
33
|
-
const s51 = this.repo.mediator.linkmicState.value;
|
|
34
|
-
if (s51 === PLVLinkMicState.Inviting) {
|
|
35
|
-
this.acceptInvitation();
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
if (await this.isChannelReachLinkMicLimit()) {
|
|
39
|
-
this.repo.mediator.linkmicState.setValue(PLVLinkMicState.NoLinkMic);
|
|
40
|
-
this.repo.mediator.reportError(PLVLinkMicErrorEvent.REACH_LINKMIC_LIMIT, "requestJoinLinkMic channel reach linkmic limit");
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
const t51 = new PLVLinkMicSocketJoinRequestSend();
|
|
44
|
-
t51.user = this.createSocketUser();
|
|
45
|
-
t51.roomId = this.repo.mediator.channelData?.loginChannelId;
|
|
46
|
-
this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_REQUEST, encodeToJson(t51), () => {
|
|
47
|
-
this.repo.mediator.linkmicState.setValue(PLVLinkMicState.Requesting);
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
async acceptInvitation() {
|
|
51
|
-
if (await this.isChannelReachLinkMicLimit()) {
|
|
52
|
-
this.repo.mediator.linkmicState.setValue(PLVLinkMicState.NoLinkMic);
|
|
53
|
-
this.repo.mediator.reportError(PLVLinkMicErrorEvent.REACH_LINKMIC_LIMIT, "acceptInvitation channel reach linkmic limit");
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
const q51 = new PLVLinkMicSocketJoinAnswerSend();
|
|
57
|
-
q51.user = this.createSocketUser();
|
|
58
|
-
q51.roomId = this.repo.mediator.channelData?.loginChannelId;
|
|
59
|
-
q51.status = 1;
|
|
60
|
-
this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_ANSWER, encodeToJson(q51), () => {
|
|
61
|
-
const r51 = this.repo.mediator.linkmicState.value;
|
|
62
|
-
if (r51 === PLVLinkMicState.Inviting) {
|
|
63
|
-
this.repo.mediator.linkmicState.setValue(PLVLinkMicState.WaitingResponse);
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
refuseInvitation() {
|
|
68
|
-
const p51 = new PLVLinkMicSocketJoinAnswerSend();
|
|
69
|
-
p51.user = this.createSocketUser();
|
|
70
|
-
p51.roomId = this.repo.mediator.channelData?.loginChannelId;
|
|
71
|
-
p51.status = 0;
|
|
72
|
-
this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_ANSWER, encodeToJson(p51));
|
|
73
|
-
this.repo.mediator.linkmicState.setValue(PLVLinkMicState.NoLinkMic);
|
|
74
|
-
this.handleRTCUseCase.leaveChannel();
|
|
75
|
-
}
|
|
76
|
-
leaveLinkMic() {
|
|
77
|
-
const n51 = this.repo.mediator.linkmicState.value;
|
|
78
|
-
if (n51 === undefined || ![PLVLinkMicState.Requesting, PLVLinkMicState.Joined].includes(n51)) {
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
const o51 = new PLVLinkMicSocketJoinLeaveSend();
|
|
82
|
-
o51.user = this.createSocketUser();
|
|
83
|
-
o51.roomId = this.repo.mediator.channelData?.loginChannelId;
|
|
84
|
-
this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_LEAVE, encodeToJson(o51));
|
|
85
|
-
this.repo.mediator.linkmicState.setValue(PLVLinkMicState.NoLinkMic);
|
|
86
|
-
this.repo.mediator.channelLinkMicViewers.setValue([]);
|
|
87
|
-
this.repo.mediator.channelMainViewLinkMicId.setValue(undefined);
|
|
88
|
-
this.handleRTCUseCase.leaveChannel();
|
|
89
|
-
}
|
|
90
|
-
onStreamerStart() {
|
|
91
|
-
}
|
|
92
|
-
onLiveStreamStart() {
|
|
93
|
-
}
|
|
94
|
-
async setLinkMicMode(m51) {
|
|
95
|
-
return false;
|
|
96
|
-
}
|
|
97
|
-
async openLinkMic() {
|
|
98
|
-
return false;
|
|
99
|
-
}
|
|
100
|
-
async closeLinkMic() {
|
|
101
|
-
return false;
|
|
102
|
-
}
|
|
103
|
-
acceptViewerLinkMicRequest(l51) {
|
|
104
|
-
}
|
|
105
|
-
inviteViewerLinkMic(j51, k51) {
|
|
106
|
-
}
|
|
107
|
-
hangupViewerLinkMic(i51) {
|
|
108
|
-
}
|
|
109
|
-
hangupAllViewersLinkMic() {
|
|
110
|
-
}
|
|
111
|
-
setViewerEnableCamera(g51, h51) {
|
|
112
|
-
}
|
|
113
|
-
setViewerEnableMicrophone(e51, f51) {
|
|
114
|
-
}
|
|
115
|
-
grantSpeaker(d51) {
|
|
116
|
-
}
|
|
117
|
-
revokeSpeaker(c51) {
|
|
118
|
-
}
|
|
119
|
-
setMainView(b51) {
|
|
120
|
-
}
|
|
121
|
-
onLiveStreamStop() {
|
|
122
|
-
}
|
|
123
|
-
onStreamerStop() {
|
|
124
|
-
}
|
|
125
|
-
updateInvitationExpireTime() {
|
|
126
|
-
const t50 = new PLVLinkMicSocketJoinAnswerTTLSend();
|
|
127
|
-
t50.userId = this.repo.mediator.channelData?.viewerId;
|
|
128
|
-
t50.roomId = this.repo.mediator.channelData?.loginChannelId;
|
|
129
|
-
t50.sessionId = this.repo.mediator.channelData?.sessionId;
|
|
130
|
-
const u50 = Date.now();
|
|
131
|
-
this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_ANSWER_TTL, encodeToJson(t50), (v50) => {
|
|
132
|
-
const w50 = decodeFromJson(v50, PLVLinkMicSocketJoinAnswerTTLAck).message?.[0] ?? 0;
|
|
133
|
-
const x50 = u50 + seconds(w50).toMillis();
|
|
134
|
-
this.repo.mediator.invitationExpireTimestamp.setValue(x50);
|
|
135
|
-
const y50 = x50 - Date.now();
|
|
136
|
-
setTimeout(() => {
|
|
137
|
-
const z50 = this.repo.mediator.invitationExpireTimestamp.value ?? 0;
|
|
138
|
-
const a51 = this.repo.mediator.linkmicState.value;
|
|
139
|
-
if (a51 === PLVLinkMicState.Inviting && Date.now() >= z50) {
|
|
140
|
-
this.refuseInvitation();
|
|
141
|
-
}
|
|
142
|
-
}, y50);
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
onSocketMessage(r50, s50) {
|
|
146
|
-
switch (s50) {
|
|
147
|
-
case PLVSocketMessageEvent.OPEN_MICROPHONE:
|
|
148
|
-
return this.onSocketOpenMicrophone(r50);
|
|
149
|
-
case PLVSocketMessageEvent.MUTE_USER_MICRO:
|
|
150
|
-
return this.onSocketMuteUserMicro(r50);
|
|
151
|
-
case PLVSocketMessageEvent.SET_NICK:
|
|
152
|
-
return this.onSocketUserSetNick(r50);
|
|
153
|
-
default:
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
onSocketOpenMicrophone(n50) {
|
|
157
|
-
const o50 = decodeFromJson(n50, PLVLinkMicSocketOpenMicrophoneRecv);
|
|
158
|
-
const p50 = o50.userId !== undefined;
|
|
159
|
-
if (o50.status === 'open') {
|
|
160
|
-
if (!p50) {
|
|
161
|
-
this.repo.mediator.channelAllowLinkMic.setValue(true);
|
|
162
|
-
this.repo.mediator.channelAllowRequestHandsUpLinkMic.setValue(true);
|
|
163
|
-
this.updateLinkMicMode(o50.type);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
else if (o50.status === 'close') {
|
|
167
|
-
if (!p50) {
|
|
168
|
-
if (this.repo.mediator.isLinkMicStrategyV2.value === true) {
|
|
169
|
-
this.repo.mediator.channelAllowRequestHandsUpLinkMic.setValue(false);
|
|
170
|
-
const q50 = this.repo.mediator.linkmicState.value === PLVLinkMicState.Requesting;
|
|
171
|
-
if (q50) {
|
|
172
|
-
this.leaveLinkMic();
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
else {
|
|
176
|
-
this.repo.mediator.channelAllowLinkMic.setValue(false);
|
|
177
|
-
this.repo.mediator.channelAllowRequestHandsUpLinkMic.setValue(false);
|
|
178
|
-
this.leaveLinkMic();
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
if (p50 && this.repo.mediator.isMySocketLinkMicId(o50.userId)) {
|
|
182
|
-
this.repo.mediator.teacherHangUpLinkMicEvent.setValue(Date.now());
|
|
183
|
-
this.leaveLinkMic();
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
onSocketMuteUserMicro(l50) {
|
|
188
|
-
const m50 = decodeFromJson(l50, PLVLinkMicSocketMuteUserMicroRecv);
|
|
189
|
-
if (m50.type === 'audio') {
|
|
190
|
-
if (m50.mute === true) {
|
|
191
|
-
this.handleRTCUseCase.enableMicrophone(false);
|
|
192
|
-
}
|
|
193
|
-
if (m50.mute === false) {
|
|
194
|
-
this.handleRTCUseCase.enableMicrophone(true);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
if (m50.type === 'video') {
|
|
198
|
-
if (m50.mute === true) {
|
|
199
|
-
this.handleRTCUseCase.enableCamera(false);
|
|
200
|
-
}
|
|
201
|
-
if (m50.mute === false) {
|
|
202
|
-
this.handleRTCUseCase.enableCamera(true);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
onSocketUserSetNick(h50) {
|
|
207
|
-
const i50 = decodeFromJson(h50, PLVMemberSocketSetNickRecv);
|
|
208
|
-
const j50 = i50.userId;
|
|
209
|
-
const k50 = this.repo.mediator.findViewerByViewerId(j50);
|
|
210
|
-
if (k50 !== undefined) {
|
|
211
|
-
k50.viewerName.setValue(i50.nick);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
onSocketJoinRequest(f50) {
|
|
215
|
-
const g50 = decodeFromJson(f50, PLVLinkMicSocketJoinRequestRecv);
|
|
216
|
-
this.handleQueueOrderUseCase.onEventJoinRequest(g50);
|
|
217
|
-
}
|
|
218
|
-
onSocketJoinResponse(c50) {
|
|
219
|
-
const d50 = decodeFromJson(c50, PLVLinkMicSocketJoinResponseRecv);
|
|
220
|
-
if (!this.repo.mediator.isMySocketLinkMicId(d50.user?.userId)) {
|
|
221
|
-
return;
|
|
222
|
-
}
|
|
223
|
-
this.updateLinkMicMode(d50.type);
|
|
224
|
-
const e50 = this.repo.mediator.linkmicState.value;
|
|
225
|
-
if (d50.isNeedAnswer()) {
|
|
226
|
-
if (e50 === PLVLinkMicState.Requesting) {
|
|
227
|
-
this.acceptInvitation();
|
|
228
|
-
}
|
|
229
|
-
else if (e50 === PLVLinkMicState.NoLinkMic) {
|
|
230
|
-
this.repo.mediator.invitationExpireTimestamp.setValue(Date.now() + seconds(30).toMillis());
|
|
231
|
-
this.repo.mediator.linkmicState.setValue(PLVLinkMicState.Inviting);
|
|
232
|
-
this.updateInvitationExpireTime();
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
else {
|
|
236
|
-
this.repo.mediator.linkmicState.setValue(PLVLinkMicState.Joined);
|
|
237
|
-
this.handleRTCUseCase.joinChannel();
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
onSocketJoinSuccess(a50) {
|
|
241
|
-
const b50 = decodeFromJson(a50, PLVLinkMicSocketJoinSuccessRecv);
|
|
242
|
-
this.handleQueueOrderUseCase.onEventJoinSuccess(b50);
|
|
243
|
-
this.updateChannelViewerUseCase.onEventJoinSuccess(b50);
|
|
244
|
-
if (this.repo.mediator.isMySocketLinkMicId(b50.user?.userId)) {
|
|
245
|
-
this.updateChannelViewerUseCase.startUpdateChannelLinkMicViewersInterval();
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
onSocketJoinLeave(y49) {
|
|
249
|
-
const z49 = decodeFromJson(y49, PLVLinkMicSocketJoinLeaveRecv);
|
|
250
|
-
this.handleQueueOrderUseCase.onEventJoinLeave(z49);
|
|
251
|
-
this.updateChannelViewerUseCase.onEventJoinLeave(z49);
|
|
252
|
-
if (this.repo.mediator.isMySocketLinkMicId(z49.user?.userId)) {
|
|
253
|
-
this.updateChannelViewerUseCase.stopUpdateChannelLinkMicViewersInterval();
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
onSocketSwitchView(w49) {
|
|
257
|
-
const x49 = decodeFromJson(w49, PLVLinkMicSocketSwitchViewRecv);
|
|
258
|
-
if (isNullOrUndefined(x49.userId)) {
|
|
259
|
-
return;
|
|
260
|
-
}
|
|
261
|
-
this.repo.mediator.channelMainViewLinkMicId.setValue(x49.userId);
|
|
262
|
-
this.updateChannelViewerUseCase.onEventSwitchView(x49);
|
|
263
|
-
}
|
|
264
|
-
updateMicSetting() {
|
|
265
|
-
this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.MIC, encodeToJson(new PLVLinkMicSocketMicSettingSend()), (s49) => {
|
|
266
|
-
const t49 = decodeFromJson(s49, PLVLinkMicSocketMicSettingAck).message?.[0];
|
|
267
|
-
const u49 = t49?.data?.status;
|
|
268
|
-
const v49 = t49?.data?.type;
|
|
269
|
-
if (u49 === 'open') {
|
|
270
|
-
this.repo.mediator.channelAllowLinkMic.setValue(true);
|
|
271
|
-
this.repo.mediator.channelAllowRequestHandsUpLinkMic.setValue(true);
|
|
272
|
-
}
|
|
273
|
-
else if (u49 === 'close') {
|
|
274
|
-
if (this.repo.mediator.isLinkMicStrategyV2.value === true) {
|
|
275
|
-
this.repo.mediator.channelAllowLinkMic.setValue(true);
|
|
276
|
-
this.repo.mediator.channelAllowRequestHandsUpLinkMic.setValue(false);
|
|
277
|
-
}
|
|
278
|
-
else {
|
|
279
|
-
this.repo.mediator.channelAllowLinkMic.setValue(false);
|
|
280
|
-
this.repo.mediator.channelAllowRequestHandsUpLinkMic.setValue(false);
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
this.updateLinkMicMode(v49);
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
onRTCEvent(r49) {
|
|
287
|
-
if (r49 instanceof PLVLinkMicRTCJoinSuccess) {
|
|
288
|
-
this.onRTCJoinSuccess(r49);
|
|
289
|
-
}
|
|
290
|
-
else if (r49 instanceof PLVLinkMicRTCKickOut) {
|
|
291
|
-
this.onRTCKickOut(r49);
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
onRTCJoinSuccess(p49) {
|
|
295
|
-
this.repo.sendLinkMicIdRelation();
|
|
296
|
-
const q49 = new PLVLinkMicSocketJoinSuccessSend();
|
|
297
|
-
q49.user = this.createSocketUser();
|
|
298
|
-
q49.roomId = this.repo.mediator.channelData?.loginChannelId;
|
|
299
|
-
q49.sessionId = this.repo.mediator.channelData?.sessionId;
|
|
300
|
-
this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_SUCCESS, encodeToJson(q49));
|
|
301
|
-
}
|
|
302
|
-
onRTCKickOut(o49) {
|
|
303
|
-
this.leaveLinkMic();
|
|
304
|
-
this.repo.mediator.teacherHangUpLinkMicEvent.setValue(Date.now());
|
|
305
|
-
}
|
|
306
|
-
onViewerLeaveLinkMic(k49) {
|
|
307
|
-
const l49 = k49.find(n49 => n49.linkmicId === this.repo.mediator.linkmicId) !== undefined;
|
|
308
|
-
const m49 = this.repo.mediator.linkmicState.value === PLVLinkMicState.Joined;
|
|
309
|
-
if (l49 && m49) {
|
|
310
|
-
this.leaveLinkMic();
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
onDestroy() {
|
|
314
|
-
this.taskUpdateMicSetting?.cancel();
|
|
315
|
-
this.taskUpdateMicSetting = undefined;
|
|
316
|
-
this.disposables.forEach((j49) => {
|
|
317
|
-
j49.dispose();
|
|
318
|
-
});
|
|
319
|
-
this.disposables = [];
|
|
320
|
-
MutableObserver.disposeAll(this.observers);
|
|
321
|
-
this.observers = [];
|
|
322
|
-
}
|
|
323
|
-
observeSocketEvent(g49, h49) {
|
|
324
|
-
const i49 = requireNotNull(this.repo.mediator.socketMediator);
|
|
325
|
-
i49.onData(g49, h49);
|
|
326
|
-
return disposable(() => i49.offData(g49, h49));
|
|
327
|
-
}
|
|
328
|
-
createSocketUser() {
|
|
329
|
-
const f49 = new PLVSocketUserSend();
|
|
330
|
-
f49.nick = this.repo.mediator.channelData?.viewerName;
|
|
331
|
-
f49.pic = this.repo.mediator.channelData?.viewerAvatar;
|
|
332
|
-
f49.userType = this.repo.mediator.channelData?.viewerType;
|
|
333
|
-
f49.userId = this.repo.mediator.linkmicId;
|
|
334
|
-
return f49;
|
|
335
|
-
}
|
|
336
|
-
updateLinkMicMode(e49) {
|
|
337
|
-
if (e49 === PLVLinkMicMode.AUDIO || e49 === PLVLinkMicMode.VIDEO) {
|
|
338
|
-
this.repo.mediator.channelLinkMicMode.setValue(e49);
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
async isChannelReachLinkMicLimit() {
|
|
342
|
-
const a49 = this.repo.mediator.channelData?.liveDetail?.linkMicLimit;
|
|
343
|
-
if (a49 === undefined) {
|
|
344
|
-
PLVLogger.warn(TAG, "channel linkmic limit is undefined, treat as reach limit.");
|
|
345
|
-
return true;
|
|
346
|
-
}
|
|
347
|
-
const b49 = await runCatching(this.repo.getChannelLinkMicStatus());
|
|
348
|
-
if (b49.success === false) {
|
|
349
|
-
PLVLogger.warn(TAG, `channel linkmic status response fail: ${b49.error.message}`);
|
|
350
|
-
return true;
|
|
351
|
-
}
|
|
352
|
-
const c49 = b49.data.joinList?.filter(d49 => {
|
|
353
|
-
d49.userType === PLVUserType.USERTYPE_TEACHER || d49.classStatus?.voice === 1;
|
|
354
|
-
})?.length ?? 0;
|
|
355
|
-
if (c49 >= a49 + 1) {
|
|
356
|
-
PLVLogger.warn(TAG, `channel reach linkmic limit, current join ${c49}, limit ${a49}`);
|
|
357
|
-
return true;
|
|
358
|
-
}
|
|
359
|
-
else {
|
|
360
|
-
return false;
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
class SocketDisposable extends PLVDisposable {
|
|
365
|
-
constructor(z48) {
|
|
366
|
-
super();
|
|
367
|
-
this.onDispose = z48;
|
|
368
|
-
}
|
|
369
|
-
dispose() {
|
|
370
|
-
super.dispose();
|
|
371
|
-
this.onDispose?.();
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
function disposable(y48) {
|
|
375
|
-
return new SocketDisposable(y48);
|
|
376
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { PLVJSONUtils, PLVLogger, PLVUtils } from '@polyvharmony/live-scenes-foundation';
|
|
2
|
-
import { PLVBaseModule } from '../../../common/PLVBaseModule';
|
|
3
|
-
import { eLogPlvNetApi } from '../../net/PLVELogPlvNetApi';
|
|
4
|
-
import { toELogData } from './model/PLVELogDataBean';
|
|
5
|
-
const TAG = '[PLVELogSender]';
|
|
6
|
-
const BATCH_INTERVAL = 1000 * 60;
|
|
7
|
-
const BATCH_LENGTH = 20;
|
|
8
|
-
export function eLogSender(v52) {
|
|
9
|
-
return new PLVELogSender(v52);
|
|
10
|
-
}
|
|
11
|
-
export class PLVELogSender extends PLVBaseModule {
|
|
12
|
-
constructor(u52) {
|
|
13
|
-
super(u52);
|
|
14
|
-
if (PLVELogSender.batchIntervalId == undefined) {
|
|
15
|
-
PLVELogSender.batchIntervalId = setInterval(() => {
|
|
16
|
-
if (PLVELogSender.LOG_ARR.length > 0) {
|
|
17
|
-
this.reportLiveELog(PLVELogSender.LOG_ARR);
|
|
18
|
-
PLVELogSender.LOG_ARR.length = 0;
|
|
19
|
-
}
|
|
20
|
-
}, BATCH_INTERVAL);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
once(t52) {
|
|
24
|
-
this.reportLiveELog([toELogData(this.channelData, t52)]);
|
|
25
|
-
}
|
|
26
|
-
batch(r52) {
|
|
27
|
-
const s52 = toELogData(this.channelData, r52);
|
|
28
|
-
PLVELogSender.LOG_ARR.push(s52);
|
|
29
|
-
PLVLogger.info(TAG, `batch log: ${PLVJSONUtils.safeStringify(s52)}`);
|
|
30
|
-
if (PLVELogSender.LOG_ARR.length >= BATCH_LENGTH) {
|
|
31
|
-
this.reportLiveELog(PLVELogSender.LOG_ARR);
|
|
32
|
-
PLVELogSender.LOG_ARR.length = 0;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
reportLiveELog(m52) {
|
|
36
|
-
return PLVUtils.safePromise(async (n52, o52) => {
|
|
37
|
-
const p52 = PLVJSONUtils.safeStringify(m52);
|
|
38
|
-
PLVLogger.info(TAG, `reportLiveELog: ${p52}`);
|
|
39
|
-
await eLogPlvNetApi(this.channelData).reportLiveELog(this.channelData.loginChannelId, p52)
|
|
40
|
-
.catch((q52) => {
|
|
41
|
-
return Promise.reject(q52.log(TAG, 'reportLiveELog error'));
|
|
42
|
-
});
|
|
43
|
-
PLVLogger.info(TAG, 'reportLiveELog success');
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
PLVELogSender.LOG_ARR = [];
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import deviceInfo from '@ohos.deviceInfo';
|
|
2
|
-
import { SDK_NAME_VERSION } from '../../../../common/PLVLiveSceneSDK';
|
|
3
|
-
export class PLVELogDataBean {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.deviceType = 'phone';
|
|
6
|
-
this.errorCode = 0;
|
|
7
|
-
this.framework = 'origin';
|
|
8
|
-
this.level = 0;
|
|
9
|
-
this.logVersion = '1.0.0';
|
|
10
|
-
this.platform2 = deviceInfo.productModel + '/' + deviceInfo.sdkApiVersion;
|
|
11
|
-
this.project = 'liveScene';
|
|
12
|
-
this.version2 = SDK_NAME_VERSION;
|
|
13
|
-
this.event = 'default_event';
|
|
14
|
-
this.module = 'default_module';
|
|
15
|
-
this.time = Date.now() + '';
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
export class PLVLogFileBean {
|
|
19
|
-
}
|
|
20
|
-
export class PLVELogPartData {
|
|
21
|
-
constructor() {
|
|
22
|
-
this.errorCode = 0;
|
|
23
|
-
this.event = 'default_event';
|
|
24
|
-
this.module = 'default_module';
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
export function toELogData(h52, i52) {
|
|
28
|
-
const j52 = new PLVELogDataBean();
|
|
29
|
-
j52.errorCode = i52.errorCode || 0;
|
|
30
|
-
j52.event = i52.event || 'default_event';
|
|
31
|
-
j52.module = i52.module || 'default_module';
|
|
32
|
-
j52.logFile = {
|
|
33
|
-
information: i52.information
|
|
34
|
-
};
|
|
35
|
-
j52.appId = h52.appId;
|
|
36
|
-
j52.channelId2 = h52.loginChannelId;
|
|
37
|
-
j52.userId2 = h52.userId;
|
|
38
|
-
j52.viewerId = h52.viewerId;
|
|
39
|
-
return j52;
|
|
40
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export var PLVELogModuleName;
|
|
2
|
-
(function (l52) {
|
|
3
|
-
l52["SOCKET"] = "socket";
|
|
4
|
-
})(PLVELogModuleName || (PLVELogModuleName = {}));
|
|
5
|
-
export var PLVELogSocketBatchEvent;
|
|
6
|
-
(function (k52) {
|
|
7
|
-
k52["LOGGING"] = "logging";
|
|
8
|
-
k52["LOGIN_SUCCESS"] = "loginSuccess";
|
|
9
|
-
k52["RECONNECTING"] = "reconnecting";
|
|
10
|
-
k52["RECONNECT_SUCCESS"] = "reconnectSuccess";
|
|
11
|
-
k52["LOGIN_FAIL"] = "loginFail";
|
|
12
|
-
})(PLVELogSocketBatchEvent || (PLVELogSocketBatchEvent = {}));
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (f56, g56, h56, i56) {
|
|
2
|
-
var j56 = arguments.length, k56 = j56 < 3 ? g56 : i56 === null ? i56 = Object.getOwnPropertyDescriptor(g56, h56) : i56, l56;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
-
k56 = Reflect.decorate(f56, g56, h56, i56);
|
|
5
|
-
else
|
|
6
|
-
for (var m56 = f56.length - 1; m56 >= 0; m56--)
|
|
7
|
-
if (l56 = f56[m56])
|
|
8
|
-
k56 = (j56 < 3 ? l56(k56) : j56 > 3 ? l56(g56, h56, k56) : l56(g56, h56)) || k56;
|
|
9
|
-
return j56 > 3 && k56 && Object.defineProperty(g56, h56, k56), k56;
|
|
10
|
-
};
|
|
11
|
-
import { PLVChatDomainVO } from './model/PLVChatDomainVO';
|
|
12
|
-
import { mapFromServerString as channelTypeMapFromServerString, PLVLiveChannelType } from './model/PLVLiveChannelType';
|
|
13
|
-
import { PLVLogger, PLVUtils } from '@polyvharmony/live-scenes-foundation';
|
|
14
|
-
import { PLVLoginType } from './model/PLVLoginType';
|
|
15
|
-
import { PLVUserType } from '../socket/model/PLVUserType';
|
|
16
|
-
import { PLVBaseModule } from '../../common/PLVBaseModule';
|
|
17
|
-
import { apiPlvNetApi } from '../net/PLVApiPlvNetApi';
|
|
18
|
-
import { error, isLiteralTrue, isTextEmpty, md5, PLVMediaPlayerAppContext, require, requireNotNull, runCatching, seconds, Throttle } from '@polyvharmony/media-player-sdk';
|
|
19
|
-
import { createNGBPushApi } from '../net/PLVNGBPushApi';
|
|
20
|
-
import { PLVLinkMicRTCType } from '../linkmic/model/vo/PLVLinkMicRTCType';
|
|
21
|
-
import { PLVRTCEngineFactory, PLVRTCType } from '@polyvharmony/rtc-sdk';
|
|
22
|
-
const TAG = '[PLVSceneLoginManager]';
|
|
23
|
-
const STREAMER_SUPPORT_CHANNEL_TYPE = [PLVLiveChannelType.ALONE];
|
|
24
|
-
export class PLVSceneLoginManager extends PLVBaseModule {
|
|
25
|
-
loginLive(s55, t55, u55, v55) {
|
|
26
|
-
PLVLogger.info(TAG, `loginLive userId: ${s55}, channelId: ${t55}, appId: ${u55}`);
|
|
27
|
-
return PLVUtils.safePromise(async (w55, x55) => {
|
|
28
|
-
this.loginThrottling();
|
|
29
|
-
const y55 = await Promise.all([
|
|
30
|
-
apiPlvNetApi(this.channelData).checkLoginToken(s55, v55, u55, t55)
|
|
31
|
-
.catch((e56) => {
|
|
32
|
-
return Promise.reject(e56.log(TAG, 'loginLive error while checkLoginToken'));
|
|
33
|
-
}),
|
|
34
|
-
apiPlvNetApi(this.channelData).getLiveDetail(t55, u55, v55)
|
|
35
|
-
.catch((d56) => {
|
|
36
|
-
return Promise.reject(d56.log(TAG, 'loginLive error while getLiveDetail'));
|
|
37
|
-
})
|
|
38
|
-
]);
|
|
39
|
-
const z55 = y55[0];
|
|
40
|
-
const a56 = y55[1];
|
|
41
|
-
const b56 = channelTypeMapFromServerString(a56.data.data?.scene);
|
|
42
|
-
const c56 = b56 == PLVLiveChannelType.PPT ? PLVUserType.USERTYPE_SLICE : PLVUserType.USERTYPE_STUDENT;
|
|
43
|
-
this.setupChannelData(t55, s55, u55, v55, b56, c56, PLVLoginType.LIVE, z55.data.data, a56.data.data, undefined, undefined, undefined);
|
|
44
|
-
w55(this.channelData);
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
loginPlayback(e55, f55, g55, h55, i55) {
|
|
48
|
-
PLVLogger.info(TAG, `loginPlayback userId: ${e55}, channelId: ${f55}, appId: ${g55}, videoId: ${i55}`);
|
|
49
|
-
return PLVUtils.safePromise(async (j55, k55) => {
|
|
50
|
-
this.loginThrottling();
|
|
51
|
-
const l55 = await Promise.all([
|
|
52
|
-
apiPlvNetApi(this.channelData).checkLoginToken(e55, h55, g55, f55, i55)
|
|
53
|
-
.catch((r55) => {
|
|
54
|
-
return Promise.reject(r55.log(TAG, 'loginPlayback error while checkLoginToken'));
|
|
55
|
-
}),
|
|
56
|
-
apiPlvNetApi(this.channelData).getLiveDetail(f55, g55, h55)
|
|
57
|
-
.catch((q55) => {
|
|
58
|
-
return Promise.reject(q55.log(TAG, 'loginPlayback error while getLiveDetail'));
|
|
59
|
-
})
|
|
60
|
-
]);
|
|
61
|
-
const m55 = l55[0];
|
|
62
|
-
const n55 = l55[1];
|
|
63
|
-
const o55 = channelTypeMapFromServerString(n55.data.data?.scene);
|
|
64
|
-
const p55 = o55 == PLVLiveChannelType.PPT ? PLVUserType.USERTYPE_SLICE : PLVUserType.USERTYPE_STUDENT;
|
|
65
|
-
this.setupChannelData(f55, e55, g55, h55, o55, p55, PLVLoginType.PLAYBACK, m55.data.data, n55.data.data, i55, undefined, undefined);
|
|
66
|
-
j55(this.channelData);
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
async loginStreamer(q54, r54, s54 = undefined) {
|
|
70
|
-
PLVLogger.info(TAG, `loginStreamer channelId: ${q54}`);
|
|
71
|
-
this.loginThrottling();
|
|
72
|
-
require(!isTextEmpty(q54), () => "channelId is empty");
|
|
73
|
-
require(!isTextEmpty(r54), () => "password is empty");
|
|
74
|
-
const t54 = apiPlvNetApi(this.channelData);
|
|
75
|
-
const u54 = q54.startsWith("00");
|
|
76
|
-
const v54 = md5(r54);
|
|
77
|
-
const w54 = "polyv-harmony-live-sdk";
|
|
78
|
-
const x54 = await runCatching(t54.loginStreamer(q54, v54, w54));
|
|
79
|
-
if (x54.success === false) {
|
|
80
|
-
throw x54.error;
|
|
81
|
-
}
|
|
82
|
-
const y54 = requireNotNull(x54.data.data.data, () => "loginStreamer Response is null");
|
|
83
|
-
require(y54.status === "ok", () => y54.msg);
|
|
84
|
-
const z54 = channelTypeMapFromServerString(y54.liveScene);
|
|
85
|
-
require(STREAMER_SUPPORT_CHANNEL_TYPE.includes(z54), () => "暂不支持该频道登录");
|
|
86
|
-
require(this.isRTCEngineRegistered(y54.rtcType ?? ""), () => `暂不支持该频道登录,如需帮助请联系工作人员。(RTC type ${y54.rtcType} not support.)`);
|
|
87
|
-
const a55 = this.streamerGetPushStreamUrl(y54);
|
|
88
|
-
const b55 = await runCatching(t54.getLiveDetail(y54.channelId, y54.appId, y54.appSecret));
|
|
89
|
-
if (b55.success === false) {
|
|
90
|
-
throw b55.error;
|
|
91
|
-
}
|
|
92
|
-
const c55 = requireNotNull(b55.data.data.data, () => "liveDetail Response is null");
|
|
93
|
-
const d55 = new PLVChatDomainVO();
|
|
94
|
-
d55.setChatDomain(requireNotNull(y54.chatDomain, () => "chatDomain is null"));
|
|
95
|
-
d55.setChatApiDomain(requireNotNull(y54.chatApiDomain, () => "chatApiDomain is null"));
|
|
96
|
-
this.setupChannelData(y54.channelId, y54.useId, y54.appId, y54.appSecret, z54, u54 ? PLVUserType.USERTYPE_GUEST : PLVUserType.USERTYPE_TEACHER, PLVLoginType.LIVE, d55, c55, undefined, y54, await a55);
|
|
97
|
-
this.channelData.viewerId = y54.InteractUid;
|
|
98
|
-
this.channelData.viewerName = isTextEmpty(s54) ? y54.teacherNickname : s54;
|
|
99
|
-
this.channelData.viewerAvatar = y54.teacherAvatar;
|
|
100
|
-
this.channelData.viewerActor = y54.teacherActor;
|
|
101
|
-
return true;
|
|
102
|
-
}
|
|
103
|
-
loginThrottling() {
|
|
104
|
-
}
|
|
105
|
-
async streamerGetPushStreamUrl(j54) {
|
|
106
|
-
const k54 = isLiteralTrue(j54.isNgbEnabled);
|
|
107
|
-
if (k54) {
|
|
108
|
-
const m54 = createNGBPushApi(this.channelData);
|
|
109
|
-
let n54 = await runCatching(m54.getNGBPushStreamUrl((j54.ngbUrl ?? "") + (j54.stream ?? "")));
|
|
110
|
-
if (n54.success) {
|
|
111
|
-
const p54 = n54.data.data.data ?? "";
|
|
112
|
-
PLVLogger.info(TAG, `NGB push stream url1=${p54}`);
|
|
113
|
-
return p54;
|
|
114
|
-
}
|
|
115
|
-
n54 = await runCatching(m54.getNGBPushStreamUrl((j54.bakUrl ?? "") + (j54.stream ?? "")));
|
|
116
|
-
if (n54.success) {
|
|
117
|
-
const o54 = n54.data.data.data ?? "";
|
|
118
|
-
PLVLogger.info(TAG, `NGB push stream url2=${o54}`);
|
|
119
|
-
return o54;
|
|
120
|
-
}
|
|
121
|
-
return (j54.url ?? "") + (j54.stream + "");
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
const l54 = isLiteralTrue(j54.isUrlProtected);
|
|
125
|
-
if (l54) {
|
|
126
|
-
return (j54.bakUrl ?? "") + (j54.stream ?? "") + (j54.suffix ?? "");
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
return (j54.url ?? "") + (j54.stream ?? "");
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
setupChannelData(x53, y53, z53, a54, b54, c54, d54, e54, f54, g54, h54, i54) {
|
|
134
|
-
this.channelData.loginChannelId = x53;
|
|
135
|
-
this.channelData.userId = y53;
|
|
136
|
-
this.channelData.appId = z53;
|
|
137
|
-
this.channelData.appSecret = a54;
|
|
138
|
-
this.channelData.channelType = b54;
|
|
139
|
-
this.channelData.viewerType = c54;
|
|
140
|
-
this.channelData.loginType = d54;
|
|
141
|
-
this.channelData.chatDomain = e54;
|
|
142
|
-
this.channelData.liveDetail = f54;
|
|
143
|
-
this.channelData.playbackVid = g54;
|
|
144
|
-
this.channelData.streamerData = h54;
|
|
145
|
-
this.channelData.pushStreamUrl = i54;
|
|
146
|
-
this.channelData.afterLoginSetup();
|
|
147
|
-
}
|
|
148
|
-
isRTCEngineRegistered(w53) {
|
|
149
|
-
switch (w53) {
|
|
150
|
-
case PLVLinkMicRTCType.ARTC:
|
|
151
|
-
return PLVRTCEngineFactory.isEngineSupport(PLVRTCType.ARTC);
|
|
152
|
-
case PLVLinkMicRTCType.TRTC:
|
|
153
|
-
return PLVRTCEngineFactory.isEngineSupport(PLVRTCType.TRTC);
|
|
154
|
-
default:
|
|
155
|
-
return false;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
__decorate([
|
|
160
|
-
Throttle(10, seconds(1), () => error(PLVMediaPlayerAppContext.getString({ "id": -1, "type": 10003, params: ['app.string.plv_login_throttle_invoke_too_many_times'], "bundleName": "__harDefaultBundleName__", "moduleName": "__harDefaultModuleName__" })))
|
|
161
|
-
], PLVSceneLoginManager.prototype, "loginThrottling", null);
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export class PLVChatDomainVO {
|
|
2
|
-
constructor() {
|
|
3
|
-
this.chatDomain = 'https://chat.polyv.net';
|
|
4
|
-
this.chatApiDomain = 'https://apichat.polyv.net/';
|
|
5
|
-
}
|
|
6
|
-
getChatApiDomain() {
|
|
7
|
-
if (this.chatApiDomain) {
|
|
8
|
-
if (!this.chatApiDomain.startsWith('http')) {
|
|
9
|
-
return PLVChatDomainVO.HOST + this.chatApiDomain;
|
|
10
|
-
}
|
|
11
|
-
return this.chatApiDomain;
|
|
12
|
-
}
|
|
13
|
-
return PLVChatDomainVO.HOST + PLVChatDomainVO.DEFAULT_CHAT_API_DOMAIN;
|
|
14
|
-
}
|
|
15
|
-
getChatApiDomainHost() {
|
|
16
|
-
return this.getChatApiDomain().replace('https://', '').replace('http://', '').replaceAll('/', '');
|
|
17
|
-
}
|
|
18
|
-
setChatApiDomain(x52) {
|
|
19
|
-
this.chatApiDomain = x52;
|
|
20
|
-
}
|
|
21
|
-
getChatDomain() {
|
|
22
|
-
if (this.chatDomain) {
|
|
23
|
-
if (!this.chatDomain.startsWith('http')) {
|
|
24
|
-
return PLVChatDomainVO.HOST + this.chatDomain;
|
|
25
|
-
}
|
|
26
|
-
return this.chatDomain;
|
|
27
|
-
}
|
|
28
|
-
return PLVChatDomainVO.HOST + PLVChatDomainVO.DEFAULT_CHAT_DOMAIN;
|
|
29
|
-
}
|
|
30
|
-
getHttpChatDomain() {
|
|
31
|
-
return this.getChatDomain().replace('https', 'http');
|
|
32
|
-
}
|
|
33
|
-
setChatDomain(w52) {
|
|
34
|
-
this.chatDomain = w52;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
PLVChatDomainVO.HOST = 'https://';
|
|
38
|
-
PLVChatDomainVO.DEFAULT_CHAT_DOMAIN = 'chat.polyv.net';
|
|
39
|
-
PLVChatDomainVO.DEFAULT_CHAT_API_DOMAIN = 'apichat.polyv.net';
|