@polyvharmony/live-scenes-sdk 1.3.0-rc.3 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. package/BuildProfile.d.ets +2 -2
  2. package/BuildProfile.js +1 -1
  3. package/CHANGELOG.md +18 -1
  4. package/oh-package.json5 +1 -1
  5. package/package.json +1 -1
  6. package/src/main/ets/common/PLVBaseModule.d.ets +1 -1
  7. package/src/main/ets/common/PLVBaseModule.js +2 -2
  8. package/src/main/ets/common/PLVChannelData.d.ets +11 -11
  9. package/src/main/ets/common/PLVChannelData.js +44 -44
  10. package/src/main/ets/common/PLVDataBaseModule.d.ets +2 -2
  11. package/src/main/ets/common/PLVDataBaseModule.js +3 -3
  12. package/src/main/ets/common/PLVLiveSceneSDK.d.ets +6 -6
  13. package/src/main/ets/common/PLVLiveSceneSDK.js +23 -23
  14. package/src/main/ets/modules/business/PLVBusinessApiManager.js +17 -17
  15. package/src/main/ets/modules/business/model/PLVReportPageViewerVO.d.ets +1 -1
  16. package/src/main/ets/modules/business/model/PLVReportPageViewerVO.js +3 -3
  17. package/src/main/ets/modules/chatroom/PLVChatroomManager.d.ets +21 -21
  18. package/src/main/ets/modules/chatroom/PLVChatroomManager.js +258 -258
  19. package/src/main/ets/modules/chatroom/handler/PLVChatroomBanIpMessageHandler.d.ets +1 -1
  20. package/src/main/ets/modules/chatroom/handler/PLVChatroomBanIpMessageHandler.js +5 -5
  21. package/src/main/ets/modules/chatroom/handler/PLVChatroomBaseHandler.d.ets +2 -2
  22. package/src/main/ets/modules/chatroom/handler/PLVChatroomBaseHandler.js +2 -2
  23. package/src/main/ets/modules/chatroom/handler/PLVChatroomCancelTopHandler.d.ets +1 -1
  24. package/src/main/ets/modules/chatroom/handler/PLVChatroomCancelTopHandler.js +3 -3
  25. package/src/main/ets/modules/chatroom/handler/PLVChatroomCloseRoomMessageHandler.d.ets +1 -1
  26. package/src/main/ets/modules/chatroom/handler/PLVChatroomCloseRoomMessageHandler.js +5 -5
  27. package/src/main/ets/modules/chatroom/handler/PLVChatroomDataHandlerFactory.d.ets +1 -1
  28. package/src/main/ets/modules/chatroom/handler/PLVChatroomDataHandlerFactory.js +22 -21
  29. package/src/main/ets/modules/chatroom/handler/PLVChatroomFocusModeHandler.d.ets +1 -1
  30. package/src/main/ets/modules/chatroom/handler/PLVChatroomFocusModeHandler.js +4 -4
  31. package/src/main/ets/modules/chatroom/handler/PLVChatroomLikesMessageHandler.d.ets +1 -1
  32. package/src/main/ets/modules/chatroom/handler/PLVChatroomLikesMessageHandler.js +5 -5
  33. package/src/main/ets/modules/chatroom/handler/PLVChatroomLoginMessageHandler.d.ets +1 -1
  34. package/src/main/ets/modules/chatroom/handler/PLVChatroomLoginMessageHandler.js +14 -14
  35. package/src/main/ets/modules/chatroom/handler/PLVChatroomLogoutMessageHandler.d.ets +1 -1
  36. package/src/main/ets/modules/chatroom/handler/PLVChatroomLogoutMessageHandler.js +5 -5
  37. package/src/main/ets/modules/chatroom/handler/PLVChatroomOnSliceIdMessageHandler.d.ets +1 -1
  38. package/src/main/ets/modules/chatroom/handler/PLVChatroomOnSliceIdMessageHandler.js +7 -7
  39. package/src/main/ets/modules/chatroom/handler/PLVChatroomToTopHandler.d.ets +1 -1
  40. package/src/main/ets/modules/chatroom/handler/PLVChatroomToTopHandler.js +4 -4
  41. package/src/main/ets/modules/chatroom/handler/PLVChatroomUnShieldMessageHandler.d.ets +1 -1
  42. package/src/main/ets/modules/chatroom/handler/PLVChatroomUnShieldMessageHandler.js +5 -5
  43. package/src/main/ets/modules/chatroom/model/IPLVIdEvent.js +7 -7
  44. package/src/main/ets/modules/chatroom/model/PLVChatImgContentBean.js +7 -7
  45. package/src/main/ets/modules/chatroom/model/PLVChatImgEvent.js +15 -15
  46. package/src/main/ets/modules/chatroom/model/PLVChatQuoteDataBean.js +7 -7
  47. package/src/main/ets/modules/chatroom/model/PLVEmotionEvent.js +16 -16
  48. package/src/main/ets/modules/chatroom/model/PLVEmotionImagesVO.js +7 -7
  49. package/src/main/ets/modules/chatroom/model/PLVHistoryChatImgEvent.js +15 -15
  50. package/src/main/ets/modules/chatroom/model/PLVHistoryFileShareEvent.js +15 -15
  51. package/src/main/ets/modules/chatroom/model/PLVHistorySpeakEvent.js +17 -17
  52. package/src/main/ets/modules/chatroom/model/PLVHistroyQuizListVO.js +4 -4
  53. package/src/main/ets/modules/chatroom/model/PLVImageBean.d.ets +3 -3
  54. package/src/main/ets/modules/chatroom/model/PLVImageBean.js +34 -34
  55. package/src/main/ets/modules/chatroom/model/PLVLikesEvent.js +7 -7
  56. package/src/main/ets/modules/chatroom/model/PLVLocalQuizEvent.js +7 -7
  57. package/src/main/ets/modules/chatroom/model/PLVLocalSpeakEvent.js +14 -14
  58. package/src/main/ets/modules/chatroom/model/PLVPPTShareFileDataBean.js +7 -7
  59. package/src/main/ets/modules/chatroom/model/PLVRewardEvent.js +7 -7
  60. package/src/main/ets/modules/chatroom/model/PLVSpeakEvent.js +19 -19
  61. package/src/main/ets/modules/chatroom/model/PLVTAnswerEvent.js +10 -10
  62. package/src/main/ets/modules/chatroom/model/PLVToTopEvent.d.ets +1 -1
  63. package/src/main/ets/modules/chatroom/model/PLVToTopEvent.js +2 -2
  64. package/src/main/ets/modules/chatroom/playback/PLVChatPlaybackManager.d.ets +4 -4
  65. package/src/main/ets/modules/chatroom/playback/PLVChatPlaybackManager.js +135 -135
  66. package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackDataVO.d.ets +2 -2
  67. package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackDataVO.js +24 -24
  68. package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackOpenHelper.d.ets +8 -8
  69. package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackOpenHelper.js +28 -28
  70. package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackToTopVO.d.ets +3 -3
  71. package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackToTopVO.js +46 -46
  72. package/src/main/ets/modules/i18n/PLVI18NDataMapper.d.ets +5 -5
  73. package/src/main/ets/modules/i18n/PLVI18NDataMapper.js +20 -20
  74. package/src/main/ets/modules/i18n/PLVLanguageManager.js +8 -8
  75. package/src/main/ets/modules/interact/PLVInteractManager.d.ets +6 -6
  76. package/src/main/ets/modules/interact/PLVInteractManager.js +12 -12
  77. package/src/main/ets/modules/interact/PLVInteractWeb.d.ets +14 -14
  78. package/src/main/ets/modules/interact/PLVInteractWeb.js +150 -151
  79. package/src/main/ets/modules/interact/invitePoster/PLVInteractInvitePoster.d.ets +1 -1
  80. package/src/main/ets/modules/interact/invitePoster/PLVInteractInvitePoster.js +34 -34
  81. package/src/main/ets/modules/interact/model/PLVFunctionSwitchBean.d.ets +1 -1
  82. package/src/main/ets/modules/interact/model/PLVFunctionSwitchBean.js +6 -6
  83. package/src/main/ets/modules/interact/pushcard/PLVPushCardManager.d.ets +2 -2
  84. package/src/main/ets/modules/interact/pushcard/PLVPushCardManager.js +21 -21
  85. package/src/main/ets/modules/interact/pushcard/model/PLVShowPushCardEvent.d.ets +1 -1
  86. package/src/main/ets/modules/interact/pushcard/model/PLVShowPushCardEvent.js +2 -2
  87. package/src/main/ets/modules/interact/pushcard/repo/PLVCardLookTimeLocalRepository.d.ets +3 -3
  88. package/src/main/ets/modules/interact/pushcard/repo/PLVCardLookTimeLocalRepository.js +6 -6
  89. package/src/main/ets/modules/interact/redpack/model/PLVHistoryRedPaperEvent.js +7 -7
  90. package/src/main/ets/modules/interact/redpack/model/PLVRedPaperEvent.d.ets +2 -2
  91. package/src/main/ets/modules/interact/redpack/model/PLVRedPaperEvent.js +7 -7
  92. package/src/main/ets/modules/interact/redpack/model/PLVRedPaperResultEvent.d.ets +1 -1
  93. package/src/main/ets/modules/linkmic/PLVLinkMicManager.d.ets +14 -14
  94. package/src/main/ets/modules/linkmic/PLVLinkMicManager.js +37 -37
  95. package/src/main/ets/modules/linkmic/di/PLVLinkMicModule.js +11 -11
  96. package/src/main/ets/modules/linkmic/mediator/PLVLinkMicMediator.d.ets +4 -4
  97. package/src/main/ets/modules/linkmic/mediator/PLVLinkMicMediator.js +14 -14
  98. package/src/main/ets/modules/linkmic/mediator/PLVLinkMicRTCEventCallback.d.ets +8 -8
  99. package/src/main/ets/modules/linkmic/mediator/PLVLinkMicRTCEventCallback.js +53 -46
  100. package/src/main/ets/modules/linkmic/model/PLVLinkMicRepo.d.ets +10 -10
  101. package/src/main/ets/modules/linkmic/model/PLVLinkMicRepo.js +74 -70
  102. package/src/main/ets/modules/linkmic/model/datasource/PLVLinkMicNetworkDataSource.d.ets +5 -4
  103. package/src/main/ets/modules/linkmic/model/datasource/PLVLinkMicNetworkDataSource.js +79 -56
  104. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRate.d.ets +1 -1
  105. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRate.js +3 -3
  106. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRateEncodeParam.d.ets +1 -1
  107. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRateEncodeParam.js +12 -12
  108. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicErrorEvent.d.ets +1 -1
  109. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicErrorEvent.js +3 -3
  110. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicInteractEvent.d.ets +1 -1
  111. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicInteractEvent.js +3 -3
  112. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicMode.js +3 -3
  113. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicPushResolutionRatio.d.ets +1 -1
  114. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicPushResolutionRatio.js +4 -4
  115. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicRTCType.d.ets +2 -1
  116. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicRTCType.js +3 -2
  117. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicState.js +6 -6
  118. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicVideoRenderParam.d.ets +1 -1
  119. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicVideoRenderParam.js +3 -3
  120. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicViewer.d.ets +1 -1
  121. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicViewer.js +5 -5
  122. package/src/main/ets/modules/linkmic/viewmodel/PLVLinkMicViewModel.d.ets +15 -15
  123. package/src/main/ets/modules/linkmic/viewmodel/PLVLinkMicViewModel.js +40 -40
  124. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicEncodeParamUseCase.d.ets +6 -6
  125. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicEncodeParamUseCase.js +15 -15
  126. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleQueueOrderUseCase.d.ets +4 -4
  127. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleQueueOrderUseCase.js +25 -25
  128. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleRTCUseCase.d.ets +7 -7
  129. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleRTCUseCase.js +19 -19
  130. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleStateUseCase.d.ets +10 -10
  131. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleStateUseCase.js +26 -26
  132. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicUpdateChannelViewerUseCase.d.ets +6 -6
  133. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicUpdateChannelViewerUseCase.js +135 -135
  134. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicViewLogUseCase.d.ets +1 -1
  135. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicViewLogUseCase.js +27 -27
  136. package/src/main/ets/modules/linkmic/viewmodel/usecase/PLVLinkMicUseCases.d.ets +1 -1
  137. package/src/main/ets/modules/linkmic/viewmodel/usecase/PLVLinkMicUseCases.js +7 -7
  138. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestEncodeParamUseCase.d.ets +6 -6
  139. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestEncodeParamUseCase.js +83 -83
  140. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleRTCUseCase.d.ets +7 -7
  141. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleRTCUseCase.js +42 -42
  142. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleStateUseCase.d.ets +10 -10
  143. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleStateUseCase.js +192 -188
  144. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherEncodeParamUseCase.d.ets +6 -6
  145. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherEncodeParamUseCase.js +83 -83
  146. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleRTCUseCase.d.ets +7 -7
  147. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleRTCUseCase.js +37 -37
  148. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleStateUseCase.d.ets +10 -10
  149. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleStateUseCase.js +130 -128
  150. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerEncodeParamUseCase.d.ets +6 -6
  151. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerEncodeParamUseCase.js +13 -13
  152. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleRTCUseCase.d.ets +7 -7
  153. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleRTCUseCase.js +53 -53
  154. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleStateUseCase.d.ets +10 -10
  155. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleStateUseCase.js +166 -163
  156. package/src/main/ets/modules/log/elog/PLVELogSender.d.ets +4 -4
  157. package/src/main/ets/modules/log/elog/PLVELogSender.js +17 -17
  158. package/src/main/ets/modules/log/elog/model/PLVELogDataBean.d.ets +1 -1
  159. package/src/main/ets/modules/log/elog/model/PLVELogDataBean.js +12 -12
  160. package/src/main/ets/modules/log/elog/model/PLVELogModuleConstants.js +8 -8
  161. package/src/main/ets/modules/login/PLVSceneLoginManager.d.ets +4 -3
  162. package/src/main/ets/modules/login/PLVSceneLoginManager.js +111 -101
  163. package/src/main/ets/modules/login/model/PLVChatDomainVO.d.ets +2 -2
  164. package/src/main/ets/modules/login/model/PLVChatDomainVO.js +4 -4
  165. package/src/main/ets/modules/login/model/PLVLiveChannelType.d.ets +1 -1
  166. package/src/main/ets/modules/login/model/PLVLiveChannelType.js +15 -14
  167. package/src/main/ets/modules/login/model/PLVLiveDetailVO.d.ets +1 -1
  168. package/src/main/ets/modules/login/model/PLVLiveDetailVO.js +13 -13
  169. package/src/main/ets/modules/login/model/PLVLiveStatus.d.ets +1 -1
  170. package/src/main/ets/modules/login/model/PLVLiveStatus.js +15 -14
  171. package/src/main/ets/modules/login/model/PLVLiveStatusVO.d.ets +2 -2
  172. package/src/main/ets/modules/login/model/PLVLiveStatusVO.js +10 -10
  173. package/src/main/ets/modules/login/model/PLVLoginLiveResult.d.ets +1 -1
  174. package/src/main/ets/modules/login/model/PLVLoginLiveResult.js +4 -4
  175. package/src/main/ets/modules/login/model/PLVLoginPlaybackResult.d.ets +1 -1
  176. package/src/main/ets/modules/login/model/PLVLoginPlaybackResult.js +5 -5
  177. package/src/main/ets/modules/login/model/PLVLoginType.d.ets +2 -2
  178. package/src/main/ets/modules/login/model/PLVLoginType.js +32 -22
  179. package/src/main/ets/modules/member/PLVMemberManager.d.ets +3 -3
  180. package/src/main/ets/modules/member/PLVMemberManager.js +10 -10
  181. package/src/main/ets/modules/member/di/PLVMemberModule.js +8 -8
  182. package/src/main/ets/modules/member/mediator/PLVMemberMediator.d.ets +3 -3
  183. package/src/main/ets/modules/member/mediator/PLVMemberMediator.js +9 -9
  184. package/src/main/ets/modules/member/model/PLVMemberRepo.d.ets +2 -2
  185. package/src/main/ets/modules/member/model/PLVMemberRepo.js +7 -7
  186. package/src/main/ets/modules/member/model/datasource/PLVMemberNetworkDataSource.d.ets +2 -2
  187. package/src/main/ets/modules/member/model/datasource/PLVMemberNetworkDataSource.js +11 -11
  188. package/src/main/ets/modules/member/model/vo/PLVMemberChannelViewer.d.ets +1 -1
  189. package/src/main/ets/modules/member/model/vo/PLVMemberChannelViewer.js +3 -3
  190. package/src/main/ets/modules/member/model/vo/PLVMemberErrorEvent.d.ets +1 -1
  191. package/src/main/ets/modules/member/model/vo/PLVMemberErrorEvent.js +3 -3
  192. package/src/main/ets/modules/member/viewmodel/PLVMemberViewModel.d.ets +3 -3
  193. package/src/main/ets/modules/member/viewmodel/PLVMemberViewModel.js +15 -15
  194. package/src/main/ets/modules/member/viewmodel/usecase/MemberHandleStateUseCase.d.ets +6 -6
  195. package/src/main/ets/modules/member/viewmodel/usecase/MemberHandleStateUseCase.js +16 -16
  196. package/src/main/ets/modules/member/viewmodel/usecase/MemberUpdateViewerUseCase.d.ets +9 -9
  197. package/src/main/ets/modules/member/viewmodel/usecase/MemberUpdateViewerUseCase.js +21 -21
  198. package/src/main/ets/modules/member/viewmodel/usecase/PLVMemberUseCases.d.ets +1 -1
  199. package/src/main/ets/modules/member/viewmodel/usecase/PLVMemberUseCases.js +3 -3
  200. package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestHandleStateUseCase.d.ets +6 -6
  201. package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestHandleStateUseCase.js +95 -88
  202. package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestUpdateViewerUseCase.d.ets +9 -9
  203. package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestUpdateViewerUseCase.js +219 -219
  204. package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherHandleStateUseCase.d.ets +6 -6
  205. package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherHandleStateUseCase.js +160 -153
  206. package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherUpdateViewerUseCase.d.ets +9 -9
  207. package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherUpdateViewerUseCase.js +219 -219
  208. package/src/main/ets/modules/net/PLVApiChatPlvNetApi.d.ets +9 -9
  209. package/src/main/ets/modules/net/PLVApiChatPlvNetApi.js +55 -53
  210. package/src/main/ets/modules/net/PLVApiPlvNetApi.d.ets +30 -29
  211. package/src/main/ets/modules/net/PLVApiPlvNetApi.js +172 -159
  212. package/src/main/ets/modules/net/PLVELogPlvNetApi.d.ets +2 -2
  213. package/src/main/ets/modules/net/PLVELogPlvNetApi.js +5 -5
  214. package/src/main/ets/modules/net/PLVLiveImagesVideoNetApi.d.ets +3 -3
  215. package/src/main/ets/modules/net/PLVLiveImagesVideoNetApi.js +19 -19
  216. package/src/main/ets/modules/net/PLVNGBPushApi.d.ets +2 -2
  217. package/src/main/ets/modules/net/PLVNGBPushApi.js +4 -4
  218. package/src/main/ets/modules/net/PLVRtasVideoNetApi.d.ets +2 -2
  219. package/src/main/ets/modules/net/PLVRtasVideoNetApi.js +4 -4
  220. package/src/main/ets/modules/net/vo/PLVNetworkQuality.js +8 -8
  221. package/src/main/ets/modules/player/PLVPlayerManager.d.ets +3 -3
  222. package/src/main/ets/modules/player/PLVPlayerManager.js +8 -8
  223. package/src/main/ets/modules/player/PLVPlayerMediator.d.ets +1 -1
  224. package/src/main/ets/modules/player/PLVPlayerMediator.js +8 -8
  225. package/src/main/ets/modules/player/playback/PLVPlaybackListType.js +4 -4
  226. package/src/main/ets/modules/player/playback/PLVPreviousListVO.js +8 -8
  227. package/src/main/ets/modules/player/playback/PLVPreviousManager.d.ets +5 -5
  228. package/src/main/ets/modules/player/playback/PLVPreviousManager.js +69 -69
  229. package/src/main/ets/modules/ppt/PLVPPTWeb.js +29 -31
  230. package/src/main/ets/modules/ppt/PLVPPTWebController.d.ets +6 -6
  231. package/src/main/ets/modules/ppt/PLVPPTWebController.js +94 -94
  232. package/src/main/ets/modules/product/PLVProductManager.d.ets +5 -5
  233. package/src/main/ets/modules/product/PLVProductManager.js +61 -61
  234. package/src/main/ets/modules/product/components/PLVProductControlWeb.d.ets +1 -1
  235. package/src/main/ets/modules/product/components/PLVProductControlWeb.js +35 -37
  236. package/src/main/ets/modules/product/components/PLVProductWeb.d.ets +1 -1
  237. package/src/main/ets/modules/product/components/PLVProductWeb.js +51 -53
  238. package/src/main/ets/modules/product/model/PLVProductContentBean.d.ets +1 -1
  239. package/src/main/ets/modules/product/model/PLVProductContentBean.js +17 -17
  240. package/src/main/ets/modules/product/model/PLVProductControlEvent.js +7 -7
  241. package/src/main/ets/modules/product/model/PLVProductDataBean.d.ets +1 -1
  242. package/src/main/ets/modules/product/model/PLVProductDataBean.js +16 -16
  243. package/src/main/ets/modules/redpack/PLVRedpackManager.d.ets +9 -9
  244. package/src/main/ets/modules/redpack/PLVRedpackManager.js +70 -70
  245. package/src/main/ets/modules/redpack/database/PLVRedpackCacheVO.d.ets +1 -1
  246. package/src/main/ets/modules/redpack/database/PLVRedpackCacheVO.js +14 -14
  247. package/src/main/ets/modules/redpack/database/PLVRedpackLocalDataSource.d.ets +5 -5
  248. package/src/main/ets/modules/redpack/database/PLVRedpackLocalDataSource.js +28 -28
  249. package/src/main/ets/modules/redpack/database/PLVRedpackOpenHelper.d.ets +5 -5
  250. package/src/main/ets/modules/redpack/database/PLVRedpackOpenHelper.js +6 -6
  251. package/src/main/ets/modules/reward/PLVRewardManager.d.ets +2 -2
  252. package/src/main/ets/modules/reward/PLVRewardManager.js +22 -22
  253. package/src/main/ets/modules/reward/model/PLVRewardPointVO.d.ets +1 -1
  254. package/src/main/ets/modules/reward/model/PLVRewardPointVO.js +3 -3
  255. package/src/main/ets/modules/reward/model/PLVRewardSettingVO.js +24 -24
  256. package/src/main/ets/modules/socket/PLVSocketManager.d.ets +8 -8
  257. package/src/main/ets/modules/socket/PLVSocketManager.js +103 -102
  258. package/src/main/ets/modules/socket/PLVSocketMediator.d.ets +7 -7
  259. package/src/main/ets/modules/socket/PLVSocketMediator.js +14 -14
  260. package/src/main/ets/modules/socket/model/PLVSocketUserBean.d.ets +5 -5
  261. package/src/main/ets/modules/socket/model/PLVSocketUserBean.js +27 -27
  262. package/src/main/ets/modules/socket/model/PLVUserType.js +15 -15
  263. package/src/main/ets/modules/socket/model/interact/PLVCallAppEvent.js +6 -6
  264. package/src/main/ets/modules/socket/model/redpack/RedPaperReceiveType.d.ets +4 -4
  265. package/src/main/ets/modules/socket/model/redpack/RedPaperReceiveType.js +20 -20
  266. package/src/main/ets/modules/streamer/PLVStreamerManager.d.ets +8 -8
  267. package/src/main/ets/modules/streamer/PLVStreamerManager.js +24 -24
  268. package/src/main/ets/modules/streamer/di/PLVStreamerModule.js +8 -8
  269. package/src/main/ets/modules/streamer/mediator/PLVStreamerMediator.d.ets +2 -2
  270. package/src/main/ets/modules/streamer/mediator/PLVStreamerMediator.js +5 -5
  271. package/src/main/ets/modules/streamer/model/PLVStreamerRepo.d.ets +8 -8
  272. package/src/main/ets/modules/streamer/model/PLVStreamerRepo.js +41 -41
  273. package/src/main/ets/modules/streamer/model/datasource/PLVStreamerLocalDataSource.d.ets +2 -2
  274. package/src/main/ets/modules/streamer/model/datasource/PLVStreamerLocalDataSource.js +10 -10
  275. package/src/main/ets/modules/streamer/model/datasource/PLVStreamerNetworkDataSource.d.ets +7 -7
  276. package/src/main/ets/modules/streamer/model/datasource/PLVStreamerNetworkDataSource.js +48 -48
  277. package/src/main/ets/modules/streamer/model/vo/PLVStreamerErrorEvent.d.ets +1 -1
  278. package/src/main/ets/modules/streamer/model/vo/PLVStreamerErrorEvent.js +3 -3
  279. package/src/main/ets/modules/streamer/model/vo/PLVStreamerMixActionVO.js +15 -15
  280. package/src/main/ets/modules/streamer/model/vo/PLVStreamerMixLayoutType.js +4 -4
  281. package/src/main/ets/modules/streamer/model/vo/PLVStreamerState.js +4 -4
  282. package/src/main/ets/modules/streamer/viewmodel/PLVStreamerViewModel.d.ets +8 -8
  283. package/src/main/ets/modules/streamer/viewmodel/PLVStreamerViewModel.js +25 -25
  284. package/src/main/ets/modules/streamer/viewmodel/usecase/PLVStreamerUseCases.d.ets +1 -1
  285. package/src/main/ets/modules/streamer/viewmodel/usecase/PLVStreamerUseCases.js +3 -3
  286. package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerHandleStateUseCase.d.ets +2 -2
  287. package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerHandleStateUseCase.js +8 -8
  288. package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerMixStreamUseCase.d.ets +2 -2
  289. package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerMixStreamUseCase.js +7 -7
  290. package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestHandleStateUseCase.d.ets +2 -2
  291. package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestHandleStateUseCase.js +45 -42
  292. package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestMixStreamUseCase.d.ets +2 -2
  293. package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestMixStreamUseCase.js +3 -3
  294. package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherHandleStateUseCase.d.ets +2 -2
  295. package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherHandleStateUseCase.js +42 -42
  296. package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherMixStreamUseCase.d.ets +2 -2
  297. package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherMixStreamUseCase.js +51 -51
  298. package/src/main/ets/modules/web/PLVSocketWebController.d.ets +2 -2
  299. package/src/main/ets/modules/web/PLVSocketWebController.js +66 -66
  300. package/src/main/ets/modules/web/PLVWebControllerManager.d.ets +3 -3
  301. package/src/main/ets/modules/web/PLVWebControllerManager.js +6 -6
  302. package/src/main/ets/modules/web/PLVWebParams.d.ets +1 -1
  303. package/src/main/ets/modules/web/PLVWebParams.js +22 -22
  304. package/src/main/ets/modules/web/qa/PLVQAWeb.d.ets +1 -1
  305. package/src/main/ets/modules/web/qa/PLVQAWeb.js +35 -37
  306. package/src/main/ets/modules/web/tuwen/PLVTuwenWeb.d.ets +1 -1
  307. package/src/main/ets/modules/web/tuwen/PLVTuwenWeb.js +38 -40
  308. package/src/main/module.json +1 -1
@@ -11,27 +11,27 @@ import { PLVSocketUserSend } from '../../../../../socket/model/PLVSocketUserBean
11
11
  import { PLVMemberSocketSetNickRecv } from '../../../../../member/model/vo/PLVMemberSocketEvent';
12
12
  const TAG = "PLVLinkMicManager";
13
13
  export class LinkMicViewerHandleStateUseCase {
14
- constructor(p127, q127, r127, s127) {
14
+ constructor(p51, q51, r51, s51) {
15
15
  this.taskUpdateMicSetting = undefined;
16
16
  this.disposables = [];
17
17
  this.observers = [];
18
- this.repo = p127;
19
- this.handleQueueOrderUseCase = q127;
20
- this.handleRTCUseCase = r127;
21
- this.updateChannelViewerUseCase = s127;
18
+ this.repo = p51;
19
+ this.handleQueueOrderUseCase = q51;
20
+ this.handleRTCUseCase = r51;
21
+ this.updateChannelViewerUseCase = s51;
22
22
  }
23
23
  init() {
24
- this.disposables.push(this.observeSocketEvent(PLVSocketOnEvent.MESSAGE, (data, event) => this.onSocketMessage(data, event)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_REQUEST, (data) => this.onSocketJoinRequest(data)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_RESPONSE, (data) => this.onSocketJoinResponse(data)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_SUCCESS, (data) => this.onSocketJoinSuccess(data)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_LEAVE, (data) => this.onSocketJoinLeave(data)), this.observeSocketEvent(PLVSocketOnEvent.SWITCH_VIEW, (data) => this.onSocketSwitchView(data)));
25
- this.repo.mediator.rtcEvent.observe((event) => this.onRTCEvent(event))
24
+ this.disposables.push(this.observeSocketEvent(PLVSocketOnEvent.MESSAGE, (n51, o51) => this.onSocketMessage(n51, o51)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_REQUEST, (m51) => this.onSocketJoinRequest(m51)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_RESPONSE, (l51) => this.onSocketJoinResponse(l51)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_SUCCESS, (k51) => this.onSocketJoinSuccess(k51)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_LEAVE, (j51) => this.onSocketJoinLeave(j51)), this.observeSocketEvent(PLVSocketOnEvent.SWITCH_VIEW, (i51) => this.onSocketSwitchView(i51)));
25
+ this.repo.mediator.rtcEvent.observe((h51) => this.onRTCEvent(h51))
26
26
  .pushTo(this.observers);
27
- this.repo.mediator.viewerLeaveLinkMicEvent.observe(o127 => this.onViewerLeaveLinkMic(o127))
27
+ this.repo.mediator.viewerLeaveLinkMicEvent.observe(g51 => this.onViewerLeaveLinkMic(g51))
28
28
  .pushTo(this.observers);
29
29
  this.taskUpdateMicSetting = new PLVScheduledTask(() => this.updateMicSetting(), seconds(1).toMillis(), seconds(10).toMillis());
30
30
  this.taskUpdateMicSetting.start();
31
31
  }
32
32
  async requestJoinLinkMic() {
33
- const n127 = this.repo.mediator.linkmicState.value;
34
- if (n127 === PLVLinkMicState.Inviting) {
33
+ const e51 = this.repo.mediator.linkmicState.value;
34
+ if (e51 === PLVLinkMicState.Inviting) {
35
35
  this.acceptInvitation();
36
36
  return;
37
37
  }
@@ -40,10 +40,10 @@ export class LinkMicViewerHandleStateUseCase {
40
40
  this.repo.mediator.reportError(PLVLinkMicErrorEvent.REACH_LINKMIC_LIMIT, "requestJoinLinkMic channel reach linkmic limit");
41
41
  return;
42
42
  }
43
- const event = new PLVLinkMicSocketJoinRequestSend();
44
- event.user = this.createSocketUser();
45
- event.roomId = this.repo.mediator.channelData?.loginChannelId;
46
- this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_REQUEST, encodeToJson(event), () => {
43
+ const f51 = new PLVLinkMicSocketJoinRequestSend();
44
+ f51.user = this.createSocketUser();
45
+ f51.roomId = this.repo.mediator.channelData?.loginChannelId;
46
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_REQUEST, encodeToJson(f51), () => {
47
47
  this.repo.mediator.linkmicState.setValue(PLVLinkMicState.Requesting);
48
48
  });
49
49
  }
@@ -53,35 +53,35 @@ export class LinkMicViewerHandleStateUseCase {
53
53
  this.repo.mediator.reportError(PLVLinkMicErrorEvent.REACH_LINKMIC_LIMIT, "acceptInvitation channel reach linkmic limit");
54
54
  return;
55
55
  }
56
- const event = new PLVLinkMicSocketJoinAnswerSend();
57
- event.user = this.createSocketUser();
58
- event.roomId = this.repo.mediator.channelData?.loginChannelId;
59
- event.status = 1;
60
- this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_ANSWER, encodeToJson(event), () => {
61
- const m127 = this.repo.mediator.linkmicState.value;
62
- if (m127 === PLVLinkMicState.Inviting) {
56
+ const c51 = new PLVLinkMicSocketJoinAnswerSend();
57
+ c51.user = this.createSocketUser();
58
+ c51.roomId = this.repo.mediator.channelData?.loginChannelId;
59
+ c51.status = 1;
60
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_ANSWER, encodeToJson(c51), () => {
61
+ const d51 = this.repo.mediator.linkmicState.value;
62
+ if (d51 === PLVLinkMicState.Inviting) {
63
63
  this.repo.mediator.linkmicState.setValue(PLVLinkMicState.WaitingResponse);
64
64
  }
65
65
  });
66
66
  }
67
67
  refuseInvitation() {
68
- const event = new PLVLinkMicSocketJoinAnswerSend();
69
- event.user = this.createSocketUser();
70
- event.roomId = this.repo.mediator.channelData?.loginChannelId;
71
- event.status = 0;
72
- this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_ANSWER, encodeToJson(event));
68
+ const b51 = new PLVLinkMicSocketJoinAnswerSend();
69
+ b51.user = this.createSocketUser();
70
+ b51.roomId = this.repo.mediator.channelData?.loginChannelId;
71
+ b51.status = 0;
72
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_ANSWER, encodeToJson(b51));
73
73
  this.repo.mediator.linkmicState.setValue(PLVLinkMicState.NoLinkMic);
74
74
  this.handleRTCUseCase.leaveChannel();
75
75
  }
76
76
  leaveLinkMic() {
77
- const l127 = this.repo.mediator.linkmicState.value;
78
- if (l127 === undefined || ![PLVLinkMicState.Requesting, PLVLinkMicState.Joined].includes(l127)) {
77
+ const z50 = this.repo.mediator.linkmicState.value;
78
+ if (z50 === undefined || ![PLVLinkMicState.Requesting, PLVLinkMicState.Joined].includes(z50)) {
79
79
  return;
80
80
  }
81
- const event = new PLVLinkMicSocketJoinLeaveSend();
82
- event.user = this.createSocketUser();
83
- event.roomId = this.repo.mediator.channelData?.loginChannelId;
84
- this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_LEAVE, encodeToJson(event));
81
+ const a51 = new PLVLinkMicSocketJoinLeaveSend();
82
+ a51.user = this.createSocketUser();
83
+ a51.roomId = this.repo.mediator.channelData?.loginChannelId;
84
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_LEAVE, encodeToJson(a51));
85
85
  this.repo.mediator.linkmicState.setValue(PLVLinkMicState.NoLinkMic);
86
86
  this.repo.mediator.channelLinkMicViewers.setValue([]);
87
87
  this.repo.mediator.channelMainViewLinkMicId.setValue(undefined);
@@ -91,7 +91,7 @@ export class LinkMicViewerHandleStateUseCase {
91
91
  }
92
92
  onLiveStreamStart() {
93
93
  }
94
- async setLinkMicMode(k127) {
94
+ async setLinkMicMode(y50) {
95
95
  return false;
96
96
  }
97
97
  async openLinkMic() {
@@ -100,72 +100,75 @@ export class LinkMicViewerHandleStateUseCase {
100
100
  async closeLinkMic() {
101
101
  return false;
102
102
  }
103
- acceptViewerLinkMicRequest(j127) {
103
+ acceptViewerLinkMicRequest(x50) {
104
104
  }
105
- inviteViewerLinkMic(h127, i127) {
105
+ inviteViewerLinkMic(v50, w50) {
106
106
  }
107
- hangupViewerLinkMic(g127) {
107
+ hangupViewerLinkMic(u50) {
108
108
  }
109
109
  hangupAllViewersLinkMic() {
110
110
  }
111
- setViewerEnableCamera(f127, enable) {
111
+ setViewerEnableCamera(s50, t50) {
112
112
  }
113
- setViewerEnableMicrophone(e127, enable) {
113
+ setViewerEnableMicrophone(q50, r50) {
114
114
  }
115
- grantSpeaker(d127) {
115
+ grantSpeaker(p50) {
116
116
  }
117
- revokeSpeaker(c127) {
117
+ revokeSpeaker(o50) {
118
118
  }
119
- setMainView(b127) {
119
+ setMainView(n50) {
120
120
  }
121
121
  onLiveStreamStop() {
122
122
  }
123
123
  onStreamerStop() {
124
124
  }
125
125
  updateInvitationExpireTime() {
126
- const event = new PLVLinkMicSocketJoinAnswerTTLSend();
127
- event.userId = this.repo.mediator.channelData?.viewerId;
128
- event.roomId = this.repo.mediator.channelData?.loginChannelId;
129
- event.sessionId = this.repo.mediator.channelData?.sessionId;
130
- const y126 = Date.now();
131
- this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_ANSWER_TTL, encodeToJson(event), (data) => {
132
- const ttl = decodeFromJson(data, PLVLinkMicSocketJoinAnswerTTLAck).message?.[0] ?? 0;
133
- const expire = y126 + seconds(ttl).toMillis();
134
- this.repo.mediator.invitationExpireTimestamp.setValue(expire);
135
- const z126 = expire - Date.now();
126
+ const f50 = new PLVLinkMicSocketJoinAnswerTTLSend();
127
+ f50.userId = this.repo.mediator.channelData?.viewerId;
128
+ f50.roomId = this.repo.mediator.channelData?.loginChannelId;
129
+ f50.sessionId = this.repo.mediator.channelData?.sessionId;
130
+ const g50 = Date.now();
131
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_ANSWER_TTL, encodeToJson(f50), (h50) => {
132
+ const i50 = decodeFromJson(h50, PLVLinkMicSocketJoinAnswerTTLAck).message?.[0] ?? 0;
133
+ const j50 = g50 + seconds(i50).toMillis();
134
+ this.repo.mediator.invitationExpireTimestamp.setValue(j50);
135
+ const k50 = j50 - Date.now();
136
136
  setTimeout(() => {
137
- const expire = this.repo.mediator.invitationExpireTimestamp.value ?? 0;
138
- const a127 = this.repo.mediator.linkmicState.value;
139
- if (a127 === PLVLinkMicState.Inviting && Date.now() >= expire) {
137
+ const l50 = this.repo.mediator.invitationExpireTimestamp.value ?? 0;
138
+ const m50 = this.repo.mediator.linkmicState.value;
139
+ if (m50 === PLVLinkMicState.Inviting && Date.now() >= l50) {
140
140
  this.refuseInvitation();
141
141
  }
142
- }, z126);
142
+ }, k50);
143
143
  });
144
144
  }
145
- onSocketMessage(data, event) {
146
- switch (event) {
147
- case PLVSocketMessageEvent.OPEN_MICROPHONE: return this.onSocketOpenMicrophone(data);
148
- case PLVSocketMessageEvent.MUTE_USER_MICRO: return this.onSocketMuteUserMicro(data);
149
- case PLVSocketMessageEvent.SET_NICK: return this.onSocketUserSetNick(data);
145
+ onSocketMessage(d50, e50) {
146
+ switch (e50) {
147
+ case PLVSocketMessageEvent.OPEN_MICROPHONE:
148
+ return this.onSocketOpenMicrophone(d50);
149
+ case PLVSocketMessageEvent.MUTE_USER_MICRO:
150
+ return this.onSocketMuteUserMicro(d50);
151
+ case PLVSocketMessageEvent.SET_NICK:
152
+ return this.onSocketUserSetNick(d50);
150
153
  default:
151
154
  }
152
155
  }
153
- onSocketOpenMicrophone(data) {
154
- const v126 = decodeFromJson(data, PLVLinkMicSocketOpenMicrophoneRecv);
155
- const w126 = v126.userId !== undefined;
156
- if (v126.status === 'open') {
157
- if (!w126) {
156
+ onSocketOpenMicrophone(z49) {
157
+ const a50 = decodeFromJson(z49, PLVLinkMicSocketOpenMicrophoneRecv);
158
+ const b50 = a50.userId !== undefined;
159
+ if (a50.status === 'open') {
160
+ if (!b50) {
158
161
  this.repo.mediator.channelAllowLinkMic.setValue(true);
159
162
  this.repo.mediator.channelAllowRequestHandsUpLinkMic.setValue(true);
160
- this.updateLinkMicMode(v126.type);
163
+ this.updateLinkMicMode(a50.type);
161
164
  }
162
165
  }
163
- else if (v126.status === 'close') {
164
- if (!w126) {
166
+ else if (a50.status === 'close') {
167
+ if (!b50) {
165
168
  if (this.repo.mediator.isLinkMicStrategyV2.value === true) {
166
169
  this.repo.mediator.channelAllowRequestHandsUpLinkMic.setValue(false);
167
- const x126 = this.repo.mediator.linkmicState.value === PLVLinkMicState.Requesting;
168
- if (x126) {
170
+ const c50 = this.repo.mediator.linkmicState.value === PLVLinkMicState.Requesting;
171
+ if (c50) {
169
172
  this.leaveLinkMic();
170
173
  }
171
174
  }
@@ -175,55 +178,55 @@ export class LinkMicViewerHandleStateUseCase {
175
178
  this.leaveLinkMic();
176
179
  }
177
180
  }
178
- if (w126 && this.repo.mediator.isMySocketLinkMicId(v126.userId)) {
181
+ if (b50 && this.repo.mediator.isMySocketLinkMicId(a50.userId)) {
179
182
  this.repo.mediator.teacherHangUpLinkMicEvent.setValue(Date.now());
180
183
  this.leaveLinkMic();
181
184
  }
182
185
  }
183
186
  }
184
- onSocketMuteUserMicro(data) {
185
- const u126 = decodeFromJson(data, PLVLinkMicSocketMuteUserMicroRecv);
186
- if (u126.type === 'audio') {
187
- if (u126.mute === true) {
187
+ onSocketMuteUserMicro(x49) {
188
+ const y49 = decodeFromJson(x49, PLVLinkMicSocketMuteUserMicroRecv);
189
+ if (y49.type === 'audio') {
190
+ if (y49.mute === true) {
188
191
  this.handleRTCUseCase.enableMicrophone(false);
189
192
  }
190
- if (u126.mute === false) {
193
+ if (y49.mute === false) {
191
194
  this.handleRTCUseCase.enableMicrophone(true);
192
195
  }
193
196
  }
194
- if (u126.type === 'video') {
195
- if (u126.mute === true) {
197
+ if (y49.type === 'video') {
198
+ if (y49.mute === true) {
196
199
  this.handleRTCUseCase.enableCamera(false);
197
200
  }
198
- if (u126.mute === false) {
201
+ if (y49.mute === false) {
199
202
  this.handleRTCUseCase.enableCamera(true);
200
203
  }
201
204
  }
202
205
  }
203
- onSocketUserSetNick(data) {
204
- const r126 = decodeFromJson(data, PLVMemberSocketSetNickRecv);
205
- const s126 = r126.userId;
206
- const t126 = this.repo.mediator.findViewerByViewerId(s126);
207
- if (t126 !== undefined) {
208
- t126.viewerName.setValue(r126.nick);
206
+ onSocketUserSetNick(t49) {
207
+ const u49 = decodeFromJson(t49, PLVMemberSocketSetNickRecv);
208
+ const v49 = u49.userId;
209
+ const w49 = this.repo.mediator.findViewerByViewerId(v49);
210
+ if (w49 !== undefined) {
211
+ w49.viewerName.setValue(u49.nick);
209
212
  }
210
213
  }
211
- onSocketJoinRequest(data) {
212
- const q126 = decodeFromJson(data, PLVLinkMicSocketJoinRequestRecv);
213
- this.handleQueueOrderUseCase.onEventJoinRequest(q126);
214
+ onSocketJoinRequest(r49) {
215
+ const s49 = decodeFromJson(r49, PLVLinkMicSocketJoinRequestRecv);
216
+ this.handleQueueOrderUseCase.onEventJoinRequest(s49);
214
217
  }
215
- onSocketJoinResponse(data) {
216
- const o126 = decodeFromJson(data, PLVLinkMicSocketJoinResponseRecv);
217
- if (!this.repo.mediator.isMySocketLinkMicId(o126.user?.userId)) {
218
+ onSocketJoinResponse(o49) {
219
+ const p49 = decodeFromJson(o49, PLVLinkMicSocketJoinResponseRecv);
220
+ if (!this.repo.mediator.isMySocketLinkMicId(p49.user?.userId)) {
218
221
  return;
219
222
  }
220
- this.updateLinkMicMode(o126.type);
221
- const p126 = this.repo.mediator.linkmicState.value;
222
- if (o126.isNeedAnswer()) {
223
- if (p126 === PLVLinkMicState.Requesting) {
223
+ this.updateLinkMicMode(p49.type);
224
+ const q49 = this.repo.mediator.linkmicState.value;
225
+ if (p49.isNeedAnswer()) {
226
+ if (q49 === PLVLinkMicState.Requesting) {
224
227
  this.acceptInvitation();
225
228
  }
226
- else if (p126 === PLVLinkMicState.NoLinkMic) {
229
+ else if (q49 === PLVLinkMicState.NoLinkMic) {
227
230
  this.repo.mediator.invitationExpireTimestamp.setValue(Date.now() + seconds(30).toMillis());
228
231
  this.repo.mediator.linkmicState.setValue(PLVLinkMicState.Inviting);
229
232
  this.updateInvitationExpireTime();
@@ -234,40 +237,40 @@ export class LinkMicViewerHandleStateUseCase {
234
237
  this.handleRTCUseCase.joinChannel();
235
238
  }
236
239
  }
237
- onSocketJoinSuccess(data) {
238
- const n126 = decodeFromJson(data, PLVLinkMicSocketJoinSuccessRecv);
239
- this.handleQueueOrderUseCase.onEventJoinSuccess(n126);
240
- this.updateChannelViewerUseCase.onEventJoinSuccess(n126);
241
- if (this.repo.mediator.isMySocketLinkMicId(n126.user?.userId)) {
240
+ onSocketJoinSuccess(m49) {
241
+ const n49 = decodeFromJson(m49, PLVLinkMicSocketJoinSuccessRecv);
242
+ this.handleQueueOrderUseCase.onEventJoinSuccess(n49);
243
+ this.updateChannelViewerUseCase.onEventJoinSuccess(n49);
244
+ if (this.repo.mediator.isMySocketLinkMicId(n49.user?.userId)) {
242
245
  this.updateChannelViewerUseCase.startUpdateChannelLinkMicViewersInterval();
243
246
  }
244
247
  }
245
- onSocketJoinLeave(data) {
246
- const m126 = decodeFromJson(data, PLVLinkMicSocketJoinLeaveRecv);
247
- this.handleQueueOrderUseCase.onEventJoinLeave(m126);
248
- this.updateChannelViewerUseCase.onEventJoinLeave(m126);
249
- if (this.repo.mediator.isMySocketLinkMicId(m126.user?.userId)) {
248
+ onSocketJoinLeave(k49) {
249
+ const l49 = decodeFromJson(k49, PLVLinkMicSocketJoinLeaveRecv);
250
+ this.handleQueueOrderUseCase.onEventJoinLeave(l49);
251
+ this.updateChannelViewerUseCase.onEventJoinLeave(l49);
252
+ if (this.repo.mediator.isMySocketLinkMicId(l49.user?.userId)) {
250
253
  this.updateChannelViewerUseCase.stopUpdateChannelLinkMicViewersInterval();
251
254
  }
252
255
  }
253
- onSocketSwitchView(data) {
254
- const l126 = decodeFromJson(data, PLVLinkMicSocketSwitchViewRecv);
255
- if (isNullOrUndefined(l126.userId)) {
256
+ onSocketSwitchView(i49) {
257
+ const j49 = decodeFromJson(i49, PLVLinkMicSocketSwitchViewRecv);
258
+ if (isNullOrUndefined(j49.userId)) {
256
259
  return;
257
260
  }
258
- this.repo.mediator.channelMainViewLinkMicId.setValue(l126.userId);
259
- this.updateChannelViewerUseCase.onEventSwitchView(l126);
261
+ this.repo.mediator.channelMainViewLinkMicId.setValue(j49.userId);
262
+ this.updateChannelViewerUseCase.onEventSwitchView(j49);
260
263
  }
261
264
  updateMicSetting() {
262
- this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.MIC, encodeToJson(new PLVLinkMicSocketMicSettingSend()), (data) => {
263
- const k126 = decodeFromJson(data, PLVLinkMicSocketMicSettingAck).message?.[0];
264
- const status = k126?.data?.status;
265
- const type = k126?.data?.type;
266
- if (status === 'open') {
265
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.MIC, encodeToJson(new PLVLinkMicSocketMicSettingSend()), (e49) => {
266
+ const f49 = decodeFromJson(e49, PLVLinkMicSocketMicSettingAck).message?.[0];
267
+ const g49 = f49?.data?.status;
268
+ const h49 = f49?.data?.type;
269
+ if (g49 === 'open') {
267
270
  this.repo.mediator.channelAllowLinkMic.setValue(true);
268
271
  this.repo.mediator.channelAllowRequestHandsUpLinkMic.setValue(true);
269
272
  }
270
- else if (status === 'close') {
273
+ else if (g49 === 'close') {
271
274
  if (this.repo.mediator.isLinkMicStrategyV2.value === true) {
272
275
  this.repo.mediator.channelAllowLinkMic.setValue(true);
273
276
  this.repo.mediator.channelAllowRequestHandsUpLinkMic.setValue(false);
@@ -277,80 +280,80 @@ export class LinkMicViewerHandleStateUseCase {
277
280
  this.repo.mediator.channelAllowRequestHandsUpLinkMic.setValue(false);
278
281
  }
279
282
  }
280
- this.updateLinkMicMode(type);
283
+ this.updateLinkMicMode(h49);
281
284
  });
282
285
  }
283
- onRTCEvent(event) {
284
- if (event instanceof PLVLinkMicRTCJoinSuccess) {
285
- this.onRTCJoinSuccess(event);
286
+ onRTCEvent(d49) {
287
+ if (d49 instanceof PLVLinkMicRTCJoinSuccess) {
288
+ this.onRTCJoinSuccess(d49);
286
289
  }
287
- else if (event instanceof PLVLinkMicRTCKickOut) {
288
- this.onRTCKickOut(event);
290
+ else if (d49 instanceof PLVLinkMicRTCKickOut) {
291
+ this.onRTCKickOut(d49);
289
292
  }
290
293
  }
291
- onRTCJoinSuccess(i126) {
294
+ onRTCJoinSuccess(b49) {
292
295
  this.repo.sendLinkMicIdRelation();
293
- const j126 = new PLVLinkMicSocketJoinSuccessSend();
294
- j126.user = this.createSocketUser();
295
- j126.roomId = this.repo.mediator.channelData?.loginChannelId;
296
- j126.sessionId = this.repo.mediator.channelData?.sessionId;
297
- this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_SUCCESS, encodeToJson(j126));
296
+ const c49 = new PLVLinkMicSocketJoinSuccessSend();
297
+ c49.user = this.createSocketUser();
298
+ c49.roomId = this.repo.mediator.channelData?.loginChannelId;
299
+ c49.sessionId = this.repo.mediator.channelData?.sessionId;
300
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_SUCCESS, encodeToJson(c49));
298
301
  }
299
- onRTCKickOut(h126) {
302
+ onRTCKickOut(a49) {
300
303
  this.leaveLinkMic();
301
304
  this.repo.mediator.teacherHangUpLinkMicEvent.setValue(Date.now());
302
305
  }
303
- onViewerLeaveLinkMic(d126) {
304
- const e126 = d126.find(g126 => g126.linkmicId === this.repo.mediator.linkmicId) !== undefined;
305
- const f126 = this.repo.mediator.linkmicState.value === PLVLinkMicState.Joined;
306
- if (e126 && f126) {
306
+ onViewerLeaveLinkMic(w48) {
307
+ const x48 = w48.find(z48 => z48.linkmicId === this.repo.mediator.linkmicId) !== undefined;
308
+ const y48 = this.repo.mediator.linkmicState.value === PLVLinkMicState.Joined;
309
+ if (x48 && y48) {
307
310
  this.leaveLinkMic();
308
311
  }
309
312
  }
310
313
  onDestroy() {
311
314
  this.taskUpdateMicSetting?.cancel();
312
315
  this.taskUpdateMicSetting = undefined;
313
- this.disposables.forEach((c126) => {
314
- c126.dispose();
316
+ this.disposables.forEach((v48) => {
317
+ v48.dispose();
315
318
  });
316
319
  this.disposables = [];
317
320
  MutableObserver.disposeAll(this.observers);
318
321
  this.observers = [];
319
322
  }
320
- observeSocketEvent(event, callback) {
321
- const b126 = requireNotNull(this.repo.mediator.socketMediator);
322
- b126.onData(event, callback);
323
- return disposable(() => b126.offData(event, callback));
323
+ observeSocketEvent(s48, t48) {
324
+ const u48 = requireNotNull(this.repo.mediator.socketMediator);
325
+ u48.onData(s48, t48);
326
+ return disposable(() => u48.offData(s48, t48));
324
327
  }
325
328
  createSocketUser() {
326
- const user = new PLVSocketUserSend();
327
- user.nick = this.repo.mediator.channelData?.viewerName;
328
- user.pic = this.repo.mediator.channelData?.viewerAvatar;
329
- user.userType = this.repo.mediator.channelData?.viewerType;
330
- user.userId = this.repo.mediator.linkmicId;
331
- return user;
332
- }
333
- updateLinkMicMode(mode) {
334
- if (mode === PLVLinkMicMode.AUDIO || mode === PLVLinkMicMode.VIDEO) {
335
- this.repo.mediator.channelLinkMicMode.setValue(mode);
329
+ const r48 = new PLVSocketUserSend();
330
+ r48.nick = this.repo.mediator.channelData?.viewerName;
331
+ r48.pic = this.repo.mediator.channelData?.viewerAvatar;
332
+ r48.userType = this.repo.mediator.channelData?.viewerType;
333
+ r48.userId = this.repo.mediator.linkmicId;
334
+ return r48;
335
+ }
336
+ updateLinkMicMode(q48) {
337
+ if (q48 === PLVLinkMicMode.AUDIO || q48 === PLVLinkMicMode.VIDEO) {
338
+ this.repo.mediator.channelLinkMicMode.setValue(q48);
336
339
  }
337
340
  }
338
341
  async isChannelReachLinkMicLimit() {
339
- const x125 = this.repo.mediator.channelData?.liveDetail?.linkMicLimit;
340
- if (x125 === undefined) {
342
+ const m48 = this.repo.mediator.channelData?.liveDetail?.linkMicLimit;
343
+ if (m48 === undefined) {
341
344
  PLVLogger.warn(TAG, "channel linkmic limit is undefined, treat as reach limit.");
342
345
  return true;
343
346
  }
344
- const y125 = await runCatching(this.repo.getChannelLinkMicStatus());
345
- if (y125.success === false) {
346
- PLVLogger.warn(TAG, `channel linkmic status response fail: ${y125.error.message}`);
347
+ const n48 = await runCatching(this.repo.getChannelLinkMicStatus());
348
+ if (n48.success === false) {
349
+ PLVLogger.warn(TAG, `channel linkmic status response fail: ${n48.error.message}`);
347
350
  return true;
348
351
  }
349
- const z125 = y125.data.joinList?.filter(a126 => {
350
- a126.userType === PLVUserType.USERTYPE_TEACHER || a126.classStatus?.voice === 1;
352
+ const o48 = n48.data.joinList?.filter(p48 => {
353
+ p48.userType === PLVUserType.USERTYPE_TEACHER || p48.classStatus?.voice === 1;
351
354
  })?.length ?? 0;
352
- if (z125 >= x125 + 1) {
353
- PLVLogger.warn(TAG, `channel reach linkmic limit, current join ${z125}, limit ${x125}`);
355
+ if (o48 >= m48 + 1) {
356
+ PLVLogger.warn(TAG, `channel reach linkmic limit, current join ${o48}, limit ${m48}`);
354
357
  return true;
355
358
  }
356
359
  else {
@@ -359,15 +362,15 @@ export class LinkMicViewerHandleStateUseCase {
359
362
  }
360
363
  }
361
364
  class SocketDisposable extends PLVDisposable {
362
- constructor(w125) {
365
+ constructor(l48) {
363
366
  super();
364
- this.onDispose = w125;
367
+ this.onDispose = l48;
365
368
  }
366
369
  dispose() {
367
370
  super.dispose();
368
371
  this.onDispose?.();
369
372
  }
370
373
  }
371
- function disposable(v125) {
372
- return new SocketDisposable(v125);
374
+ function disposable(k48) {
375
+ return new SocketDisposable(k48);
373
376
  }
@@ -1,12 +1,12 @@
1
1
  import { PLVBaseModule } from '../../../common/PLVBaseModule';
2
2
  import { PLVChannelData } from '../../../common/PLVChannelData';
3
3
  import { PLVELogDataBean, PLVELogPartData } from './model/PLVELogDataBean';
4
- export declare function eLogSender(c128: PLVChannelData): PLVELogSender;
4
+ export declare function eLogSender(h52: PLVChannelData): PLVELogSender;
5
5
  export declare class PLVELogSender extends PLVBaseModule {
6
6
  static readonly LOG_ARR: PLVELogDataBean[];
7
7
  static batchIntervalId?: number;
8
- constructor(b128: PLVChannelData);
9
- once(a128: PLVELogPartData): void;
10
- batch(z127: PLVELogPartData): void;
8
+ constructor(g52: PLVChannelData);
9
+ once(f52: PLVELogPartData): void;
10
+ batch(d52: PLVELogPartData): void;
11
11
  private reportLiveELog;
12
12
  }
@@ -5,12 +5,12 @@ import { toELogData } from './model/PLVELogDataBean';
5
5
  const TAG = '[PLVELogSender]';
6
6
  const BATCH_INTERVAL = 1000 * 60;
7
7
  const BATCH_LENGTH = 20;
8
- export function eLogSender(c128) {
9
- return new PLVELogSender(c128);
8
+ export function eLogSender(h52) {
9
+ return new PLVELogSender(h52);
10
10
  }
11
11
  export class PLVELogSender extends PLVBaseModule {
12
- constructor(b128) {
13
- super(b128);
12
+ constructor(g52) {
13
+ super(g52);
14
14
  if (PLVELogSender.batchIntervalId == undefined) {
15
15
  PLVELogSender.batchIntervalId = setInterval(() => {
16
16
  if (PLVELogSender.LOG_ARR.length > 0) {
@@ -20,25 +20,25 @@ export class PLVELogSender extends PLVBaseModule {
20
20
  }, BATCH_INTERVAL);
21
21
  }
22
22
  }
23
- once(a128) {
24
- this.reportLiveELog([toELogData(this.channelData, a128)]);
23
+ once(f52) {
24
+ this.reportLiveELog([toELogData(this.channelData, f52)]);
25
25
  }
26
- batch(z127) {
27
- const log = toELogData(this.channelData, z127);
28
- PLVELogSender.LOG_ARR.push(log);
29
- PLVLogger.info(TAG, `batch log: ${PLVJSONUtils.safeStringify(log)}`);
26
+ batch(d52) {
27
+ const e52 = toELogData(this.channelData, d52);
28
+ PLVELogSender.LOG_ARR.push(e52);
29
+ PLVLogger.info(TAG, `batch log: ${PLVJSONUtils.safeStringify(e52)}`);
30
30
  if (PLVELogSender.LOG_ARR.length >= BATCH_LENGTH) {
31
31
  this.reportLiveELog(PLVELogSender.LOG_ARR);
32
32
  PLVELogSender.LOG_ARR.length = 0;
33
33
  }
34
34
  }
35
- reportLiveELog(x127) {
36
- return PLVUtils.safePromise(async (y127, reject) => {
37
- const log = PLVJSONUtils.safeStringify(x127);
38
- PLVLogger.info(TAG, `reportLiveELog: ${log}`);
39
- await eLogPlvNetApi(this.channelData).reportLiveELog(this.channelData.loginChannelId, log)
40
- .catch((err) => {
41
- return Promise.reject(err.log(TAG, 'reportLiveELog error'));
35
+ reportLiveELog(y51) {
36
+ return PLVUtils.safePromise(async (z51, a52) => {
37
+ const b52 = PLVJSONUtils.safeStringify(y51);
38
+ PLVLogger.info(TAG, `reportLiveELog: ${b52}`);
39
+ await eLogPlvNetApi(this.channelData).reportLiveELog(this.channelData.loginChannelId, b52)
40
+ .catch((c52) => {
41
+ return Promise.reject(c52.log(TAG, 'reportLiveELog error'));
42
42
  });
43
43
  PLVLogger.info(TAG, 'reportLiveELog success');
44
44
  });
@@ -28,4 +28,4 @@ export declare class PLVELogPartData {
28
28
  module: string;
29
29
  information?: string;
30
30
  }
31
- export declare function toELogData(t127: PLVChannelData, u127: PLVELogPartData): PLVELogDataBean;
31
+ export declare function toELogData(t51: PLVChannelData, u51: PLVELogPartData): PLVELogDataBean;
@@ -24,17 +24,17 @@ export class PLVELogPartData {
24
24
  this.module = 'default_module';
25
25
  }
26
26
  }
27
- export function toELogData(t127, u127) {
28
- const data = new PLVELogDataBean();
29
- data.errorCode = u127.errorCode || 0;
30
- data.event = u127.event || 'default_event';
31
- data.module = u127.module || 'default_module';
32
- data.logFile = {
33
- information: u127.information
27
+ export function toELogData(t51, u51) {
28
+ const v51 = new PLVELogDataBean();
29
+ v51.errorCode = u51.errorCode || 0;
30
+ v51.event = u51.event || 'default_event';
31
+ v51.module = u51.module || 'default_module';
32
+ v51.logFile = {
33
+ information: u51.information
34
34
  };
35
- data.appId = t127.appId;
36
- data.channelId2 = t127.loginChannelId;
37
- data.userId2 = t127.userId;
38
- data.viewerId = t127.viewerId;
39
- return data;
35
+ v51.appId = t51.appId;
36
+ v51.channelId2 = t51.loginChannelId;
37
+ v51.userId2 = t51.userId;
38
+ v51.viewerId = t51.viewerId;
39
+ return v51;
40
40
  }