@polyvharmony/live-scenes-sdk 1.3.1 → 1.3.2

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 (246) hide show
  1. package/BuildProfile.d.ets +2 -2
  2. package/BuildProfile.js +1 -1
  3. package/CHANGELOG.md +12 -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/modules/chatroom/PLVChatroomManager.d.ets +32 -17
  8. package/src/main/ets/modules/chatroom/PLVChatroomManager.js +229 -198
  9. package/src/main/ets/modules/chatroom/handler/PLVChatroomBaseHandler.d.ets +1 -1
  10. package/src/main/ets/modules/chatroom/playback/PLVChatPlaybackManager.js +1 -4
  11. package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackDataVO.d.ets +1 -0
  12. package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackDataVO.js +3 -0
  13. package/src/main/ets/modules/i18n/PLVI18NDataMapper.d.ets +5 -5
  14. package/src/main/ets/modules/i18n/PLVI18NDataMapper.js +20 -20
  15. package/src/main/ets/modules/i18n/PLVLanguageManager.js +8 -8
  16. package/src/main/ets/modules/interact/PLVInteractManager.d.ets +6 -6
  17. package/src/main/ets/modules/interact/PLVInteractManager.js +12 -12
  18. package/src/main/ets/modules/interact/PLVInteractWeb.d.ets +13 -13
  19. package/src/main/ets/modules/interact/PLVInteractWeb.js +148 -148
  20. package/src/main/ets/modules/interact/invitePoster/PLVInteractInvitePoster.d.ets +1 -1
  21. package/src/main/ets/modules/interact/invitePoster/PLVInteractInvitePoster.js +34 -34
  22. package/src/main/ets/modules/interact/model/PLVFunctionSwitchBean.d.ets +1 -1
  23. package/src/main/ets/modules/interact/model/PLVFunctionSwitchBean.js +6 -6
  24. package/src/main/ets/modules/interact/pushcard/PLVPushCardManager.d.ets +2 -2
  25. package/src/main/ets/modules/interact/pushcard/PLVPushCardManager.js +21 -21
  26. package/src/main/ets/modules/interact/pushcard/model/PLVShowPushCardEvent.d.ets +1 -1
  27. package/src/main/ets/modules/interact/pushcard/model/PLVShowPushCardEvent.js +2 -2
  28. package/src/main/ets/modules/interact/pushcard/repo/PLVCardLookTimeLocalRepository.d.ets +3 -3
  29. package/src/main/ets/modules/interact/pushcard/repo/PLVCardLookTimeLocalRepository.js +6 -6
  30. package/src/main/ets/modules/interact/redpack/model/PLVHistoryRedPaperEvent.js +7 -7
  31. package/src/main/ets/modules/interact/redpack/model/PLVRedPaperEvent.js +7 -7
  32. package/src/main/ets/modules/linkmic/PLVLinkMicManager.d.ets +14 -14
  33. package/src/main/ets/modules/linkmic/PLVLinkMicManager.js +37 -37
  34. package/src/main/ets/modules/linkmic/di/PLVLinkMicModule.js +11 -11
  35. package/src/main/ets/modules/linkmic/mediator/PLVLinkMicMediator.d.ets +4 -4
  36. package/src/main/ets/modules/linkmic/mediator/PLVLinkMicMediator.js +14 -14
  37. package/src/main/ets/modules/linkmic/mediator/PLVLinkMicRTCEventCallback.d.ets +8 -8
  38. package/src/main/ets/modules/linkmic/mediator/PLVLinkMicRTCEventCallback.js +39 -39
  39. package/src/main/ets/modules/linkmic/model/PLVLinkMicRepo.d.ets +10 -10
  40. package/src/main/ets/modules/linkmic/model/PLVLinkMicRepo.js +69 -69
  41. package/src/main/ets/modules/linkmic/model/datasource/PLVLinkMicNetworkDataSource.d.ets +4 -4
  42. package/src/main/ets/modules/linkmic/model/datasource/PLVLinkMicNetworkDataSource.js +70 -70
  43. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRate.d.ets +1 -1
  44. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRate.js +3 -3
  45. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRateEncodeParam.d.ets +1 -1
  46. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRateEncodeParam.js +12 -12
  47. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicErrorEvent.d.ets +1 -1
  48. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicErrorEvent.js +3 -3
  49. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicInteractEvent.d.ets +1 -1
  50. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicInteractEvent.js +3 -3
  51. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicMode.js +3 -3
  52. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicPushResolutionRatio.d.ets +1 -1
  53. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicPushResolutionRatio.js +4 -4
  54. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicRTCType.js +3 -3
  55. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicState.js +6 -6
  56. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicVideoRenderParam.d.ets +1 -1
  57. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicVideoRenderParam.js +3 -3
  58. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicViewer.d.ets +1 -1
  59. package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicViewer.js +5 -5
  60. package/src/main/ets/modules/linkmic/viewmodel/PLVLinkMicViewModel.d.ets +15 -15
  61. package/src/main/ets/modules/linkmic/viewmodel/PLVLinkMicViewModel.js +40 -40
  62. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicEncodeParamUseCase.d.ets +6 -6
  63. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicEncodeParamUseCase.js +15 -15
  64. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleQueueOrderUseCase.d.ets +4 -4
  65. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleQueueOrderUseCase.js +25 -25
  66. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleRTCUseCase.d.ets +7 -7
  67. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleRTCUseCase.js +19 -19
  68. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleStateUseCase.d.ets +10 -10
  69. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleStateUseCase.js +26 -26
  70. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicUpdateChannelViewerUseCase.d.ets +6 -6
  71. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicUpdateChannelViewerUseCase.js +135 -135
  72. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicViewLogUseCase.d.ets +1 -1
  73. package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicViewLogUseCase.js +27 -27
  74. package/src/main/ets/modules/linkmic/viewmodel/usecase/PLVLinkMicUseCases.d.ets +1 -1
  75. package/src/main/ets/modules/linkmic/viewmodel/usecase/PLVLinkMicUseCases.js +7 -7
  76. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestEncodeParamUseCase.d.ets +6 -6
  77. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestEncodeParamUseCase.js +83 -83
  78. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleRTCUseCase.d.ets +7 -7
  79. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleRTCUseCase.js +42 -42
  80. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleStateUseCase.d.ets +10 -10
  81. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleStateUseCase.js +188 -188
  82. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherEncodeParamUseCase.d.ets +6 -6
  83. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherEncodeParamUseCase.js +83 -83
  84. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleRTCUseCase.d.ets +7 -7
  85. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleRTCUseCase.js +37 -37
  86. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleStateUseCase.d.ets +10 -10
  87. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleStateUseCase.js +128 -128
  88. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerEncodeParamUseCase.d.ets +6 -6
  89. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerEncodeParamUseCase.js +13 -13
  90. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleRTCUseCase.d.ets +7 -7
  91. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleRTCUseCase.js +53 -53
  92. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleStateUseCase.d.ets +10 -10
  93. package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleStateUseCase.js +163 -163
  94. package/src/main/ets/modules/log/elog/PLVELogSender.d.ets +4 -4
  95. package/src/main/ets/modules/log/elog/PLVELogSender.js +17 -17
  96. package/src/main/ets/modules/log/elog/model/PLVELogDataBean.d.ets +1 -1
  97. package/src/main/ets/modules/log/elog/model/PLVELogDataBean.js +12 -12
  98. package/src/main/ets/modules/log/elog/model/PLVELogModuleConstants.js +8 -8
  99. package/src/main/ets/modules/login/PLVSceneLoginManager.d.ets +3 -3
  100. package/src/main/ets/modules/login/PLVSceneLoginManager.js +102 -102
  101. package/src/main/ets/modules/login/model/PLVChatDomainVO.d.ets +2 -2
  102. package/src/main/ets/modules/login/model/PLVChatDomainVO.js +4 -4
  103. package/src/main/ets/modules/login/model/PLVLiveChannelType.d.ets +1 -1
  104. package/src/main/ets/modules/login/model/PLVLiveChannelType.js +14 -14
  105. package/src/main/ets/modules/login/model/PLVLiveDetailVO.d.ets +2 -1
  106. package/src/main/ets/modules/login/model/PLVLiveDetailVO.js +14 -14
  107. package/src/main/ets/modules/login/model/PLVLiveStatus.d.ets +1 -1
  108. package/src/main/ets/modules/login/model/PLVLiveStatus.js +14 -14
  109. package/src/main/ets/modules/login/model/PLVLiveStatusVO.d.ets +2 -2
  110. package/src/main/ets/modules/login/model/PLVLiveStatusVO.js +10 -10
  111. package/src/main/ets/modules/login/model/PLVLoginLiveResult.d.ets +1 -1
  112. package/src/main/ets/modules/login/model/PLVLoginLiveResult.js +4 -4
  113. package/src/main/ets/modules/login/model/PLVLoginPlaybackResult.d.ets +1 -1
  114. package/src/main/ets/modules/login/model/PLVLoginPlaybackResult.js +5 -5
  115. package/src/main/ets/modules/login/model/PLVLoginType.d.ets +2 -2
  116. package/src/main/ets/modules/login/model/PLVLoginType.js +16 -16
  117. package/src/main/ets/modules/member/PLVMemberManager.d.ets +3 -3
  118. package/src/main/ets/modules/member/PLVMemberManager.js +10 -10
  119. package/src/main/ets/modules/member/di/PLVMemberModule.js +8 -8
  120. package/src/main/ets/modules/member/mediator/PLVMemberMediator.d.ets +3 -3
  121. package/src/main/ets/modules/member/mediator/PLVMemberMediator.js +9 -9
  122. package/src/main/ets/modules/member/model/PLVMemberRepo.d.ets +2 -2
  123. package/src/main/ets/modules/member/model/PLVMemberRepo.js +7 -7
  124. package/src/main/ets/modules/member/model/datasource/PLVMemberNetworkDataSource.d.ets +2 -2
  125. package/src/main/ets/modules/member/model/datasource/PLVMemberNetworkDataSource.js +11 -11
  126. package/src/main/ets/modules/member/model/vo/PLVMemberChannelViewer.d.ets +1 -1
  127. package/src/main/ets/modules/member/model/vo/PLVMemberChannelViewer.js +3 -3
  128. package/src/main/ets/modules/member/model/vo/PLVMemberErrorEvent.d.ets +1 -1
  129. package/src/main/ets/modules/member/model/vo/PLVMemberErrorEvent.js +3 -3
  130. package/src/main/ets/modules/member/viewmodel/PLVMemberViewModel.d.ets +3 -3
  131. package/src/main/ets/modules/member/viewmodel/PLVMemberViewModel.js +15 -15
  132. package/src/main/ets/modules/member/viewmodel/usecase/MemberHandleStateUseCase.d.ets +6 -6
  133. package/src/main/ets/modules/member/viewmodel/usecase/MemberHandleStateUseCase.js +16 -16
  134. package/src/main/ets/modules/member/viewmodel/usecase/MemberUpdateViewerUseCase.d.ets +9 -9
  135. package/src/main/ets/modules/member/viewmodel/usecase/MemberUpdateViewerUseCase.js +21 -21
  136. package/src/main/ets/modules/member/viewmodel/usecase/PLVMemberUseCases.d.ets +1 -1
  137. package/src/main/ets/modules/member/viewmodel/usecase/PLVMemberUseCases.js +3 -3
  138. package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestHandleStateUseCase.d.ets +6 -6
  139. package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestHandleStateUseCase.js +82 -82
  140. package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestUpdateViewerUseCase.d.ets +9 -9
  141. package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestUpdateViewerUseCase.js +219 -219
  142. package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherHandleStateUseCase.d.ets +6 -6
  143. package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherHandleStateUseCase.js +153 -153
  144. package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherUpdateViewerUseCase.d.ets +9 -9
  145. package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherUpdateViewerUseCase.js +219 -219
  146. package/src/main/ets/modules/net/PLVApiChatPlvNetApi.d.ets +10 -9
  147. package/src/main/ets/modules/net/PLVApiChatPlvNetApi.js +65 -53
  148. package/src/main/ets/modules/net/PLVApiPlvNetApi.d.ets +30 -30
  149. package/src/main/ets/modules/net/PLVApiPlvNetApi.js +164 -164
  150. package/src/main/ets/modules/net/PLVELogPlvNetApi.d.ets +2 -2
  151. package/src/main/ets/modules/net/PLVELogPlvNetApi.js +5 -5
  152. package/src/main/ets/modules/net/PLVLiveImagesVideoNetApi.d.ets +3 -3
  153. package/src/main/ets/modules/net/PLVLiveImagesVideoNetApi.js +19 -19
  154. package/src/main/ets/modules/net/PLVNGBPushApi.d.ets +2 -2
  155. package/src/main/ets/modules/net/PLVNGBPushApi.js +4 -4
  156. package/src/main/ets/modules/net/PLVRtasVideoNetApi.d.ets +2 -2
  157. package/src/main/ets/modules/net/PLVRtasVideoNetApi.js +4 -4
  158. package/src/main/ets/modules/net/vo/PLVNetworkQuality.js +8 -8
  159. package/src/main/ets/modules/player/PLVPlayerManager.d.ets +3 -3
  160. package/src/main/ets/modules/player/PLVPlayerManager.js +8 -8
  161. package/src/main/ets/modules/player/PLVPlayerMediator.d.ets +1 -1
  162. package/src/main/ets/modules/player/PLVPlayerMediator.js +8 -8
  163. package/src/main/ets/modules/player/playback/PLVPlaybackListType.js +4 -4
  164. package/src/main/ets/modules/player/playback/PLVPreviousListVO.js +8 -8
  165. package/src/main/ets/modules/player/playback/PLVPreviousManager.d.ets +5 -5
  166. package/src/main/ets/modules/player/playback/PLVPreviousManager.js +69 -69
  167. package/src/main/ets/modules/ppt/PLVPPTWeb.js +28 -28
  168. package/src/main/ets/modules/ppt/PLVPPTWebController.d.ets +6 -6
  169. package/src/main/ets/modules/ppt/PLVPPTWebController.js +94 -94
  170. package/src/main/ets/modules/product/PLVProductManager.d.ets +5 -5
  171. package/src/main/ets/modules/product/PLVProductManager.js +61 -61
  172. package/src/main/ets/modules/product/components/PLVProductControlWeb.d.ets +1 -1
  173. package/src/main/ets/modules/product/components/PLVProductControlWeb.js +34 -34
  174. package/src/main/ets/modules/product/components/PLVProductWeb.d.ets +1 -1
  175. package/src/main/ets/modules/product/components/PLVProductWeb.js +50 -50
  176. package/src/main/ets/modules/product/model/PLVProductContentBean.d.ets +1 -1
  177. package/src/main/ets/modules/product/model/PLVProductContentBean.js +17 -17
  178. package/src/main/ets/modules/product/model/PLVProductControlEvent.js +7 -7
  179. package/src/main/ets/modules/product/model/PLVProductDataBean.d.ets +1 -1
  180. package/src/main/ets/modules/product/model/PLVProductDataBean.js +16 -16
  181. package/src/main/ets/modules/redpack/PLVRedpackManager.d.ets +9 -9
  182. package/src/main/ets/modules/redpack/PLVRedpackManager.js +70 -70
  183. package/src/main/ets/modules/redpack/database/PLVRedpackCacheVO.d.ets +1 -1
  184. package/src/main/ets/modules/redpack/database/PLVRedpackCacheVO.js +14 -14
  185. package/src/main/ets/modules/redpack/database/PLVRedpackLocalDataSource.d.ets +4 -4
  186. package/src/main/ets/modules/redpack/database/PLVRedpackLocalDataSource.js +28 -28
  187. package/src/main/ets/modules/redpack/database/PLVRedpackOpenHelper.d.ets +4 -4
  188. package/src/main/ets/modules/redpack/database/PLVRedpackOpenHelper.js +6 -6
  189. package/src/main/ets/modules/reward/PLVRewardManager.d.ets +2 -2
  190. package/src/main/ets/modules/reward/PLVRewardManager.js +22 -22
  191. package/src/main/ets/modules/reward/model/PLVRewardPointVO.d.ets +1 -1
  192. package/src/main/ets/modules/reward/model/PLVRewardPointVO.js +3 -3
  193. package/src/main/ets/modules/reward/model/PLVRewardSettingVO.js +24 -24
  194. package/src/main/ets/modules/socket/PLVSocketManager.d.ets +8 -8
  195. package/src/main/ets/modules/socket/PLVSocketManager.js +101 -101
  196. package/src/main/ets/modules/socket/PLVSocketMediator.d.ets +7 -7
  197. package/src/main/ets/modules/socket/PLVSocketMediator.js +14 -14
  198. package/src/main/ets/modules/socket/model/PLVSocketUserBean.d.ets +5 -5
  199. package/src/main/ets/modules/socket/model/PLVSocketUserBean.js +27 -27
  200. package/src/main/ets/modules/socket/model/PLVUserType.js +15 -15
  201. package/src/main/ets/modules/socket/model/interact/PLVCallAppEvent.js +6 -6
  202. package/src/main/ets/modules/socket/model/redpack/RedPaperReceiveType.d.ets +4 -4
  203. package/src/main/ets/modules/socket/model/redpack/RedPaperReceiveType.js +20 -20
  204. package/src/main/ets/modules/streamer/PLVStreamerManager.d.ets +8 -8
  205. package/src/main/ets/modules/streamer/PLVStreamerManager.js +24 -24
  206. package/src/main/ets/modules/streamer/di/PLVStreamerModule.js +8 -8
  207. package/src/main/ets/modules/streamer/mediator/PLVStreamerMediator.d.ets +2 -2
  208. package/src/main/ets/modules/streamer/mediator/PLVStreamerMediator.js +5 -5
  209. package/src/main/ets/modules/streamer/model/PLVStreamerRepo.d.ets +8 -8
  210. package/src/main/ets/modules/streamer/model/PLVStreamerRepo.js +41 -41
  211. package/src/main/ets/modules/streamer/model/datasource/PLVStreamerLocalDataSource.d.ets +2 -2
  212. package/src/main/ets/modules/streamer/model/datasource/PLVStreamerLocalDataSource.js +10 -10
  213. package/src/main/ets/modules/streamer/model/datasource/PLVStreamerNetworkDataSource.d.ets +7 -7
  214. package/src/main/ets/modules/streamer/model/datasource/PLVStreamerNetworkDataSource.js +48 -48
  215. package/src/main/ets/modules/streamer/model/vo/PLVStreamerErrorEvent.d.ets +1 -1
  216. package/src/main/ets/modules/streamer/model/vo/PLVStreamerErrorEvent.js +3 -3
  217. package/src/main/ets/modules/streamer/model/vo/PLVStreamerMixActionVO.js +15 -15
  218. package/src/main/ets/modules/streamer/model/vo/PLVStreamerMixLayoutType.js +4 -4
  219. package/src/main/ets/modules/streamer/model/vo/PLVStreamerState.js +4 -4
  220. package/src/main/ets/modules/streamer/viewmodel/PLVStreamerViewModel.d.ets +8 -8
  221. package/src/main/ets/modules/streamer/viewmodel/PLVStreamerViewModel.js +25 -25
  222. package/src/main/ets/modules/streamer/viewmodel/usecase/PLVStreamerUseCases.d.ets +1 -1
  223. package/src/main/ets/modules/streamer/viewmodel/usecase/PLVStreamerUseCases.js +3 -3
  224. package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerHandleStateUseCase.d.ets +2 -2
  225. package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerHandleStateUseCase.js +8 -8
  226. package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerMixStreamUseCase.d.ets +2 -2
  227. package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerMixStreamUseCase.js +7 -7
  228. package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestHandleStateUseCase.d.ets +2 -2
  229. package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestHandleStateUseCase.js +42 -42
  230. package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestMixStreamUseCase.d.ets +2 -2
  231. package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestMixStreamUseCase.js +3 -3
  232. package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherHandleStateUseCase.d.ets +2 -2
  233. package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherHandleStateUseCase.js +42 -42
  234. package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherMixStreamUseCase.d.ets +2 -2
  235. package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherMixStreamUseCase.js +51 -51
  236. package/src/main/ets/modules/web/PLVSocketWebController.d.ets +2 -2
  237. package/src/main/ets/modules/web/PLVSocketWebController.js +66 -66
  238. package/src/main/ets/modules/web/PLVWebControllerManager.d.ets +2 -2
  239. package/src/main/ets/modules/web/PLVWebControllerManager.js +6 -6
  240. package/src/main/ets/modules/web/PLVWebParams.d.ets +1 -1
  241. package/src/main/ets/modules/web/PLVWebParams.js +22 -22
  242. package/src/main/ets/modules/web/qa/PLVQAWeb.d.ets +1 -1
  243. package/src/main/ets/modules/web/qa/PLVQAWeb.js +34 -34
  244. package/src/main/ets/modules/web/tuwen/PLVTuwenWeb.d.ets +1 -1
  245. package/src/main/ets/modules/web/tuwen/PLVTuwenWeb.js +37 -37
  246. 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(g42, h42, i42, j42) {
13
+ constructor(u42, v42, w42, x42) {
14
14
  this.disposables = [];
15
15
  this.observers = [];
16
- this.repo = g42;
17
- this.handleQueueOrderUseCase = h42;
18
- this.handleRTCUseCase = i42;
19
- this.updateChannelViewerUseCase = j42;
16
+ this.repo = u42;
17
+ this.handleQueueOrderUseCase = v42;
18
+ this.handleRTCUseCase = w42;
19
+ this.updateChannelViewerUseCase = x42;
20
20
  }
21
21
  init() {
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)));
22
+ this.disposables.push(this.observeSocketEvent(PLVSocketOnEvent.MESSAGE, (s42, t42) => this.onSocketMessage(s42, t42)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_REQUEST, (r42) => this.onSocketJoinRequest(r42)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_RESPONSE, (q42) => this.onSocketJoinResponse(q42)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_SUCCESS, (p42) => this.onSocketJoinSuccess(p42)), this.observeSocketEvent(PLVSocketOnEvent.JOIN_LEAVE, (o42) => this.onSocketJoinLeave(o42)), this.observeSocketEvent(PLVSocketOnEvent.SWITCH_VIEW, (n42) => this.onSocketSwitchView(n42)));
23
23
  }
24
24
  async requestJoinLinkMic() {
25
- const x41 = this.repo.mediator.linkmicState.value;
26
- if (x41 === PLVLinkMicState.Inviting) {
25
+ const l42 = this.repo.mediator.linkmicState.value;
26
+ if (l42 === 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 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), () => {
35
+ const m42 = new PLVLinkMicSocketJoinRequestSend();
36
+ m42.user = this.createSocketUser();
37
+ m42.roomId = this.repo.mediator.channelData?.loginChannelId;
38
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_REQUEST, encodeToJson(m42), () => {
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 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) {
48
+ const j42 = new PLVLinkMicSocketJoinAnswerSend();
49
+ j42.user = this.createSocketUser();
50
+ j42.roomId = this.repo.mediator.channelData?.loginChannelId;
51
+ j42.status = 1;
52
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_ANSWER, encodeToJson(j42), () => {
53
+ const k42 = this.repo.mediator.linkmicState.value;
54
+ if (k42 === PLVLinkMicState.Inviting) {
55
55
  this.repo.mediator.linkmicState.setValue(PLVLinkMicState.WaitingResponse);
56
56
  }
57
57
  });
58
58
  }
59
59
  refuseInvitation() {
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));
60
+ const i42 = new PLVLinkMicSocketJoinAnswerSend();
61
+ i42.user = this.createSocketUser();
62
+ i42.roomId = this.repo.mediator.channelData?.loginChannelId;
63
+ i42.status = 0;
64
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_ANSWER, encodeToJson(i42));
65
65
  this.repo.mediator.linkmicState.setValue(PLVLinkMicState.NoLinkMic);
66
66
  }
67
67
  leaveLinkMic() {
68
- const s41 = this.repo.mediator.linkmicState.value;
69
- if (s41 === undefined || ![PLVLinkMicState.Requesting, PLVLinkMicState.Joined].includes(s41)) {
68
+ const g42 = this.repo.mediator.linkmicState.value;
69
+ if (g42 === undefined || ![PLVLinkMicState.Requesting, PLVLinkMicState.Joined].includes(g42)) {
70
70
  return;
71
71
  }
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));
72
+ const h42 = new PLVLinkMicSocketJoinLeaveSend();
73
+ h42.user = this.createSocketUser();
74
+ h42.roomId = this.repo.mediator.channelData?.loginChannelId;
75
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_LEAVE, encodeToJson(h42));
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(r41) {
86
+ async setLinkMicMode(f42) {
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(q41) {
95
+ acceptViewerLinkMicRequest(e42) {
96
96
  }
97
- inviteViewerLinkMic(o41, p41) {
97
+ inviteViewerLinkMic(c42, d42) {
98
98
  }
99
- hangupViewerLinkMic(n41) {
99
+ hangupViewerLinkMic(b42) {
100
100
  }
101
101
  hangupAllViewersLinkMic() {
102
102
  }
103
- setViewerEnableCamera(l41, m41) {
103
+ setViewerEnableCamera(z41, a42) {
104
104
  }
105
- setViewerEnableMicrophone(j41, k41) {
105
+ setViewerEnableMicrophone(x41, y41) {
106
106
  }
107
- grantSpeaker(i41) {
107
+ grantSpeaker(w41) {
108
108
  if (!this.isMyselfSpeaker()) {
109
109
  return;
110
110
  }
111
- this.moveSpeaker(i41);
112
- this.setMainView(i41);
111
+ this.moveSpeaker(w41);
112
+ this.setMainView(w41);
113
113
  }
114
- revokeSpeaker(g41) {
114
+ revokeSpeaker(u41) {
115
115
  if (!this.isMyselfSpeaker()) {
116
116
  return;
117
117
  }
118
- const h41 = requireNotNull(this.repo.mediator.channelData?.loginChannelId);
119
- this.moveSpeaker(h41);
120
- this.setMainView(h41);
118
+ const v41 = requireNotNull(this.repo.mediator.channelData?.loginChannelId);
119
+ this.moveSpeaker(v41);
120
+ this.setMainView(v41);
121
121
  }
122
- setMainView(d41) {
122
+ setMainView(r41) {
123
123
  if (!this.isMyselfSpeaker()) {
124
124
  return;
125
125
  }
126
- const e41 = this.repo.mediator.memberMediator?.findViewerByViewerId(d41);
127
- if (e41 === undefined) {
128
- PLVLogger.error(TAG, `setMainView fail, viewerId ${d41} not found.`);
126
+ const s41 = this.repo.mediator.memberMediator?.findViewerByViewerId(r41);
127
+ if (s41 === undefined) {
128
+ PLVLogger.error(TAG, `setMainView fail, viewerId ${r41} not found.`);
129
129
  return;
130
130
  }
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));
131
+ const t41 = new PLVLinkMicSocketSwitchViewSend();
132
+ t41.emitMode = 0;
133
+ t41.roomId = this.repo.mediator.channelData?.loginChannelId;
134
+ t41.userId = s41.linkmicId;
135
+ t41.socketId = s41.socketId;
136
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.SWITCH_VIEW, encodeToJson(t41));
137
137
  }
138
138
  isMyselfSpeaker() {
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")
139
+ const q41 = this.repo.mediator.channelMainViewLinkMicId.value;
140
+ return !isNullOrUndefined(q41) && this.repo.mediator.isMySocketLinkMicId(q41);
141
+ }
142
+ moveSpeaker(o41) {
143
+ const p41 = new PLVLinkMicSocketTeacherSetPermissionSend();
144
+ p41.emitMode = 0;
145
+ p41.roomId = this.repo.mediator.channelData?.loginChannelId;
146
+ p41.sessionId = this.repo.mediator.channelData?.sessionId;
147
+ p41.type = "speaker";
148
+ p41.status = "1";
149
+ p41.userId = o41;
150
+ p41.sign = PLVRequestSetting.createSign(new Map(Object.entries(p41)), "polyvChatSign")
151
151
  .toUpperCase();
152
- this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.MESSAGE, encodeToJson(b41));
152
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.MESSAGE, encodeToJson(p41));
153
153
  }
154
154
  onLiveStreamStop() {
155
155
  this.leaveLinkMic();
@@ -160,50 +160,50 @@ export class LinkMicGuestHandleStateUseCase {
160
160
  this.handleRTCUseCase.leaveChannel();
161
161
  }
162
162
  updateInvitationExpireTime() {
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();
163
+ const g41 = new PLVLinkMicSocketJoinAnswerTTLSend();
164
+ g41.userId = this.repo.mediator.channelData?.viewerId;
165
+ g41.roomId = this.repo.mediator.channelData?.loginChannelId;
166
+ g41.sessionId = this.repo.mediator.channelData?.sessionId;
167
+ const h41 = Date.now();
168
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_ANSWER_TTL, encodeToJson(g41), (i41) => {
169
+ const j41 = decodeFromJson(i41, PLVLinkMicSocketJoinAnswerTTLAck).message?.[0] ?? 0;
170
+ const k41 = h41 + seconds(j41).toMillis();
171
+ this.repo.mediator.invitationExpireTimestamp.setValue(k41);
172
+ const l41 = k41 - Date.now();
173
173
  setTimeout(() => {
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) {
174
+ const m41 = this.repo.mediator.invitationExpireTimestamp.value ?? 0;
175
+ const n41 = this.repo.mediator.linkmicState.value;
176
+ if (n41 === PLVLinkMicState.Inviting && Date.now() >= m41) {
177
177
  this.refuseInvitation();
178
178
  }
179
- }, x40);
179
+ }, l41);
180
180
  });
181
181
  }
182
- onSocketMessage(q40, r40) {
183
- switch (r40) {
182
+ onSocketMessage(e41, f41) {
183
+ switch (f41) {
184
184
  case PLVSocketMessageEvent.OPEN_MICROPHONE:
185
- return this.onSocketOpenMicrophone(q40);
185
+ return this.onSocketOpenMicrophone(e41);
186
186
  case PLVSocketMessageEvent.MUTE_USER_MICRO:
187
- return this.onSocketMuteUserMicro(q40);
187
+ return this.onSocketMuteUserMicro(e41);
188
188
  case PLVSocketMessageEvent.TEACHER_SET_PERMISSION:
189
- return this.onSocketTeacherSetPermission(q40);
189
+ return this.onSocketTeacherSetPermission(e41);
190
190
  case PLVSocketMessageEvent.SET_NICK:
191
- return this.onSocketUserSetNick(q40);
191
+ return this.onSocketUserSetNick(e41);
192
192
  default:
193
193
  }
194
194
  }
195
- onSocketOpenMicrophone(n40) {
196
- const o40 = decodeFromJson(n40, PLVLinkMicSocketOpenMicrophoneRecv);
197
- const p40 = o40.userId !== undefined;
198
- if (o40.status === 'open') {
199
- if (!p40) {
195
+ onSocketOpenMicrophone(b41) {
196
+ const c41 = decodeFromJson(b41, PLVLinkMicSocketOpenMicrophoneRecv);
197
+ const d41 = c41.userId !== undefined;
198
+ if (c41.status === 'open') {
199
+ if (!d41) {
200
200
  this.repo.mediator.channelAllowLinkMic.setValue(true);
201
201
  this.repo.mediator.channelAllowRequestHandsUpLinkMic.setValue(true);
202
- this.updateLinkMicMode(o40.type);
202
+ this.updateLinkMicMode(c41.type);
203
203
  }
204
204
  }
205
- else if (o40.status === 'close') {
206
- if (!p40) {
205
+ else if (c41.status === 'close') {
206
+ if (!d41) {
207
207
  if (this.repo.mediator.isLinkMicStrategyV2.value === true) {
208
208
  this.repo.mediator.channelAllowRequestHandsUpLinkMic.setValue(false);
209
209
  }
@@ -212,66 +212,66 @@ export class LinkMicGuestHandleStateUseCase {
212
212
  this.repo.mediator.channelAllowRequestHandsUpLinkMic.setValue(false);
213
213
  }
214
214
  }
215
- if (p40 && this.repo.mediator.isMySocketLinkMicId(o40.userId)) {
215
+ if (d41 && this.repo.mediator.isMySocketLinkMicId(c41.userId)) {
216
216
  this.repo.mediator.teacherHangUpLinkMicEvent.setValue(Date.now());
217
217
  this.leaveLinkMic();
218
218
  }
219
219
  }
220
220
  }
221
- onSocketMuteUserMicro(l40) {
222
- const m40 = decodeFromJson(l40, PLVLinkMicSocketMuteUserMicroRecv);
223
- if (m40.type === 'audio') {
224
- if (m40.mute === true) {
221
+ onSocketMuteUserMicro(z40) {
222
+ const a41 = decodeFromJson(z40, PLVLinkMicSocketMuteUserMicroRecv);
223
+ if (a41.type === 'audio') {
224
+ if (a41.mute === true) {
225
225
  this.handleRTCUseCase.enableMicrophone(false);
226
226
  }
227
- if (m40.mute === false) {
227
+ if (a41.mute === false) {
228
228
  this.handleRTCUseCase.enableMicrophone(true);
229
229
  }
230
230
  }
231
- if (m40.type === 'video') {
232
- if (m40.mute === true) {
231
+ if (a41.type === 'video') {
232
+ if (a41.mute === true) {
233
233
  this.handleRTCUseCase.enableCamera(false);
234
234
  }
235
- if (m40.mute === false) {
235
+ if (a41.mute === false) {
236
236
  this.handleRTCUseCase.enableCamera(true);
237
237
  }
238
238
  }
239
239
  }
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);
240
+ onSocketTeacherSetPermission(v40) {
241
+ const w40 = decodeFromJson(v40, PLVLinkMicSocketTeacherSetPermissionRecv);
242
+ this.updateChannelViewerUseCase.onEventTeacherSetPermission(w40);
243
+ if (w40.type === "voice") {
244
+ const x40 = w40.status === "1";
245
+ const y40 = !isNullOrUndefined(w40.userId) && w40.userId === this.repo.mediator.channelData?.viewerId;
246
+ if (y40) {
247
+ this.repo.mediator.linkmicState.setValue(x40 ? PLVLinkMicState.Joined : PLVLinkMicState.NoLinkMic);
248
248
  }
249
249
  }
250
250
  }
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);
251
+ onSocketUserSetNick(r40) {
252
+ const s40 = decodeFromJson(r40, PLVMemberSocketSetNickRecv);
253
+ const t40 = s40.userId;
254
+ const u40 = this.repo.mediator.findViewerByViewerId(t40);
255
+ if (u40 !== undefined) {
256
+ u40.viewerName.setValue(s40.nick);
257
257
  }
258
258
  }
259
- onSocketJoinRequest(b40) {
260
- const c40 = decodeFromJson(b40, PLVLinkMicSocketJoinRequestRecv);
261
- this.handleQueueOrderUseCase.onEventJoinRequest(c40);
259
+ onSocketJoinRequest(p40) {
260
+ const q40 = decodeFromJson(p40, PLVLinkMicSocketJoinRequestRecv);
261
+ this.handleQueueOrderUseCase.onEventJoinRequest(q40);
262
262
  }
263
- onSocketJoinResponse(y39) {
264
- const z39 = decodeFromJson(y39, PLVLinkMicSocketJoinResponseRecv);
265
- if (!this.repo.mediator.isMySocketLinkMicId(z39.user?.userId)) {
263
+ onSocketJoinResponse(m40) {
264
+ const n40 = decodeFromJson(m40, PLVLinkMicSocketJoinResponseRecv);
265
+ if (!this.repo.mediator.isMySocketLinkMicId(n40.user?.userId)) {
266
266
  return;
267
267
  }
268
- this.updateLinkMicMode(z39.type);
269
- const a40 = this.repo.mediator.linkmicState.value;
270
- if (z39.isNeedAnswer()) {
271
- if (a40 === PLVLinkMicState.Requesting) {
268
+ this.updateLinkMicMode(n40.type);
269
+ const o40 = this.repo.mediator.linkmicState.value;
270
+ if (n40.isNeedAnswer()) {
271
+ if (o40 === PLVLinkMicState.Requesting) {
272
272
  this.acceptInvitation();
273
273
  }
274
- else if (a40 === PLVLinkMicState.NoLinkMic) {
274
+ else if (o40 === PLVLinkMicState.NoLinkMic) {
275
275
  this.repo.mediator.invitationExpireTimestamp.setValue(Date.now() + seconds(30).toMillis());
276
276
  this.repo.mediator.linkmicState.setValue(PLVLinkMicState.Inviting);
277
277
  this.updateInvitationExpireTime();
@@ -281,95 +281,95 @@ export class LinkMicGuestHandleStateUseCase {
281
281
  this.repo.mediator.linkmicState.setValue(PLVLinkMicState.Joined);
282
282
  }
283
283
  }
284
- onSocketJoinSuccess(w39) {
285
- const x39 = decodeFromJson(w39, PLVLinkMicSocketJoinSuccessRecv);
286
- this.handleQueueOrderUseCase.onEventJoinSuccess(x39);
287
- this.updateChannelViewerUseCase.onEventJoinSuccess(x39);
284
+ onSocketJoinSuccess(k40) {
285
+ const l40 = decodeFromJson(k40, PLVLinkMicSocketJoinSuccessRecv);
286
+ this.handleQueueOrderUseCase.onEventJoinSuccess(l40);
287
+ this.updateChannelViewerUseCase.onEventJoinSuccess(l40);
288
288
  }
289
- onSocketJoinLeave(u39) {
290
- const v39 = decodeFromJson(u39, PLVLinkMicSocketJoinLeaveRecv);
291
- this.handleQueueOrderUseCase.onEventJoinLeave(v39);
292
- this.updateChannelViewerUseCase.onEventJoinLeave(v39);
289
+ onSocketJoinLeave(i40) {
290
+ const j40 = decodeFromJson(i40, PLVLinkMicSocketJoinLeaveRecv);
291
+ this.handleQueueOrderUseCase.onEventJoinLeave(j40);
292
+ this.updateChannelViewerUseCase.onEventJoinLeave(j40);
293
293
  }
294
- onSocketSwitchView(s39) {
295
- const t39 = decodeFromJson(s39, PLVLinkMicSocketSwitchViewRecv);
296
- if (isNullOrUndefined(t39.userId)) {
294
+ onSocketSwitchView(g40) {
295
+ const h40 = decodeFromJson(g40, PLVLinkMicSocketSwitchViewRecv);
296
+ if (isNullOrUndefined(h40.userId)) {
297
297
  return;
298
298
  }
299
- this.repo.mediator.channelMainViewLinkMicId.setValue(t39.userId);
300
- this.updateChannelViewerUseCase.onEventSwitchView(t39);
299
+ this.repo.mediator.channelMainViewLinkMicId.setValue(h40.userId);
300
+ this.updateChannelViewerUseCase.onEventSwitchView(h40);
301
301
  }
302
302
  async tryAutoJoinLinkMic() {
303
- const m39 = this.repo.mediator.channelData?.streamerData?.colinMicType === "auto";
304
- if (!m39) {
303
+ const a40 = this.repo.mediator.channelData?.streamerData?.colinMicType === "auto";
304
+ if (!a40) {
305
305
  return;
306
306
  }
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();
307
+ const b40 = Promises.withResolvers();
308
+ const c40 = this.repo.mediator.linkmicState.observe((f40) => {
309
+ if (f40 === PLVLinkMicState.Joined) {
310
+ b40.resolve();
311
+ c40.dispose();
312
312
  }
313
313
  });
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));
314
+ this.observers.push(c40);
315
+ const d40 = async () => {
316
+ const e40 = new PLVLinkMicSocketJoinResponseSend();
317
+ e40.roomId = await this.repo.mediator.channelData?.loginRoomIdPromise.get();
318
+ e40.value = "1";
319
+ e40.toEmitAll = 1;
320
+ e40.user = this.createSocketUser();
321
+ this.repo.mediator.socketMediator?.emit(PLVSocketOnEvent.JOIN_RESPONSE, encodeToJson(e40));
322
322
  };
323
323
  await runCatching(retry(async () => {
324
324
  await withTimeout(seconds(8), async () => {
325
- await p39();
326
- await n39.promise;
325
+ await d40();
326
+ await b40.promise;
327
327
  });
328
328
  }, RetryConditions.delay(3, seconds(1))));
329
- o39.dispose();
329
+ c40.dispose();
330
330
  }
331
331
  onDestroy() {
332
- this.disposables.forEach((l39) => {
333
- l39.dispose();
332
+ this.disposables.forEach((z39) => {
333
+ z39.dispose();
334
334
  });
335
335
  this.disposables = [];
336
336
  MutableObserver.disposeAll(this.observers);
337
337
  this.observers = [];
338
338
  }
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
+ observeSocketEvent(w39, x39) {
340
+ const y39 = requireNotNull(this.repo.mediator.socketMediator);
341
+ y39.onData(w39, x39);
342
+ return disposable(() => y39.offData(w39, x39));
343
343
  }
344
344
  createSocketUser() {
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);
345
+ const v39 = new PLVSocketUserSend();
346
+ v39.nick = this.repo.mediator.channelData?.viewerName;
347
+ v39.pic = this.repo.mediator.channelData?.viewerAvatar;
348
+ v39.userType = this.repo.mediator.channelData?.viewerType;
349
+ v39.userId = this.repo.mediator.linkmicId;
350
+ return v39;
351
+ }
352
+ updateLinkMicMode(u39) {
353
+ if (u39 === PLVLinkMicMode.AUDIO || u39 === PLVLinkMicMode.VIDEO) {
354
+ this.repo.mediator.channelLinkMicMode.setValue(u39);
355
355
  }
356
356
  }
357
357
  async isChannelReachLinkMicLimit() {
358
- const c39 = this.repo.mediator.channelData?.liveDetail?.linkMicLimit;
359
- if (c39 === undefined) {
358
+ const q39 = this.repo.mediator.channelData?.liveDetail?.linkMicLimit;
359
+ if (q39 === undefined) {
360
360
  PLVLogger.warn(TAG, "channel linkmic limit is undefined, treat as reach limit.");
361
361
  return true;
362
362
  }
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}`);
363
+ const r39 = await runCatching(this.repo.getChannelLinkMicStatus());
364
+ if (r39.success === false) {
365
+ PLVLogger.warn(TAG, `channel linkmic status response fail: ${r39.error.message}`);
366
366
  return true;
367
367
  }
368
- const e39 = d39.data.joinList?.filter(f39 => {
369
- f39.userType === PLVUserType.USERTYPE_TEACHER || f39.classStatus?.voice === 1;
368
+ const s39 = r39.data.joinList?.filter(t39 => {
369
+ t39.userType === PLVUserType.USERTYPE_TEACHER || t39.classStatus?.voice === 1;
370
370
  })?.length ?? 0;
371
- if (e39 >= c39 + 1) {
372
- PLVLogger.warn(TAG, `channel reach linkmic limit, current join ${e39}, limit ${c39}`);
371
+ if (s39 >= q39 + 1) {
372
+ PLVLogger.warn(TAG, `channel reach linkmic limit, current join ${s39}, limit ${q39}`);
373
373
  return true;
374
374
  }
375
375
  else {
@@ -378,15 +378,15 @@ export class LinkMicGuestHandleStateUseCase {
378
378
  }
379
379
  }
380
380
  class SocketDisposable extends PLVDisposable {
381
- constructor(b39) {
381
+ constructor(p39) {
382
382
  super();
383
- this.onDispose = b39;
383
+ this.onDispose = p39;
384
384
  }
385
385
  dispose() {
386
386
  super.dispose();
387
387
  this.onDispose?.();
388
388
  }
389
389
  }
390
- function disposable(a39) {
391
- return new SocketDisposable(a39);
390
+ function disposable(o39) {
391
+ return new SocketDisposable(o39);
392
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(l44: PLVLinkMicRepo);
8
+ constructor(z44: PLVLinkMicRepo);
9
9
  init(): 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;
10
+ setBitRate(y44: PLVLinkMicBitRate): void;
11
+ setPushResolutionRatio(x44: PLVLinkMicPushResolutionRatio): void;
12
+ setPushOrientation(w44: PLVPushOrientation): void;
13
+ setPushMirror(v44: boolean): void;
14
+ setPushDowngradePreference(u44: PLVPushDowngradePreference): void;
15
15
  private updateEncodeParam;
16
16
  private parseChannelBitRateSetting;
17
17
  private parsePushStreamTemplate;