@polyvharmony/live-scenes-sdk 1.3.0 → 1.3.2-rc.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 (309) hide show
  1. package/BuildProfile.d.ets +2 -2
  2. package/BuildProfile.js +1 -1
  3. package/CHANGELOG.md +29 -0
  4. package/ResourceTable.txt +72 -72
  5. package/oh-package.json5 +1 -1
  6. package/package.json +1 -1
  7. package/src/main/ets/common/PLVBaseModule.d.ets +1 -1
  8. package/src/main/ets/common/PLVBaseModule.js +2 -2
  9. package/src/main/ets/common/PLVChannelData.d.ets +11 -11
  10. package/src/main/ets/common/PLVChannelData.js +44 -44
  11. package/src/main/ets/common/PLVDataBaseModule.d.ets +2 -2
  12. package/src/main/ets/common/PLVDataBaseModule.js +3 -3
  13. package/src/main/ets/common/PLVLiveSceneSDK.d.ets +6 -6
  14. package/src/main/ets/common/PLVLiveSceneSDK.js +23 -23
  15. package/src/main/ets/modules/business/PLVBusinessApiManager.js +17 -17
  16. package/src/main/ets/modules/business/model/PLVReportPageViewerVO.d.ets +1 -1
  17. package/src/main/ets/modules/business/model/PLVReportPageViewerVO.js +3 -3
  18. package/src/main/ets/modules/chatroom/PLVChatroomManager.d.ets +36 -21
  19. package/src/main/ets/modules/chatroom/PLVChatroomManager.js +298 -267
  20. package/src/main/ets/modules/chatroom/handler/PLVChatroomBanIpMessageHandler.d.ets +1 -1
  21. package/src/main/ets/modules/chatroom/handler/PLVChatroomBanIpMessageHandler.js +5 -5
  22. package/src/main/ets/modules/chatroom/handler/PLVChatroomBaseHandler.d.ets +2 -2
  23. package/src/main/ets/modules/chatroom/handler/PLVChatroomBaseHandler.js +2 -2
  24. package/src/main/ets/modules/chatroom/handler/PLVChatroomCancelTopHandler.d.ets +1 -1
  25. package/src/main/ets/modules/chatroom/handler/PLVChatroomCancelTopHandler.js +3 -3
  26. package/src/main/ets/modules/chatroom/handler/PLVChatroomCloseRoomMessageHandler.d.ets +1 -1
  27. package/src/main/ets/modules/chatroom/handler/PLVChatroomCloseRoomMessageHandler.js +5 -5
  28. package/src/main/ets/modules/chatroom/handler/PLVChatroomDataHandlerFactory.d.ets +1 -1
  29. package/src/main/ets/modules/chatroom/handler/PLVChatroomDataHandlerFactory.js +22 -21
  30. package/src/main/ets/modules/chatroom/handler/PLVChatroomFocusModeHandler.d.ets +1 -1
  31. package/src/main/ets/modules/chatroom/handler/PLVChatroomFocusModeHandler.js +4 -4
  32. package/src/main/ets/modules/chatroom/handler/PLVChatroomLikesMessageHandler.d.ets +1 -1
  33. package/src/main/ets/modules/chatroom/handler/PLVChatroomLikesMessageHandler.js +5 -5
  34. package/src/main/ets/modules/chatroom/handler/PLVChatroomLoginMessageHandler.d.ets +1 -1
  35. package/src/main/ets/modules/chatroom/handler/PLVChatroomLoginMessageHandler.js +14 -14
  36. package/src/main/ets/modules/chatroom/handler/PLVChatroomLogoutMessageHandler.d.ets +1 -1
  37. package/src/main/ets/modules/chatroom/handler/PLVChatroomLogoutMessageHandler.js +5 -5
  38. package/src/main/ets/modules/chatroom/handler/PLVChatroomOnSliceIdMessageHandler.d.ets +1 -1
  39. package/src/main/ets/modules/chatroom/handler/PLVChatroomOnSliceIdMessageHandler.js +7 -7
  40. package/src/main/ets/modules/chatroom/handler/PLVChatroomToTopHandler.d.ets +1 -1
  41. package/src/main/ets/modules/chatroom/handler/PLVChatroomToTopHandler.js +4 -4
  42. package/src/main/ets/modules/chatroom/handler/PLVChatroomUnShieldMessageHandler.d.ets +1 -1
  43. package/src/main/ets/modules/chatroom/handler/PLVChatroomUnShieldMessageHandler.js +5 -5
  44. package/src/main/ets/modules/chatroom/model/IPLVIdEvent.js +7 -7
  45. package/src/main/ets/modules/chatroom/model/PLVChatImgContentBean.js +7 -7
  46. package/src/main/ets/modules/chatroom/model/PLVChatImgEvent.js +15 -15
  47. package/src/main/ets/modules/chatroom/model/PLVChatQuoteDataBean.js +7 -7
  48. package/src/main/ets/modules/chatroom/model/PLVEmotionEvent.js +16 -16
  49. package/src/main/ets/modules/chatroom/model/PLVEmotionImagesVO.js +7 -7
  50. package/src/main/ets/modules/chatroom/model/PLVHistoryChatImgEvent.js +15 -15
  51. package/src/main/ets/modules/chatroom/model/PLVHistoryFileShareEvent.js +15 -15
  52. package/src/main/ets/modules/chatroom/model/PLVHistorySpeakEvent.js +17 -17
  53. package/src/main/ets/modules/chatroom/model/PLVHistroyQuizListVO.js +4 -4
  54. package/src/main/ets/modules/chatroom/model/PLVImageBean.d.ets +3 -3
  55. package/src/main/ets/modules/chatroom/model/PLVImageBean.js +34 -34
  56. package/src/main/ets/modules/chatroom/model/PLVLikesEvent.js +7 -7
  57. package/src/main/ets/modules/chatroom/model/PLVLocalQuizEvent.js +7 -7
  58. package/src/main/ets/modules/chatroom/model/PLVLocalSpeakEvent.js +14 -14
  59. package/src/main/ets/modules/chatroom/model/PLVPPTShareFileDataBean.js +7 -7
  60. package/src/main/ets/modules/chatroom/model/PLVRewardEvent.js +7 -7
  61. package/src/main/ets/modules/chatroom/model/PLVSpeakEvent.js +19 -19
  62. package/src/main/ets/modules/chatroom/model/PLVTAnswerEvent.js +10 -10
  63. package/src/main/ets/modules/chatroom/model/PLVToTopEvent.d.ets +1 -1
  64. package/src/main/ets/modules/chatroom/model/PLVToTopEvent.js +2 -2
  65. package/src/main/ets/modules/chatroom/playback/PLVChatPlaybackManager.d.ets +4 -4
  66. package/src/main/ets/modules/chatroom/playback/PLVChatPlaybackManager.js +133 -136
  67. package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackDataVO.d.ets +3 -2
  68. package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackDataVO.js +27 -24
  69. package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackOpenHelper.d.ets +8 -8
  70. package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackOpenHelper.js +28 -28
  71. package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackToTopVO.d.ets +3 -3
  72. package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackToTopVO.js +46 -46
  73. package/src/main/ets/modules/i18n/PLVI18NDataMapper.d.ets +5 -5
  74. package/src/main/ets/modules/i18n/PLVI18NDataMapper.js +20 -20
  75. package/src/main/ets/modules/i18n/PLVLanguageManager.js +8 -8
  76. package/src/main/ets/modules/interact/PLVInteractManager.d.ets +6 -6
  77. package/src/main/ets/modules/interact/PLVInteractManager.js +12 -12
  78. package/src/main/ets/modules/interact/PLVInteractWeb.d.ets +14 -14
  79. package/src/main/ets/modules/interact/PLVInteractWeb.js +150 -151
  80. package/src/main/ets/modules/interact/invitePoster/PLVInteractInvitePoster.d.ets +1 -1
  81. package/src/main/ets/modules/interact/invitePoster/PLVInteractInvitePoster.js +34 -34
  82. package/src/main/ets/modules/interact/model/PLVFunctionSwitchBean.d.ets +1 -1
  83. package/src/main/ets/modules/interact/model/PLVFunctionSwitchBean.js +6 -6
  84. package/src/main/ets/modules/interact/pushcard/PLVPushCardManager.d.ets +2 -2
  85. package/src/main/ets/modules/interact/pushcard/PLVPushCardManager.js +21 -21
  86. package/src/main/ets/modules/interact/pushcard/model/PLVShowPushCardEvent.d.ets +1 -1
  87. package/src/main/ets/modules/interact/pushcard/model/PLVShowPushCardEvent.js +2 -2
  88. package/src/main/ets/modules/interact/pushcard/repo/PLVCardLookTimeLocalRepository.d.ets +3 -3
  89. package/src/main/ets/modules/interact/pushcard/repo/PLVCardLookTimeLocalRepository.js +6 -6
  90. package/src/main/ets/modules/interact/redpack/model/PLVHistoryRedPaperEvent.js +7 -7
  91. package/src/main/ets/modules/interact/redpack/model/PLVRedPaperEvent.d.ets +2 -2
  92. package/src/main/ets/modules/interact/redpack/model/PLVRedPaperEvent.js +7 -7
  93. package/src/main/ets/modules/interact/redpack/model/PLVRedPaperResultEvent.d.ets +1 -1
  94. package/src/main/ets/modules/linkmic/PLVLinkMicManager.d.ets +14 -14
  95. package/src/main/ets/modules/linkmic/PLVLinkMicManager.js +37 -37
  96. package/src/main/ets/modules/linkmic/di/PLVLinkMicModule.js +11 -11
  97. package/src/main/ets/modules/linkmic/mediator/PLVLinkMicMediator.d.ets +4 -4
  98. package/src/main/ets/modules/linkmic/mediator/PLVLinkMicMediator.js +14 -14
  99. package/src/main/ets/modules/linkmic/mediator/PLVLinkMicRTCEventCallback.d.ets +8 -8
  100. package/src/main/ets/modules/linkmic/mediator/PLVLinkMicRTCEventCallback.js +53 -46
  101. package/src/main/ets/modules/linkmic/model/PLVLinkMicRepo.d.ets +10 -10
  102. package/src/main/ets/modules/linkmic/model/PLVLinkMicRepo.js +74 -70
  103. package/src/main/ets/modules/linkmic/model/datasource/PLVLinkMicNetworkDataSource.d.ets +5 -4
  104. package/src/main/ets/modules/linkmic/model/datasource/PLVLinkMicNetworkDataSource.js +79 -56
  105. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRate.d.ets +1 -1
  106. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRate.js +3 -3
  107. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRateEncodeParam.d.ets +1 -1
  108. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRateEncodeParam.js +12 -12
  109. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicErrorEvent.d.ets +1 -1
  110. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicErrorEvent.js +3 -3
  111. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicInteractEvent.d.ets +1 -1
  112. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicInteractEvent.js +3 -3
  113. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicMode.js +3 -3
  114. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicPushResolutionRatio.d.ets +1 -1
  115. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicPushResolutionRatio.js +4 -4
  116. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicRTCType.d.ets +2 -1
  117. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicRTCType.js +3 -2
  118. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicState.js +6 -6
  119. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicVideoRenderParam.d.ets +1 -1
  120. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicVideoRenderParam.js +3 -3
  121. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicViewer.d.ets +1 -1
  122. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicViewer.js +5 -5
  123. package/src/main/ets/modules/linkmic/viewmodel/PLVLinkMicViewModel.d.ets +15 -15
  124. package/src/main/ets/modules/linkmic/viewmodel/PLVLinkMicViewModel.js +40 -40
  125. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicEncodeParamUseCase.d.ets +6 -6
  126. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicEncodeParamUseCase.js +15 -15
  127. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleQueueOrderUseCase.d.ets +4 -4
  128. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleQueueOrderUseCase.js +25 -25
  129. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleRTCUseCase.d.ets +7 -7
  130. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleRTCUseCase.js +19 -19
  131. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleStateUseCase.d.ets +10 -10
  132. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleStateUseCase.js +26 -26
  133. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicUpdateChannelViewerUseCase.d.ets +6 -6
  134. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicUpdateChannelViewerUseCase.js +135 -135
  135. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicViewLogUseCase.d.ets +1 -1
  136. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicViewLogUseCase.js +27 -27
  137. package/src/main/ets/modules/linkmic/viewmodel/usecase/PLVLinkMicUseCases.d.ets +1 -1
  138. package/src/main/ets/modules/linkmic/viewmodel/usecase/PLVLinkMicUseCases.js +7 -7
  139. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestEncodeParamUseCase.d.ets +6 -6
  140. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestEncodeParamUseCase.js +83 -83
  141. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleRTCUseCase.d.ets +7 -7
  142. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleRTCUseCase.js +42 -42
  143. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleStateUseCase.d.ets +10 -10
  144. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleStateUseCase.js +192 -188
  145. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherEncodeParamUseCase.d.ets +6 -6
  146. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherEncodeParamUseCase.js +83 -83
  147. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleRTCUseCase.d.ets +7 -7
  148. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleRTCUseCase.js +37 -37
  149. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleStateUseCase.d.ets +10 -10
  150. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleStateUseCase.js +130 -128
  151. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerEncodeParamUseCase.d.ets +6 -6
  152. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerEncodeParamUseCase.js +13 -13
  153. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleRTCUseCase.d.ets +7 -7
  154. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleRTCUseCase.js +53 -53
  155. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleStateUseCase.d.ets +10 -10
  156. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleStateUseCase.js +166 -163
  157. package/src/main/ets/modules/log/elog/PLVELogSender.d.ets +4 -4
  158. package/src/main/ets/modules/log/elog/PLVELogSender.js +17 -17
  159. package/src/main/ets/modules/log/elog/model/PLVELogDataBean.d.ets +1 -1
  160. package/src/main/ets/modules/log/elog/model/PLVELogDataBean.js +12 -12
  161. package/src/main/ets/modules/log/elog/model/PLVELogModuleConstants.js +8 -8
  162. package/src/main/ets/modules/login/PLVSceneLoginManager.d.ets +4 -3
  163. package/src/main/ets/modules/login/PLVSceneLoginManager.js +111 -101
  164. package/src/main/ets/modules/login/model/PLVChatDomainVO.d.ets +2 -2
  165. package/src/main/ets/modules/login/model/PLVChatDomainVO.js +4 -4
  166. package/src/main/ets/modules/login/model/PLVLiveChannelType.d.ets +1 -1
  167. package/src/main/ets/modules/login/model/PLVLiveChannelType.js +15 -14
  168. package/src/main/ets/modules/login/model/PLVLiveDetailVO.d.ets +2 -1
  169. package/src/main/ets/modules/login/model/PLVLiveDetailVO.js +14 -14
  170. package/src/main/ets/modules/login/model/PLVLiveStatus.d.ets +1 -1
  171. package/src/main/ets/modules/login/model/PLVLiveStatus.js +15 -14
  172. package/src/main/ets/modules/login/model/PLVLiveStatusVO.d.ets +2 -2
  173. package/src/main/ets/modules/login/model/PLVLiveStatusVO.js +10 -10
  174. package/src/main/ets/modules/login/model/PLVLoginLiveResult.d.ets +1 -1
  175. package/src/main/ets/modules/login/model/PLVLoginLiveResult.js +4 -4
  176. package/src/main/ets/modules/login/model/PLVLoginPlaybackResult.d.ets +1 -1
  177. package/src/main/ets/modules/login/model/PLVLoginPlaybackResult.js +5 -5
  178. package/src/main/ets/modules/login/model/PLVLoginType.d.ets +2 -2
  179. package/src/main/ets/modules/login/model/PLVLoginType.js +32 -22
  180. package/src/main/ets/modules/member/PLVMemberManager.d.ets +3 -3
  181. package/src/main/ets/modules/member/PLVMemberManager.js +10 -10
  182. package/src/main/ets/modules/member/di/PLVMemberModule.js +8 -8
  183. package/src/main/ets/modules/member/mediator/PLVMemberMediator.d.ets +3 -3
  184. package/src/main/ets/modules/member/mediator/PLVMemberMediator.js +9 -9
  185. package/src/main/ets/modules/member/model/PLVMemberRepo.d.ets +2 -2
  186. package/src/main/ets/modules/member/model/PLVMemberRepo.js +7 -7
  187. package/src/main/ets/modules/member/model/datasource/PLVMemberNetworkDataSource.d.ets +2 -2
  188. package/src/main/ets/modules/member/model/datasource/PLVMemberNetworkDataSource.js +11 -11
  189. package/src/main/ets/modules/member/model/vo/PLVMemberChannelViewer.d.ets +1 -1
  190. package/src/main/ets/modules/member/model/vo/PLVMemberChannelViewer.js +3 -3
  191. package/src/main/ets/modules/member/model/vo/PLVMemberErrorEvent.d.ets +1 -1
  192. package/src/main/ets/modules/member/model/vo/PLVMemberErrorEvent.js +3 -3
  193. package/src/main/ets/modules/member/viewmodel/PLVMemberViewModel.d.ets +3 -3
  194. package/src/main/ets/modules/member/viewmodel/PLVMemberViewModel.js +15 -15
  195. package/src/main/ets/modules/member/viewmodel/usecase/MemberHandleStateUseCase.d.ets +6 -6
  196. package/src/main/ets/modules/member/viewmodel/usecase/MemberHandleStateUseCase.js +16 -16
  197. package/src/main/ets/modules/member/viewmodel/usecase/MemberUpdateViewerUseCase.d.ets +9 -9
  198. package/src/main/ets/modules/member/viewmodel/usecase/MemberUpdateViewerUseCase.js +21 -21
  199. package/src/main/ets/modules/member/viewmodel/usecase/PLVMemberUseCases.d.ets +1 -1
  200. package/src/main/ets/modules/member/viewmodel/usecase/PLVMemberUseCases.js +3 -3
  201. package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestHandleStateUseCase.d.ets +6 -6
  202. package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestHandleStateUseCase.js +95 -88
  203. package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestUpdateViewerUseCase.d.ets +9 -9
  204. package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestUpdateViewerUseCase.js +219 -219
  205. package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherHandleStateUseCase.d.ets +6 -6
  206. package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherHandleStateUseCase.js +160 -153
  207. package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherUpdateViewerUseCase.d.ets +9 -9
  208. package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherUpdateViewerUseCase.js +219 -219
  209. package/src/main/ets/modules/net/PLVApiChatPlvNetApi.d.ets +10 -9
  210. package/src/main/ets/modules/net/PLVApiChatPlvNetApi.js +67 -53
  211. package/src/main/ets/modules/net/PLVApiPlvNetApi.d.ets +30 -29
  212. package/src/main/ets/modules/net/PLVApiPlvNetApi.js +172 -159
  213. package/src/main/ets/modules/net/PLVELogPlvNetApi.d.ets +2 -2
  214. package/src/main/ets/modules/net/PLVELogPlvNetApi.js +5 -5
  215. package/src/main/ets/modules/net/PLVLiveImagesVideoNetApi.d.ets +3 -3
  216. package/src/main/ets/modules/net/PLVLiveImagesVideoNetApi.js +19 -19
  217. package/src/main/ets/modules/net/PLVNGBPushApi.d.ets +2 -2
  218. package/src/main/ets/modules/net/PLVNGBPushApi.js +4 -4
  219. package/src/main/ets/modules/net/PLVRtasVideoNetApi.d.ets +2 -2
  220. package/src/main/ets/modules/net/PLVRtasVideoNetApi.js +4 -4
  221. package/src/main/ets/modules/net/vo/PLVNetworkQuality.js +8 -8
  222. package/src/main/ets/modules/player/PLVPlayerManager.d.ets +3 -3
  223. package/src/main/ets/modules/player/PLVPlayerManager.js +8 -8
  224. package/src/main/ets/modules/player/PLVPlayerMediator.d.ets +1 -1
  225. package/src/main/ets/modules/player/PLVPlayerMediator.js +8 -8
  226. package/src/main/ets/modules/player/playback/PLVPlaybackListType.js +4 -4
  227. package/src/main/ets/modules/player/playback/PLVPreviousListVO.js +8 -8
  228. package/src/main/ets/modules/player/playback/PLVPreviousManager.d.ets +5 -5
  229. package/src/main/ets/modules/player/playback/PLVPreviousManager.js +69 -69
  230. package/src/main/ets/modules/ppt/PLVPPTWeb.js +29 -31
  231. package/src/main/ets/modules/ppt/PLVPPTWebController.d.ets +6 -6
  232. package/src/main/ets/modules/ppt/PLVPPTWebController.js +94 -94
  233. package/src/main/ets/modules/product/PLVProductManager.d.ets +5 -5
  234. package/src/main/ets/modules/product/PLVProductManager.js +61 -61
  235. package/src/main/ets/modules/product/components/PLVProductControlWeb.d.ets +1 -1
  236. package/src/main/ets/modules/product/components/PLVProductControlWeb.js +35 -37
  237. package/src/main/ets/modules/product/components/PLVProductWeb.d.ets +1 -1
  238. package/src/main/ets/modules/product/components/PLVProductWeb.js +51 -53
  239. package/src/main/ets/modules/product/model/PLVProductContentBean.d.ets +1 -1
  240. package/src/main/ets/modules/product/model/PLVProductContentBean.js +17 -17
  241. package/src/main/ets/modules/product/model/PLVProductControlEvent.js +7 -7
  242. package/src/main/ets/modules/product/model/PLVProductDataBean.d.ets +1 -1
  243. package/src/main/ets/modules/product/model/PLVProductDataBean.js +16 -16
  244. package/src/main/ets/modules/redpack/PLVRedpackManager.d.ets +9 -9
  245. package/src/main/ets/modules/redpack/PLVRedpackManager.js +70 -70
  246. package/src/main/ets/modules/redpack/database/PLVRedpackCacheVO.d.ets +1 -1
  247. package/src/main/ets/modules/redpack/database/PLVRedpackCacheVO.js +14 -14
  248. package/src/main/ets/modules/redpack/database/PLVRedpackLocalDataSource.d.ets +5 -5
  249. package/src/main/ets/modules/redpack/database/PLVRedpackLocalDataSource.js +28 -28
  250. package/src/main/ets/modules/redpack/database/PLVRedpackOpenHelper.d.ets +5 -5
  251. package/src/main/ets/modules/redpack/database/PLVRedpackOpenHelper.js +6 -6
  252. package/src/main/ets/modules/reward/PLVRewardManager.d.ets +2 -2
  253. package/src/main/ets/modules/reward/PLVRewardManager.js +22 -22
  254. package/src/main/ets/modules/reward/model/PLVRewardPointVO.d.ets +1 -1
  255. package/src/main/ets/modules/reward/model/PLVRewardPointVO.js +3 -3
  256. package/src/main/ets/modules/reward/model/PLVRewardSettingVO.js +24 -24
  257. package/src/main/ets/modules/socket/PLVSocketManager.d.ets +8 -8
  258. package/src/main/ets/modules/socket/PLVSocketManager.js +103 -102
  259. package/src/main/ets/modules/socket/PLVSocketMediator.d.ets +7 -7
  260. package/src/main/ets/modules/socket/PLVSocketMediator.js +14 -14
  261. package/src/main/ets/modules/socket/model/PLVSocketUserBean.d.ets +5 -5
  262. package/src/main/ets/modules/socket/model/PLVSocketUserBean.js +27 -27
  263. package/src/main/ets/modules/socket/model/PLVUserType.js +15 -15
  264. package/src/main/ets/modules/socket/model/interact/PLVCallAppEvent.js +6 -6
  265. package/src/main/ets/modules/socket/model/redpack/RedPaperReceiveType.d.ets +4 -4
  266. package/src/main/ets/modules/socket/model/redpack/RedPaperReceiveType.js +20 -20
  267. package/src/main/ets/modules/streamer/PLVStreamerManager.d.ets +8 -8
  268. package/src/main/ets/modules/streamer/PLVStreamerManager.js +24 -24
  269. package/src/main/ets/modules/streamer/di/PLVStreamerModule.js +8 -8
  270. package/src/main/ets/modules/streamer/mediator/PLVStreamerMediator.d.ets +2 -2
  271. package/src/main/ets/modules/streamer/mediator/PLVStreamerMediator.js +5 -5
  272. package/src/main/ets/modules/streamer/model/PLVStreamerRepo.d.ets +8 -8
  273. package/src/main/ets/modules/streamer/model/PLVStreamerRepo.js +41 -41
  274. package/src/main/ets/modules/streamer/model/datasource/PLVStreamerLocalDataSource.d.ets +2 -2
  275. package/src/main/ets/modules/streamer/model/datasource/PLVStreamerLocalDataSource.js +10 -10
  276. package/src/main/ets/modules/streamer/model/datasource/PLVStreamerNetworkDataSource.d.ets +7 -7
  277. package/src/main/ets/modules/streamer/model/datasource/PLVStreamerNetworkDataSource.js +48 -48
  278. package/src/main/ets/modules/streamer/model/vo/PLVStreamerErrorEvent.d.ets +1 -1
  279. package/src/main/ets/modules/streamer/model/vo/PLVStreamerErrorEvent.js +3 -3
  280. package/src/main/ets/modules/streamer/model/vo/PLVStreamerMixActionVO.js +15 -15
  281. package/src/main/ets/modules/streamer/model/vo/PLVStreamerMixLayoutType.js +4 -4
  282. package/src/main/ets/modules/streamer/model/vo/PLVStreamerState.js +4 -4
  283. package/src/main/ets/modules/streamer/viewmodel/PLVStreamerViewModel.d.ets +8 -8
  284. package/src/main/ets/modules/streamer/viewmodel/PLVStreamerViewModel.js +25 -25
  285. package/src/main/ets/modules/streamer/viewmodel/usecase/PLVStreamerUseCases.d.ets +1 -1
  286. package/src/main/ets/modules/streamer/viewmodel/usecase/PLVStreamerUseCases.js +3 -3
  287. package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerHandleStateUseCase.d.ets +2 -2
  288. package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerHandleStateUseCase.js +8 -8
  289. package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerMixStreamUseCase.d.ets +2 -2
  290. package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerMixStreamUseCase.js +7 -7
  291. package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestHandleStateUseCase.d.ets +2 -2
  292. package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestHandleStateUseCase.js +45 -42
  293. package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestMixStreamUseCase.d.ets +2 -2
  294. package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestMixStreamUseCase.js +3 -3
  295. package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherHandleStateUseCase.d.ets +2 -2
  296. package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherHandleStateUseCase.js +42 -42
  297. package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherMixStreamUseCase.d.ets +2 -2
  298. package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherMixStreamUseCase.js +51 -51
  299. package/src/main/ets/modules/web/PLVSocketWebController.d.ets +2 -2
  300. package/src/main/ets/modules/web/PLVSocketWebController.js +66 -66
  301. package/src/main/ets/modules/web/PLVWebControllerManager.d.ets +3 -3
  302. package/src/main/ets/modules/web/PLVWebControllerManager.js +6 -6
  303. package/src/main/ets/modules/web/PLVWebParams.d.ets +1 -1
  304. package/src/main/ets/modules/web/PLVWebParams.js +22 -22
  305. package/src/main/ets/modules/web/qa/PLVQAWeb.d.ets +1 -1
  306. package/src/main/ets/modules/web/qa/PLVQAWeb.js +35 -37
  307. package/src/main/ets/modules/web/tuwen/PLVTuwenWeb.d.ets +1 -1
  308. package/src/main/ets/modules/web/tuwen/PLVTuwenWeb.js +38 -40
  309. 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(d52, e52, f52, g52) {
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 = d52;
19
+ this.handleQueueOrderUseCase = e52;
20
+ this.handleRTCUseCase = f52;
21
+ this.updateChannelViewerUseCase = g52;
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, (b52, c52) => this.onSocketMessage(b52, c52)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_REQUEST, (a52) => this.onSocketJoinRequest(a52)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_RESPONSE, (z51) => this.onSocketJoinResponse(z51)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_SUCCESS, (y51) => this.onSocketJoinSuccess(y51)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_LEAVE, (x51) => this.onSocketJoinLeave(x51)), this.observeSocketEvent(PLVSocketOnEvent.SWITCH_VIEW, (w51) => this.onSocketSwitchView(w51)));
25
+ this.repo.mediator.rtcEvent.observe((v51) => this.onRTCEvent(v51))
26
26
  .pushTo(this.observers);
27
- this.repo.mediator.viewerLeaveLinkMicEvent.observe(o127 => this.onViewerLeaveLinkMic(o127))
27
+ this.repo.mediator.viewerLeaveLinkMicEvent.observe(u51 => this.onViewerLeaveLinkMic(u51))
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 s51 = this.repo.mediator.linkmicState.value;
34
+ if (s51 === 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 t51 = new PLVLinkMicSocketJoinRequestSend();
44
+ t51.user = this.createSocketUser();
45
+ t51.roomId = this.repo.mediator.channelData?.loginChannelId;
46
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_REQUEST, encodeToJson(t51), () => {
47
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 q51 = new PLVLinkMicSocketJoinAnswerSend();
57
+ q51.user = this.createSocketUser();
58
+ q51.roomId = this.repo.mediator.channelData?.loginChannelId;
59
+ q51.status = 1;
60
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_ANSWER, encodeToJson(q51), () => {
61
+ const r51 = this.repo.mediator.linkmicState.value;
62
+ if (r51 === PLVLinkMicState.Inviting) {
63
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 p51 = new PLVLinkMicSocketJoinAnswerSend();
69
+ p51.user = this.createSocketUser();
70
+ p51.roomId = this.repo.mediator.channelData?.loginChannelId;
71
+ p51.status = 0;
72
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_ANSWER, encodeToJson(p51));
73
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 n51 = this.repo.mediator.linkmicState.value;
78
+ if (n51 === undefined || ![PLVLinkMicState.Requesting, PLVLinkMicState.Joined].includes(n51)) {
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 o51 = new PLVLinkMicSocketJoinLeaveSend();
82
+ o51.user = this.createSocketUser();
83
+ o51.roomId = this.repo.mediator.channelData?.loginChannelId;
84
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_LEAVE, encodeToJson(o51));
85
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(m51) {
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(l51) {
104
104
  }
105
- inviteViewerLinkMic(h127, i127) {
105
+ inviteViewerLinkMic(j51, k51) {
106
106
  }
107
- hangupViewerLinkMic(g127) {
107
+ hangupViewerLinkMic(i51) {
108
108
  }
109
109
  hangupAllViewersLinkMic() {
110
110
  }
111
- setViewerEnableCamera(f127, enable) {
111
+ setViewerEnableCamera(g51, h51) {
112
112
  }
113
- setViewerEnableMicrophone(e127, enable) {
113
+ setViewerEnableMicrophone(e51, f51) {
114
114
  }
115
- grantSpeaker(d127) {
115
+ grantSpeaker(d51) {
116
116
  }
117
- revokeSpeaker(c127) {
117
+ revokeSpeaker(c51) {
118
118
  }
119
- setMainView(b127) {
119
+ setMainView(b51) {
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 t50 = new PLVLinkMicSocketJoinAnswerTTLSend();
127
+ t50.userId = this.repo.mediator.channelData?.viewerId;
128
+ t50.roomId = this.repo.mediator.channelData?.loginChannelId;
129
+ t50.sessionId = this.repo.mediator.channelData?.sessionId;
130
+ const u50 = Date.now();
131
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_ANSWER_TTL, encodeToJson(t50), (v50) => {
132
+ const w50 = decodeFromJson(v50, PLVLinkMicSocketJoinAnswerTTLAck).message?.[0] ?? 0;
133
+ const x50 = u50 + seconds(w50).toMillis();
134
+ this.repo.mediator.invitationExpireTimestamp.setValue(x50);
135
+ const y50 = x50 - Date.now();
136
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 z50 = this.repo.mediator.invitationExpireTimestamp.value ?? 0;
138
+ const a51 = this.repo.mediator.linkmicState.value;
139
+ if (a51 === PLVLinkMicState.Inviting && Date.now() >= z50) {
140
140
  this.refuseInvitation();
141
141
  }
142
- }, z126);
142
+ }, y50);
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(r50, s50) {
146
+ switch (s50) {
147
+ case PLVSocketMessageEvent.OPEN_MICROPHONE:
148
+ return this.onSocketOpenMicrophone(r50);
149
+ case PLVSocketMessageEvent.MUTE_USER_MICRO:
150
+ return this.onSocketMuteUserMicro(r50);
151
+ case PLVSocketMessageEvent.SET_NICK:
152
+ return this.onSocketUserSetNick(r50);
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(n50) {
157
+ const o50 = decodeFromJson(n50, PLVLinkMicSocketOpenMicrophoneRecv);
158
+ const p50 = o50.userId !== undefined;
159
+ if (o50.status === 'open') {
160
+ if (!p50) {
158
161
  this.repo.mediator.channelAllowLinkMic.setValue(true);
159
162
  this.repo.mediator.channelAllowRequestHandsUpLinkMic.setValue(true);
160
- this.updateLinkMicMode(v126.type);
163
+ this.updateLinkMicMode(o50.type);
161
164
  }
162
165
  }
163
- else if (v126.status === 'close') {
164
- if (!w126) {
166
+ else if (o50.status === 'close') {
167
+ if (!p50) {
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 q50 = this.repo.mediator.linkmicState.value === PLVLinkMicState.Requesting;
171
+ if (q50) {
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 (p50 && this.repo.mediator.isMySocketLinkMicId(o50.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(l50) {
188
+ const m50 = decodeFromJson(l50, PLVLinkMicSocketMuteUserMicroRecv);
189
+ if (m50.type === 'audio') {
190
+ if (m50.mute === true) {
188
191
  this.handleRTCUseCase.enableMicrophone(false);
189
192
  }
190
- if (u126.mute === false) {
193
+ if (m50.mute === false) {
191
194
  this.handleRTCUseCase.enableMicrophone(true);
192
195
  }
193
196
  }
194
- if (u126.type === 'video') {
195
- if (u126.mute === true) {
197
+ if (m50.type === 'video') {
198
+ if (m50.mute === true) {
196
199
  this.handleRTCUseCase.enableCamera(false);
197
200
  }
198
- if (u126.mute === false) {
201
+ if (m50.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(h50) {
207
+ const i50 = decodeFromJson(h50, PLVMemberSocketSetNickRecv);
208
+ const j50 = i50.userId;
209
+ const k50 = this.repo.mediator.findViewerByViewerId(j50);
210
+ if (k50 !== undefined) {
211
+ k50.viewerName.setValue(i50.nick);
209
212
  }
210
213
  }
211
- onSocketJoinRequest(data) {
212
- const q126 = decodeFromJson(data, PLVLinkMicSocketJoinRequestRecv);
213
- this.handleQueueOrderUseCase.onEventJoinRequest(q126);
214
+ onSocketJoinRequest(f50) {
215
+ const g50 = decodeFromJson(f50, PLVLinkMicSocketJoinRequestRecv);
216
+ this.handleQueueOrderUseCase.onEventJoinRequest(g50);
214
217
  }
215
- onSocketJoinResponse(data) {
216
- const o126 = decodeFromJson(data, PLVLinkMicSocketJoinResponseRecv);
217
- if (!this.repo.mediator.isMySocketLinkMicId(o126.user?.userId)) {
218
+ onSocketJoinResponse(c50) {
219
+ const d50 = decodeFromJson(c50, PLVLinkMicSocketJoinResponseRecv);
220
+ if (!this.repo.mediator.isMySocketLinkMicId(d50.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(d50.type);
224
+ const e50 = this.repo.mediator.linkmicState.value;
225
+ if (d50.isNeedAnswer()) {
226
+ if (e50 === PLVLinkMicState.Requesting) {
224
227
  this.acceptInvitation();
225
228
  }
226
- else if (p126 === PLVLinkMicState.NoLinkMic) {
229
+ else if (e50 === 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(a50) {
241
+ const b50 = decodeFromJson(a50, PLVLinkMicSocketJoinSuccessRecv);
242
+ this.handleQueueOrderUseCase.onEventJoinSuccess(b50);
243
+ this.updateChannelViewerUseCase.onEventJoinSuccess(b50);
244
+ if (this.repo.mediator.isMySocketLinkMicId(b50.user?.userId)) {
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(y49) {
249
+ const z49 = decodeFromJson(y49, PLVLinkMicSocketJoinLeaveRecv);
250
+ this.handleQueueOrderUseCase.onEventJoinLeave(z49);
251
+ this.updateChannelViewerUseCase.onEventJoinLeave(z49);
252
+ if (this.repo.mediator.isMySocketLinkMicId(z49.user?.userId)) {
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(w49) {
257
+ const x49 = decodeFromJson(w49, PLVLinkMicSocketSwitchViewRecv);
258
+ if (isNullOrUndefined(x49.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(x49.userId);
262
+ this.updateChannelViewerUseCase.onEventSwitchView(x49);
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()), (s49) => {
266
+ const t49 = decodeFromJson(s49, PLVLinkMicSocketMicSettingAck).message?.[0];
267
+ const u49 = t49?.data?.status;
268
+ const v49 = t49?.data?.type;
269
+ if (u49 === 'open') {
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 (u49 === '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(v49);
281
284
  });
282
285
  }
283
- onRTCEvent(event) {
284
- if (event instanceof PLVLinkMicRTCJoinSuccess) {
285
- this.onRTCJoinSuccess(event);
286
+ onRTCEvent(r49) {
287
+ if (r49 instanceof PLVLinkMicRTCJoinSuccess) {
288
+ this.onRTCJoinSuccess(r49);
286
289
  }
287
- else if (event instanceof PLVLinkMicRTCKickOut) {
288
- this.onRTCKickOut(event);
290
+ else if (r49 instanceof PLVLinkMicRTCKickOut) {
291
+ this.onRTCKickOut(r49);
289
292
  }
290
293
  }
291
- onRTCJoinSuccess(i126) {
294
+ onRTCJoinSuccess(p49) {
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 q49 = new PLVLinkMicSocketJoinSuccessSend();
297
+ q49.user = this.createSocketUser();
298
+ q49.roomId = this.repo.mediator.channelData?.loginChannelId;
299
+ q49.sessionId = this.repo.mediator.channelData?.sessionId;
300
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_SUCCESS, encodeToJson(q49));
298
301
  }
299
- onRTCKickOut(h126) {
302
+ onRTCKickOut(o49) {
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(k49) {
307
+ const l49 = k49.find(n49 => n49.linkmicId === this.repo.mediator.linkmicId) !== undefined;
308
+ const m49 = this.repo.mediator.linkmicState.value === PLVLinkMicState.Joined;
309
+ if (l49 && m49) {
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((j49) => {
317
+ j49.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(g49, h49) {
324
+ const i49 = requireNotNull(this.repo.mediator.socketMediator);
325
+ i49.onData(g49, h49);
326
+ return disposable(() => i49.offData(g49, h49));
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 f49 = new PLVSocketUserSend();
330
+ f49.nick = this.repo.mediator.channelData?.viewerName;
331
+ f49.pic = this.repo.mediator.channelData?.viewerAvatar;
332
+ f49.userType = this.repo.mediator.channelData?.viewerType;
333
+ f49.userId = this.repo.mediator.linkmicId;
334
+ return f49;
335
+ }
336
+ updateLinkMicMode(e49) {
337
+ if (e49 === PLVLinkMicMode.AUDIO || e49 === PLVLinkMicMode.VIDEO) {
338
+ this.repo.mediator.channelLinkMicMode.setValue(e49);
336
339
  }
337
340
  }
338
341
  async isChannelReachLinkMicLimit() {
339
- const x125 = this.repo.mediator.channelData?.liveDetail?.linkMicLimit;
340
- if (x125 === undefined) {
342
+ const a49 = this.repo.mediator.channelData?.liveDetail?.linkMicLimit;
343
+ if (a49 === 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 b49 = await runCatching(this.repo.getChannelLinkMicStatus());
348
+ if (b49.success === false) {
349
+ PLVLogger.warn(TAG, `channel linkmic status response fail: ${b49.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 c49 = b49.data.joinList?.filter(d49 => {
353
+ d49.userType === PLVUserType.USERTYPE_TEACHER || d49.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 (c49 >= a49 + 1) {
356
+ PLVLogger.warn(TAG, `channel reach linkmic limit, current join ${c49}, limit ${a49}`);
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(z48) {
363
366
  super();
364
- this.onDispose = w125;
367
+ this.onDispose = z48;
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(y48) {
375
+ return new SocketDisposable(y48);
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(v52: 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(u52: PLVChannelData);
9
+ once(t52: PLVELogPartData): void;
10
+ batch(r52: 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(v52) {
9
+ return new PLVELogSender(v52);
10
10
  }
11
11
  export class PLVELogSender extends PLVBaseModule {
12
- constructor(b128) {
13
- super(b128);
12
+ constructor(u52) {
13
+ super(u52);
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(t52) {
24
+ this.reportLiveELog([toELogData(this.channelData, t52)]);
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(r52) {
27
+ const s52 = toELogData(this.channelData, r52);
28
+ PLVELogSender.LOG_ARR.push(s52);
29
+ PLVLogger.info(TAG, `batch log: ${PLVJSONUtils.safeStringify(s52)}`);
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(m52) {
36
+ return PLVUtils.safePromise(async (n52, o52) => {
37
+ const p52 = PLVJSONUtils.safeStringify(m52);
38
+ PLVLogger.info(TAG, `reportLiveELog: ${p52}`);
39
+ await eLogPlvNetApi(this.channelData).reportLiveELog(this.channelData.loginChannelId, p52)
40
+ .catch((q52) => {
41
+ return Promise.reject(q52.log(TAG, 'reportLiveELog error'));
42
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(h52: PLVChannelData, i52: 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(h52, i52) {
28
+ const j52 = new PLVELogDataBean();
29
+ j52.errorCode = i52.errorCode || 0;
30
+ j52.event = i52.event || 'default_event';
31
+ j52.module = i52.module || 'default_module';
32
+ j52.logFile = {
33
+ information: i52.information
34
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
+ j52.appId = h52.appId;
36
+ j52.channelId2 = h52.loginChannelId;
37
+ j52.userId2 = h52.userId;
38
+ j52.viewerId = h52.viewerId;
39
+ return j52;
40
40
  }