agora-electron-sdk 4.1.1-rc.1 → 4.2.0-dev.13

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 (358) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +143 -143
  3. package/gulpfile.js +5 -4
  4. package/js/AgoraSdk.js +62 -60
  5. package/js/Private/AgoraBase.js +4575 -3269
  6. package/js/Private/AgoraMediaBase.js +968 -564
  7. package/js/Private/AgoraMediaPlayerTypes.js +422 -310
  8. package/js/Private/IAgoraLog.js +86 -74
  9. package/js/Private/IAgoraMediaEngine.js +32 -32
  10. package/js/Private/IAgoraMediaPlayer.js +16 -16
  11. package/js/Private/IAgoraMediaPlayerSource.js +3 -3
  12. package/js/Private/IAgoraMediaRecorder.js +12 -12
  13. package/js/Private/IAgoraMediaStreamingSource.js +84 -0
  14. package/js/Private/IAgoraMusicContentCenter.js +239 -81
  15. package/js/Private/IAgoraRhythmPlayer.js +70 -62
  16. package/js/Private/IAgoraRtcEngine.js +1807 -948
  17. package/js/Private/IAgoraRtcEngineEx.js +26 -18
  18. package/js/Private/IAgoraSpatialAudio.js +74 -30
  19. package/js/Private/IAudioDeviceManager.js +20 -20
  20. package/js/Private/extension/AgoraBaseExtension.js +2 -2
  21. package/js/Private/extension/AgoraMediaBaseExtension.js +2 -2
  22. package/js/Private/extension/AgoraMediaPlayerTypesExtension.js +2 -2
  23. package/js/Private/extension/IAgoraLogExtension.js +2 -2
  24. package/js/Private/extension/IAgoraMediaEngineExtension.js +2 -2
  25. package/js/Private/extension/IAgoraMediaPlayerExtension.js +2 -2
  26. package/js/Private/extension/IAgoraMediaPlayerSourceExtension.js +2 -2
  27. package/js/Private/extension/IAgoraMediaRecorderExtension.js +2 -2
  28. package/js/Private/extension/IAgoraMusicContentCenterExtension.js +2 -2
  29. package/js/Private/extension/IAgoraRhythmPlayerExtension.js +2 -2
  30. package/js/Private/extension/IAgoraRtcEngineExExtension.js +2 -2
  31. package/js/Private/extension/IAgoraRtcEngineExtension.js +2 -2
  32. package/js/Private/extension/IAgoraSpatialAudioExtension.js +2 -2
  33. package/js/Private/extension/IAudioDeviceManagerExtension.js +2 -2
  34. package/js/Private/impl/AgoraBaseImpl.js +23 -23
  35. package/js/Private/impl/AgoraMediaBaseImpl.js +118 -138
  36. package/js/Private/impl/IAgoraMediaEngineImpl.js +287 -325
  37. package/js/Private/impl/IAgoraMediaPlayerImpl.js +932 -938
  38. package/js/Private/impl/IAgoraMediaPlayerSourceImpl.js +63 -63
  39. package/js/Private/impl/IAgoraMediaRecorderImpl.js +47 -67
  40. package/js/Private/impl/IAgoraMusicContentCenterImpl.js +353 -323
  41. package/js/Private/impl/IAgoraRtcEngineExImpl.js +945 -907
  42. package/js/Private/impl/IAgoraRtcEngineImpl.js +4742 -4702
  43. package/js/Private/impl/IAgoraSpatialAudioImpl.js +362 -362
  44. package/js/Private/impl/IAudioDeviceManagerImpl.js +375 -375
  45. package/js/Private/internal/AudioDeviceManagerInternal.js +44 -44
  46. package/js/Private/internal/IrisApiEngine.js +391 -382
  47. package/js/Private/internal/LocalSpatialAudioEngineInternal.js +46 -46
  48. package/js/Private/internal/MediaEngineInternal.js +119 -123
  49. package/js/Private/internal/MediaPlayerInternal.js +215 -213
  50. package/js/Private/internal/MediaRecorderInternal.js +82 -81
  51. package/js/Private/internal/MusicContentCenterInternal.js +128 -130
  52. package/js/Private/internal/RtcEngineExInternal.js +422 -363
  53. package/js/Private/internal/emitter/EventEmitter.js +111 -111
  54. package/js/Private/ti/AgoraBase-ti.js +40 -40
  55. package/js/Private/ti/AgoraMediaBase-ti.js +71 -73
  56. package/js/Private/ti/AgoraMediaPlayerTypes-ti.js +5 -5
  57. package/js/Private/ti/IAgoraLog-ti.js +5 -5
  58. package/js/Private/ti/IAgoraMediaEngine-ti.js +5 -5
  59. package/js/Private/ti/IAgoraMediaPlayer-ti.js +38 -42
  60. package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +48 -48
  61. package/js/Private/ti/IAgoraMediaRecorder-ti.js +5 -5
  62. package/js/Private/ti/IAgoraMediaStreamingSource-ti.js +5 -0
  63. package/js/Private/ti/IAgoraMusicContentCenter-ti.js +41 -41
  64. package/js/Private/ti/IAgoraRhythmPlayer-ti.js +5 -5
  65. package/js/Private/ti/IAgoraRtcEngine-ti.js +139 -139
  66. package/js/Private/ti/IAgoraRtcEngineEx-ti.js +5 -5
  67. package/js/Private/ti/IAgoraSpatialAudio-ti.js +5 -5
  68. package/js/Private/ti/IAudioDeviceManager-ti.js +5 -5
  69. package/js/Renderer/AgoraView.js +128 -131
  70. package/js/Renderer/IRenderer.js +40 -48
  71. package/js/Renderer/IRendererManager.js +9 -0
  72. package/js/Renderer/RendererManager.js +479 -392
  73. package/js/Renderer/{GlRenderer → WebGLRenderer}/index.js +469 -473
  74. package/js/Renderer/{GlRenderer → WebGLRenderer}/webgl-utils.js +1337 -1337
  75. package/js/Renderer/YUVCanvasRenderer/index.js +195 -185
  76. package/js/Renderer/index.js +18 -0
  77. package/js/Types.js +17 -29
  78. package/js/Utils.js +168 -173
  79. package/package.json +61 -103
  80. package/scripts/bootstrap.js +1 -1
  81. package/scripts/build.js +1 -0
  82. package/scripts/buildJS.js +3 -3
  83. package/scripts/clean.js +2 -1
  84. package/scripts/downloadPrebuild.js +5 -5
  85. package/scripts/getConfig.js +3 -2
  86. package/scripts/synclib.js +8 -5
  87. package/scripts/util.js +3 -2
  88. package/scripts/zipBuild.js +2 -1
  89. package/ts/AgoraSdk.ts +9 -6
  90. package/ts/Private/AgoraBase.ts +278 -173
  91. package/ts/Private/AgoraMediaBase.ts +167 -100
  92. package/ts/Private/AgoraMediaPlayerTypes.ts +1 -1
  93. package/ts/Private/IAgoraMediaEngine.ts +43 -56
  94. package/ts/Private/IAgoraMediaPlayer.ts +90 -104
  95. package/ts/Private/IAgoraMediaPlayerSource.ts +3 -8
  96. package/ts/Private/IAgoraMediaRecorder.ts +8 -35
  97. package/ts/Private/IAgoraMediaStreamingSource.ts +80 -0
  98. package/ts/Private/IAgoraMusicContentCenter.ts +93 -12
  99. package/ts/Private/IAgoraRtcEngine.ts +807 -910
  100. package/ts/Private/IAgoraRtcEngineEx.ts +187 -191
  101. package/ts/Private/IAgoraSpatialAudio.ts +40 -22
  102. package/ts/Private/IAudioDeviceManager.ts +35 -13
  103. package/ts/Private/extension/IAgoraMediaEngineExtension.ts +1 -1
  104. package/ts/Private/extension/IAgoraMediaPlayerExtension.ts +4 -7
  105. package/ts/Private/extension/IAgoraMediaRecorderExtension.ts +6 -1
  106. package/ts/Private/extension/IAgoraMusicContentCenterExtension.ts +1 -1
  107. package/ts/Private/extension/IAgoraRtcEngineExtension.ts +4 -4
  108. package/ts/Private/impl/AgoraBaseImpl.ts +3 -3
  109. package/ts/Private/impl/AgoraMediaBaseImpl.ts +36 -42
  110. package/ts/Private/impl/IAgoraMediaEngineImpl.ts +79 -127
  111. package/ts/Private/impl/IAgoraMediaPlayerImpl.ts +106 -106
  112. package/ts/Private/impl/IAgoraMediaRecorderImpl.ts +13 -45
  113. package/ts/Private/impl/IAgoraMusicContentCenterImpl.ts +61 -16
  114. package/ts/Private/impl/IAgoraRtcEngineExImpl.ts +129 -59
  115. package/ts/Private/impl/IAgoraRtcEngineImpl.ts +490 -416
  116. package/ts/Private/impl/IAgoraSpatialAudioImpl.ts +5 -3
  117. package/ts/Private/impl/IAudioDeviceManagerImpl.ts +4 -2
  118. package/ts/Private/internal/AudioDeviceManagerInternal.ts +6 -5
  119. package/ts/Private/internal/IrisApiEngine.ts +41 -32
  120. package/ts/Private/internal/LocalSpatialAudioEngineInternal.ts +17 -13
  121. package/ts/Private/internal/MediaEngineInternal.ts +9 -11
  122. package/ts/Private/internal/MediaPlayerInternal.ts +42 -31
  123. package/ts/Private/internal/MediaRecorderInternal.ts +24 -22
  124. package/ts/Private/internal/MusicContentCenterInternal.ts +16 -18
  125. package/ts/Private/internal/RtcEngineExInternal.ts +189 -66
  126. package/ts/Private/ti/AgoraMediaBase-ti.ts +9 -10
  127. package/ts/Private/ti/IAgoraMediaPlayer-ti.ts +0 -5
  128. package/{js/Private/ti/AgoraMediaPlayerTypes-ti.d.ts → ts/Private/ti/IAgoraMediaStreamingSource-ti.ts} +11 -6
  129. package/ts/Private/ti/IAgoraMusicContentCenter-ti.ts +4 -4
  130. package/ts/Private/ti/IAgoraRtcEngine-ti.ts +4 -4
  131. package/ts/Renderer/AgoraView.ts +12 -7
  132. package/ts/Renderer/IRenderer.ts +11 -16
  133. package/ts/Renderer/IRendererManager.ts +35 -0
  134. package/ts/Renderer/RendererManager.ts +146 -82
  135. package/ts/Renderer/{GlRenderer → WebGLRenderer}/index.ts +36 -51
  136. package/ts/Renderer/YUVCanvasRenderer/index.ts +41 -25
  137. package/ts/Renderer/index.ts +2 -0
  138. package/ts/Types.ts +43 -23
  139. package/ts/Utils.ts +7 -12
  140. package/types/AgoraSdk.d.ts +38 -36
  141. package/types/AgoraSdk.d.ts.map +1 -0
  142. package/types/Private/AgoraBase.d.ts +4455 -4358
  143. package/types/Private/AgoraBase.d.ts.map +1 -0
  144. package/types/Private/AgoraMediaBase.d.ts +1125 -1070
  145. package/types/Private/AgoraMediaBase.d.ts.map +1 -0
  146. package/types/Private/AgoraMediaPlayerTypes.d.ts +409 -408
  147. package/types/Private/AgoraMediaPlayerTypes.d.ts.map +1 -0
  148. package/types/Private/IAgoraLog.d.ts +81 -80
  149. package/types/Private/IAgoraLog.d.ts.map +1 -0
  150. package/types/Private/IAgoraMediaEngine.d.ts +184 -193
  151. package/types/Private/IAgoraMediaEngine.d.ts.map +1 -0
  152. package/types/Private/IAgoraMediaPlayer.d.ts +533 -546
  153. package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -0
  154. package/types/Private/IAgoraMediaPlayerSource.d.ts +83 -88
  155. package/types/Private/IAgoraMediaPlayerSource.d.ts.map +1 -0
  156. package/types/Private/IAgoraMediaRecorder.d.ts +29 -49
  157. package/types/Private/IAgoraMediaRecorder.d.ts.map +1 -0
  158. package/types/Private/IAgoraMediaStreamingSource.d.ts +42 -0
  159. package/types/Private/IAgoraMediaStreamingSource.d.ts.map +1 -0
  160. package/types/Private/IAgoraMusicContentCenter.d.ts +336 -255
  161. package/types/Private/IAgoraMusicContentCenter.d.ts.map +1 -0
  162. package/types/Private/IAgoraRhythmPlayer.d.ts +65 -64
  163. package/types/Private/IAgoraRhythmPlayer.d.ts.map +1 -0
  164. package/types/Private/IAgoraRtcEngine.d.ts +4948 -5058
  165. package/types/Private/IAgoraRtcEngine.d.ts.map +1 -0
  166. package/types/Private/IAgoraRtcEngineEx.d.ts +554 -570
  167. package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -0
  168. package/types/Private/IAgoraSpatialAudio.d.ts +266 -248
  169. package/types/Private/IAgoraSpatialAudio.d.ts.map +1 -0
  170. package/types/Private/IAudioDeviceManager.d.ts +255 -233
  171. package/types/Private/IAudioDeviceManager.d.ts.map +1 -0
  172. package/types/Private/extension/AgoraBaseExtension.d.ts +2 -1
  173. package/types/Private/extension/AgoraBaseExtension.d.ts.map +1 -0
  174. package/types/Private/extension/AgoraMediaBaseExtension.d.ts +2 -1
  175. package/types/Private/extension/AgoraMediaBaseExtension.d.ts.map +1 -0
  176. package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts +2 -1
  177. package/types/Private/extension/AgoraMediaPlayerTypesExtension.d.ts.map +1 -0
  178. package/types/Private/extension/IAgoraLogExtension.d.ts +2 -1
  179. package/types/Private/extension/IAgoraLogExtension.d.ts.map +1 -0
  180. package/types/Private/extension/IAgoraMediaEngineExtension.d.ts +41 -40
  181. package/types/Private/extension/IAgoraMediaEngineExtension.d.ts.map +1 -0
  182. package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts +47 -46
  183. package/types/Private/extension/IAgoraMediaPlayerExtension.d.ts.map +1 -0
  184. package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts +2 -1
  185. package/types/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts.map +1 -0
  186. package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts +45 -40
  187. package/types/Private/extension/IAgoraMediaRecorderExtension.d.ts.map +1 -0
  188. package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts +21 -20
  189. package/types/Private/extension/IAgoraMusicContentCenterExtension.d.ts.map +1 -0
  190. package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts +2 -1
  191. package/types/Private/extension/IAgoraRhythmPlayerExtension.d.ts.map +1 -0
  192. package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts +2 -1
  193. package/types/Private/extension/IAgoraRtcEngineExExtension.d.ts.map +1 -0
  194. package/types/Private/extension/IAgoraRtcEngineExtension.d.ts +43 -42
  195. package/types/Private/extension/IAgoraRtcEngineExtension.d.ts.map +1 -0
  196. package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts +2 -1
  197. package/types/Private/extension/IAgoraSpatialAudioExtension.d.ts.map +1 -0
  198. package/types/Private/extension/IAudioDeviceManagerExtension.d.ts +2 -1
  199. package/types/Private/extension/IAudioDeviceManagerExtension.d.ts.map +1 -0
  200. package/types/Private/impl/AgoraBaseImpl.d.ts +3 -2
  201. package/types/Private/impl/AgoraBaseImpl.d.ts.map +1 -0
  202. package/types/Private/impl/AgoraMediaBaseImpl.d.ts +9 -7
  203. package/types/Private/impl/AgoraMediaBaseImpl.d.ts.map +1 -0
  204. package/types/Private/impl/IAgoraMediaEngineImpl.d.ts +40 -43
  205. package/types/Private/impl/IAgoraMediaEngineImpl.d.ts.map +1 -0
  206. package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts +141 -141
  207. package/types/Private/impl/IAgoraMediaPlayerImpl.d.ts.map +1 -0
  208. package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts +3 -2
  209. package/types/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts.map +1 -0
  210. package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts +11 -13
  211. package/types/Private/impl/IAgoraMediaRecorderImpl.d.ts.map +1 -0
  212. package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts +59 -51
  213. package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts.map +1 -0
  214. package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts +106 -101
  215. package/types/Private/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -0
  216. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +570 -566
  217. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -0
  218. package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts +49 -48
  219. package/types/Private/impl/IAgoraSpatialAudioImpl.d.ts.map +1 -0
  220. package/types/Private/impl/IAudioDeviceManagerImpl.d.ts +65 -64
  221. package/types/Private/impl/IAudioDeviceManagerImpl.d.ts.map +1 -0
  222. package/types/Private/internal/AudioDeviceManagerInternal.d.ts +9 -8
  223. package/types/Private/internal/AudioDeviceManagerInternal.d.ts.map +1 -0
  224. package/types/Private/internal/IrisApiEngine.d.ts +148 -146
  225. package/types/Private/internal/IrisApiEngine.d.ts.map +1 -0
  226. package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts +19 -18
  227. package/types/Private/internal/LocalSpatialAudioEngineInternal.d.ts.map +1 -0
  228. package/types/Private/internal/MediaEngineInternal.d.ts +22 -21
  229. package/types/Private/internal/MediaEngineInternal.d.ts.map +1 -0
  230. package/types/Private/internal/MediaPlayerInternal.d.ts +34 -33
  231. package/types/Private/internal/MediaPlayerInternal.d.ts.map +1 -0
  232. package/types/Private/internal/MediaRecorderInternal.d.ts +18 -15
  233. package/types/Private/internal/MediaRecorderInternal.d.ts.map +1 -0
  234. package/types/Private/internal/MusicContentCenterInternal.d.ts +40 -39
  235. package/types/Private/internal/MusicContentCenterInternal.d.ts.map +1 -0
  236. package/types/Private/internal/RtcEngineExInternal.d.ts +80 -73
  237. package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -0
  238. package/{js → types}/Private/internal/emitter/EventEmitter.d.ts +60 -59
  239. package/types/Private/internal/emitter/EventEmitter.d.ts.map +1 -0
  240. package/types/Private/ti/AgoraBase-ti.d.ts +8 -7
  241. package/types/Private/ti/AgoraBase-ti.d.ts.map +1 -0
  242. package/types/Private/ti/AgoraMediaBase-ti.d.ts +14 -12
  243. package/types/Private/ti/AgoraMediaBase-ti.d.ts.map +1 -0
  244. package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts +7 -6
  245. package/types/Private/ti/AgoraMediaPlayerTypes-ti.d.ts.map +1 -0
  246. package/types/Private/ti/IAgoraLog-ti.d.ts +7 -6
  247. package/types/Private/ti/IAgoraLog-ti.d.ts.map +1 -0
  248. package/types/Private/ti/IAgoraMediaEngine-ti.d.ts +7 -6
  249. package/types/Private/ti/IAgoraMediaEngine-ti.d.ts.map +1 -0
  250. package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts +8 -8
  251. package/types/Private/ti/IAgoraMediaPlayer-ti.d.ts.map +1 -0
  252. package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts +8 -7
  253. package/types/Private/ti/IAgoraMediaPlayerSource-ti.d.ts.map +1 -0
  254. package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts +7 -6
  255. package/types/Private/ti/IAgoraMediaRecorder-ti.d.ts.map +1 -0
  256. package/{js/Private/ti/IAgoraMediaRecorder-ti.d.ts → types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts} +7 -6
  257. package/types/Private/ti/IAgoraMediaStreamingSource-ti.d.ts.map +1 -0
  258. package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts +8 -7
  259. package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts.map +1 -0
  260. package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts +7 -6
  261. package/types/Private/ti/IAgoraRhythmPlayer-ti.d.ts.map +1 -0
  262. package/types/Private/ti/IAgoraRtcEngine-ti.d.ts +10 -9
  263. package/types/Private/ti/IAgoraRtcEngine-ti.d.ts.map +1 -0
  264. package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts +7 -6
  265. package/types/Private/ti/IAgoraRtcEngineEx-ti.d.ts.map +1 -0
  266. package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts +7 -6
  267. package/types/Private/ti/IAgoraSpatialAudio-ti.d.ts.map +1 -0
  268. package/types/Private/ti/IAudioDeviceManager-ti.d.ts +7 -6
  269. package/types/Private/ti/IAudioDeviceManager-ti.d.ts.map +1 -0
  270. package/types/Renderer/AgoraView.d.ts +70 -70
  271. package/types/Renderer/AgoraView.d.ts.map +1 -0
  272. package/types/Renderer/IRenderer.d.ts +22 -21
  273. package/types/Renderer/IRenderer.d.ts.map +1 -0
  274. package/types/Renderer/IRendererManager.d.ts +18 -0
  275. package/types/Renderer/IRendererManager.d.ts.map +1 -0
  276. package/types/Renderer/RendererManager.d.ts +154 -71
  277. package/types/Renderer/RendererManager.d.ts.map +1 -0
  278. package/types/Renderer/{GlRenderer → WebGLRenderer}/index.d.ts +49 -59
  279. package/types/Renderer/WebGLRenderer/index.d.ts.map +1 -0
  280. package/types/Renderer/WebGLRenderer/webgl-utils.d.ts +1 -0
  281. package/types/Renderer/WebGLRenderer/webgl-utils.d.ts.map +1 -0
  282. package/types/Renderer/YUVCanvasRenderer/index.d.ts +16 -16
  283. package/types/Renderer/YUVCanvasRenderer/index.d.ts.map +1 -0
  284. package/types/Renderer/index.d.ts +3 -0
  285. package/types/Renderer/index.d.ts.map +1 -0
  286. package/types/Types.d.ts +280 -260
  287. package/types/Types.d.ts.map +1 -0
  288. package/types/Utils.d.ts +59 -58
  289. package/types/Utils.d.ts.map +1 -0
  290. package/js/AgoraSdk.d.ts +0 -36
  291. package/js/Private/AgoraBase.d.ts +0 -4358
  292. package/js/Private/AgoraMediaBase.d.ts +0 -1070
  293. package/js/Private/AgoraMediaPlayerTypes.d.ts +0 -408
  294. package/js/Private/IAgoraLog.d.ts +0 -80
  295. package/js/Private/IAgoraMediaEngine.d.ts +0 -193
  296. package/js/Private/IAgoraMediaPlayer.d.ts +0 -546
  297. package/js/Private/IAgoraMediaPlayerSource.d.ts +0 -88
  298. package/js/Private/IAgoraMediaRecorder.d.ts +0 -49
  299. package/js/Private/IAgoraMusicContentCenter.d.ts +0 -255
  300. package/js/Private/IAgoraRhythmPlayer.d.ts +0 -64
  301. package/js/Private/IAgoraRtcEngine.d.ts +0 -5058
  302. package/js/Private/IAgoraRtcEngineEx.d.ts +0 -570
  303. package/js/Private/IAgoraSpatialAudio.d.ts +0 -248
  304. package/js/Private/IAudioDeviceManager.d.ts +0 -233
  305. package/js/Private/extension/AgoraBaseExtension.d.ts +0 -1
  306. package/js/Private/extension/AgoraMediaBaseExtension.d.ts +0 -1
  307. package/js/Private/extension/AgoraMediaPlayerTypesExtension.d.ts +0 -1
  308. package/js/Private/extension/IAgoraLogExtension.d.ts +0 -1
  309. package/js/Private/extension/IAgoraMediaEngineExtension.d.ts +0 -40
  310. package/js/Private/extension/IAgoraMediaPlayerExtension.d.ts +0 -46
  311. package/js/Private/extension/IAgoraMediaPlayerSourceExtension.d.ts +0 -1
  312. package/js/Private/extension/IAgoraMediaRecorderExtension.d.ts +0 -40
  313. package/js/Private/extension/IAgoraMusicContentCenterExtension.d.ts +0 -20
  314. package/js/Private/extension/IAgoraRhythmPlayerExtension.d.ts +0 -1
  315. package/js/Private/extension/IAgoraRtcEngineExExtension.d.ts +0 -1
  316. package/js/Private/extension/IAgoraRtcEngineExtension.d.ts +0 -42
  317. package/js/Private/extension/IAgoraSpatialAudioExtension.d.ts +0 -1
  318. package/js/Private/extension/IAudioDeviceManagerExtension.d.ts +0 -1
  319. package/js/Private/impl/AgoraBaseImpl.d.ts +0 -2
  320. package/js/Private/impl/AgoraMediaBaseImpl.d.ts +0 -7
  321. package/js/Private/impl/IAgoraMediaEngineImpl.d.ts +0 -43
  322. package/js/Private/impl/IAgoraMediaPlayerImpl.d.ts +0 -141
  323. package/js/Private/impl/IAgoraMediaPlayerSourceImpl.d.ts +0 -2
  324. package/js/Private/impl/IAgoraMediaRecorderImpl.d.ts +0 -13
  325. package/js/Private/impl/IAgoraMusicContentCenterImpl.d.ts +0 -51
  326. package/js/Private/impl/IAgoraRtcEngineExImpl.d.ts +0 -101
  327. package/js/Private/impl/IAgoraRtcEngineImpl.d.ts +0 -566
  328. package/js/Private/impl/IAgoraSpatialAudioImpl.d.ts +0 -48
  329. package/js/Private/impl/IAudioDeviceManagerImpl.d.ts +0 -64
  330. package/js/Private/internal/AudioDeviceManagerInternal.d.ts +0 -8
  331. package/js/Private/internal/IrisApiEngine.d.ts +0 -146
  332. package/js/Private/internal/LocalSpatialAudioEngineInternal.d.ts +0 -18
  333. package/js/Private/internal/MediaEngineInternal.d.ts +0 -21
  334. package/js/Private/internal/MediaPlayerInternal.d.ts +0 -33
  335. package/js/Private/internal/MediaRecorderInternal.d.ts +0 -15
  336. package/js/Private/internal/MusicContentCenterInternal.d.ts +0 -39
  337. package/js/Private/internal/RtcEngineExInternal.d.ts +0 -73
  338. package/js/Private/ti/AgoraBase-ti.d.ts +0 -7
  339. package/js/Private/ti/AgoraMediaBase-ti.d.ts +0 -12
  340. package/js/Private/ti/IAgoraLog-ti.d.ts +0 -6
  341. package/js/Private/ti/IAgoraMediaEngine-ti.d.ts +0 -6
  342. package/js/Private/ti/IAgoraMediaPlayer-ti.d.ts +0 -8
  343. package/js/Private/ti/IAgoraMediaPlayerSource-ti.d.ts +0 -7
  344. package/js/Private/ti/IAgoraMusicContentCenter-ti.d.ts +0 -7
  345. package/js/Private/ti/IAgoraRhythmPlayer-ti.d.ts +0 -6
  346. package/js/Private/ti/IAgoraRtcEngine-ti.d.ts +0 -9
  347. package/js/Private/ti/IAgoraRtcEngineEx-ti.d.ts +0 -6
  348. package/js/Private/ti/IAgoraSpatialAudio-ti.d.ts +0 -6
  349. package/js/Private/ti/IAudioDeviceManager-ti.d.ts +0 -6
  350. package/js/Renderer/AgoraView.d.ts +0 -70
  351. package/js/Renderer/GlRenderer/index.d.ts +0 -59
  352. package/js/Renderer/GlRenderer/webgl-utils.d.ts +0 -0
  353. package/js/Renderer/IRenderer.d.ts +0 -21
  354. package/js/Renderer/RendererManager.d.ts +0 -71
  355. package/js/Renderer/YUVCanvasRenderer/index.d.ts +0 -16
  356. package/js/Types.d.ts +0 -260
  357. package/js/Utils.d.ts +0 -58
  358. /package/ts/Renderer/{GlRenderer → WebGLRenderer}/webgl-utils.js +0 -0
@@ -1,323 +1,353 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IMusicContentCenterImpl = exports.IMusicPlayerImpl = exports.processIMusicContentCenterEventHandler = exports.MusicCollectionImpl = exports.MusicChartCollectionImpl = void 0;
4
- const IrisApiEngine_1 = require("../internal/IrisApiEngine");
5
- const IAgoraMediaPlayerImpl_1 = require("./IAgoraMediaPlayerImpl");
6
- // @ts-ignore
7
- class MusicChartCollectionImpl {
8
- getCount() {
9
- const apiType = this.getApiTypeFromGetCount();
10
- const jsonParams = {};
11
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
12
- return jsonResults.result;
13
- }
14
- getApiTypeFromGetCount() {
15
- return 'MusicChartCollection_getCount';
16
- }
17
- get(index) {
18
- const apiType = this.getApiTypeFromGet(index);
19
- const jsonParams = {
20
- index: index,
21
- toJSON: () => {
22
- return {
23
- index: index,
24
- };
25
- },
26
- };
27
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
28
- return jsonResults.result;
29
- }
30
- getApiTypeFromGet(index) {
31
- return 'MusicChartCollection_get';
32
- }
33
- }
34
- exports.MusicChartCollectionImpl = MusicChartCollectionImpl;
35
- // @ts-ignore
36
- class MusicCollectionImpl {
37
- getCount() {
38
- const apiType = this.getApiTypeFromGetCount();
39
- const jsonParams = {};
40
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
41
- return jsonResults.result;
42
- }
43
- getApiTypeFromGetCount() {
44
- return 'MusicCollection_getCount';
45
- }
46
- getTotal() {
47
- const apiType = this.getApiTypeFromGetTotal();
48
- const jsonParams = {};
49
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
50
- return jsonResults.result;
51
- }
52
- getApiTypeFromGetTotal() {
53
- return 'MusicCollection_getTotal';
54
- }
55
- getPage() {
56
- const apiType = this.getApiTypeFromGetPage();
57
- const jsonParams = {};
58
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
59
- return jsonResults.result;
60
- }
61
- getApiTypeFromGetPage() {
62
- return 'MusicCollection_getPage';
63
- }
64
- getPageSize() {
65
- const apiType = this.getApiTypeFromGetPageSize();
66
- const jsonParams = {};
67
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
68
- return jsonResults.result;
69
- }
70
- getApiTypeFromGetPageSize() {
71
- return 'MusicCollection_getPageSize';
72
- }
73
- getMusic(index) {
74
- const apiType = this.getApiTypeFromGetMusic(index);
75
- const jsonParams = {
76
- index: index,
77
- toJSON: () => {
78
- return {
79
- index: index,
80
- };
81
- },
82
- };
83
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
84
- return jsonResults.result;
85
- }
86
- getApiTypeFromGetMusic(index) {
87
- return 'MusicCollection_getMusic';
88
- }
89
- }
90
- exports.MusicCollectionImpl = MusicCollectionImpl;
91
- function processIMusicContentCenterEventHandler(handler, event, jsonParams) {
92
- switch (event) {
93
- case 'onMusicChartsResult':
94
- if (handler.onMusicChartsResult !== undefined) {
95
- handler.onMusicChartsResult(jsonParams.requestId, jsonParams.status, jsonParams.result);
96
- }
97
- break;
98
- case 'onMusicCollectionResult':
99
- if (handler.onMusicCollectionResult !== undefined) {
100
- handler.onMusicCollectionResult(jsonParams.requestId, jsonParams.status, jsonParams.result);
101
- }
102
- break;
103
- case 'onLyricResult':
104
- if (handler.onLyricResult !== undefined) {
105
- handler.onLyricResult(jsonParams.requestId, jsonParams.lyricUrl);
106
- }
107
- break;
108
- case 'onPreLoadEvent':
109
- if (handler.onPreLoadEvent !== undefined) {
110
- handler.onPreLoadEvent(jsonParams.songCode, jsonParams.percent, jsonParams.status, jsonParams.msg, jsonParams.lyricUrl);
111
- }
112
- break;
113
- }
114
- }
115
- exports.processIMusicContentCenterEventHandler = processIMusicContentCenterEventHandler;
116
- // @ts-ignore
117
- class IMusicPlayerImpl extends IAgoraMediaPlayerImpl_1.IMediaPlayerImpl {
118
- openWithSongCode(songCode, startPos = 0) {
119
- const apiType = this.getApiTypeFromOpenWithSongCode(songCode, startPos);
120
- const jsonParams = {
121
- songCode: songCode,
122
- startPos: startPos,
123
- toJSON: () => {
124
- return {
125
- songCode: songCode,
126
- startPos: startPos,
127
- };
128
- },
129
- };
130
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
131
- return jsonResults.result;
132
- }
133
- getApiTypeFromOpenWithSongCode(songCode, startPos = 0) {
134
- return 'MusicPlayer_openWithSongCode';
135
- }
136
- }
137
- exports.IMusicPlayerImpl = IMusicPlayerImpl;
138
- // @ts-ignore
139
- class IMusicContentCenterImpl {
140
- initialize(configuration) {
141
- const apiType = this.getApiTypeFromInitialize(configuration);
142
- const jsonParams = {
143
- configuration: configuration,
144
- toJSON: () => {
145
- return {
146
- configuration: configuration,
147
- };
148
- },
149
- };
150
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
151
- return jsonResults.result;
152
- }
153
- getApiTypeFromInitialize(configuration) {
154
- return 'MusicContentCenter_initialize';
155
- }
156
- renewToken(token) {
157
- const apiType = this.getApiTypeFromRenewToken(token);
158
- const jsonParams = {
159
- token: token,
160
- toJSON: () => {
161
- return {
162
- token: token,
163
- };
164
- },
165
- };
166
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
167
- return jsonResults.result;
168
- }
169
- getApiTypeFromRenewToken(token) {
170
- return 'MusicContentCenter_renewToken';
171
- }
172
- release() {
173
- const apiType = this.getApiTypeFromRelease();
174
- const jsonParams = {};
175
- IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
176
- }
177
- getApiTypeFromRelease() {
178
- return 'MusicContentCenter_release';
179
- }
180
- registerEventHandler(eventHandler) {
181
- const apiType = this.getApiTypeFromRegisterEventHandler(eventHandler);
182
- const jsonParams = {
183
- eventHandler: eventHandler,
184
- toJSON: () => {
185
- return {};
186
- },
187
- };
188
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
189
- return jsonResults.result;
190
- }
191
- getApiTypeFromRegisterEventHandler(eventHandler) {
192
- return 'MusicContentCenter_registerEventHandler';
193
- }
194
- unregisterEventHandler() {
195
- const apiType = this.getApiTypeFromUnregisterEventHandler();
196
- const jsonParams = {};
197
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
198
- return jsonResults.result;
199
- }
200
- getApiTypeFromUnregisterEventHandler() {
201
- return 'MusicContentCenter_unregisterEventHandler';
202
- }
203
- createMusicPlayer() {
204
- const apiType = this.getApiTypeFromCreateMusicPlayer();
205
- const jsonParams = {};
206
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
207
- return jsonResults.result;
208
- }
209
- getApiTypeFromCreateMusicPlayer() {
210
- return 'MusicContentCenter_createMusicPlayer';
211
- }
212
- getMusicCharts() {
213
- const apiType = this.getApiTypeFromGetMusicCharts();
214
- const jsonParams = {};
215
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
216
- const requestId = jsonResults.requestId;
217
- return requestId;
218
- }
219
- getApiTypeFromGetMusicCharts() {
220
- return 'MusicContentCenter_getMusicCharts';
221
- }
222
- getMusicCollectionByMusicChartId(musicChartId, page, pageSize, jsonOption) {
223
- const apiType = this.getApiTypeFromGetMusicCollectionByMusicChartId(musicChartId, page, pageSize, jsonOption);
224
- const jsonParams = {
225
- musicChartId: musicChartId,
226
- page: page,
227
- pageSize: pageSize,
228
- jsonOption: jsonOption,
229
- toJSON: () => {
230
- return {
231
- musicChartId: musicChartId,
232
- page: page,
233
- pageSize: pageSize,
234
- jsonOption: jsonOption,
235
- };
236
- },
237
- };
238
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
239
- const requestId = jsonResults.requestId;
240
- return requestId;
241
- }
242
- getApiTypeFromGetMusicCollectionByMusicChartId(musicChartId, page, pageSize, jsonOption) {
243
- return 'MusicContentCenter_getMusicCollectionByMusicChartId';
244
- }
245
- searchMusic(requestId, keyWord, page, pageSize, jsonOption) {
246
- const apiType = this.getApiTypeFromSearchMusic(requestId, keyWord, page, pageSize, jsonOption);
247
- const jsonParams = {
248
- requestId: requestId,
249
- keyWord: keyWord,
250
- page: page,
251
- pageSize: pageSize,
252
- jsonOption: jsonOption,
253
- toJSON: () => {
254
- return {
255
- requestId: requestId,
256
- keyWord: keyWord,
257
- page: page,
258
- pageSize: pageSize,
259
- jsonOption: jsonOption,
260
- };
261
- },
262
- };
263
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
264
- return jsonResults.result;
265
- }
266
- getApiTypeFromSearchMusic(requestId, keyWord, page, pageSize, jsonOption) {
267
- return 'MusicContentCenter_searchMusic';
268
- }
269
- preload(songCode, jsonOption) {
270
- const apiType = this.getApiTypeFromPreload(songCode, jsonOption);
271
- const jsonParams = {
272
- songCode: songCode,
273
- jsonOption: jsonOption,
274
- toJSON: () => {
275
- return {
276
- songCode: songCode,
277
- jsonOption: jsonOption,
278
- };
279
- },
280
- };
281
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
282
- return jsonResults.result;
283
- }
284
- getApiTypeFromPreload(songCode, jsonOption) {
285
- return 'MusicContentCenter_preload';
286
- }
287
- isPreloaded(songCode) {
288
- const apiType = this.getApiTypeFromIsPreloaded(songCode);
289
- const jsonParams = {
290
- songCode: songCode,
291
- toJSON: () => {
292
- return {
293
- songCode: songCode,
294
- };
295
- },
296
- };
297
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
298
- return jsonResults.result;
299
- }
300
- getApiTypeFromIsPreloaded(songCode) {
301
- return 'MusicContentCenter_isPreloaded';
302
- }
303
- getLyric(songCode, lyricType = 0) {
304
- const apiType = this.getApiTypeFromGetLyric(songCode, lyricType);
305
- const jsonParams = {
306
- songCode: songCode,
307
- LyricType: lyricType,
308
- toJSON: () => {
309
- return {
310
- songCode: songCode,
311
- LyricType: lyricType,
312
- };
313
- },
314
- };
315
- const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
316
- const requestId = jsonResults.requestId;
317
- return requestId;
318
- }
319
- getApiTypeFromGetLyric(songCode, lyricType = 0) {
320
- return 'MusicContentCenter_getLyric';
321
- }
322
- }
323
- exports.IMusicContentCenterImpl = IMusicContentCenterImpl;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IMusicContentCenterImpl = exports.IMusicPlayerImpl = exports.processIMusicContentCenterEventHandler = exports.MusicCollectionImpl = exports.MusicChartCollectionImpl = void 0;
4
+ const IAgoraMediaPlayerImpl_1 = require("./IAgoraMediaPlayerImpl");
5
+ // @ts-ignore
6
+ class MusicChartCollectionImpl {
7
+ getCount() {
8
+ const apiType = this.getApiTypeFromGetCount();
9
+ const jsonParams = {};
10
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
11
+ return jsonResults.result;
12
+ }
13
+ getApiTypeFromGetCount() {
14
+ return 'MusicChartCollection_getCount';
15
+ }
16
+ get(index) {
17
+ const apiType = this.getApiTypeFromGet(index);
18
+ const jsonParams = {
19
+ index: index,
20
+ toJSON: () => {
21
+ return {
22
+ index: index,
23
+ };
24
+ },
25
+ };
26
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
27
+ return jsonResults.result;
28
+ }
29
+ getApiTypeFromGet(index) {
30
+ return 'MusicChartCollection_get';
31
+ }
32
+ }
33
+ exports.MusicChartCollectionImpl = MusicChartCollectionImpl;
34
+ // @ts-ignore
35
+ class MusicCollectionImpl {
36
+ getCount() {
37
+ const apiType = this.getApiTypeFromGetCount();
38
+ const jsonParams = {};
39
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
40
+ return jsonResults.result;
41
+ }
42
+ getApiTypeFromGetCount() {
43
+ return 'MusicCollection_getCount';
44
+ }
45
+ getTotal() {
46
+ const apiType = this.getApiTypeFromGetTotal();
47
+ const jsonParams = {};
48
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
49
+ return jsonResults.result;
50
+ }
51
+ getApiTypeFromGetTotal() {
52
+ return 'MusicCollection_getTotal';
53
+ }
54
+ getPage() {
55
+ const apiType = this.getApiTypeFromGetPage();
56
+ const jsonParams = {};
57
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
58
+ return jsonResults.result;
59
+ }
60
+ getApiTypeFromGetPage() {
61
+ return 'MusicCollection_getPage';
62
+ }
63
+ getPageSize() {
64
+ const apiType = this.getApiTypeFromGetPageSize();
65
+ const jsonParams = {};
66
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
67
+ return jsonResults.result;
68
+ }
69
+ getApiTypeFromGetPageSize() {
70
+ return 'MusicCollection_getPageSize';
71
+ }
72
+ getMusic(index) {
73
+ const apiType = this.getApiTypeFromGetMusic(index);
74
+ const jsonParams = {
75
+ index: index,
76
+ toJSON: () => {
77
+ return {
78
+ index: index,
79
+ };
80
+ },
81
+ };
82
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
83
+ return jsonResults.result;
84
+ }
85
+ getApiTypeFromGetMusic(index) {
86
+ return 'MusicCollection_getMusic';
87
+ }
88
+ }
89
+ exports.MusicCollectionImpl = MusicCollectionImpl;
90
+ function processIMusicContentCenterEventHandler(handler, event, jsonParams) {
91
+ switch (event) {
92
+ case 'onMusicChartsResult':
93
+ if (handler.onMusicChartsResult !== undefined) {
94
+ handler.onMusicChartsResult(jsonParams.requestId, jsonParams.result, jsonParams.error_code);
95
+ }
96
+ break;
97
+ case 'onMusicCollectionResult':
98
+ if (handler.onMusicCollectionResult !== undefined) {
99
+ handler.onMusicCollectionResult(jsonParams.requestId, jsonParams.result, jsonParams.error_code);
100
+ }
101
+ break;
102
+ case 'onLyricResult':
103
+ if (handler.onLyricResult !== undefined) {
104
+ handler.onLyricResult(jsonParams.requestId, jsonParams.lyricUrl, jsonParams.error_code);
105
+ }
106
+ break;
107
+ case 'onPreLoadEvent':
108
+ if (handler.onPreLoadEvent !== undefined) {
109
+ handler.onPreLoadEvent(jsonParams.songCode, jsonParams.percent, jsonParams.lyricUrl, jsonParams.status, jsonParams.error_code);
110
+ }
111
+ break;
112
+ }
113
+ }
114
+ exports.processIMusicContentCenterEventHandler = processIMusicContentCenterEventHandler;
115
+ // @ts-ignore
116
+ class IMusicPlayerImpl extends IAgoraMediaPlayerImpl_1.IMediaPlayerImpl {
117
+ openWithSongCode(songCode, startPos = 0) {
118
+ const apiType = this.getApiTypeFromOpenWithSongCode(songCode, startPos);
119
+ const jsonParams = {
120
+ songCode: songCode,
121
+ startPos: startPos,
122
+ toJSON: () => {
123
+ return {
124
+ songCode: songCode,
125
+ startPos: startPos,
126
+ };
127
+ },
128
+ };
129
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
130
+ return jsonResults.result;
131
+ }
132
+ getApiTypeFromOpenWithSongCode(songCode, startPos = 0) {
133
+ return 'MusicPlayer_openWithSongCode';
134
+ }
135
+ }
136
+ exports.IMusicPlayerImpl = IMusicPlayerImpl;
137
+ // @ts-ignore
138
+ class IMusicContentCenterImpl {
139
+ initialize(configuration) {
140
+ const apiType = this.getApiTypeFromInitialize(configuration);
141
+ const jsonParams = {
142
+ configuration: configuration,
143
+ toJSON: () => {
144
+ return {
145
+ configuration: configuration,
146
+ };
147
+ },
148
+ };
149
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
150
+ return jsonResults.result;
151
+ }
152
+ getApiTypeFromInitialize(configuration) {
153
+ return 'MusicContentCenter_initialize';
154
+ }
155
+ renewToken(token) {
156
+ const apiType = this.getApiTypeFromRenewToken(token);
157
+ const jsonParams = {
158
+ token: token,
159
+ toJSON: () => {
160
+ return {
161
+ token: token,
162
+ };
163
+ },
164
+ };
165
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
166
+ return jsonResults.result;
167
+ }
168
+ getApiTypeFromRenewToken(token) {
169
+ return 'MusicContentCenter_renewToken';
170
+ }
171
+ release() {
172
+ const apiType = this.getApiTypeFromRelease();
173
+ const jsonParams = {};
174
+ IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
175
+ }
176
+ getApiTypeFromRelease() {
177
+ return 'MusicContentCenter_release';
178
+ }
179
+ registerEventHandler(eventHandler) {
180
+ const apiType = this.getApiTypeFromRegisterEventHandler(eventHandler);
181
+ const jsonParams = {
182
+ eventHandler: eventHandler,
183
+ toJSON: () => {
184
+ return {};
185
+ },
186
+ };
187
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
188
+ return jsonResults.result;
189
+ }
190
+ getApiTypeFromRegisterEventHandler(eventHandler) {
191
+ return 'MusicContentCenter_registerEventHandler';
192
+ }
193
+ unregisterEventHandler() {
194
+ const apiType = this.getApiTypeFromUnregisterEventHandler();
195
+ const jsonParams = {};
196
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
197
+ return jsonResults.result;
198
+ }
199
+ getApiTypeFromUnregisterEventHandler() {
200
+ return 'MusicContentCenter_unregisterEventHandler';
201
+ }
202
+ createMusicPlayer() {
203
+ const apiType = this.getApiTypeFromCreateMusicPlayer();
204
+ const jsonParams = {};
205
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
206
+ return jsonResults.result;
207
+ }
208
+ getApiTypeFromCreateMusicPlayer() {
209
+ return 'MusicContentCenter_createMusicPlayer';
210
+ }
211
+ getMusicCharts() {
212
+ const apiType = this.getApiTypeFromGetMusicCharts();
213
+ const jsonParams = {};
214
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
215
+ const requestId = jsonResults.requestId;
216
+ return requestId;
217
+ }
218
+ getApiTypeFromGetMusicCharts() {
219
+ return 'MusicContentCenter_getMusicCharts';
220
+ }
221
+ getMusicCollectionByMusicChartId(musicChartId, page, pageSize, jsonOption) {
222
+ const apiType = this.getApiTypeFromGetMusicCollectionByMusicChartId(musicChartId, page, pageSize, jsonOption);
223
+ const jsonParams = {
224
+ musicChartId: musicChartId,
225
+ page: page,
226
+ pageSize: pageSize,
227
+ jsonOption: jsonOption,
228
+ toJSON: () => {
229
+ return {
230
+ musicChartId: musicChartId,
231
+ page: page,
232
+ pageSize: pageSize,
233
+ jsonOption: jsonOption,
234
+ };
235
+ },
236
+ };
237
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
238
+ const requestId = jsonResults.requestId;
239
+ return requestId;
240
+ }
241
+ getApiTypeFromGetMusicCollectionByMusicChartId(musicChartId, page, pageSize, jsonOption) {
242
+ return 'MusicContentCenter_getMusicCollectionByMusicChartId';
243
+ }
244
+ searchMusic(requestId, keyWord, page, pageSize, jsonOption) {
245
+ const apiType = this.getApiTypeFromSearchMusic(requestId, keyWord, page, pageSize, jsonOption);
246
+ const jsonParams = {
247
+ requestId: requestId,
248
+ keyWord: keyWord,
249
+ page: page,
250
+ pageSize: pageSize,
251
+ jsonOption: jsonOption,
252
+ toJSON: () => {
253
+ return {
254
+ requestId: requestId,
255
+ keyWord: keyWord,
256
+ page: page,
257
+ pageSize: pageSize,
258
+ jsonOption: jsonOption,
259
+ };
260
+ },
261
+ };
262
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
263
+ return jsonResults.result;
264
+ }
265
+ getApiTypeFromSearchMusic(requestId, keyWord, page, pageSize, jsonOption) {
266
+ return 'MusicContentCenter_searchMusic';
267
+ }
268
+ preload(songCode, jsonOption) {
269
+ const apiType = this.getApiTypeFromPreload(songCode, jsonOption);
270
+ const jsonParams = {
271
+ songCode: songCode,
272
+ jsonOption: jsonOption,
273
+ toJSON: () => {
274
+ return {
275
+ songCode: songCode,
276
+ jsonOption: jsonOption,
277
+ };
278
+ },
279
+ };
280
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
281
+ return jsonResults.result;
282
+ }
283
+ getApiTypeFromPreload(songCode, jsonOption) {
284
+ return 'MusicContentCenter_preload';
285
+ }
286
+ removeCache(songCode) {
287
+ const apiType = this.getApiTypeFromRemoveCache(songCode);
288
+ const jsonParams = {
289
+ songCode: songCode,
290
+ toJSON: () => {
291
+ return {
292
+ songCode: songCode,
293
+ };
294
+ },
295
+ };
296
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
297
+ return jsonResults.result;
298
+ }
299
+ getApiTypeFromRemoveCache(songCode) {
300
+ return 'MusicContentCenter_removeCache';
301
+ }
302
+ getCaches() {
303
+ const apiType = this.getApiTypeFromGetCaches();
304
+ const jsonParams = {};
305
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
306
+ const cacheInfo = jsonResults.cacheInfo;
307
+ const cacheInfoSize = jsonResults.cacheInfoSize;
308
+ return {
309
+ cacheInfo,
310
+ cacheInfoSize,
311
+ };
312
+ }
313
+ getApiTypeFromGetCaches() {
314
+ return 'MusicContentCenter_getCaches';
315
+ }
316
+ isPreloaded(songCode) {
317
+ const apiType = this.getApiTypeFromIsPreloaded(songCode);
318
+ const jsonParams = {
319
+ songCode: songCode,
320
+ toJSON: () => {
321
+ return {
322
+ songCode: songCode,
323
+ };
324
+ },
325
+ };
326
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
327
+ return jsonResults.result;
328
+ }
329
+ getApiTypeFromIsPreloaded(songCode) {
330
+ return 'MusicContentCenter_isPreloaded';
331
+ }
332
+ getLyric(songCode, lyricType = 0) {
333
+ const apiType = this.getApiTypeFromGetLyric(songCode, lyricType);
334
+ const jsonParams = {
335
+ songCode: songCode,
336
+ LyricType: lyricType,
337
+ toJSON: () => {
338
+ return {
339
+ songCode: songCode,
340
+ LyricType: lyricType,
341
+ };
342
+ },
343
+ };
344
+ const jsonResults = IrisApiEngine_1.callIrisApi.call(this, apiType, jsonParams);
345
+ const requestId = jsonResults.requestId;
346
+ return requestId;
347
+ }
348
+ getApiTypeFromGetLyric(songCode, lyricType = 0) {
349
+ return 'MusicContentCenter_getLyric';
350
+ }
351
+ }
352
+ exports.IMusicContentCenterImpl = IMusicContentCenterImpl;
353
+ const IrisApiEngine_1 = require("../internal/IrisApiEngine");