@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,72 +0,0 @@
|
|
|
1
|
-
import { lazy, PLVMediaPlayer, PLVPlaybackListType, requireNotNull } from '@polyvharmony/media-player-sdk';
|
|
2
|
-
import { PLVBaseModule } from '../../common/PLVBaseModule';
|
|
3
|
-
import { PLVLoginType } from '../login/model/PLVLoginType';
|
|
4
|
-
export class PLVPlayerManager extends PLVBaseModule {
|
|
5
|
-
constructor(a81) {
|
|
6
|
-
super(a81);
|
|
7
|
-
this._mainMediaPlayer = lazy(() => new PLVMediaPlayer());
|
|
8
|
-
}
|
|
9
|
-
get mainMediaPlayer() {
|
|
10
|
-
return this._mainMediaPlayer.value;
|
|
11
|
-
}
|
|
12
|
-
startMainMediaPlayerWithComponent(z80) {
|
|
13
|
-
this.mainMediaPlayer.setXComponent(z80);
|
|
14
|
-
this.setMainMediaPlayerResource();
|
|
15
|
-
}
|
|
16
|
-
changePlaybackVid(y80) {
|
|
17
|
-
this.setMediaResourceToPlayback(y80);
|
|
18
|
-
}
|
|
19
|
-
setMainMediaPlayerResource() {
|
|
20
|
-
if (this.channelData.loginType === PLVLoginType.LIVE) {
|
|
21
|
-
this.mainMediaPlayer.setMediaResource({
|
|
22
|
-
channelId: requireNotNull(this.channelData.loginChannelId),
|
|
23
|
-
authentication: {
|
|
24
|
-
userId: requireNotNull(this.channelData.userId),
|
|
25
|
-
appId: requireNotNull(this.channelData.appId),
|
|
26
|
-
appSecret: requireNotNull(this.channelData.appSecret),
|
|
27
|
-
},
|
|
28
|
-
viewerParam: {
|
|
29
|
-
viewerId: requireNotNull(this.channelData.viewerId),
|
|
30
|
-
viewerName: requireNotNull(this.channelData.viewerName),
|
|
31
|
-
viewerAvatar: this.channelData.viewerAvatar,
|
|
32
|
-
viewLogParam4: this.channelData.param4,
|
|
33
|
-
viewLogParam5: this.channelData.param5,
|
|
34
|
-
},
|
|
35
|
-
scene: 'live'
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
else if (this.channelData.loginType === PLVLoginType.PLAYBACK) {
|
|
39
|
-
this.setMediaResourceToPlayback(this.channelData.playbackVid);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
setMediaResourceToPlayback(x80) {
|
|
43
|
-
this.mainMediaPlayer.setMediaResource({
|
|
44
|
-
channelId: requireNotNull(this.channelData.loginChannelId),
|
|
45
|
-
authentication: {
|
|
46
|
-
userId: requireNotNull(this.channelData.userId),
|
|
47
|
-
appId: requireNotNull(this.channelData.appId),
|
|
48
|
-
appSecret: requireNotNull(this.channelData.appSecret),
|
|
49
|
-
},
|
|
50
|
-
viewerParam: {
|
|
51
|
-
viewerId: requireNotNull(this.channelData.viewerId),
|
|
52
|
-
viewerName: requireNotNull(this.channelData.viewerName),
|
|
53
|
-
viewerAvatar: this.channelData.viewerAvatar,
|
|
54
|
-
viewLogParam4: this.channelData.param4,
|
|
55
|
-
viewLogParam5: this.channelData.param5,
|
|
56
|
-
},
|
|
57
|
-
videoId: x80,
|
|
58
|
-
playbackListType: PLVPlaybackListType.parseType(this.channelData.playbackListType),
|
|
59
|
-
scene: 'playback'
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
release() {
|
|
63
|
-
if (this._mainMediaPlayer.isInit) {
|
|
64
|
-
this.mainMediaPlayer.release();
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
destroy() {
|
|
68
|
-
if (this._mainMediaPlayer.isInit) {
|
|
69
|
-
this.mainMediaPlayer.destroy();
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { PLVPlaybackListType } from "@polyvharmony/media-player-sdk";
|
|
2
|
-
export class PLVPlayerMediator {
|
|
3
|
-
constructor(d81) {
|
|
4
|
-
this.playerManager = d81;
|
|
5
|
-
}
|
|
6
|
-
get viewLogReportFrequency() {
|
|
7
|
-
return this.playerManager.mainMediaPlayer.getBusinessListenerRegistry().liveChannelJson.value?.reportFreq ?? 10;
|
|
8
|
-
}
|
|
9
|
-
get videoCurrentPosition() {
|
|
10
|
-
return this.playerManager.mainMediaPlayer.getCurrentPosition();
|
|
11
|
-
}
|
|
12
|
-
get pptPlayType() {
|
|
13
|
-
const c81 = this.playerManager.mainMediaPlayer.getBusinessListenerRegistry().playbackVideoData.value;
|
|
14
|
-
if (PLVPlaybackListType.TEMP_STORE === c81?.playbackListType) {
|
|
15
|
-
return PLVPlaybackListType.TEMP_STORE.origin;
|
|
16
|
-
}
|
|
17
|
-
return PLVPlaybackListType.PLAYBACK.origin;
|
|
18
|
-
}
|
|
19
|
-
get pptPlayId() {
|
|
20
|
-
const b81 = this.playerManager.mainMediaPlayer.getBusinessListenerRegistry().playbackVideoData.value;
|
|
21
|
-
if (PLVPlaybackListType.TEMP_STORE === b81?.playbackListType) {
|
|
22
|
-
return b81.fileId ?? '';
|
|
23
|
-
}
|
|
24
|
-
return b81?.videoId ?? '';
|
|
25
|
-
}
|
|
26
|
-
get playbackVideoData() {
|
|
27
|
-
return this.playerManager.mainMediaPlayer.getBusinessListenerRegistry().playbackVideoData;
|
|
28
|
-
}
|
|
29
|
-
get seekStartEvent() {
|
|
30
|
-
return this.playerManager.mainMediaPlayer.getEventListenerRegistry().onSeekStartEvent;
|
|
31
|
-
}
|
|
32
|
-
get playerState() {
|
|
33
|
-
return this.playerManager.mainMediaPlayer.getStateListenerRegistry().playerState;
|
|
34
|
-
}
|
|
35
|
-
get progressState() {
|
|
36
|
-
return this.playerManager.mainMediaPlayer.getStateListenerRegistry().progressState;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { PLVTextUtils } from "@polyvharmony/live-scenes-foundation";
|
|
2
|
-
export class PLVPreviousListVO {
|
|
3
|
-
fill() {
|
|
4
|
-
if (this.contents) {
|
|
5
|
-
this.contents.forEach(n79 => {
|
|
6
|
-
n79.firstImage = PLVTextUtils.fixPic(n79.firstImage);
|
|
7
|
-
if (n79.startTime) {
|
|
8
|
-
n79.startTime = this.formatDateUtil(n79.startTime);
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
formatDateUtil(m79) {
|
|
14
|
-
if (m79.length >= 12) {
|
|
15
|
-
return `${m79.slice(0, 4)}-${m79.slice(4, 6)}-${m79.slice(6, 8)} ${m79.slice(8, 10)}:${m79.slice(10, 12)}`;
|
|
16
|
-
}
|
|
17
|
-
return m79;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
export class PLVPreviousContent {
|
|
21
|
-
}
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { PLVLogger, PLVPromiseValue, PLVStatefulData, PLVUtils } from '@polyvharmony/live-scenes-foundation';
|
|
2
|
-
import { MutableObserver, PLVPlaybackListType as PlayerPLVPlaybackListType, PLVMediaPlayerState } from '@polyvharmony/media-player-sdk';
|
|
3
|
-
import { PLVBaseModule } from '../../../common/PLVBaseModule';
|
|
4
|
-
import { apiChatPlvNetApi } from '../../net/PLVApiChatPlvNetApi';
|
|
5
|
-
import { apiPlvNetApi } from '../../net/PLVApiPlvNetApi';
|
|
6
|
-
import { PLVPlaybackListType } from './PLVPlaybackListType';
|
|
7
|
-
const TAG = '[PLVPreviousManager]';
|
|
8
|
-
export class PLVPreviousManager extends PLVBaseModule {
|
|
9
|
-
constructor(v80, w80) {
|
|
10
|
-
super(v80);
|
|
11
|
-
this.pageSize = 50;
|
|
12
|
-
this.isNoMoreData = false;
|
|
13
|
-
this.currentPage = 0;
|
|
14
|
-
this.previousList = [];
|
|
15
|
-
this.selPreviousDataPromise = new PLVPromiseValue();
|
|
16
|
-
this.selChapterDataPromise = new PLVPromiseValue();
|
|
17
|
-
this.previousListPromise = new PLVPromiseValue();
|
|
18
|
-
this.chapterListPromise = new PLVPromiseValue();
|
|
19
|
-
this.observes = [];
|
|
20
|
-
this.playerMediator = w80;
|
|
21
|
-
this.init();
|
|
22
|
-
}
|
|
23
|
-
changeSelPreviousIndex(u80) {
|
|
24
|
-
this.selPreviousDataPromise.set(new PLVSelPreviousData(u80, this.previousList[u80]?.videoPoolId));
|
|
25
|
-
}
|
|
26
|
-
changeSelChapterIndex(s80, t80 = true) {
|
|
27
|
-
this.selChapterDataPromise.set(new PLVSelChapterData(s80, this.chapterListPromise.value?.data?.[s80]?.timeStamp, t80));
|
|
28
|
-
}
|
|
29
|
-
requestPreviousList() {
|
|
30
|
-
return PLVUtils.safePromise(async (m80, n80) => {
|
|
31
|
-
const o80 = PLVPlaybackListType.VOD == this.channelData.playbackListType ? 'vod' : 'playback';
|
|
32
|
-
this.currentPage++;
|
|
33
|
-
const p80 = await apiPlvNetApi(this.channelData)
|
|
34
|
-
.getPreviousList(this.channelData.loginChannelId, this.channelData.appId, this.channelData.appSecret, this.currentPage, this.pageSize, o80)
|
|
35
|
-
.catch((r80) => {
|
|
36
|
-
this.currentPage--;
|
|
37
|
-
this.previousListPromise.set(PLVStatefulData.error(r80));
|
|
38
|
-
return Promise.reject(r80.log(TAG, 'requestPreviousList error'));
|
|
39
|
-
});
|
|
40
|
-
m80(p80.data.data);
|
|
41
|
-
const q80 = p80.data.data.contents;
|
|
42
|
-
this.isNoMoreData = (q80?.length ?? 0) < this.pageSize;
|
|
43
|
-
if ((q80?.length ?? 0) > 0) {
|
|
44
|
-
if (this.previousList.length === 0) {
|
|
45
|
-
this.selPreviousDataPromise.set(new PLVSelPreviousData(0, q80[0].videoPoolId));
|
|
46
|
-
}
|
|
47
|
-
this.previousList.push(...q80);
|
|
48
|
-
this.previousListPromise.set(PLVStatefulData.success(this.previousList));
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
PLVLogger.info(TAG, 'requestPreviousList no more data');
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
destroy() {
|
|
56
|
-
MutableObserver.disposeAll(this.observes);
|
|
57
|
-
}
|
|
58
|
-
async init() {
|
|
59
|
-
await this.channelData.initializedPromise.get();
|
|
60
|
-
if (this.channelData.hasChapterMenu()) {
|
|
61
|
-
this.playerMediator.playbackVideoData.observe((l80) => {
|
|
62
|
-
if (!l80) {
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
if (PlayerPLVPlaybackListType.TEMP_STORE === l80.playbackListType) {
|
|
66
|
-
this.updateChapterListByRecord(l80.fileId);
|
|
67
|
-
}
|
|
68
|
-
else if (l80.fileUrl) {
|
|
69
|
-
this.updateChapterListByPlayback(l80.videoId);
|
|
70
|
-
}
|
|
71
|
-
}).pushTo(this.observes);
|
|
72
|
-
this.playerMediator.progressState.observe((g80) => {
|
|
73
|
-
if ((this.chapterListPromise.value?.data?.length ?? 0) <= 0) {
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
const h80 = this.chapterListPromise.value.data;
|
|
77
|
-
let i80 = -1;
|
|
78
|
-
for (let j80 = 0; j80 < h80.length; j80++) {
|
|
79
|
-
const k80 = h80[j80];
|
|
80
|
-
if (g80 >= (k80.timeStamp !== undefined ? k80.timeStamp * 1000 : 0)) {
|
|
81
|
-
i80 = j80;
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
break;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
if (i80 !== -1 && i80 !== this.selChapterDataPromise.value?.index) {
|
|
88
|
-
this.changeSelChapterIndex(i80, false);
|
|
89
|
-
}
|
|
90
|
-
}).pushTo(this.observes);
|
|
91
|
-
}
|
|
92
|
-
if (this.channelData.hasPreviousMenu()) {
|
|
93
|
-
this.playerMediator.playerState.observe((d80) => {
|
|
94
|
-
if (PLVMediaPlayerState.STATE_COMPLETED === d80) {
|
|
95
|
-
if (this.selPreviousDataPromise.value != null) {
|
|
96
|
-
const e80 = this.previousList.length - 1 === this.selPreviousDataPromise.value.index;
|
|
97
|
-
const f80 = e80 ? 0 : this.selPreviousDataPromise.value.index + 1;
|
|
98
|
-
this.changeSelPreviousIndex(f80);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}).pushTo(this.observes);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
updateChapterListByPlayback(y79) {
|
|
105
|
-
if (!y79 || this.lastRequestChapterId === y79) {
|
|
106
|
-
return;
|
|
107
|
-
}
|
|
108
|
-
this.lastRequestChapterId = y79;
|
|
109
|
-
return PLVUtils.safePromise(async (z79, a80) => {
|
|
110
|
-
const b80 = await apiChatPlvNetApi(this.channelData)
|
|
111
|
-
.getPlaybackChapterList(this.channelData.loginChannelId, y79)
|
|
112
|
-
.catch((c80) => {
|
|
113
|
-
this.chapterListPromise.set(PLVStatefulData.error(c80));
|
|
114
|
-
return Promise.reject(c80.log(TAG, 'updateChapterListByPlayback error'));
|
|
115
|
-
});
|
|
116
|
-
if (b80.data.length > 0) {
|
|
117
|
-
this.chapterListPromise.set(PLVStatefulData.success(b80.data));
|
|
118
|
-
this.changeSelChapterIndex(0, false);
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
PLVLogger.info(TAG, 'updateChapterListByPlayback no data');
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
updateChapterListByRecord(t79) {
|
|
126
|
-
if (!t79 || this.lastRequestChapterId === t79) {
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
this.lastRequestChapterId = t79;
|
|
130
|
-
return PLVUtils.safePromise(async (u79, v79) => {
|
|
131
|
-
const w79 = await apiChatPlvNetApi(this.channelData)
|
|
132
|
-
.getRecordChapterList(this.channelData.loginChannelId, t79)
|
|
133
|
-
.catch((x79) => {
|
|
134
|
-
this.chapterListPromise.set(PLVStatefulData.error(x79));
|
|
135
|
-
return Promise.reject(x79.log(TAG, 'updateChapterListByRecord error'));
|
|
136
|
-
});
|
|
137
|
-
if (w79.data.length > 0) {
|
|
138
|
-
this.chapterListPromise.set(PLVStatefulData.success(w79.data));
|
|
139
|
-
this.changeSelChapterIndex(0, false);
|
|
140
|
-
}
|
|
141
|
-
else {
|
|
142
|
-
PLVLogger.info(TAG, 'updateChapterListByRecord no data');
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
export class PLVSelPreviousData {
|
|
148
|
-
constructor(r79, s79) {
|
|
149
|
-
this.index = 0;
|
|
150
|
-
this.videoPoolId = '';
|
|
151
|
-
this.index = r79;
|
|
152
|
-
this.videoPoolId = s79;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
export class PLVSelChapterData {
|
|
156
|
-
constructor(o79, p79, q79) {
|
|
157
|
-
this.index = 0;
|
|
158
|
-
this.timeMillisecond = 0;
|
|
159
|
-
this.isPostChanged = false;
|
|
160
|
-
this.index = o79;
|
|
161
|
-
this.timeMillisecond = p79 !== undefined ? p79 * 1000 : undefined;
|
|
162
|
-
this.isPostChanged = q79;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
if (!("finalizeConstruction" in ViewPU.prototype)) {
|
|
2
|
-
Reflect.set(ViewPU.prototype, "finalizeConstruction", () => { });
|
|
3
|
-
}
|
|
4
|
-
import { PLVNetUtils, PLVSimpleWeb } from '@polyvharmony/live-scenes-foundation';
|
|
5
|
-
import { lateInit } from '@polyvharmony/media-player-sdk';
|
|
6
|
-
const TAG = '[PLVPPTWeb]';
|
|
7
|
-
const URL = 'https://player.polyv.net/resp/ppt-h5/latest/page/pptForMobile.html';
|
|
8
|
-
export class PLVPPTWeb extends ViewPU {
|
|
9
|
-
constructor(l81, m81, n81, o81 = -1, p81 = undefined, q81) {
|
|
10
|
-
super(l81, n81, o81, q81);
|
|
11
|
-
if (typeof p81 === "function") {
|
|
12
|
-
this.paramsGenerator_ = p81;
|
|
13
|
-
}
|
|
14
|
-
this.controller = lateInit();
|
|
15
|
-
this.customUrl = URL;
|
|
16
|
-
this.url = URL;
|
|
17
|
-
this.pptBackgroundImg = '';
|
|
18
|
-
this.pptBackgroundImgWidth = '';
|
|
19
|
-
this.pptBackgroundColor = '';
|
|
20
|
-
this.setInitiallyProvidedValue(m81);
|
|
21
|
-
this.finalizeConstruction();
|
|
22
|
-
}
|
|
23
|
-
setInitiallyProvidedValue(k81) {
|
|
24
|
-
if (k81.controller !== undefined) {
|
|
25
|
-
this.controller = k81.controller;
|
|
26
|
-
}
|
|
27
|
-
if (k81.customUrl !== undefined) {
|
|
28
|
-
this.customUrl = k81.customUrl;
|
|
29
|
-
}
|
|
30
|
-
if (k81.url !== undefined) {
|
|
31
|
-
this.url = k81.url;
|
|
32
|
-
}
|
|
33
|
-
if (k81.pptBackgroundImg !== undefined) {
|
|
34
|
-
this.pptBackgroundImg = k81.pptBackgroundImg;
|
|
35
|
-
}
|
|
36
|
-
if (k81.pptBackgroundImgWidth !== undefined) {
|
|
37
|
-
this.pptBackgroundImgWidth = k81.pptBackgroundImgWidth;
|
|
38
|
-
}
|
|
39
|
-
if (k81.pptBackgroundColor !== undefined) {
|
|
40
|
-
this.pptBackgroundColor = k81.pptBackgroundColor;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
updateStateVars(j81) {
|
|
44
|
-
}
|
|
45
|
-
purgeVariableDependenciesOnElmtId(i81) {
|
|
46
|
-
}
|
|
47
|
-
aboutToBeDeleted() {
|
|
48
|
-
SubscriberManager.Get().delete(this.id__());
|
|
49
|
-
this.aboutToBeDeletedInternal();
|
|
50
|
-
}
|
|
51
|
-
aboutToAppear() {
|
|
52
|
-
this.config();
|
|
53
|
-
}
|
|
54
|
-
aboutToDisappear() {
|
|
55
|
-
this.controller?.destroy();
|
|
56
|
-
}
|
|
57
|
-
initialRender() {
|
|
58
|
-
{
|
|
59
|
-
this.observeComponentCreation2((e81, f81) => {
|
|
60
|
-
if (f81) {
|
|
61
|
-
let g81 = new PLVSimpleWeb(this, {
|
|
62
|
-
controller: this.controller,
|
|
63
|
-
src: this.url
|
|
64
|
-
}, undefined, e81, () => { }, { page: "sdk/src/main/ets/modules/ppt/PLVPPTWeb.ets", line: 28, col: 5 });
|
|
65
|
-
ViewPU.create(g81);
|
|
66
|
-
let h81 = () => {
|
|
67
|
-
return {
|
|
68
|
-
controller: this.controller,
|
|
69
|
-
src: this.url
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
g81.paramsGenerator_ = h81;
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
this.updateStateVarsOfChildByElmtId(e81, {});
|
|
76
|
-
}
|
|
77
|
-
}, { name: "PLVSimpleWeb" });
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
config() {
|
|
81
|
-
this.initUrl();
|
|
82
|
-
}
|
|
83
|
-
initUrl() {
|
|
84
|
-
this.url = PLVNetUtils.appendParams(this.customUrl, {
|
|
85
|
-
"useVisibleControl": "true",
|
|
86
|
-
"domainName": this.controller.channelData.chatDomain?.getChatApiDomainHost() ?? '',
|
|
87
|
-
"pptBackgroundImg": this.pptBackgroundImg,
|
|
88
|
-
"pptBackgroundImgWidth": this.pptBackgroundImgWidth,
|
|
89
|
-
"pptBackgroundColor": this.pptBackgroundColor
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
rerender() {
|
|
93
|
-
this.updateDirtyElements();
|
|
94
|
-
}
|
|
95
|
-
}
|
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
import { PLVEventNotify, PLVJSONUtils, PLVLogger, PLVWebController } from '@polyvharmony/live-scenes-foundation';
|
|
2
|
-
import { PLVSocketMessageEvent, PLVSocketOnEvent, PLVSocketTransmitEvent } from '../socket/model/PLVSocketEventConstants';
|
|
3
|
-
import HashMap from "@ohos.util.HashMap";
|
|
4
|
-
import { toWebParams } from '../web/PLVWebParams';
|
|
5
|
-
import { PLVLoginType } from '../login/model/PLVLoginType';
|
|
6
|
-
import { PLVOnSliceIDEvent } from '../socket/model/PLVOnSliceIDEvent';
|
|
7
|
-
import { PLVPPTOnSliceStartEvent } from './model/PLVPPTSocketEvent';
|
|
8
|
-
import { PLVPPTStatus } from './model/PLVPPTStatus';
|
|
9
|
-
import { MutableObserver, PLVMediaPlayerState, watchStates } from '@polyvharmony/media-player-sdk';
|
|
10
|
-
const TAG = '[PLVPPTWebController]';
|
|
11
|
-
const V2_GET_NATIVE_APP_PARAMS_INFO = 'getNativeAppParamsInfo';
|
|
12
|
-
const EVENT_REFRESH_PPT = 'refreshPPT';
|
|
13
|
-
const EVENT_CHANGE_PPT = 'changePPT';
|
|
14
|
-
const EVENT_SET_SEI_DATA = 'setSeiData';
|
|
15
|
-
const EVENT_CHANGE_PPT_PAGE = 'changePPTPage';
|
|
16
|
-
const EVENT_SEND_SOCKET = 'sendSocketEvent';
|
|
17
|
-
const EVENT_PPT_STATUS_CHANGE = 'pptStatusChange';
|
|
18
|
-
const EVENT_VIDEO_DURATION = 'videoDuration';
|
|
19
|
-
const EVENT_CHANGE_PPT_POSITION = 'changePPTPosition';
|
|
20
|
-
const EVENT_VIDEO_START = 'videoStart';
|
|
21
|
-
const EVENT_PPT_PLAY = 'pptPlay';
|
|
22
|
-
const EVENT_PPT_PAUSE = 'pptPause';
|
|
23
|
-
const EVENT_PPT_SEEK = 'pptSeek';
|
|
24
|
-
const EVENT_PPT_PREPARE = 'pptPrepare';
|
|
25
|
-
export class PLVPPTWebController extends PLVWebController {
|
|
26
|
-
constructor(m83, n83, o83, p83) {
|
|
27
|
-
super(p83);
|
|
28
|
-
this.delayTime = 5000;
|
|
29
|
-
this.eventNotify = new PLVEventNotify(this);
|
|
30
|
-
this.observers = [];
|
|
31
|
-
this.channelData = m83;
|
|
32
|
-
this.socketMediator = n83;
|
|
33
|
-
this.playerMediator = o83;
|
|
34
|
-
this.callbacks = new HashMap();
|
|
35
|
-
this.init();
|
|
36
|
-
}
|
|
37
|
-
updateDelayTime(l83) {
|
|
38
|
-
this.delayTime = l83 ? 500 : 5000;
|
|
39
|
-
}
|
|
40
|
-
setSEIData(j83) {
|
|
41
|
-
const k83 = "{\"time\":" + j83 + "}";
|
|
42
|
-
this.callHandle(EVENT_SET_SEI_DATA, k83, () => {
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
changePPTPage(h83) {
|
|
46
|
-
const i83 = "{\"type\":\"" + h83 + "\"}";
|
|
47
|
-
PLVLogger.info(TAG, 'changePPTPage, data=' + i83);
|
|
48
|
-
this.callHandle(EVENT_CHANGE_PPT_PAGE, i83, () => {
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
videoStart(e83, f83) {
|
|
52
|
-
const g83 = PLVJSONUtils.safeStringify({
|
|
53
|
-
"type": e83 ?? this.playerMediator.pptPlayType,
|
|
54
|
-
"roomId": this.channelData.loginChannelId,
|
|
55
|
-
"id": f83 ?? this.playerMediator.pptPlayId
|
|
56
|
-
});
|
|
57
|
-
this.callHandle(EVENT_VIDEO_START, g83, () => {
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
pptPlay() {
|
|
61
|
-
const d83 = "{\"time\":" + this.playerMediator.videoCurrentPosition + "}";
|
|
62
|
-
this.callHandle(EVENT_PPT_PLAY, d83, () => {
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
pptPause() {
|
|
66
|
-
const c83 = "{\"time\":" + this.playerMediator.videoCurrentPosition + "}";
|
|
67
|
-
this.callHandle(EVENT_PPT_PAUSE, c83, () => {
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
pptSeek(a83) {
|
|
71
|
-
const b83 = "{\"time\":" + a83 + "}";
|
|
72
|
-
this.callHandle(EVENT_PPT_SEEK, b83, () => {
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
destroy() {
|
|
76
|
-
this.eventNotify.clear();
|
|
77
|
-
MutableObserver.disposeAll(this.observers);
|
|
78
|
-
this.callbacks.forEach((y82, z82) => {
|
|
79
|
-
if (z82 && y82) {
|
|
80
|
-
this.socketMediator.offData(z82, y82, this);
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
init() {
|
|
85
|
-
this.onPlayerData();
|
|
86
|
-
this.addOnControllerAttached(() => {
|
|
87
|
-
this.userAgent(this.channelData.ua() + this.getUserAgent());
|
|
88
|
-
this.onSocketDataAfterAttached();
|
|
89
|
-
this.registerLiveHandlerIfNeed();
|
|
90
|
-
this.registerPlaybackHandlerIfNeed();
|
|
91
|
-
})
|
|
92
|
-
.registerHandler(V2_GET_NATIVE_APP_PARAMS_INFO, async (v82, w82) => {
|
|
93
|
-
const x82 = await toWebParams(this.channelData);
|
|
94
|
-
w82(x82);
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
onPlayerData() {
|
|
98
|
-
if (PLVLoginType.PLAYBACK === this.channelData.loginType) {
|
|
99
|
-
this.playerMediator.seekStartEvent.observe((u82) => {
|
|
100
|
-
if (u82) {
|
|
101
|
-
PLVLogger.info(TAG, 'send ppt message: seekStartEvent=' + u82 + ', seekTo=' + u82.seekTo);
|
|
102
|
-
this.pptSeek(this.playerMediator.videoCurrentPosition);
|
|
103
|
-
}
|
|
104
|
-
}).pushTo(this.observers);
|
|
105
|
-
watchStates(() => {
|
|
106
|
-
const t82 = this.playerMediator.playerState.value;
|
|
107
|
-
PLVLogger.info(TAG, 'send ppt message: playerState=' + t82 + ", pptPlayType=" + this.playerMediator.pptPlayType + ", pptPlayId=" + this.playerMediator.pptPlayId);
|
|
108
|
-
switch (t82) {
|
|
109
|
-
case PLVMediaPlayerState.STATE_PREPARING:
|
|
110
|
-
this.videoStart(this.playerMediator.pptPlayType, this.playerMediator.pptPlayId);
|
|
111
|
-
break;
|
|
112
|
-
case PLVMediaPlayerState.STATE_PLAYING:
|
|
113
|
-
this.pptPlay();
|
|
114
|
-
break;
|
|
115
|
-
case PLVMediaPlayerState.STATE_PAUSED:
|
|
116
|
-
this.pptPause();
|
|
117
|
-
break;
|
|
118
|
-
}
|
|
119
|
-
}).pushTo(this.observers);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
onSocketDataAfterAttached() {
|
|
123
|
-
if (PLVLoginType.PLAYBACK === this.channelData.loginType) {
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
const d82 = (j82, k82) => {
|
|
127
|
-
const l82 = PLVSocketMessageEvent.ON_SLICE_ID === k82
|
|
128
|
-
|| PLVSocketMessageEvent.ON_SLICE_START === k82
|
|
129
|
-
|| PLVSocketMessageEvent.ON_SLICE_OPEN === k82
|
|
130
|
-
|| PLVSocketMessageEvent.ON_SLICE_DRAW === k82
|
|
131
|
-
|| PLVSocketMessageEvent.ON_SLICE_CONTROL === k82;
|
|
132
|
-
if (l82) {
|
|
133
|
-
if (this.delayTime > 0) {
|
|
134
|
-
const s82 = j82.lastIndexOf('}');
|
|
135
|
-
j82 = j82.substring(0, s82) + `,"delayTime":${this.delayTime}}`;
|
|
136
|
-
}
|
|
137
|
-
PLVLogger.info(TAG, 'receive ppt message: delay=' + j82);
|
|
138
|
-
this.callHandle(EVENT_REFRESH_PPT, j82, (r82) => {
|
|
139
|
-
PLVLogger.info(TAG, 'send ppt message: result=' + r82);
|
|
140
|
-
});
|
|
141
|
-
if (PLVSocketMessageEvent.ON_SLICE_ID === k82) {
|
|
142
|
-
const p82 = PLVJSONUtils.json2Bean(PLVOnSliceIDEvent, j82);
|
|
143
|
-
if (!p82 || !p82.inClass) {
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
146
|
-
const q82 = this.channelData.liveDetail?.isFollowTeacherWatchLayout()
|
|
147
|
-
? p82.pptAndVedioPosition === 0
|
|
148
|
-
: (this.channelData.liveDetail?.isPPTWatchLayout() ? true : false);
|
|
149
|
-
this.eventNotify.emit('switchPPTLocation', q82);
|
|
150
|
-
}
|
|
151
|
-
else if (PLVSocketMessageEvent.ON_SLICE_START === k82) {
|
|
152
|
-
const n82 = PLVJSONUtils.json2Bean(PLVPPTOnSliceStartEvent, j82);
|
|
153
|
-
if (n82) {
|
|
154
|
-
const o82 = this.channelData.liveDetail?.isFollowTeacherWatchLayout()
|
|
155
|
-
? n82.isPptOnMainScreen()
|
|
156
|
-
: (this.channelData.liveDetail?.isPPTWatchLayout() ? true : false);
|
|
157
|
-
this.eventNotify.emit('switchPPTLocation', o82);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
else if (PLVSocketMessageEvent.CHANGE_VIDEO_AND_PPT_POSITION === k82) {
|
|
162
|
-
const m82 = PLVJSONUtils.safeParse(j82);
|
|
163
|
-
if (m82) {
|
|
164
|
-
this.eventNotify.emit('switchPPTLocation', '1' != m82['status']);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
};
|
|
168
|
-
const e82 = (f82, g82) => {
|
|
169
|
-
if (PLVSocketTransmitEvent.CHANGE_DOUBLE_MODE === g82) {
|
|
170
|
-
const h82 = PLVJSONUtils.safeParse(f82);
|
|
171
|
-
if (h82 && h82['autoId'] !== undefined && h82['pageId'] !== undefined) {
|
|
172
|
-
const i82 = PLVJSONUtils.safeStringify({
|
|
173
|
-
'autoId': h82['autoId'],
|
|
174
|
-
'pageId': h82['pageId'],
|
|
175
|
-
'docType': 1,
|
|
176
|
-
'isCamClosed': 0
|
|
177
|
-
});
|
|
178
|
-
this.callHandle(EVENT_CHANGE_PPT, i82, () => {
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
};
|
|
183
|
-
this.socketMediator.onData(PLVSocketOnEvent.MESSAGE, d82, this);
|
|
184
|
-
this.socketMediator.onData(PLVSocketOnEvent.TRANSMIT, e82, this);
|
|
185
|
-
this.callbacks.set(PLVSocketOnEvent.MESSAGE, d82);
|
|
186
|
-
this.callbacks.set(PLVSocketOnEvent.TRANSMIT, e82);
|
|
187
|
-
}
|
|
188
|
-
registerLiveHandlerIfNeed() {
|
|
189
|
-
if (PLVLoginType.LIVE !== this.channelData.loginType) {
|
|
190
|
-
return;
|
|
191
|
-
}
|
|
192
|
-
this.registerHandler(EVENT_SEND_SOCKET, (b82, c82) => {
|
|
193
|
-
PLVLogger.info(TAG, 'send socket message: ' + b82);
|
|
194
|
-
this.socketMediator.emit(PLVSocketOnEvent.MESSAGE, b82);
|
|
195
|
-
});
|
|
196
|
-
this.registerHandler(EVENT_PPT_STATUS_CHANGE, (y81, z81) => {
|
|
197
|
-
PLVLogger.info(TAG, 'receive ppt status change: ' + y81);
|
|
198
|
-
const a82 = PLVJSONUtils.json2Bean(PLVPPTStatus, y81);
|
|
199
|
-
if (a82 && a82.maxTeacherOp) {
|
|
200
|
-
this.eventNotify.emit('onPPTStatusChange', a82);
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
registerPlaybackHandlerIfNeed() {
|
|
205
|
-
if (PLVLoginType.PLAYBACK !== this.channelData.loginType) {
|
|
206
|
-
return;
|
|
207
|
-
}
|
|
208
|
-
this.registerHandler(EVENT_PPT_PREPARE, (w81, x81) => {
|
|
209
|
-
PLVLogger.info(TAG, 'receive ppt prepare: ' + w81);
|
|
210
|
-
x81('function is success');
|
|
211
|
-
});
|
|
212
|
-
this.registerHandler(EVENT_VIDEO_DURATION, (t81, u81) => {
|
|
213
|
-
const v81 = "{\"time\":" + this.playerMediator.videoCurrentPosition + "}";
|
|
214
|
-
u81(v81);
|
|
215
|
-
});
|
|
216
|
-
this.registerHandler(EVENT_CHANGE_PPT_POSITION, (r81, s81) => {
|
|
217
|
-
this.eventNotify.emit('switchPPTLocation', 'true' === r81);
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PLVSocketMessageEvent } from "../../socket/model/PLVSocketEventConstants";
|
|
2
|
-
export class PLVPPTOnSliceStartEvent {
|
|
3
|
-
isPptOnMainScreen() {
|
|
4
|
-
return this.videoAndPPTPosition === 'ppt';
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
PLVPPTOnSliceStartEvent.EVENT = PLVSocketMessageEvent.ON_SLICE_START;
|