@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
package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestEncodeParamUseCase.js
DELETED
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { extendArray, isLiteralTrue, requireNotNull, runCatching } from '@polyvharmony/media-player-sdk';
|
|
2
|
-
import { PLVPushDowngradePreference, PLVPushOrientation, PLVRTCVideoEncodeParam } from '@polyvharmony/rtc-sdk';
|
|
3
|
-
import { PLVLinkMicBitRate } from '../../../../model/vo/PLVLinkMicBitRate';
|
|
4
|
-
import { DEFAULT_BITRATE_ENCODE_PARAM_TABLE, PLVLinkMicBitRateEncodeParam } from '../../../../model/vo/PLVLinkMicBitRateEncodeParam';
|
|
5
|
-
import { PLVLinkMicPushResolutionRatio } from '../../../../model/vo/PLVLinkMicPushResolutionRatio';
|
|
6
|
-
export class LinkMicGuestEncodeParamUseCase {
|
|
7
|
-
constructor(y38) {
|
|
8
|
-
this.repo = y38;
|
|
9
|
-
}
|
|
10
|
-
init() {
|
|
11
|
-
this.parseChannelBitRateSetting();
|
|
12
|
-
this.setupDefaultBitRate();
|
|
13
|
-
}
|
|
14
|
-
setBitRate(x38) {
|
|
15
|
-
this.repo.mediator.currentBitRate.setValue(x38);
|
|
16
|
-
this.updateEncodeParam();
|
|
17
|
-
}
|
|
18
|
-
setPushResolutionRatio(w38) {
|
|
19
|
-
this.repo.mediator.currentPushResolutionRatio.setValue(w38);
|
|
20
|
-
if (!this.isChannelUsePushStreamTemplate()) {
|
|
21
|
-
this.parseChannelBitRateSetting();
|
|
22
|
-
}
|
|
23
|
-
this.updateEncodeParam();
|
|
24
|
-
}
|
|
25
|
-
setPushOrientation(v38) {
|
|
26
|
-
this.repo.mediator.currentPushOrientation.setValue(v38);
|
|
27
|
-
this.updateEncodeParam();
|
|
28
|
-
}
|
|
29
|
-
setPushMirror(u38) {
|
|
30
|
-
this.repo.mediator.currentPushMirror.setValue(u38);
|
|
31
|
-
this.updateEncodeParam();
|
|
32
|
-
}
|
|
33
|
-
setPushDowngradePreference(t38) {
|
|
34
|
-
this.repo.mediator.currentPushDowngradePreference.setValue(t38);
|
|
35
|
-
this.updateEncodeParam();
|
|
36
|
-
}
|
|
37
|
-
updateEncodeParam() {
|
|
38
|
-
const n38 = this.repo.mediator.currentBitRate.value;
|
|
39
|
-
const o38 = this.repo.mediator.channelSupportBitRates.value ?? [PLVLinkMicBitRate.STANDARD];
|
|
40
|
-
let p38 = n38;
|
|
41
|
-
if (p38 === undefined || !o38.includes(p38)) {
|
|
42
|
-
p38 = o38[0];
|
|
43
|
-
}
|
|
44
|
-
if (n38 !== p38) {
|
|
45
|
-
this.setBitRate(p38);
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
const q38 = this.repo.mediator.channelSupportBitRateEncodeParams.value?.find(s38 => s38.bitRate === p38);
|
|
49
|
-
if (q38 === undefined) {
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
this.repo.mediator.currentBitRateEncodeParam.setValue(q38);
|
|
53
|
-
const r38 = new PLVRTCVideoEncodeParam();
|
|
54
|
-
r38.width = q38.videoWidth;
|
|
55
|
-
r38.height = q38.videoHeight;
|
|
56
|
-
r38.frameRate = q38.videoFps;
|
|
57
|
-
r38.targetBitRate = q38.videoBitrate;
|
|
58
|
-
r38.pushOrientation = this.repo.mediator.currentPushOrientation.value ?? PLVPushOrientation.AUTO;
|
|
59
|
-
r38.pushMirror = this.repo.mediator.currentPushMirror.value ?? false;
|
|
60
|
-
r38.pushDowngradePreference = this.repo.mediator.currentPushDowngradePreference.value ?? PLVPushDowngradePreference.PREFER_BETTER_QUALITY;
|
|
61
|
-
this.repo.setLocalVideoEncodeParam(r38);
|
|
62
|
-
}
|
|
63
|
-
parseChannelBitRateSetting() {
|
|
64
|
-
if (this.isChannelUsePushStreamTemplate()) {
|
|
65
|
-
this.parsePushStreamTemplate();
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
this.parseBuiltinBitRateSetting();
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
parsePushStreamTemplate() {
|
|
72
|
-
const f38 = requireNotNull(this.repo.mediator.channelData?.streamerData?.pushStreamTemplateJson);
|
|
73
|
-
const g38 = extendArray(f38.VideoParams ?? [])
|
|
74
|
-
.map((j38, k38) => {
|
|
75
|
-
const l38 = runCatching(() => {
|
|
76
|
-
const m38 = new PLVLinkMicBitRate(k38, requireNotNull(j38.QualityName));
|
|
77
|
-
return new PLVLinkMicBitRateEncodeParam(m38, requireNotNull(j38.VideoFps), requireNotNull(j38.VideoGop), requireNotNull(j38.VideoWidth), requireNotNull(j38.VideoHeight), requireNotNull(j38.VideoBitrate), requireNotNull(j38.ScreenFps), requireNotNull(j38.ScreenGop), requireNotNull(j38.ScreenWidth), requireNotNull(j38.ScreenHeight), requireNotNull(j38.ScreenBitrate));
|
|
78
|
-
});
|
|
79
|
-
return l38.success ? l38.data : null;
|
|
80
|
-
})
|
|
81
|
-
.filterNotNull_ext();
|
|
82
|
-
this.repo.mediator.channelSupportBitRateEncodeParams.setValue(g38);
|
|
83
|
-
const h38 = g38.map(i38 => i38.bitRate);
|
|
84
|
-
this.repo.mediator.channelSupportBitRates.setValue(h38);
|
|
85
|
-
}
|
|
86
|
-
parseBuiltinBitRateSetting() {
|
|
87
|
-
const s37 = requireNotNull(this.repo.mediator.channelData?.streamerData);
|
|
88
|
-
const t37 = s37.rtcMaxResolution ?? 0;
|
|
89
|
-
let u37;
|
|
90
|
-
if (isLiteralTrue(s37.appPushResolution1080Enabled) || t37 >= 1080) {
|
|
91
|
-
u37 = [PLVLinkMicBitRate.STANDARD, PLVLinkMicBitRate.HIGH, PLVLinkMicBitRate.SUPER, PLVLinkMicBitRate.SUPER_HIGH];
|
|
92
|
-
}
|
|
93
|
-
else if (t37 >= 720) {
|
|
94
|
-
u37 = [PLVLinkMicBitRate.STANDARD, PLVLinkMicBitRate.HIGH, PLVLinkMicBitRate.SUPER];
|
|
95
|
-
}
|
|
96
|
-
else if (t37 >= 360) {
|
|
97
|
-
u37 = [PLVLinkMicBitRate.STANDARD, PLVLinkMicBitRate.HIGH];
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
u37 = [PLVLinkMicBitRate.STANDARD];
|
|
101
|
-
}
|
|
102
|
-
const v37 = s37.clientParams?.fps ?? 15;
|
|
103
|
-
const w37 = this.repo.mediator.currentPushResolutionRatio.value ?? PLVLinkMicPushResolutionRatio.RATIO_16_9;
|
|
104
|
-
const x37 = extendArray(DEFAULT_BITRATE_ENCODE_PARAM_TABLE)
|
|
105
|
-
.filter(e38 => u37.includes(e38.bitRate))
|
|
106
|
-
.groupBy_ext(d38 => d38.bitRate)
|
|
107
|
-
.filter_ext(c38 => c38[1].length > 0)
|
|
108
|
-
.mapValues_ext(b38 => this.reduceEncodeParams(b38[1], v37, w37))
|
|
109
|
-
.toArray_ext(a38 => a38[1]);
|
|
110
|
-
this.repo.mediator.channelSupportBitRateEncodeParams.setValue(x37);
|
|
111
|
-
const y37 = x37.map(z37 => z37.bitRate);
|
|
112
|
-
this.repo.mediator.channelSupportBitRates.setValue(y37);
|
|
113
|
-
}
|
|
114
|
-
reduceEncodeParams(e37, f37, g37) {
|
|
115
|
-
const h37 = (q37, r37) => Math.abs(q37 - r37) < 1e-6;
|
|
116
|
-
const i37 = e37.filter(p37 => p37.videoFps >= f37 && h37(p37.videoWidth / p37.videoHeight, g37.ratio));
|
|
117
|
-
if (i37.length > 0) {
|
|
118
|
-
if (i37.length === 1) {
|
|
119
|
-
return i37[0];
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
return i37.reduce((n37, o37) => n37.videoFps > o37.videoFps ? o37 : n37);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
const j37 = e37.filter(m37 => h37(m37.videoWidth / m37.videoHeight, g37.ratio));
|
|
126
|
-
if (j37.length > 0) {
|
|
127
|
-
if (j37.length === 1) {
|
|
128
|
-
return j37[0];
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
return i37.reduce((k37, l37) => k37.videoFps > l37.videoFps ? l37 : k37);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
return e37[0];
|
|
135
|
-
}
|
|
136
|
-
setupDefaultBitRate() {
|
|
137
|
-
if (this.isChannelUsePushStreamTemplate()) {
|
|
138
|
-
const z36 = requireNotNull(this.repo.mediator.channelData?.streamerData?.pushStreamTemplateJson);
|
|
139
|
-
const a37 = z36.VideoParams?.findIndex(d37 => d37.QualityLevel === z36.teacherDefaultQualityLevel);
|
|
140
|
-
const b37 = (this.repo.mediator.channelSupportBitRates.value ?? []).find(c37 => c37.index === a37) ?? PLVLinkMicBitRate.STANDARD;
|
|
141
|
-
this.setBitRate(b37);
|
|
142
|
-
}
|
|
143
|
-
else {
|
|
144
|
-
const y36 = extendArray(this.repo.mediator.channelSupportBitRates.value ?? [])
|
|
145
|
-
.lastOrNull_ext() ?? PLVLinkMicBitRate.STANDARD;
|
|
146
|
-
this.setBitRate(y36);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
isChannelUsePushStreamTemplate() {
|
|
150
|
-
const x36 = this.repo.mediator.channelData?.streamerData;
|
|
151
|
-
return isLiteralTrue(x36?.clientPushStreamTemplateEnabled) && x36?.pushStreamTemplateJson !== undefined;
|
|
152
|
-
}
|
|
153
|
-
}
|
package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleRTCUseCase.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { MutableObserver } from '@polyvharmony/media-player-sdk';
|
|
2
|
-
import { PLVRTCClientRole, PLVRTCVideoRenderParam, PLVVideoRenderFitMode } from '@polyvharmony/rtc-sdk';
|
|
3
|
-
import { PLVLinkMicCameraFacing } from '../../../../model/vo/PLVLinkMicCameraFacing';
|
|
4
|
-
import { PLVLinkMicState } from '../../../../model/vo/PLVLinkMicState';
|
|
5
|
-
import { PLVLinkMicVideoRenderParam } from '../../../../model/vo/PLVLinkMicVideoRenderParam';
|
|
6
|
-
export class LinkMicGuestHandleRTCUseCase {
|
|
7
|
-
constructor(n39) {
|
|
8
|
-
this.observers = [];
|
|
9
|
-
this.repo = n39;
|
|
10
|
-
}
|
|
11
|
-
init() {
|
|
12
|
-
this.repo.mediator.linkmicState.observe(m39 => {
|
|
13
|
-
if (m39 === PLVLinkMicState.Joined) {
|
|
14
|
-
this.switchRole(PLVRTCClientRole.BROADCASTER);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
this.switchRole(PLVRTCClientRole.AUDIENCE);
|
|
18
|
-
}
|
|
19
|
-
})
|
|
20
|
-
.pushTo(this.observers);
|
|
21
|
-
}
|
|
22
|
-
joinChannel() {
|
|
23
|
-
this.repo.joinRTCChannel();
|
|
24
|
-
}
|
|
25
|
-
leaveChannel() {
|
|
26
|
-
this.repo.leaveRTCChannel();
|
|
27
|
-
}
|
|
28
|
-
switchRole(l39) {
|
|
29
|
-
this.repo.switchRTCRole(l39);
|
|
30
|
-
}
|
|
31
|
-
enableCamera(k39) {
|
|
32
|
-
this.repo.enableLocalVideo(k39);
|
|
33
|
-
this.repo.mediator.localLinkMicViewer.value?.isVideoEnable?.setValue(k39);
|
|
34
|
-
}
|
|
35
|
-
enableMicrophone(j39) {
|
|
36
|
-
this.repo.enableLocalAudio(j39);
|
|
37
|
-
this.repo.mediator.localLinkMicViewer.value?.isAudioEnable?.setValue(j39);
|
|
38
|
-
}
|
|
39
|
-
enableCameraMicrophoneToLastState() {
|
|
40
|
-
}
|
|
41
|
-
switchCamera() {
|
|
42
|
-
this.repo.mediator.cameraFacing.value = (this.repo.mediator.cameraFacing.value ?? PLVLinkMicCameraFacing.FRONT).switchNext();
|
|
43
|
-
this.repo.switchCamera();
|
|
44
|
-
}
|
|
45
|
-
setLocalRenderMirror(g39) {
|
|
46
|
-
const h39 = this.repo.mediator.linkmicId;
|
|
47
|
-
if (h39 === undefined) {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
this.repo.mediator.localRenderMirror.setValue(g39);
|
|
51
|
-
const i39 = this.getVideoRenderParam(h39);
|
|
52
|
-
this.setupVideoRender(new PLVLinkMicVideoRenderParam(h39, i39.viewId));
|
|
53
|
-
}
|
|
54
|
-
setupVideoRender(e39) {
|
|
55
|
-
const f39 = this.getVideoRenderParam(e39.linkmicId);
|
|
56
|
-
f39.viewId = e39.xcomponentId;
|
|
57
|
-
if (this.repo.mediator.isMySocketLinkMicId(e39.linkmicId)) {
|
|
58
|
-
f39.renderMirror = this.repo.mediator.localRenderMirror.value ?? false;
|
|
59
|
-
}
|
|
60
|
-
this.repo.setVideoRender(f39);
|
|
61
|
-
}
|
|
62
|
-
removeVideoRender(c39) {
|
|
63
|
-
const d39 = this.getVideoRenderParam(c39.linkmicId);
|
|
64
|
-
if (c39.xcomponentId === null || d39.viewId === c39.xcomponentId) {
|
|
65
|
-
d39.viewId = null;
|
|
66
|
-
this.repo.setVideoRender(d39);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
onDestroy() {
|
|
70
|
-
MutableObserver.disposeAll(this.observers);
|
|
71
|
-
this.observers = [];
|
|
72
|
-
}
|
|
73
|
-
getVideoRenderParam(z38) {
|
|
74
|
-
let a39 = this.repo.getVideoRenderParam(z38);
|
|
75
|
-
if (a39 !== null) {
|
|
76
|
-
return a39;
|
|
77
|
-
}
|
|
78
|
-
const b39 = z38 === this.repo.mediator.channelData?.loginChannelId;
|
|
79
|
-
a39 = new PLVRTCVideoRenderParam();
|
|
80
|
-
a39.linkmicId = z38;
|
|
81
|
-
a39.viewId = null;
|
|
82
|
-
if (b39) {
|
|
83
|
-
a39.renderFitMode = PLVVideoRenderFitMode.FIT;
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
86
|
-
a39.renderFitMode = PLVVideoRenderFitMode.HIDDEN;
|
|
87
|
-
}
|
|
88
|
-
a39.renderMirror = false;
|
|
89
|
-
return a39;
|
|
90
|
-
}
|
|
91
|
-
}
|
package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleStateUseCase.js
DELETED
|
@@ -1,392 +0,0 @@
|
|
|
1
|
-
import { PLVDisposable, PLVLogger, PLVRequestSetting } from '@polyvharmony/live-scenes-foundation';
|
|
2
|
-
import { decodeFromJson, encodeToJson, isNullOrUndefined, MutableObserver, Promises, requireNotNull, retry, RetryConditions, runCatching, seconds, withTimeout } 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 { PLVLinkMicSocketJoinAnswerSend, PLVLinkMicSocketJoinAnswerTTLAck, PLVLinkMicSocketJoinAnswerTTLSend, PLVLinkMicSocketJoinLeaveRecv, PLVLinkMicSocketJoinLeaveSend, PLVLinkMicSocketJoinRequestRecv, PLVLinkMicSocketJoinRequestSend, PLVLinkMicSocketJoinResponseRecv, PLVLinkMicSocketJoinResponseSend, PLVLinkMicSocketJoinSuccessRecv, PLVLinkMicSocketMuteUserMicroRecv, PLVLinkMicSocketOpenMicrophoneRecv, PLVLinkMicSocketSwitchViewRecv, PLVLinkMicSocketSwitchViewSend, PLVLinkMicSocketTeacherSetPermissionRecv, PLVLinkMicSocketTeacherSetPermissionSend } from '../../../../model/vo/PLVLinkMicSocketEvent';
|
|
8
|
-
import { PLVLinkMicState } from '../../../../model/vo/PLVLinkMicState';
|
|
9
|
-
import { PLVSocketUserSend } from '../../../../../socket/model/PLVSocketUserBean';
|
|
10
|
-
import { PLVMemberSocketSetNickRecv } from '../../../../../member/model/vo/PLVMemberSocketEvent';
|
|
11
|
-
const TAG = "PLVLinkMicManager";
|
|
12
|
-
export class LinkMicGuestHandleStateUseCase {
|
|
13
|
-
constructor(u42, v42, w42, x42) {
|
|
14
|
-
this.disposables = [];
|
|
15
|
-
this.observers = [];
|
|
16
|
-
this.repo = u42;
|
|
17
|
-
this.handleQueueOrderUseCase = v42;
|
|
18
|
-
this.handleRTCUseCase = w42;
|
|
19
|
-
this.updateChannelViewerUseCase = x42;
|
|
20
|
-
}
|
|
21
|
-
init() {
|
|
22
|
-
this.disposables.push(this.observeSocketEvent(PLVSocketOnEvent.MESSAGE, (s42, t42) => this.onSocketMessage(s42, t42)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_REQUEST, (r42) => this.onSocketJoinRequest(r42)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_RESPONSE, (q42) => this.onSocketJoinResponse(q42)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_SUCCESS, (p42) => this.onSocketJoinSuccess(p42)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_LEAVE, (o42) => this.onSocketJoinLeave(o42)), this.observeSocketEvent(PLVSocketOnEvent.SWITCH_VIEW, (n42) => this.onSocketSwitchView(n42)));
|
|
23
|
-
}
|
|
24
|
-
async requestJoinLinkMic() {
|
|
25
|
-
const l42 = this.repo.mediator.linkmicState.value;
|
|
26
|
-
if (l42 === PLVLinkMicState.Inviting) {
|
|
27
|
-
this.acceptInvitation();
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
if (await this.isChannelReachLinkMicLimit()) {
|
|
31
|
-
this.repo.mediator.linkmicState.setValue(PLVLinkMicState.NoLinkMic);
|
|
32
|
-
this.repo.mediator.reportError(PLVLinkMicErrorEvent.REACH_LINKMIC_LIMIT, "requestJoinLinkMic channel reach linkmic limit");
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
const m42 = new PLVLinkMicSocketJoinRequestSend();
|
|
36
|
-
m42.user = this.createSocketUser();
|
|
37
|
-
m42.roomId = this.repo.mediator.channelData?.loginChannelId;
|
|
38
|
-
this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_REQUEST, encodeToJson(m42), () => {
|
|
39
|
-
this.repo.mediator.linkmicState.setValue(PLVLinkMicState.Requesting);
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
async acceptInvitation() {
|
|
43
|
-
if (await this.isChannelReachLinkMicLimit()) {
|
|
44
|
-
this.repo.mediator.linkmicState.setValue(PLVLinkMicState.NoLinkMic);
|
|
45
|
-
this.repo.mediator.reportError(PLVLinkMicErrorEvent.REACH_LINKMIC_LIMIT, "acceptInvitation channel reach linkmic limit");
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
const j42 = new PLVLinkMicSocketJoinAnswerSend();
|
|
49
|
-
j42.user = this.createSocketUser();
|
|
50
|
-
j42.roomId = this.repo.mediator.channelData?.loginChannelId;
|
|
51
|
-
j42.status = 1;
|
|
52
|
-
this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_ANSWER, encodeToJson(j42), () => {
|
|
53
|
-
const k42 = this.repo.mediator.linkmicState.value;
|
|
54
|
-
if (k42 === PLVLinkMicState.Inviting) {
|
|
55
|
-
this.repo.mediator.linkmicState.setValue(PLVLinkMicState.WaitingResponse);
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
refuseInvitation() {
|
|
60
|
-
const i42 = new PLVLinkMicSocketJoinAnswerSend();
|
|
61
|
-
i42.user = this.createSocketUser();
|
|
62
|
-
i42.roomId = this.repo.mediator.channelData?.loginChannelId;
|
|
63
|
-
i42.status = 0;
|
|
64
|
-
this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_ANSWER, encodeToJson(i42));
|
|
65
|
-
this.repo.mediator.linkmicState.setValue(PLVLinkMicState.NoLinkMic);
|
|
66
|
-
}
|
|
67
|
-
leaveLinkMic() {
|
|
68
|
-
const g42 = this.repo.mediator.linkmicState.value;
|
|
69
|
-
if (g42 === undefined || ![PLVLinkMicState.Requesting, PLVLinkMicState.Joined].includes(g42)) {
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
const h42 = new PLVLinkMicSocketJoinLeaveSend();
|
|
73
|
-
h42.user = this.createSocketUser();
|
|
74
|
-
h42.roomId = this.repo.mediator.channelData?.loginChannelId;
|
|
75
|
-
this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_LEAVE, encodeToJson(h42));
|
|
76
|
-
this.revokeSpeaker("");
|
|
77
|
-
this.repo.mediator.linkmicState.setValue(PLVLinkMicState.NoLinkMic);
|
|
78
|
-
}
|
|
79
|
-
onStreamerStart() {
|
|
80
|
-
this.handleRTCUseCase.joinChannel();
|
|
81
|
-
}
|
|
82
|
-
onLiveStreamStart() {
|
|
83
|
-
this.tryAutoJoinLinkMic();
|
|
84
|
-
this.updateChannelViewerUseCase.startUpdateChannelLinkMicViewersInterval();
|
|
85
|
-
}
|
|
86
|
-
async setLinkMicMode(f42) {
|
|
87
|
-
return false;
|
|
88
|
-
}
|
|
89
|
-
async openLinkMic() {
|
|
90
|
-
return false;
|
|
91
|
-
}
|
|
92
|
-
async closeLinkMic() {
|
|
93
|
-
return false;
|
|
94
|
-
}
|
|
95
|
-
acceptViewerLinkMicRequest(e42) {
|
|
96
|
-
}
|
|
97
|
-
inviteViewerLinkMic(c42, d42) {
|
|
98
|
-
}
|
|
99
|
-
hangupViewerLinkMic(b42) {
|
|
100
|
-
}
|
|
101
|
-
hangupAllViewersLinkMic() {
|
|
102
|
-
}
|
|
103
|
-
setViewerEnableCamera(z41, a42) {
|
|
104
|
-
}
|
|
105
|
-
setViewerEnableMicrophone(x41, y41) {
|
|
106
|
-
}
|
|
107
|
-
grantSpeaker(w41) {
|
|
108
|
-
if (!this.isMyselfSpeaker()) {
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
this.moveSpeaker(w41);
|
|
112
|
-
this.setMainView(w41);
|
|
113
|
-
}
|
|
114
|
-
revokeSpeaker(u41) {
|
|
115
|
-
if (!this.isMyselfSpeaker()) {
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
const v41 = requireNotNull(this.repo.mediator.channelData?.loginChannelId);
|
|
119
|
-
this.moveSpeaker(v41);
|
|
120
|
-
this.setMainView(v41);
|
|
121
|
-
}
|
|
122
|
-
setMainView(r41) {
|
|
123
|
-
if (!this.isMyselfSpeaker()) {
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
const s41 = this.repo.mediator.memberMediator?.findViewerByViewerId(r41);
|
|
127
|
-
if (s41 === undefined) {
|
|
128
|
-
PLVLogger.error(TAG, `setMainView fail, viewerId ${r41} not found.`);
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
const t41 = new PLVLinkMicSocketSwitchViewSend();
|
|
132
|
-
t41.emitMode = 0;
|
|
133
|
-
t41.roomId = this.repo.mediator.channelData?.loginChannelId;
|
|
134
|
-
t41.userId = s41.linkmicId;
|
|
135
|
-
t41.socketId = s41.socketId;
|
|
136
|
-
this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.SWITCH_VIEW, encodeToJson(t41));
|
|
137
|
-
}
|
|
138
|
-
isMyselfSpeaker() {
|
|
139
|
-
const q41 = this.repo.mediator.channelMainViewLinkMicId.value;
|
|
140
|
-
return !isNullOrUndefined(q41) && this.repo.mediator.isMySocketLinkMicId(q41);
|
|
141
|
-
}
|
|
142
|
-
moveSpeaker(o41) {
|
|
143
|
-
const p41 = new PLVLinkMicSocketTeacherSetPermissionSend();
|
|
144
|
-
p41.emitMode = 0;
|
|
145
|
-
p41.roomId = this.repo.mediator.channelData?.loginChannelId;
|
|
146
|
-
p41.sessionId = this.repo.mediator.channelData?.sessionId;
|
|
147
|
-
p41.type = "speaker";
|
|
148
|
-
p41.status = "1";
|
|
149
|
-
p41.userId = o41;
|
|
150
|
-
p41.sign = PLVRequestSetting.createSign(new Map(Object.entries(p41)), "polyvChatSign")
|
|
151
|
-
.toUpperCase();
|
|
152
|
-
this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.MESSAGE, encodeToJson(p41));
|
|
153
|
-
}
|
|
154
|
-
onLiveStreamStop() {
|
|
155
|
-
this.leaveLinkMic();
|
|
156
|
-
this.updateChannelViewerUseCase.stopUpdateChannelLinkMicViewersInterval();
|
|
157
|
-
}
|
|
158
|
-
onStreamerStop() {
|
|
159
|
-
this.leaveLinkMic();
|
|
160
|
-
this.handleRTCUseCase.leaveChannel();
|
|
161
|
-
}
|
|
162
|
-
updateInvitationExpireTime() {
|
|
163
|
-
const g41 = new PLVLinkMicSocketJoinAnswerTTLSend();
|
|
164
|
-
g41.userId = this.repo.mediator.channelData?.viewerId;
|
|
165
|
-
g41.roomId = this.repo.mediator.channelData?.loginChannelId;
|
|
166
|
-
g41.sessionId = this.repo.mediator.channelData?.sessionId;
|
|
167
|
-
const h41 = Date.now();
|
|
168
|
-
this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_ANSWER_TTL, encodeToJson(g41), (i41) => {
|
|
169
|
-
const j41 = decodeFromJson(i41, PLVLinkMicSocketJoinAnswerTTLAck).message?.[0] ?? 0;
|
|
170
|
-
const k41 = h41 + seconds(j41).toMillis();
|
|
171
|
-
this.repo.mediator.invitationExpireTimestamp.setValue(k41);
|
|
172
|
-
const l41 = k41 - Date.now();
|
|
173
|
-
setTimeout(() => {
|
|
174
|
-
const m41 = this.repo.mediator.invitationExpireTimestamp.value ?? 0;
|
|
175
|
-
const n41 = this.repo.mediator.linkmicState.value;
|
|
176
|
-
if (n41 === PLVLinkMicState.Inviting && Date.now() >= m41) {
|
|
177
|
-
this.refuseInvitation();
|
|
178
|
-
}
|
|
179
|
-
}, l41);
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
onSocketMessage(e41, f41) {
|
|
183
|
-
switch (f41) {
|
|
184
|
-
case PLVSocketMessageEvent.OPEN_MICROPHONE:
|
|
185
|
-
return this.onSocketOpenMicrophone(e41);
|
|
186
|
-
case PLVSocketMessageEvent.MUTE_USER_MICRO:
|
|
187
|
-
return this.onSocketMuteUserMicro(e41);
|
|
188
|
-
case PLVSocketMessageEvent.TEACHER_SET_PERMISSION:
|
|
189
|
-
return this.onSocketTeacherSetPermission(e41);
|
|
190
|
-
case PLVSocketMessageEvent.SET_NICK:
|
|
191
|
-
return this.onSocketUserSetNick(e41);
|
|
192
|
-
default:
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
onSocketOpenMicrophone(b41) {
|
|
196
|
-
const c41 = decodeFromJson(b41, PLVLinkMicSocketOpenMicrophoneRecv);
|
|
197
|
-
const d41 = c41.userId !== undefined;
|
|
198
|
-
if (c41.status === 'open') {
|
|
199
|
-
if (!d41) {
|
|
200
|
-
this.repo.mediator.channelAllowLinkMic.setValue(true);
|
|
201
|
-
this.repo.mediator.channelAllowRequestHandsUpLinkMic.setValue(true);
|
|
202
|
-
this.updateLinkMicMode(c41.type);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
else if (c41.status === 'close') {
|
|
206
|
-
if (!d41) {
|
|
207
|
-
if (this.repo.mediator.isLinkMicStrategyV2.value === true) {
|
|
208
|
-
this.repo.mediator.channelAllowRequestHandsUpLinkMic.setValue(false);
|
|
209
|
-
}
|
|
210
|
-
else {
|
|
211
|
-
this.repo.mediator.channelAllowLinkMic.setValue(false);
|
|
212
|
-
this.repo.mediator.channelAllowRequestHandsUpLinkMic.setValue(false);
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
if (d41 && this.repo.mediator.isMySocketLinkMicId(c41.userId)) {
|
|
216
|
-
this.repo.mediator.teacherHangUpLinkMicEvent.setValue(Date.now());
|
|
217
|
-
this.leaveLinkMic();
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
onSocketMuteUserMicro(z40) {
|
|
222
|
-
const a41 = decodeFromJson(z40, PLVLinkMicSocketMuteUserMicroRecv);
|
|
223
|
-
if (a41.type === 'audio') {
|
|
224
|
-
if (a41.mute === true) {
|
|
225
|
-
this.handleRTCUseCase.enableMicrophone(false);
|
|
226
|
-
}
|
|
227
|
-
if (a41.mute === false) {
|
|
228
|
-
this.handleRTCUseCase.enableMicrophone(true);
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
if (a41.type === 'video') {
|
|
232
|
-
if (a41.mute === true) {
|
|
233
|
-
this.handleRTCUseCase.enableCamera(false);
|
|
234
|
-
}
|
|
235
|
-
if (a41.mute === false) {
|
|
236
|
-
this.handleRTCUseCase.enableCamera(true);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
onSocketTeacherSetPermission(v40) {
|
|
241
|
-
const w40 = decodeFromJson(v40, PLVLinkMicSocketTeacherSetPermissionRecv);
|
|
242
|
-
this.updateChannelViewerUseCase.onEventTeacherSetPermission(w40);
|
|
243
|
-
if (w40.type === "voice") {
|
|
244
|
-
const x40 = w40.status === "1";
|
|
245
|
-
const y40 = !isNullOrUndefined(w40.userId) && w40.userId === this.repo.mediator.channelData?.viewerId;
|
|
246
|
-
if (y40) {
|
|
247
|
-
this.repo.mediator.linkmicState.setValue(x40 ? PLVLinkMicState.Joined : PLVLinkMicState.NoLinkMic);
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
onSocketUserSetNick(r40) {
|
|
252
|
-
const s40 = decodeFromJson(r40, PLVMemberSocketSetNickRecv);
|
|
253
|
-
const t40 = s40.userId;
|
|
254
|
-
const u40 = this.repo.mediator.findViewerByViewerId(t40);
|
|
255
|
-
if (u40 !== undefined) {
|
|
256
|
-
u40.viewerName.setValue(s40.nick);
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
onSocketJoinRequest(p40) {
|
|
260
|
-
const q40 = decodeFromJson(p40, PLVLinkMicSocketJoinRequestRecv);
|
|
261
|
-
this.handleQueueOrderUseCase.onEventJoinRequest(q40);
|
|
262
|
-
}
|
|
263
|
-
onSocketJoinResponse(m40) {
|
|
264
|
-
const n40 = decodeFromJson(m40, PLVLinkMicSocketJoinResponseRecv);
|
|
265
|
-
if (!this.repo.mediator.isMySocketLinkMicId(n40.user?.userId)) {
|
|
266
|
-
return;
|
|
267
|
-
}
|
|
268
|
-
this.updateLinkMicMode(n40.type);
|
|
269
|
-
const o40 = this.repo.mediator.linkmicState.value;
|
|
270
|
-
if (n40.isNeedAnswer()) {
|
|
271
|
-
if (o40 === PLVLinkMicState.Requesting) {
|
|
272
|
-
this.acceptInvitation();
|
|
273
|
-
}
|
|
274
|
-
else if (o40 === PLVLinkMicState.NoLinkMic) {
|
|
275
|
-
this.repo.mediator.invitationExpireTimestamp.setValue(Date.now() + seconds(30).toMillis());
|
|
276
|
-
this.repo.mediator.linkmicState.setValue(PLVLinkMicState.Inviting);
|
|
277
|
-
this.updateInvitationExpireTime();
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
else {
|
|
281
|
-
this.repo.mediator.linkmicState.setValue(PLVLinkMicState.Joined);
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
onSocketJoinSuccess(k40) {
|
|
285
|
-
const l40 = decodeFromJson(k40, PLVLinkMicSocketJoinSuccessRecv);
|
|
286
|
-
this.handleQueueOrderUseCase.onEventJoinSuccess(l40);
|
|
287
|
-
this.updateChannelViewerUseCase.onEventJoinSuccess(l40);
|
|
288
|
-
}
|
|
289
|
-
onSocketJoinLeave(i40) {
|
|
290
|
-
const j40 = decodeFromJson(i40, PLVLinkMicSocketJoinLeaveRecv);
|
|
291
|
-
this.handleQueueOrderUseCase.onEventJoinLeave(j40);
|
|
292
|
-
this.updateChannelViewerUseCase.onEventJoinLeave(j40);
|
|
293
|
-
}
|
|
294
|
-
onSocketSwitchView(g40) {
|
|
295
|
-
const h40 = decodeFromJson(g40, PLVLinkMicSocketSwitchViewRecv);
|
|
296
|
-
if (isNullOrUndefined(h40.userId)) {
|
|
297
|
-
return;
|
|
298
|
-
}
|
|
299
|
-
this.repo.mediator.channelMainViewLinkMicId.setValue(h40.userId);
|
|
300
|
-
this.updateChannelViewerUseCase.onEventSwitchView(h40);
|
|
301
|
-
}
|
|
302
|
-
async tryAutoJoinLinkMic() {
|
|
303
|
-
const a40 = this.repo.mediator.channelData?.streamerData?.colinMicType === "auto";
|
|
304
|
-
if (!a40) {
|
|
305
|
-
return;
|
|
306
|
-
}
|
|
307
|
-
const b40 = Promises.withResolvers();
|
|
308
|
-
const c40 = this.repo.mediator.linkmicState.observe((f40) => {
|
|
309
|
-
if (f40 === PLVLinkMicState.Joined) {
|
|
310
|
-
b40.resolve();
|
|
311
|
-
c40.dispose();
|
|
312
|
-
}
|
|
313
|
-
});
|
|
314
|
-
this.observers.push(c40);
|
|
315
|
-
const d40 = async () => {
|
|
316
|
-
const e40 = new PLVLinkMicSocketJoinResponseSend();
|
|
317
|
-
e40.roomId = await this.repo.mediator.channelData?.loginRoomIdPromise.get();
|
|
318
|
-
e40.value = "1";
|
|
319
|
-
e40.toEmitAll = 1;
|
|
320
|
-
e40.user = this.createSocketUser();
|
|
321
|
-
this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_RESPONSE, encodeToJson(e40));
|
|
322
|
-
};
|
|
323
|
-
await runCatching(retry(async () => {
|
|
324
|
-
await withTimeout(seconds(8), async () => {
|
|
325
|
-
await d40();
|
|
326
|
-
await b40.promise;
|
|
327
|
-
});
|
|
328
|
-
}, RetryConditions.delay(3, seconds(1))));
|
|
329
|
-
c40.dispose();
|
|
330
|
-
}
|
|
331
|
-
onDestroy() {
|
|
332
|
-
this.disposables.forEach((z39) => {
|
|
333
|
-
z39.dispose();
|
|
334
|
-
});
|
|
335
|
-
this.disposables = [];
|
|
336
|
-
MutableObserver.disposeAll(this.observers);
|
|
337
|
-
this.observers = [];
|
|
338
|
-
}
|
|
339
|
-
observeSocketEvent(w39, x39) {
|
|
340
|
-
const y39 = requireNotNull(this.repo.mediator.socketMediator);
|
|
341
|
-
y39.onData(w39, x39);
|
|
342
|
-
return disposable(() => y39.offData(w39, x39));
|
|
343
|
-
}
|
|
344
|
-
createSocketUser() {
|
|
345
|
-
const v39 = new PLVSocketUserSend();
|
|
346
|
-
v39.nick = this.repo.mediator.channelData?.viewerName;
|
|
347
|
-
v39.pic = this.repo.mediator.channelData?.viewerAvatar;
|
|
348
|
-
v39.userType = this.repo.mediator.channelData?.viewerType;
|
|
349
|
-
v39.userId = this.repo.mediator.linkmicId;
|
|
350
|
-
return v39;
|
|
351
|
-
}
|
|
352
|
-
updateLinkMicMode(u39) {
|
|
353
|
-
if (u39 === PLVLinkMicMode.AUDIO || u39 === PLVLinkMicMode.VIDEO) {
|
|
354
|
-
this.repo.mediator.channelLinkMicMode.setValue(u39);
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
async isChannelReachLinkMicLimit() {
|
|
358
|
-
const q39 = this.repo.mediator.channelData?.liveDetail?.linkMicLimit;
|
|
359
|
-
if (q39 === undefined) {
|
|
360
|
-
PLVLogger.warn(TAG, "channel linkmic limit is undefined, treat as reach limit.");
|
|
361
|
-
return true;
|
|
362
|
-
}
|
|
363
|
-
const r39 = await runCatching(this.repo.getChannelLinkMicStatus());
|
|
364
|
-
if (r39.success === false) {
|
|
365
|
-
PLVLogger.warn(TAG, `channel linkmic status response fail: ${r39.error.message}`);
|
|
366
|
-
return true;
|
|
367
|
-
}
|
|
368
|
-
const s39 = r39.data.joinList?.filter(t39 => {
|
|
369
|
-
t39.userType === PLVUserType.USERTYPE_TEACHER || t39.classStatus?.voice === 1;
|
|
370
|
-
})?.length ?? 0;
|
|
371
|
-
if (s39 >= q39 + 1) {
|
|
372
|
-
PLVLogger.warn(TAG, `channel reach linkmic limit, current join ${s39}, limit ${q39}`);
|
|
373
|
-
return true;
|
|
374
|
-
}
|
|
375
|
-
else {
|
|
376
|
-
return false;
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
class SocketDisposable extends PLVDisposable {
|
|
381
|
-
constructor(p39) {
|
|
382
|
-
super();
|
|
383
|
-
this.onDispose = p39;
|
|
384
|
-
}
|
|
385
|
-
dispose() {
|
|
386
|
-
super.dispose();
|
|
387
|
-
this.onDispose?.();
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
function disposable(o39) {
|
|
391
|
-
return new SocketDisposable(o39);
|
|
392
|
-
}
|