@polyvharmony/live-scenes-sdk 1.3.0 → 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 +17 -0
  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
@@ -10,20 +10,20 @@ import { PLVSocketUserSend } from '../../../../../socket/model/PLVSocketUserBean
10
10
  import { PLVMemberSocketSetNickRecv } from '../../../../../member/model/vo/PLVMemberSocketEvent';
11
11
  const TAG = "PLVLinkMicManager";
12
12
  export class LinkMicGuestHandleStateUseCase {
13
- constructor(c121, d121, e121, f121) {
13
+ constructor(g42, h42, i42, j42) {
14
14
  this.disposables = [];
15
15
  this.observers = [];
16
- this.repo = c121;
17
- this.handleQueueOrderUseCase = d121;
18
- this.handleRTCUseCase = e121;
19
- this.updateChannelViewerUseCase = f121;
16
+ this.repo = g42;
17
+ this.handleQueueOrderUseCase = h42;
18
+ this.handleRTCUseCase = i42;
19
+ this.updateChannelViewerUseCase = j42;
20
20
  }
21
21
  init() {
22
- 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)));
22
+ this.disposables.push(this.observeSocketEvent(PLVSocketOnEvent.MESSAGE, (e42, f42) => this.onSocketMessage(e42, f42)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_REQUEST, (d42) => this.onSocketJoinRequest(d42)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_RESPONSE, (c42) => this.onSocketJoinResponse(c42)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_SUCCESS, (b42) => this.onSocketJoinSuccess(b42)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_LEAVE, (a42) => this.onSocketJoinLeave(a42)), this.observeSocketEvent(PLVSocketOnEvent.SWITCH_VIEW, (z41) => this.onSocketSwitchView(z41)));
23
23
  }
24
24
  async requestJoinLinkMic() {
25
- const b121 = this.repo.mediator.linkmicState.value;
26
- if (b121 === PLVLinkMicState.Inviting) {
25
+ const x41 = this.repo.mediator.linkmicState.value;
26
+ if (x41 === PLVLinkMicState.Inviting) {
27
27
  this.acceptInvitation();
28
28
  return;
29
29
  }
@@ -32,10 +32,10 @@ export class LinkMicGuestHandleStateUseCase {
32
32
  this.repo.mediator.reportError(PLVLinkMicErrorEvent.REACH_LINKMIC_LIMIT, "requestJoinLinkMic channel reach linkmic limit");
33
33
  return;
34
34
  }
35
- const event = new PLVLinkMicSocketJoinRequestSend();
36
- event.user = this.createSocketUser();
37
- event.roomId = this.repo.mediator.channelData?.loginChannelId;
38
- this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_REQUEST, encodeToJson(event), () => {
35
+ const y41 = new PLVLinkMicSocketJoinRequestSend();
36
+ y41.user = this.createSocketUser();
37
+ y41.roomId = this.repo.mediator.channelData?.loginChannelId;
38
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_REQUEST, encodeToJson(y41), () => {
39
39
  this.repo.mediator.linkmicState.setValue(PLVLinkMicState.Requesting);
40
40
  });
41
41
  }
@@ -45,34 +45,34 @@ export class LinkMicGuestHandleStateUseCase {
45
45
  this.repo.mediator.reportError(PLVLinkMicErrorEvent.REACH_LINKMIC_LIMIT, "acceptInvitation channel reach linkmic limit");
46
46
  return;
47
47
  }
48
- const event = new PLVLinkMicSocketJoinAnswerSend();
49
- event.user = this.createSocketUser();
50
- event.roomId = this.repo.mediator.channelData?.loginChannelId;
51
- event.status = 1;
52
- this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_ANSWER, encodeToJson(event), () => {
53
- const a121 = this.repo.mediator.linkmicState.value;
54
- if (a121 === PLVLinkMicState.Inviting) {
48
+ const v41 = new PLVLinkMicSocketJoinAnswerSend();
49
+ v41.user = this.createSocketUser();
50
+ v41.roomId = this.repo.mediator.channelData?.loginChannelId;
51
+ v41.status = 1;
52
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_ANSWER, encodeToJson(v41), () => {
53
+ const w41 = this.repo.mediator.linkmicState.value;
54
+ if (w41 === PLVLinkMicState.Inviting) {
55
55
  this.repo.mediator.linkmicState.setValue(PLVLinkMicState.WaitingResponse);
56
56
  }
57
57
  });
58
58
  }
59
59
  refuseInvitation() {
60
- const event = new PLVLinkMicSocketJoinAnswerSend();
61
- event.user = this.createSocketUser();
62
- event.roomId = this.repo.mediator.channelData?.loginChannelId;
63
- event.status = 0;
64
- this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_ANSWER, encodeToJson(event));
60
+ const u41 = new PLVLinkMicSocketJoinAnswerSend();
61
+ u41.user = this.createSocketUser();
62
+ u41.roomId = this.repo.mediator.channelData?.loginChannelId;
63
+ u41.status = 0;
64
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_ANSWER, encodeToJson(u41));
65
65
  this.repo.mediator.linkmicState.setValue(PLVLinkMicState.NoLinkMic);
66
66
  }
67
67
  leaveLinkMic() {
68
- const z120 = this.repo.mediator.linkmicState.value;
69
- if (z120 === undefined || ![PLVLinkMicState.Requesting, PLVLinkMicState.Joined].includes(z120)) {
68
+ const s41 = this.repo.mediator.linkmicState.value;
69
+ if (s41 === undefined || ![PLVLinkMicState.Requesting, PLVLinkMicState.Joined].includes(s41)) {
70
70
  return;
71
71
  }
72
- const event = new PLVLinkMicSocketJoinLeaveSend();
73
- event.user = this.createSocketUser();
74
- event.roomId = this.repo.mediator.channelData?.loginChannelId;
75
- this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_LEAVE, encodeToJson(event));
72
+ const t41 = new PLVLinkMicSocketJoinLeaveSend();
73
+ t41.user = this.createSocketUser();
74
+ t41.roomId = this.repo.mediator.channelData?.loginChannelId;
75
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_LEAVE, encodeToJson(t41));
76
76
  this.revokeSpeaker("");
77
77
  this.repo.mediator.linkmicState.setValue(PLVLinkMicState.NoLinkMic);
78
78
  }
@@ -83,7 +83,7 @@ export class LinkMicGuestHandleStateUseCase {
83
83
  this.tryAutoJoinLinkMic();
84
84
  this.updateChannelViewerUseCase.startUpdateChannelLinkMicViewersInterval();
85
85
  }
86
- async setLinkMicMode(y120) {
86
+ async setLinkMicMode(r41) {
87
87
  return false;
88
88
  }
89
89
  async openLinkMic() {
@@ -92,64 +92,64 @@ export class LinkMicGuestHandleStateUseCase {
92
92
  async closeLinkMic() {
93
93
  return false;
94
94
  }
95
- acceptViewerLinkMicRequest(x120) {
95
+ acceptViewerLinkMicRequest(q41) {
96
96
  }
97
- inviteViewerLinkMic(v120, w120) {
97
+ inviteViewerLinkMic(o41, p41) {
98
98
  }
99
- hangupViewerLinkMic(u120) {
99
+ hangupViewerLinkMic(n41) {
100
100
  }
101
101
  hangupAllViewersLinkMic() {
102
102
  }
103
- setViewerEnableCamera(t120, enable) {
103
+ setViewerEnableCamera(l41, m41) {
104
104
  }
105
- setViewerEnableMicrophone(s120, enable) {
105
+ setViewerEnableMicrophone(j41, k41) {
106
106
  }
107
- grantSpeaker(r120) {
107
+ grantSpeaker(i41) {
108
108
  if (!this.isMyselfSpeaker()) {
109
109
  return;
110
110
  }
111
- this.moveSpeaker(r120);
112
- this.setMainView(r120);
111
+ this.moveSpeaker(i41);
112
+ this.setMainView(i41);
113
113
  }
114
- revokeSpeaker(p120) {
114
+ revokeSpeaker(g41) {
115
115
  if (!this.isMyselfSpeaker()) {
116
116
  return;
117
117
  }
118
- const q120 = requireNotNull(this.repo.mediator.channelData?.loginChannelId);
119
- this.moveSpeaker(q120);
120
- this.setMainView(q120);
118
+ const h41 = requireNotNull(this.repo.mediator.channelData?.loginChannelId);
119
+ this.moveSpeaker(h41);
120
+ this.setMainView(h41);
121
121
  }
122
- setMainView(m120) {
122
+ setMainView(d41) {
123
123
  if (!this.isMyselfSpeaker()) {
124
124
  return;
125
125
  }
126
- const n120 = this.repo.mediator.memberMediator?.findViewerByViewerId(m120);
127
- if (n120 === undefined) {
128
- PLVLogger.error(TAG, `setMainView fail, viewerId ${m120} not found.`);
126
+ const e41 = this.repo.mediator.memberMediator?.findViewerByViewerId(d41);
127
+ if (e41 === undefined) {
128
+ PLVLogger.error(TAG, `setMainView fail, viewerId ${d41} not found.`);
129
129
  return;
130
130
  }
131
- const o120 = new PLVLinkMicSocketSwitchViewSend();
132
- o120.emitMode = 0;
133
- o120.roomId = this.repo.mediator.channelData?.loginChannelId;
134
- o120.userId = n120.linkmicId;
135
- o120.socketId = n120.socketId;
136
- this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.SWITCH_VIEW, encodeToJson(o120));
131
+ const f41 = new PLVLinkMicSocketSwitchViewSend();
132
+ f41.emitMode = 0;
133
+ f41.roomId = this.repo.mediator.channelData?.loginChannelId;
134
+ f41.userId = e41.linkmicId;
135
+ f41.socketId = e41.socketId;
136
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.SWITCH_VIEW, encodeToJson(f41));
137
137
  }
138
138
  isMyselfSpeaker() {
139
- const l120 = this.repo.mediator.channelMainViewLinkMicId.value;
140
- return !isNullOrUndefined(l120) && this.repo.mediator.isMySocketLinkMicId(l120);
141
- }
142
- moveSpeaker(j120) {
143
- const k120 = new PLVLinkMicSocketTeacherSetPermissionSend();
144
- k120.emitMode = 0;
145
- k120.roomId = this.repo.mediator.channelData?.loginChannelId;
146
- k120.sessionId = this.repo.mediator.channelData?.sessionId;
147
- k120.type = "speaker";
148
- k120.status = "1";
149
- k120.userId = j120;
150
- k120.sign = PLVRequestSetting.createSign(new Map(Object.entries(k120)), "polyvChatSign")
139
+ const c41 = this.repo.mediator.channelMainViewLinkMicId.value;
140
+ return !isNullOrUndefined(c41) && this.repo.mediator.isMySocketLinkMicId(c41);
141
+ }
142
+ moveSpeaker(a41) {
143
+ const b41 = new PLVLinkMicSocketTeacherSetPermissionSend();
144
+ b41.emitMode = 0;
145
+ b41.roomId = this.repo.mediator.channelData?.loginChannelId;
146
+ b41.sessionId = this.repo.mediator.channelData?.sessionId;
147
+ b41.type = "speaker";
148
+ b41.status = "1";
149
+ b41.userId = a41;
150
+ b41.sign = PLVRequestSetting.createSign(new Map(Object.entries(b41)), "polyvChatSign")
151
151
  .toUpperCase();
152
- this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.MESSAGE, encodeToJson(k120));
152
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.MESSAGE, encodeToJson(b41));
153
153
  }
154
154
  onLiveStreamStop() {
155
155
  this.leaveLinkMic();
@@ -160,46 +160,50 @@ export class LinkMicGuestHandleStateUseCase {
160
160
  this.handleRTCUseCase.leaveChannel();
161
161
  }
162
162
  updateInvitationExpireTime() {
163
- const event = new PLVLinkMicSocketJoinAnswerTTLSend();
164
- event.userId = this.repo.mediator.channelData?.viewerId;
165
- event.roomId = this.repo.mediator.channelData?.loginChannelId;
166
- event.sessionId = this.repo.mediator.channelData?.sessionId;
167
- const g120 = Date.now();
168
- this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_ANSWER_TTL, encodeToJson(event), (data) => {
169
- const ttl = decodeFromJson(data, PLVLinkMicSocketJoinAnswerTTLAck).message?.[0] ?? 0;
170
- const expire = g120 + seconds(ttl).toMillis();
171
- this.repo.mediator.invitationExpireTimestamp.setValue(expire);
172
- const h120 = expire - Date.now();
163
+ const s40 = new PLVLinkMicSocketJoinAnswerTTLSend();
164
+ s40.userId = this.repo.mediator.channelData?.viewerId;
165
+ s40.roomId = this.repo.mediator.channelData?.loginChannelId;
166
+ s40.sessionId = this.repo.mediator.channelData?.sessionId;
167
+ const t40 = Date.now();
168
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_ANSWER_TTL, encodeToJson(s40), (u40) => {
169
+ const v40 = decodeFromJson(u40, PLVLinkMicSocketJoinAnswerTTLAck).message?.[0] ?? 0;
170
+ const w40 = t40 + seconds(v40).toMillis();
171
+ this.repo.mediator.invitationExpireTimestamp.setValue(w40);
172
+ const x40 = w40 - Date.now();
173
173
  setTimeout(() => {
174
- const expire = this.repo.mediator.invitationExpireTimestamp.value ?? 0;
175
- const i120 = this.repo.mediator.linkmicState.value;
176
- if (i120 === PLVLinkMicState.Inviting && Date.now() >= expire) {
174
+ const y40 = this.repo.mediator.invitationExpireTimestamp.value ?? 0;
175
+ const z40 = this.repo.mediator.linkmicState.value;
176
+ if (z40 === PLVLinkMicState.Inviting && Date.now() >= y40) {
177
177
  this.refuseInvitation();
178
178
  }
179
- }, h120);
179
+ }, x40);
180
180
  });
181
181
  }
182
- onSocketMessage(data, event) {
183
- switch (event) {
184
- case PLVSocketMessageEvent.OPEN_MICROPHONE: return this.onSocketOpenMicrophone(data);
185
- case PLVSocketMessageEvent.MUTE_USER_MICRO: return this.onSocketMuteUserMicro(data);
186
- case PLVSocketMessageEvent.TEACHER_SET_PERMISSION: return this.onSocketTeacherSetPermission(data);
187
- case PLVSocketMessageEvent.SET_NICK: return this.onSocketUserSetNick(data);
182
+ onSocketMessage(q40, r40) {
183
+ switch (r40) {
184
+ case PLVSocketMessageEvent.OPEN_MICROPHONE:
185
+ return this.onSocketOpenMicrophone(q40);
186
+ case PLVSocketMessageEvent.MUTE_USER_MICRO:
187
+ return this.onSocketMuteUserMicro(q40);
188
+ case PLVSocketMessageEvent.TEACHER_SET_PERMISSION:
189
+ return this.onSocketTeacherSetPermission(q40);
190
+ case PLVSocketMessageEvent.SET_NICK:
191
+ return this.onSocketUserSetNick(q40);
188
192
  default:
189
193
  }
190
194
  }
191
- onSocketOpenMicrophone(data) {
192
- const e120 = decodeFromJson(data, PLVLinkMicSocketOpenMicrophoneRecv);
193
- const f120 = e120.userId !== undefined;
194
- if (e120.status === 'open') {
195
- if (!f120) {
195
+ onSocketOpenMicrophone(n40) {
196
+ const o40 = decodeFromJson(n40, PLVLinkMicSocketOpenMicrophoneRecv);
197
+ const p40 = o40.userId !== undefined;
198
+ if (o40.status === 'open') {
199
+ if (!p40) {
196
200
  this.repo.mediator.channelAllowLinkMic.setValue(true);
197
201
  this.repo.mediator.channelAllowRequestHandsUpLinkMic.setValue(true);
198
- this.updateLinkMicMode(e120.type);
202
+ this.updateLinkMicMode(o40.type);
199
203
  }
200
204
  }
201
- else if (e120.status === 'close') {
202
- if (!f120) {
205
+ else if (o40.status === 'close') {
206
+ if (!p40) {
203
207
  if (this.repo.mediator.isLinkMicStrategyV2.value === true) {
204
208
  this.repo.mediator.channelAllowRequestHandsUpLinkMic.setValue(false);
205
209
  }
@@ -208,66 +212,66 @@ export class LinkMicGuestHandleStateUseCase {
208
212
  this.repo.mediator.channelAllowRequestHandsUpLinkMic.setValue(false);
209
213
  }
210
214
  }
211
- if (f120 && this.repo.mediator.isMySocketLinkMicId(e120.userId)) {
215
+ if (p40 && this.repo.mediator.isMySocketLinkMicId(o40.userId)) {
212
216
  this.repo.mediator.teacherHangUpLinkMicEvent.setValue(Date.now());
213
217
  this.leaveLinkMic();
214
218
  }
215
219
  }
216
220
  }
217
- onSocketMuteUserMicro(data) {
218
- const d120 = decodeFromJson(data, PLVLinkMicSocketMuteUserMicroRecv);
219
- if (d120.type === 'audio') {
220
- if (d120.mute === true) {
221
+ onSocketMuteUserMicro(l40) {
222
+ const m40 = decodeFromJson(l40, PLVLinkMicSocketMuteUserMicroRecv);
223
+ if (m40.type === 'audio') {
224
+ if (m40.mute === true) {
221
225
  this.handleRTCUseCase.enableMicrophone(false);
222
226
  }
223
- if (d120.mute === false) {
227
+ if (m40.mute === false) {
224
228
  this.handleRTCUseCase.enableMicrophone(true);
225
229
  }
226
230
  }
227
- if (d120.type === 'video') {
228
- if (d120.mute === true) {
231
+ if (m40.type === 'video') {
232
+ if (m40.mute === true) {
229
233
  this.handleRTCUseCase.enableCamera(false);
230
234
  }
231
- if (d120.mute === false) {
235
+ if (m40.mute === false) {
232
236
  this.handleRTCUseCase.enableCamera(true);
233
237
  }
234
238
  }
235
239
  }
236
- onSocketTeacherSetPermission(data) {
237
- const a120 = decodeFromJson(data, PLVLinkMicSocketTeacherSetPermissionRecv);
238
- this.updateChannelViewerUseCase.onEventTeacherSetPermission(a120);
239
- if (a120.type === "voice") {
240
- const b120 = a120.status === "1";
241
- const c120 = !isNullOrUndefined(a120.userId) && a120.userId === this.repo.mediator.channelData?.viewerId;
242
- if (c120) {
243
- this.repo.mediator.linkmicState.setValue(b120 ? PLVLinkMicState.Joined : PLVLinkMicState.NoLinkMic);
240
+ onSocketTeacherSetPermission(h40) {
241
+ const i40 = decodeFromJson(h40, PLVLinkMicSocketTeacherSetPermissionRecv);
242
+ this.updateChannelViewerUseCase.onEventTeacherSetPermission(i40);
243
+ if (i40.type === "voice") {
244
+ const j40 = i40.status === "1";
245
+ const k40 = !isNullOrUndefined(i40.userId) && i40.userId === this.repo.mediator.channelData?.viewerId;
246
+ if (k40) {
247
+ this.repo.mediator.linkmicState.setValue(j40 ? PLVLinkMicState.Joined : PLVLinkMicState.NoLinkMic);
244
248
  }
245
249
  }
246
250
  }
247
- onSocketUserSetNick(data) {
248
- const x119 = decodeFromJson(data, PLVMemberSocketSetNickRecv);
249
- const y119 = x119.userId;
250
- const z119 = this.repo.mediator.findViewerByViewerId(y119);
251
- if (z119 !== undefined) {
252
- z119.viewerName.setValue(x119.nick);
251
+ onSocketUserSetNick(d40) {
252
+ const e40 = decodeFromJson(d40, PLVMemberSocketSetNickRecv);
253
+ const f40 = e40.userId;
254
+ const g40 = this.repo.mediator.findViewerByViewerId(f40);
255
+ if (g40 !== undefined) {
256
+ g40.viewerName.setValue(e40.nick);
253
257
  }
254
258
  }
255
- onSocketJoinRequest(data) {
256
- const w119 = decodeFromJson(data, PLVLinkMicSocketJoinRequestRecv);
257
- this.handleQueueOrderUseCase.onEventJoinRequest(w119);
259
+ onSocketJoinRequest(b40) {
260
+ const c40 = decodeFromJson(b40, PLVLinkMicSocketJoinRequestRecv);
261
+ this.handleQueueOrderUseCase.onEventJoinRequest(c40);
258
262
  }
259
- onSocketJoinResponse(data) {
260
- const u119 = decodeFromJson(data, PLVLinkMicSocketJoinResponseRecv);
261
- if (!this.repo.mediator.isMySocketLinkMicId(u119.user?.userId)) {
263
+ onSocketJoinResponse(y39) {
264
+ const z39 = decodeFromJson(y39, PLVLinkMicSocketJoinResponseRecv);
265
+ if (!this.repo.mediator.isMySocketLinkMicId(z39.user?.userId)) {
262
266
  return;
263
267
  }
264
- this.updateLinkMicMode(u119.type);
265
- const v119 = this.repo.mediator.linkmicState.value;
266
- if (u119.isNeedAnswer()) {
267
- if (v119 === PLVLinkMicState.Requesting) {
268
+ this.updateLinkMicMode(z39.type);
269
+ const a40 = this.repo.mediator.linkmicState.value;
270
+ if (z39.isNeedAnswer()) {
271
+ if (a40 === PLVLinkMicState.Requesting) {
268
272
  this.acceptInvitation();
269
273
  }
270
- else if (v119 === PLVLinkMicState.NoLinkMic) {
274
+ else if (a40 === PLVLinkMicState.NoLinkMic) {
271
275
  this.repo.mediator.invitationExpireTimestamp.setValue(Date.now() + seconds(30).toMillis());
272
276
  this.repo.mediator.linkmicState.setValue(PLVLinkMicState.Inviting);
273
277
  this.updateInvitationExpireTime();
@@ -277,95 +281,95 @@ export class LinkMicGuestHandleStateUseCase {
277
281
  this.repo.mediator.linkmicState.setValue(PLVLinkMicState.Joined);
278
282
  }
279
283
  }
280
- onSocketJoinSuccess(data) {
281
- const t119 = decodeFromJson(data, PLVLinkMicSocketJoinSuccessRecv);
282
- this.handleQueueOrderUseCase.onEventJoinSuccess(t119);
283
- this.updateChannelViewerUseCase.onEventJoinSuccess(t119);
284
+ onSocketJoinSuccess(w39) {
285
+ const x39 = decodeFromJson(w39, PLVLinkMicSocketJoinSuccessRecv);
286
+ this.handleQueueOrderUseCase.onEventJoinSuccess(x39);
287
+ this.updateChannelViewerUseCase.onEventJoinSuccess(x39);
284
288
  }
285
- onSocketJoinLeave(data) {
286
- const s119 = decodeFromJson(data, PLVLinkMicSocketJoinLeaveRecv);
287
- this.handleQueueOrderUseCase.onEventJoinLeave(s119);
288
- this.updateChannelViewerUseCase.onEventJoinLeave(s119);
289
+ onSocketJoinLeave(u39) {
290
+ const v39 = decodeFromJson(u39, PLVLinkMicSocketJoinLeaveRecv);
291
+ this.handleQueueOrderUseCase.onEventJoinLeave(v39);
292
+ this.updateChannelViewerUseCase.onEventJoinLeave(v39);
289
293
  }
290
- onSocketSwitchView(data) {
291
- const r119 = decodeFromJson(data, PLVLinkMicSocketSwitchViewRecv);
292
- if (isNullOrUndefined(r119.userId)) {
294
+ onSocketSwitchView(s39) {
295
+ const t39 = decodeFromJson(s39, PLVLinkMicSocketSwitchViewRecv);
296
+ if (isNullOrUndefined(t39.userId)) {
293
297
  return;
294
298
  }
295
- this.repo.mediator.channelMainViewLinkMicId.setValue(r119.userId);
296
- this.updateChannelViewerUseCase.onEventSwitchView(r119);
299
+ this.repo.mediator.channelMainViewLinkMicId.setValue(t39.userId);
300
+ this.updateChannelViewerUseCase.onEventSwitchView(t39);
297
301
  }
298
302
  async tryAutoJoinLinkMic() {
299
- const l119 = this.repo.mediator.channelData?.streamerData?.colinMicType === "auto";
300
- if (!l119) {
303
+ const m39 = this.repo.mediator.channelData?.streamerData?.colinMicType === "auto";
304
+ if (!m39) {
301
305
  return;
302
306
  }
303
- const m119 = Promises.withResolvers();
304
- const n119 = this.repo.mediator.linkmicState.observe((q119) => {
305
- if (q119 === PLVLinkMicState.Joined) {
306
- m119.resolve();
307
- n119.dispose();
307
+ const n39 = Promises.withResolvers();
308
+ const o39 = this.repo.mediator.linkmicState.observe((r39) => {
309
+ if (r39 === PLVLinkMicState.Joined) {
310
+ n39.resolve();
311
+ o39.dispose();
308
312
  }
309
313
  });
310
- this.observers.push(n119);
311
- const o119 = async () => {
312
- const p119 = new PLVLinkMicSocketJoinResponseSend();
313
- p119.roomId = await this.repo.mediator.channelData?.loginRoomIdPromise.get();
314
- p119.value = "1";
315
- p119.toEmitAll = 1;
316
- p119.user = this.createSocketUser();
317
- this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_RESPONSE, encodeToJson(p119));
314
+ this.observers.push(o39);
315
+ const p39 = async () => {
316
+ const q39 = new PLVLinkMicSocketJoinResponseSend();
317
+ q39.roomId = await this.repo.mediator.channelData?.loginRoomIdPromise.get();
318
+ q39.value = "1";
319
+ q39.toEmitAll = 1;
320
+ q39.user = this.createSocketUser();
321
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_RESPONSE, encodeToJson(q39));
318
322
  };
319
323
  await runCatching(retry(async () => {
320
324
  await withTimeout(seconds(8), async () => {
321
- await o119();
322
- await m119.promise;
325
+ await p39();
326
+ await n39.promise;
323
327
  });
324
328
  }, RetryConditions.delay(3, seconds(1))));
325
- n119.dispose();
329
+ o39.dispose();
326
330
  }
327
331
  onDestroy() {
328
- this.disposables.forEach((k119) => {
329
- k119.dispose();
332
+ this.disposables.forEach((l39) => {
333
+ l39.dispose();
330
334
  });
331
335
  this.disposables = [];
332
336
  MutableObserver.disposeAll(this.observers);
333
337
  this.observers = [];
334
338
  }
335
- observeSocketEvent(event, callback) {
336
- const j119 = requireNotNull(this.repo.mediator.socketMediator);
337
- j119.onData(event, callback);
338
- return disposable(() => j119.offData(event, callback));
339
+ observeSocketEvent(i39, j39) {
340
+ const k39 = requireNotNull(this.repo.mediator.socketMediator);
341
+ k39.onData(i39, j39);
342
+ return disposable(() => k39.offData(i39, j39));
339
343
  }
340
344
  createSocketUser() {
341
- const user = new PLVSocketUserSend();
342
- user.nick = this.repo.mediator.channelData?.viewerName;
343
- user.pic = this.repo.mediator.channelData?.viewerAvatar;
344
- user.userType = this.repo.mediator.channelData?.viewerType;
345
- user.userId = this.repo.mediator.linkmicId;
346
- return user;
347
- }
348
- updateLinkMicMode(mode) {
349
- if (mode === PLVLinkMicMode.AUDIO || mode === PLVLinkMicMode.VIDEO) {
350
- this.repo.mediator.channelLinkMicMode.setValue(mode);
345
+ const h39 = new PLVSocketUserSend();
346
+ h39.nick = this.repo.mediator.channelData?.viewerName;
347
+ h39.pic = this.repo.mediator.channelData?.viewerAvatar;
348
+ h39.userType = this.repo.mediator.channelData?.viewerType;
349
+ h39.userId = this.repo.mediator.linkmicId;
350
+ return h39;
351
+ }
352
+ updateLinkMicMode(g39) {
353
+ if (g39 === PLVLinkMicMode.AUDIO || g39 === PLVLinkMicMode.VIDEO) {
354
+ this.repo.mediator.channelLinkMicMode.setValue(g39);
351
355
  }
352
356
  }
353
357
  async isChannelReachLinkMicLimit() {
354
- const f119 = this.repo.mediator.channelData?.liveDetail?.linkMicLimit;
355
- if (f119 === undefined) {
358
+ const c39 = this.repo.mediator.channelData?.liveDetail?.linkMicLimit;
359
+ if (c39 === undefined) {
356
360
  PLVLogger.warn(TAG, "channel linkmic limit is undefined, treat as reach limit.");
357
361
  return true;
358
362
  }
359
- const g119 = await runCatching(this.repo.getChannelLinkMicStatus());
360
- if (g119.success === false) {
361
- PLVLogger.warn(TAG, `channel linkmic status response fail: ${g119.error.message}`);
363
+ const d39 = await runCatching(this.repo.getChannelLinkMicStatus());
364
+ if (d39.success === false) {
365
+ PLVLogger.warn(TAG, `channel linkmic status response fail: ${d39.error.message}`);
362
366
  return true;
363
367
  }
364
- const h119 = g119.data.joinList?.filter(i119 => {
365
- i119.userType === PLVUserType.USERTYPE_TEACHER || i119.classStatus?.voice === 1;
368
+ const e39 = d39.data.joinList?.filter(f39 => {
369
+ f39.userType === PLVUserType.USERTYPE_TEACHER || f39.classStatus?.voice === 1;
366
370
  })?.length ?? 0;
367
- if (h119 >= f119 + 1) {
368
- PLVLogger.warn(TAG, `channel reach linkmic limit, current join ${h119}, limit ${f119}`);
371
+ if (e39 >= c39 + 1) {
372
+ PLVLogger.warn(TAG, `channel reach linkmic limit, current join ${e39}, limit ${c39}`);
369
373
  return true;
370
374
  }
371
375
  else {
@@ -374,15 +378,15 @@ export class LinkMicGuestHandleStateUseCase {
374
378
  }
375
379
  }
376
380
  class SocketDisposable extends PLVDisposable {
377
- constructor(e119) {
381
+ constructor(b39) {
378
382
  super();
379
- this.onDispose = e119;
383
+ this.onDispose = b39;
380
384
  }
381
385
  dispose() {
382
386
  super.dispose();
383
387
  this.onDispose?.();
384
388
  }
385
389
  }
386
- function disposable(d119) {
387
- return new SocketDisposable(d119);
390
+ function disposable(a39) {
391
+ return new SocketDisposable(a39);
388
392
  }
@@ -5,13 +5,13 @@ import { PLVLinkMicPushResolutionRatio } from '../../../../model/vo/PLVLinkMicPu
5
5
  import { ILinkMicEncodeParamUseCase } from '../base/ILinkMicEncodeParamUseCase';
6
6
  export declare class LinkMicTeacherEncodeParamUseCase implements ILinkMicEncodeParamUseCase {
7
7
  private readonly repo;
8
- constructor(a123: PLVLinkMicRepo);
8
+ constructor(l44: PLVLinkMicRepo);
9
9
  init(): void;
10
- setBitRate(bitRate: PLVLinkMicBitRate): void;
11
- setPushResolutionRatio(z122: PLVLinkMicPushResolutionRatio): void;
12
- setPushOrientation(y122: PLVPushOrientation): void;
13
- setPushMirror(x122: boolean): void;
14
- setPushDowngradePreference(w122: PLVPushDowngradePreference): void;
10
+ setBitRate(k44: PLVLinkMicBitRate): void;
11
+ setPushResolutionRatio(j44: PLVLinkMicPushResolutionRatio): void;
12
+ setPushOrientation(i44: PLVPushOrientation): void;
13
+ setPushMirror(h44: boolean): void;
14
+ setPushDowngradePreference(g44: PLVPushDowngradePreference): void;
15
15
  private updateEncodeParam;
16
16
  private parseChannelBitRateSetting;
17
17
  private parsePushStreamTemplate;