@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,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 LinkMicTeacherEncodeParamUseCase {
|
|
7
|
-
constructor(z44) {
|
|
8
|
-
this.repo = z44;
|
|
9
|
-
}
|
|
10
|
-
init() {
|
|
11
|
-
this.parseChannelBitRateSetting();
|
|
12
|
-
this.setupDefaultBitRate();
|
|
13
|
-
}
|
|
14
|
-
setBitRate(y44) {
|
|
15
|
-
this.repo.mediator.currentBitRate.setValue(y44);
|
|
16
|
-
this.updateEncodeParam();
|
|
17
|
-
}
|
|
18
|
-
setPushResolutionRatio(x44) {
|
|
19
|
-
this.repo.mediator.currentPushResolutionRatio.setValue(x44);
|
|
20
|
-
if (!this.isChannelUsePushStreamTemplate()) {
|
|
21
|
-
this.parseChannelBitRateSetting();
|
|
22
|
-
}
|
|
23
|
-
this.updateEncodeParam();
|
|
24
|
-
}
|
|
25
|
-
setPushOrientation(w44) {
|
|
26
|
-
this.repo.mediator.currentPushOrientation.setValue(w44);
|
|
27
|
-
this.updateEncodeParam();
|
|
28
|
-
}
|
|
29
|
-
setPushMirror(v44) {
|
|
30
|
-
this.repo.mediator.currentPushMirror.setValue(v44);
|
|
31
|
-
this.updateEncodeParam();
|
|
32
|
-
}
|
|
33
|
-
setPushDowngradePreference(u44) {
|
|
34
|
-
this.repo.mediator.currentPushDowngradePreference.setValue(u44);
|
|
35
|
-
this.updateEncodeParam();
|
|
36
|
-
}
|
|
37
|
-
updateEncodeParam() {
|
|
38
|
-
const o44 = this.repo.mediator.currentBitRate.value;
|
|
39
|
-
const p44 = this.repo.mediator.channelSupportBitRates.value ?? [PLVLinkMicBitRate.STANDARD];
|
|
40
|
-
let q44 = o44;
|
|
41
|
-
if (q44 === undefined || !p44.includes(q44)) {
|
|
42
|
-
q44 = p44[0];
|
|
43
|
-
}
|
|
44
|
-
if (o44 !== q44) {
|
|
45
|
-
this.setBitRate(q44);
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
const r44 = this.repo.mediator.channelSupportBitRateEncodeParams.value?.find(t44 => t44.bitRate === q44);
|
|
49
|
-
if (r44 === undefined) {
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
this.repo.mediator.currentBitRateEncodeParam.setValue(r44);
|
|
53
|
-
const s44 = new PLVRTCVideoEncodeParam();
|
|
54
|
-
s44.width = r44.videoWidth;
|
|
55
|
-
s44.height = r44.videoHeight;
|
|
56
|
-
s44.frameRate = r44.videoFps;
|
|
57
|
-
s44.targetBitRate = r44.videoBitrate;
|
|
58
|
-
s44.pushOrientation = this.repo.mediator.currentPushOrientation.value ?? PLVPushOrientation.AUTO;
|
|
59
|
-
s44.pushMirror = this.repo.mediator.currentPushMirror.value ?? false;
|
|
60
|
-
s44.pushDowngradePreference = this.repo.mediator.currentPushDowngradePreference.value ?? PLVPushDowngradePreference.PREFER_BETTER_QUALITY;
|
|
61
|
-
this.repo.setLocalVideoEncodeParam(s44);
|
|
62
|
-
}
|
|
63
|
-
parseChannelBitRateSetting() {
|
|
64
|
-
if (this.isChannelUsePushStreamTemplate()) {
|
|
65
|
-
this.parsePushStreamTemplate();
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
this.parseBuiltinBitRateSetting();
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
parsePushStreamTemplate() {
|
|
72
|
-
const g44 = requireNotNull(this.repo.mediator.channelData?.streamerData?.pushStreamTemplateJson);
|
|
73
|
-
const h44 = extendArray(g44.VideoParams ?? [])
|
|
74
|
-
.map((k44, l44) => {
|
|
75
|
-
const m44 = runCatching(() => {
|
|
76
|
-
const n44 = new PLVLinkMicBitRate(l44, requireNotNull(k44.QualityName));
|
|
77
|
-
return new PLVLinkMicBitRateEncodeParam(n44, requireNotNull(k44.VideoFps), requireNotNull(k44.VideoGop), requireNotNull(k44.VideoWidth), requireNotNull(k44.VideoHeight), requireNotNull(k44.VideoBitrate), requireNotNull(k44.ScreenFps), requireNotNull(k44.ScreenGop), requireNotNull(k44.ScreenWidth), requireNotNull(k44.ScreenHeight), requireNotNull(k44.ScreenBitrate));
|
|
78
|
-
});
|
|
79
|
-
return m44.success ? m44.data : null;
|
|
80
|
-
})
|
|
81
|
-
.filterNotNull_ext();
|
|
82
|
-
this.repo.mediator.channelSupportBitRateEncodeParams.setValue(h44);
|
|
83
|
-
const i44 = h44.map(j44 => j44.bitRate);
|
|
84
|
-
this.repo.mediator.channelSupportBitRates.setValue(i44);
|
|
85
|
-
}
|
|
86
|
-
parseBuiltinBitRateSetting() {
|
|
87
|
-
const t43 = requireNotNull(this.repo.mediator.channelData?.streamerData);
|
|
88
|
-
const u43 = t43.rtcMaxResolution ?? 0;
|
|
89
|
-
let v43;
|
|
90
|
-
if (isLiteralTrue(t43.appPushResolution1080Enabled) || u43 >= 1080) {
|
|
91
|
-
v43 = [PLVLinkMicBitRate.STANDARD, PLVLinkMicBitRate.HIGH, PLVLinkMicBitRate.SUPER, PLVLinkMicBitRate.SUPER_HIGH];
|
|
92
|
-
}
|
|
93
|
-
else if (u43 >= 720) {
|
|
94
|
-
v43 = [PLVLinkMicBitRate.STANDARD, PLVLinkMicBitRate.HIGH, PLVLinkMicBitRate.SUPER];
|
|
95
|
-
}
|
|
96
|
-
else if (u43 >= 360) {
|
|
97
|
-
v43 = [PLVLinkMicBitRate.STANDARD, PLVLinkMicBitRate.HIGH];
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
v43 = [PLVLinkMicBitRate.STANDARD];
|
|
101
|
-
}
|
|
102
|
-
const w43 = t43.clientParams?.fps ?? 15;
|
|
103
|
-
const x43 = this.repo.mediator.currentPushResolutionRatio.value ?? PLVLinkMicPushResolutionRatio.RATIO_16_9;
|
|
104
|
-
const y43 = extendArray(DEFAULT_BITRATE_ENCODE_PARAM_TABLE)
|
|
105
|
-
.filter(f44 => v43.includes(f44.bitRate))
|
|
106
|
-
.groupBy_ext(e44 => e44.bitRate)
|
|
107
|
-
.filter_ext(d44 => d44[1].length > 0)
|
|
108
|
-
.mapValues_ext(c44 => this.reduceEncodeParams(c44[1], w43, x43))
|
|
109
|
-
.toArray_ext(b44 => b44[1]);
|
|
110
|
-
this.repo.mediator.channelSupportBitRateEncodeParams.setValue(y43);
|
|
111
|
-
const z43 = y43.map(a44 => a44.bitRate);
|
|
112
|
-
this.repo.mediator.channelSupportBitRates.setValue(z43);
|
|
113
|
-
}
|
|
114
|
-
reduceEncodeParams(f43, g43, h43) {
|
|
115
|
-
const i43 = (r43, s43) => Math.abs(r43 - s43) < 1e-6;
|
|
116
|
-
const j43 = f43.filter(q43 => q43.videoFps >= g43 && i43(q43.videoWidth / q43.videoHeight, h43.ratio));
|
|
117
|
-
if (j43.length > 0) {
|
|
118
|
-
if (j43.length === 1) {
|
|
119
|
-
return j43[0];
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
return j43.reduce((o43, p43) => o43.videoFps > p43.videoFps ? p43 : o43);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
const k43 = f43.filter(n43 => i43(n43.videoWidth / n43.videoHeight, h43.ratio));
|
|
126
|
-
if (k43.length > 0) {
|
|
127
|
-
if (k43.length === 1) {
|
|
128
|
-
return k43[0];
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
return j43.reduce((l43, m43) => l43.videoFps > m43.videoFps ? m43 : l43);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
return f43[0];
|
|
135
|
-
}
|
|
136
|
-
setupDefaultBitRate() {
|
|
137
|
-
if (this.isChannelUsePushStreamTemplate()) {
|
|
138
|
-
const a43 = requireNotNull(this.repo.mediator.channelData?.streamerData?.pushStreamTemplateJson);
|
|
139
|
-
const b43 = a43.VideoParams?.findIndex(e43 => e43.QualityLevel === a43.teacherDefaultQualityLevel);
|
|
140
|
-
const c43 = (this.repo.mediator.channelSupportBitRates.value ?? []).find(d43 => d43.index === b43) ?? PLVLinkMicBitRate.STANDARD;
|
|
141
|
-
this.setBitRate(c43);
|
|
142
|
-
}
|
|
143
|
-
else {
|
|
144
|
-
const z42 = extendArray(this.repo.mediator.channelSupportBitRates.value ?? [])
|
|
145
|
-
.lastOrNull_ext() ?? PLVLinkMicBitRate.STANDARD;
|
|
146
|
-
this.setBitRate(z42);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
isChannelUsePushStreamTemplate() {
|
|
150
|
-
const y42 = this.repo.mediator.channelData?.streamerData;
|
|
151
|
-
return isLiteralTrue(y42?.clientPushStreamTemplateEnabled) && y42?.pushStreamTemplateJson !== undefined;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
@@ -1,76 +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 { PLVLinkMicVideoRenderParam } from '../../../../model/vo/PLVLinkMicVideoRenderParam';
|
|
5
|
-
export class LinkMicTeacherHandleRTCUseCase {
|
|
6
|
-
constructor(m45) {
|
|
7
|
-
this.observers = [];
|
|
8
|
-
this.repo = m45;
|
|
9
|
-
}
|
|
10
|
-
init() {
|
|
11
|
-
}
|
|
12
|
-
joinChannel() {
|
|
13
|
-
this.repo.joinRTCChannel();
|
|
14
|
-
this.switchRole(PLVRTCClientRole.BROADCASTER);
|
|
15
|
-
}
|
|
16
|
-
leaveChannel() {
|
|
17
|
-
this.repo.leaveRTCChannel();
|
|
18
|
-
}
|
|
19
|
-
switchRole(l45) {
|
|
20
|
-
this.repo.switchRTCRole(l45);
|
|
21
|
-
}
|
|
22
|
-
enableCamera(k45) {
|
|
23
|
-
this.repo.enableLocalVideo(k45);
|
|
24
|
-
this.repo.mediator.localLinkMicViewer.value?.isVideoEnable?.setValue(k45);
|
|
25
|
-
}
|
|
26
|
-
enableMicrophone(j45) {
|
|
27
|
-
this.repo.enableLocalAudio(j45);
|
|
28
|
-
this.repo.mediator.localLinkMicViewer.value?.isAudioEnable?.setValue(j45);
|
|
29
|
-
}
|
|
30
|
-
enableCameraMicrophoneToLastState() {
|
|
31
|
-
}
|
|
32
|
-
switchCamera() {
|
|
33
|
-
this.repo.mediator.cameraFacing.value = (this.repo.mediator.cameraFacing.value ?? PLVLinkMicCameraFacing.FRONT).switchNext();
|
|
34
|
-
this.repo.switchCamera();
|
|
35
|
-
}
|
|
36
|
-
setLocalRenderMirror(g45) {
|
|
37
|
-
const h45 = this.repo.mediator.linkmicId;
|
|
38
|
-
if (h45 === undefined) {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
this.repo.mediator.localRenderMirror.setValue(g45);
|
|
42
|
-
const i45 = this.getVideoRenderParam(h45);
|
|
43
|
-
this.setupVideoRender(new PLVLinkMicVideoRenderParam(h45, i45.viewId));
|
|
44
|
-
}
|
|
45
|
-
setupVideoRender(e45) {
|
|
46
|
-
const f45 = this.getVideoRenderParam(e45.linkmicId);
|
|
47
|
-
f45.viewId = e45.xcomponentId;
|
|
48
|
-
if (this.repo.mediator.isMySocketLinkMicId(e45.linkmicId)) {
|
|
49
|
-
f45.renderMirror = this.repo.mediator.localRenderMirror.value ?? false;
|
|
50
|
-
}
|
|
51
|
-
this.repo.setVideoRender(f45);
|
|
52
|
-
}
|
|
53
|
-
removeVideoRender(c45) {
|
|
54
|
-
const d45 = this.getVideoRenderParam(c45.linkmicId);
|
|
55
|
-
if (c45.xcomponentId === null || d45.viewId === c45.xcomponentId) {
|
|
56
|
-
d45.viewId = null;
|
|
57
|
-
this.repo.setVideoRender(d45);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
onDestroy() {
|
|
61
|
-
MutableObserver.disposeAll(this.observers);
|
|
62
|
-
this.observers = [];
|
|
63
|
-
}
|
|
64
|
-
getVideoRenderParam(a45) {
|
|
65
|
-
let b45 = this.repo.getVideoRenderParam(a45);
|
|
66
|
-
if (b45 !== null) {
|
|
67
|
-
return b45;
|
|
68
|
-
}
|
|
69
|
-
b45 = new PLVRTCVideoRenderParam();
|
|
70
|
-
b45.linkmicId = a45;
|
|
71
|
-
b45.viewId = null;
|
|
72
|
-
b45.renderFitMode = PLVVideoRenderFitMode.HIDDEN;
|
|
73
|
-
b45.renderMirror = false;
|
|
74
|
-
return b45;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
import { PLVDisposable, PLVLogger, PLVRequestSetting } from '@polyvharmony/live-scenes-foundation';
|
|
2
|
-
import { decodeFromJson, delay, encodeToJson, isLiteralTrue, isNullOrUndefined, MutableObserver, Promises, requireNotNull, runCatching } from '@polyvharmony/media-player-sdk';
|
|
3
|
-
import { PLVSocketMessageEvent, PLVSocketOnEvent } from '../../../../../socket/model/PLVSocketEventConstants';
|
|
4
|
-
import { PLVLinkMicMode } from '../../../../model/vo/PLVLinkMicMode';
|
|
5
|
-
import { PLVLinkMicSocketJoinAnswerRecv, PLVLinkMicSocketJoinLeaveRecv, PLVLinkMicSocketJoinSuccessRecv, PLVLinkMicSocketMuteUserMediaSend, PLVLinkMicSocketOpenMicrophoneSend, PLVLinkMicSocketSwitchViewRecv, PLVLinkMicSocketSwitchViewSend, PLVLinkMicSocketTeacherSetPermissionRecv, PLVLinkMicSocketTeacherSetPermissionSend } from '../../../../model/vo/PLVLinkMicSocketEvent';
|
|
6
|
-
import { PLVLinkMicState } from '../../../../model/vo/PLVLinkMicState';
|
|
7
|
-
import { PLVMemberSocketSetNickRecv } from '../../../../../member/model/vo/PLVMemberSocketEvent';
|
|
8
|
-
import { PLVLinkMicAnswerInvitationEvent } from '../../../../model/vo/PLVLinkMicInteractEvent';
|
|
9
|
-
const TAG = "PLVLinkMicManager";
|
|
10
|
-
export class LinkMicTeacherHandleStateUseCase {
|
|
11
|
-
constructor(u47, v47, w47, x47) {
|
|
12
|
-
this.lastEmitLinkMicStatusModeUpdatePromise = null;
|
|
13
|
-
this.disposables = [];
|
|
14
|
-
this.observers = [];
|
|
15
|
-
this.repo = u47;
|
|
16
|
-
this.handleQueueOrderUseCase = v47;
|
|
17
|
-
this.handleRTCUseCase = w47;
|
|
18
|
-
this.updateChannelViewerUseCase = x47;
|
|
19
|
-
}
|
|
20
|
-
init() {
|
|
21
|
-
this.disposables.push(this.observeSocketEvent(PLVSocketOnEvent.MESSAGE, (s47, t47) => this.onSocketMessage(s47, t47)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_ANSWER, (r47) => this.onSocketJoinAnswer(r47)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_SUCCESS, (q47) => this.onSocketJoinSuccess(q47)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_LEAVE, (p47) => this.onSocketJoinLeave(p47)), this.observeSocketEvent(PLVSocketOnEvent.SWITCH_VIEW, (o47) => this.onSocketSwitchView(o47)));
|
|
22
|
-
}
|
|
23
|
-
async requestJoinLinkMic() {
|
|
24
|
-
}
|
|
25
|
-
async acceptInvitation() {
|
|
26
|
-
}
|
|
27
|
-
refuseInvitation() {
|
|
28
|
-
}
|
|
29
|
-
leaveLinkMic() {
|
|
30
|
-
}
|
|
31
|
-
onStreamerStart() {
|
|
32
|
-
this.repo.mediator.linkmicState.setValue(PLVLinkMicState.Joined);
|
|
33
|
-
this.handleRTCUseCase.joinChannel();
|
|
34
|
-
this.updateChannelViewerUseCase.startUpdateChannelLinkMicViewersInterval();
|
|
35
|
-
this.updateChannelViewerUseCase.handleChannelLinkMicViewersUpdate({
|
|
36
|
-
add: [this.repo.mediator.localLinkMicViewer.value]
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
onLiveStreamStart() {
|
|
40
|
-
}
|
|
41
|
-
async setLinkMicMode(m47) {
|
|
42
|
-
const n47 = this.repo.mediator.channelAllowRequestHandsUpLinkMic.value ?? false;
|
|
43
|
-
this.repo.mediator.channelLinkMicMode.setValue(m47);
|
|
44
|
-
if (this.repo.mediator.isLinkMicStrategyV2.value === true) {
|
|
45
|
-
if (!n47) {
|
|
46
|
-
return await this.closeLinkMic();
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
this.hangupAllViewersLinkMic();
|
|
50
|
-
return await this.openLinkMic();
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
return true;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
async openLinkMic() {
|
|
58
|
-
this.repo.mediator.channelAllowLinkMic.setValue(true);
|
|
59
|
-
this.repo.mediator.channelAllowRequestHandsUpLinkMic.setValue(true);
|
|
60
|
-
return await this.emitLinkMicStatusModeUpdate();
|
|
61
|
-
}
|
|
62
|
-
async closeLinkMic() {
|
|
63
|
-
if (this.repo.mediator.isLinkMicStrategyV2.value === true) {
|
|
64
|
-
this.repo.mediator.channelAllowLinkMic.setValue(true);
|
|
65
|
-
this.repo.mediator.channelAllowRequestHandsUpLinkMic.setValue(false);
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
this.repo.mediator.channelAllowLinkMic.setValue(false);
|
|
69
|
-
this.repo.mediator.channelAllowRequestHandsUpLinkMic.setValue(false);
|
|
70
|
-
}
|
|
71
|
-
return await this.emitLinkMicStatusModeUpdate();
|
|
72
|
-
}
|
|
73
|
-
async emitLinkMicStatusModeUpdate() {
|
|
74
|
-
await this.lastEmitLinkMicStatusModeUpdatePromise;
|
|
75
|
-
const i47 = Promises.withResolvers();
|
|
76
|
-
this.lastEmitLinkMicStatusModeUpdatePromise = i47.promise;
|
|
77
|
-
const j47 = this.repo.mediator.channelAllowRequestHandsUpLinkMic.value ?? false;
|
|
78
|
-
const k47 = this.repo.mediator.channelLinkMicMode.value ?? PLVLinkMicMode.VIDEO;
|
|
79
|
-
const l47 = new PLVLinkMicSocketOpenMicrophoneSend();
|
|
80
|
-
l47.roomId = this.repo.mediator.channelData?.loginChannelId;
|
|
81
|
-
l47.status = j47 ? "open" : "close";
|
|
82
|
-
l47.teacherId = this.repo.mediator.channelData?.viewerId;
|
|
83
|
-
l47.type = k47;
|
|
84
|
-
this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.MESSAGE, encodeToJson(l47), () => {
|
|
85
|
-
i47.resolve(true);
|
|
86
|
-
});
|
|
87
|
-
runCatching(async () => {
|
|
88
|
-
await delay(1000);
|
|
89
|
-
i47.resolve(false);
|
|
90
|
-
});
|
|
91
|
-
return i47.promise;
|
|
92
|
-
}
|
|
93
|
-
acceptViewerLinkMicRequest(h47) {
|
|
94
|
-
this.repo.mediator.memberMediator?.acceptViewerLinkMicRequest?.(h47);
|
|
95
|
-
}
|
|
96
|
-
inviteViewerLinkMic(f47, g47) {
|
|
97
|
-
this.repo.mediator.memberMediator?.inviteViewerLinkMic?.(f47, g47);
|
|
98
|
-
}
|
|
99
|
-
hangupViewerLinkMic(c47) {
|
|
100
|
-
const d47 = this.repo.mediator.findViewerByViewerId(c47);
|
|
101
|
-
const e47 = this.repo.mediator.channelMainViewLinkMicId.value;
|
|
102
|
-
if (!isNullOrUndefined(e47) && d47?.linkmicId === e47) {
|
|
103
|
-
this.revokeSpeaker("");
|
|
104
|
-
}
|
|
105
|
-
this.repo.mediator.memberMediator?.hangupViewerLinkMic?.(c47);
|
|
106
|
-
}
|
|
107
|
-
hangupAllViewersLinkMic() {
|
|
108
|
-
const b47 = new PLVLinkMicSocketOpenMicrophoneSend();
|
|
109
|
-
b47.status = "removeAll";
|
|
110
|
-
this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.MESSAGE, encodeToJson(b47));
|
|
111
|
-
}
|
|
112
|
-
setViewerEnableCamera(y46, z46) {
|
|
113
|
-
const a47 = new PLVLinkMicSocketMuteUserMediaSend();
|
|
114
|
-
a47.sessionId = this.repo.mediator.channelData?.sessionId;
|
|
115
|
-
a47.mute = !z46;
|
|
116
|
-
a47.teacherId = this.repo.mediator.channelData?.viewerId;
|
|
117
|
-
a47.userId = y46;
|
|
118
|
-
a47.type = "video";
|
|
119
|
-
this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.MESSAGE, encodeToJson(a47));
|
|
120
|
-
}
|
|
121
|
-
setViewerEnableMicrophone(v46, w46) {
|
|
122
|
-
const x46 = new PLVLinkMicSocketMuteUserMediaSend();
|
|
123
|
-
x46.sessionId = this.repo.mediator.channelData?.sessionId;
|
|
124
|
-
x46.mute = !w46;
|
|
125
|
-
x46.teacherId = this.repo.mediator.channelData?.viewerId;
|
|
126
|
-
x46.userId = v46;
|
|
127
|
-
x46.type = "audio";
|
|
128
|
-
this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.MESSAGE, encodeToJson(x46));
|
|
129
|
-
}
|
|
130
|
-
grantSpeaker(u46) {
|
|
131
|
-
this.moveSpeaker(u46);
|
|
132
|
-
this.setMainView(u46);
|
|
133
|
-
}
|
|
134
|
-
revokeSpeaker(s46) {
|
|
135
|
-
const t46 = requireNotNull(this.repo.mediator.channelData?.viewerId);
|
|
136
|
-
this.moveSpeaker(t46);
|
|
137
|
-
this.setMainView(t46);
|
|
138
|
-
}
|
|
139
|
-
setMainView(p46) {
|
|
140
|
-
const q46 = this.repo.mediator.memberMediator?.findViewerByViewerId(p46);
|
|
141
|
-
if (q46 === undefined) {
|
|
142
|
-
PLVLogger.error(TAG, `setMainView fail, viewerId ${p46} not found.`);
|
|
143
|
-
return;
|
|
144
|
-
}
|
|
145
|
-
const r46 = new PLVLinkMicSocketSwitchViewSend();
|
|
146
|
-
r46.emitMode = 0;
|
|
147
|
-
r46.roomId = this.repo.mediator.channelData?.loginChannelId;
|
|
148
|
-
r46.userId = q46.linkmicId;
|
|
149
|
-
r46.socketId = q46.socketId;
|
|
150
|
-
this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.SWITCH_VIEW, encodeToJson(r46));
|
|
151
|
-
}
|
|
152
|
-
moveSpeaker(n46) {
|
|
153
|
-
const o46 = new PLVLinkMicSocketTeacherSetPermissionSend();
|
|
154
|
-
o46.emitMode = 0;
|
|
155
|
-
o46.roomId = this.repo.mediator.channelData?.loginChannelId;
|
|
156
|
-
o46.sessionId = this.repo.mediator.channelData?.sessionId;
|
|
157
|
-
o46.type = "speaker";
|
|
158
|
-
o46.status = "1";
|
|
159
|
-
o46.userId = n46;
|
|
160
|
-
o46.sign = PLVRequestSetting.createSign(new Map(Object.entries(o46)), "polyvChatSign")
|
|
161
|
-
.toUpperCase();
|
|
162
|
-
this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.MESSAGE, encodeToJson(o46));
|
|
163
|
-
}
|
|
164
|
-
onLiveStreamStop() {
|
|
165
|
-
}
|
|
166
|
-
onStreamerStop() {
|
|
167
|
-
this.closeLinkMic();
|
|
168
|
-
this.updateChannelViewerUseCase.stopUpdateChannelLinkMicViewersInterval();
|
|
169
|
-
this.updateChannelViewerUseCase.handleChannelLinkMicViewersUpdate({
|
|
170
|
-
remove: [this.repo.mediator.localLinkMicViewer.value]
|
|
171
|
-
});
|
|
172
|
-
this.repo.mediator.linkmicState.setValue(PLVLinkMicState.NoLinkMic);
|
|
173
|
-
this.handleRTCUseCase.leaveChannel();
|
|
174
|
-
}
|
|
175
|
-
updateInvitationExpireTime() {
|
|
176
|
-
}
|
|
177
|
-
onSocketMessage(l46, m46) {
|
|
178
|
-
switch (m46) {
|
|
179
|
-
case PLVSocketMessageEvent.TEACHER_SET_PERMISSION:
|
|
180
|
-
return this.onSocketTeacherSetPermission(l46);
|
|
181
|
-
case PLVSocketMessageEvent.SET_NICK:
|
|
182
|
-
return this.onSocketUserSetNick(l46);
|
|
183
|
-
default:
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
onSocketTeacherSetPermission(j46) {
|
|
187
|
-
const k46 = decodeFromJson(j46, PLVLinkMicSocketTeacherSetPermissionRecv);
|
|
188
|
-
this.updateChannelViewerUseCase.onEventTeacherSetPermission(k46);
|
|
189
|
-
}
|
|
190
|
-
onSocketUserSetNick(f46) {
|
|
191
|
-
const g46 = decodeFromJson(f46, PLVMemberSocketSetNickRecv);
|
|
192
|
-
const h46 = g46.userId;
|
|
193
|
-
const i46 = this.repo.mediator.findViewerByViewerId(h46);
|
|
194
|
-
if (i46 !== undefined) {
|
|
195
|
-
i46.viewerName.setValue(g46.nick);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
onSocketJoinAnswer(a46) {
|
|
199
|
-
const b46 = decodeFromJson(a46, PLVLinkMicSocketJoinAnswerRecv);
|
|
200
|
-
const c46 = b46.userId;
|
|
201
|
-
if (isNullOrUndefined(c46)) {
|
|
202
|
-
return;
|
|
203
|
-
}
|
|
204
|
-
const d46 = this.repo.mediator.memberMediator?.findViewerByViewerId(c46);
|
|
205
|
-
if (d46 !== undefined) {
|
|
206
|
-
const e46 = isLiteralTrue(b46.status);
|
|
207
|
-
this.repo.mediator.viewerAnswerInvitationEvent.setValue(new PLVLinkMicAnswerInvitationEvent(d46, e46));
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
onSocketJoinSuccess(y45) {
|
|
211
|
-
const z45 = decodeFromJson(y45, PLVLinkMicSocketJoinSuccessRecv);
|
|
212
|
-
this.updateChannelViewerUseCase.onEventJoinSuccess(z45);
|
|
213
|
-
}
|
|
214
|
-
onSocketJoinLeave(v45) {
|
|
215
|
-
const w45 = decodeFromJson(v45, PLVLinkMicSocketJoinLeaveRecv);
|
|
216
|
-
this.updateChannelViewerUseCase.onEventJoinLeave(w45);
|
|
217
|
-
const x45 = this.repo.mediator.channelMainViewLinkMicId.value;
|
|
218
|
-
if (!isNullOrUndefined(x45) && w45.user?.userId === x45) {
|
|
219
|
-
this.revokeSpeaker("");
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
onSocketSwitchView(t45) {
|
|
223
|
-
const u45 = decodeFromJson(t45, PLVLinkMicSocketSwitchViewRecv);
|
|
224
|
-
if (isNullOrUndefined(u45.userId)) {
|
|
225
|
-
return;
|
|
226
|
-
}
|
|
227
|
-
this.repo.mediator.channelMainViewLinkMicId.setValue(u45.userId);
|
|
228
|
-
this.updateChannelViewerUseCase.onEventSwitchView(u45);
|
|
229
|
-
}
|
|
230
|
-
onDestroy() {
|
|
231
|
-
this.disposables.forEach((s45) => {
|
|
232
|
-
s45.dispose();
|
|
233
|
-
});
|
|
234
|
-
this.disposables = [];
|
|
235
|
-
MutableObserver.disposeAll(this.observers);
|
|
236
|
-
this.observers = [];
|
|
237
|
-
}
|
|
238
|
-
observeSocketEvent(p45, q45) {
|
|
239
|
-
const r45 = requireNotNull(this.repo.mediator.socketMediator);
|
|
240
|
-
r45.onData(p45, q45);
|
|
241
|
-
return disposable(() => r45.offData(p45, q45));
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
class SocketDisposable extends PLVDisposable {
|
|
245
|
-
constructor(o45) {
|
|
246
|
-
super();
|
|
247
|
-
this.onDispose = o45;
|
|
248
|
-
}
|
|
249
|
-
dispose() {
|
|
250
|
-
super.dispose();
|
|
251
|
-
this.onDispose?.();
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
function disposable(n45) {
|
|
255
|
-
return new SocketDisposable(n45);
|
|
256
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { PLVRTCVideoEncodeParam } from '@polyvharmony/rtc-sdk';
|
|
2
|
-
export class LinkMicViewerEncodeParamUseCase {
|
|
3
|
-
constructor(e48) {
|
|
4
|
-
this.repo = e48;
|
|
5
|
-
}
|
|
6
|
-
init() {
|
|
7
|
-
const d48 = new PLVRTCVideoEncodeParam();
|
|
8
|
-
d48.width = 320;
|
|
9
|
-
d48.height = 180;
|
|
10
|
-
d48.frameRate = 15;
|
|
11
|
-
d48.targetBitRate = 400;
|
|
12
|
-
this.repo.setLocalVideoEncodeParam(d48);
|
|
13
|
-
}
|
|
14
|
-
setBitRate(c48) {
|
|
15
|
-
}
|
|
16
|
-
setPushResolutionRatio(b48) {
|
|
17
|
-
}
|
|
18
|
-
setPushOrientation(a48) {
|
|
19
|
-
}
|
|
20
|
-
setPushMirror(z47) {
|
|
21
|
-
}
|
|
22
|
-
setPushDowngradePreference(y47) {
|
|
23
|
-
}
|
|
24
|
-
}
|
package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleRTCUseCase.js
DELETED
|
@@ -1,106 +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 { PLVLinkMicMode } from '../../../../model/vo/PLVLinkMicMode';
|
|
5
|
-
import { PLVLinkMicState } from '../../../../model/vo/PLVLinkMicState';
|
|
6
|
-
import { PLVLinkMicVideoRenderParam } from '../../../../model/vo/PLVLinkMicVideoRenderParam';
|
|
7
|
-
export class LinkMicViewerHandleRTCUseCase {
|
|
8
|
-
constructor(x48) {
|
|
9
|
-
this.observers = [];
|
|
10
|
-
this.lastEnableCamera = false;
|
|
11
|
-
this.lastEnableMicrophone = false;
|
|
12
|
-
this.repo = x48;
|
|
13
|
-
}
|
|
14
|
-
init() {
|
|
15
|
-
}
|
|
16
|
-
joinChannel() {
|
|
17
|
-
this.repo.joinRTCChannel();
|
|
18
|
-
this.switchRole(PLVRTCClientRole.BROADCASTER);
|
|
19
|
-
this.enableCameraMicrophoneToLastState();
|
|
20
|
-
}
|
|
21
|
-
leaveChannel() {
|
|
22
|
-
this.enableCamera(false);
|
|
23
|
-
this.enableMicrophone(false);
|
|
24
|
-
this.repo.leaveRTCChannel();
|
|
25
|
-
}
|
|
26
|
-
switchRole(w48) {
|
|
27
|
-
this.repo.switchRTCRole(w48);
|
|
28
|
-
}
|
|
29
|
-
enableCamera(v48) {
|
|
30
|
-
this.repo.enableLocalVideo(v48);
|
|
31
|
-
this.repo.mediator.localLinkMicViewer.value?.isVideoEnable?.setValue(v48);
|
|
32
|
-
this.updateLastEnableCamera(v48);
|
|
33
|
-
}
|
|
34
|
-
enableMicrophone(u48) {
|
|
35
|
-
this.repo.enableLocalAudio(u48);
|
|
36
|
-
this.repo.mediator.localLinkMicViewer.value?.isAudioEnable?.setValue(u48);
|
|
37
|
-
this.updateLastEnableMicrophone(u48);
|
|
38
|
-
}
|
|
39
|
-
enableCameraMicrophoneToLastState() {
|
|
40
|
-
const t48 = this.lastEnableCamera && this.repo.mediator.channelLinkMicMode.value === PLVLinkMicMode.VIDEO;
|
|
41
|
-
this.enableCamera(t48);
|
|
42
|
-
this.enableMicrophone(this.lastEnableMicrophone);
|
|
43
|
-
}
|
|
44
|
-
switchCamera() {
|
|
45
|
-
this.repo.mediator.cameraFacing.value = (this.repo.mediator.cameraFacing.value ?? PLVLinkMicCameraFacing.FRONT).switchNext();
|
|
46
|
-
this.repo.switchCamera();
|
|
47
|
-
}
|
|
48
|
-
setLocalRenderMirror(q48) {
|
|
49
|
-
const r48 = this.repo.mediator.linkmicId;
|
|
50
|
-
if (r48 === undefined) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
this.repo.mediator.localRenderMirror.setValue(q48);
|
|
54
|
-
const s48 = this.getVideoRenderParam(r48);
|
|
55
|
-
this.setupVideoRender(new PLVLinkMicVideoRenderParam(r48, s48.viewId));
|
|
56
|
-
}
|
|
57
|
-
setupVideoRender(o48) {
|
|
58
|
-
const p48 = this.getVideoRenderParam(o48.linkmicId);
|
|
59
|
-
p48.viewId = o48.xcomponentId;
|
|
60
|
-
if (this.repo.mediator.isMySocketLinkMicId(o48.linkmicId)) {
|
|
61
|
-
p48.renderMirror = this.repo.mediator.localRenderMirror.value ?? false;
|
|
62
|
-
}
|
|
63
|
-
this.repo.setVideoRender(p48);
|
|
64
|
-
}
|
|
65
|
-
removeVideoRender(m48) {
|
|
66
|
-
const n48 = this.getVideoRenderParam(m48.linkmicId);
|
|
67
|
-
if (m48.xcomponentId === null || n48.viewId === m48.xcomponentId) {
|
|
68
|
-
n48.viewId = null;
|
|
69
|
-
this.repo.setVideoRender(n48);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
onDestroy() {
|
|
73
|
-
MutableObserver.disposeAll(this.observers);
|
|
74
|
-
this.observers = [];
|
|
75
|
-
}
|
|
76
|
-
updateLastEnableCamera(k48) {
|
|
77
|
-
const l48 = this.repo.mediator.linkmicState.value;
|
|
78
|
-
if (l48 === PLVLinkMicState.Inviting || l48 === PLVLinkMicState.Joined) {
|
|
79
|
-
this.lastEnableCamera = k48;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
updateLastEnableMicrophone(i48) {
|
|
83
|
-
const j48 = this.repo.mediator.linkmicState.value;
|
|
84
|
-
if (j48 === PLVLinkMicState.Inviting || j48 === PLVLinkMicState.Joined) {
|
|
85
|
-
this.lastEnableMicrophone = i48;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
getVideoRenderParam(f48) {
|
|
89
|
-
let g48 = this.repo.getVideoRenderParam(f48);
|
|
90
|
-
if (g48 !== null) {
|
|
91
|
-
return g48;
|
|
92
|
-
}
|
|
93
|
-
const h48 = f48 === this.repo.mediator.channelData?.loginChannelId;
|
|
94
|
-
g48 = new PLVRTCVideoRenderParam();
|
|
95
|
-
g48.linkmicId = f48;
|
|
96
|
-
g48.viewId = null;
|
|
97
|
-
if (h48) {
|
|
98
|
-
g48.renderFitMode = PLVVideoRenderFitMode.FIT;
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
g48.renderFitMode = PLVVideoRenderFitMode.HIDDEN;
|
|
102
|
-
}
|
|
103
|
-
g48.renderMirror = false;
|
|
104
|
-
return g48;
|
|
105
|
-
}
|
|
106
|
-
}
|