react-native-shengwang 4.6.2-rc.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.
- package/CHANGELOG.md +755 -0
- package/LICENSE +20 -0
- package/README.md +162 -0
- package/android/build.gradle +180 -0
- package/android/consumer-rules.pro +5 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +11 -0
- package/android/src/main/AndroidManifestNew.xml +9 -0
- package/android/src/main/java/io/agora/rtc/ng/react/AgoraPIPActivity.java +107 -0
- package/android/src/main/java/io/agora/rtc/ng/react/AgoraRtcNgModule.java +278 -0
- package/android/src/main/java/io/agora/rtc/ng/react/AgoraRtcNgPackage.java +61 -0
- package/android/src/main/java/io/agora/rtc/ng/react/AgoraRtcSurfaceViewManager.java +60 -0
- package/android/src/main/java/io/agora/rtc/ng/react/AgoraRtcTextureViewManager.java +45 -0
- package/android/src/newarch/io/agora/rtc/ng/react/AgoraRtcNgSpec.java +9 -0
- package/android/src/newarch/io/agora/rtc/ng/react/AgoraRtcSurfaceViewManagerSpec.java +25 -0
- package/android/src/newarch/io/agora/rtc/ng/react/AgoraRtcTextureViewManagerSpec.java +25 -0
- package/android/src/oldarch/io/agora/rtc/ng/react/AgoraRtcNgSpec.java +40 -0
- package/android/src/oldarch/io/agora/rtc/ng/react/AgoraRtcSurfaceViewManagerSpec.java +16 -0
- package/android/src/oldarch/io/agora/rtc/ng/react/AgoraRtcTextureViewManagerSpec.java +12 -0
- package/ios/AgoraRtcNg.h +20 -0
- package/ios/AgoraRtcNg.mm +475 -0
- package/ios/AgoraRtcNg.xcodeproj/project.pbxproj +278 -0
- package/ios/AgoraRtcSurfaceView.h +17 -0
- package/ios/AgoraRtcSurfaceView.mm +95 -0
- package/ios/AgoraRtcSurfaceViewManager.mm +41 -0
- package/lib/commonjs/AgoraBase.js +4298 -0
- package/lib/commonjs/AgoraBase.js.map +1 -0
- package/lib/commonjs/AgoraMediaBase.js +1057 -0
- package/lib/commonjs/AgoraMediaBase.js.map +1 -0
- package/lib/commonjs/AgoraMediaPlayerTypes.js +323 -0
- package/lib/commonjs/AgoraMediaPlayerTypes.js.map +1 -0
- package/lib/commonjs/AgoraRtcRenderView.js +55 -0
- package/lib/commonjs/AgoraRtcRenderView.js.map +1 -0
- package/lib/commonjs/IAgoraH265Transcoder.js +40 -0
- package/lib/commonjs/IAgoraH265Transcoder.js.map +1 -0
- package/lib/commonjs/IAgoraLog.js +81 -0
- package/lib/commonjs/IAgoraLog.js.map +1 -0
- package/lib/commonjs/IAgoraMediaEngine.js +35 -0
- package/lib/commonjs/IAgoraMediaEngine.js.map +1 -0
- package/lib/commonjs/IAgoraMediaPlayer.js +25 -0
- package/lib/commonjs/IAgoraMediaPlayer.js.map +1 -0
- package/lib/commonjs/IAgoraMediaPlayerSource.js +4 -0
- package/lib/commonjs/IAgoraMediaPlayerSource.js.map +1 -0
- package/lib/commonjs/IAgoraMediaRecorder.js +13 -0
- package/lib/commonjs/IAgoraMediaRecorder.js.map +1 -0
- package/lib/commonjs/IAgoraMediaStreamingSource.js +77 -0
- package/lib/commonjs/IAgoraMediaStreamingSource.js.map +1 -0
- package/lib/commonjs/IAgoraMusicContentCenter.js +166 -0
- package/lib/commonjs/IAgoraMusicContentCenter.js.map +1 -0
- package/lib/commonjs/IAgoraPip.js +55 -0
- package/lib/commonjs/IAgoraPip.js.map +1 -0
- package/lib/commonjs/IAgoraRhythmPlayer.js +65 -0
- package/lib/commonjs/IAgoraRhythmPlayer.js.map +1 -0
- package/lib/commonjs/IAgoraRtcEngine.js +1056 -0
- package/lib/commonjs/IAgoraRtcEngine.js.map +1 -0
- package/lib/commonjs/IAgoraRtcEngineEx.js +22 -0
- package/lib/commonjs/IAgoraRtcEngineEx.js.map +1 -0
- package/lib/commonjs/IAgoraSpatialAudio.js +27 -0
- package/lib/commonjs/IAgoraSpatialAudio.js.map +1 -0
- package/lib/commonjs/IAudioDeviceManager.js +23 -0
- package/lib/commonjs/IAudioDeviceManager.js.map +1 -0
- package/lib/commonjs/Utils.js +44 -0
- package/lib/commonjs/Utils.js.map +1 -0
- package/lib/commonjs/extension/AgoraBaseExtension.js +6 -0
- package/lib/commonjs/extension/AgoraBaseExtension.js.map +1 -0
- package/lib/commonjs/extension/AgoraMediaBaseExtension.js +6 -0
- package/lib/commonjs/extension/AgoraMediaBaseExtension.js.map +1 -0
- package/lib/commonjs/extension/AgoraMediaPlayerTypesExtension.js +6 -0
- package/lib/commonjs/extension/AgoraMediaPlayerTypesExtension.js.map +1 -0
- package/lib/commonjs/extension/IAgoraH265TranscoderExtension.js +6 -0
- package/lib/commonjs/extension/IAgoraH265TranscoderExtension.js.map +1 -0
- package/lib/commonjs/extension/IAgoraLogExtension.js +6 -0
- package/lib/commonjs/extension/IAgoraLogExtension.js.map +1 -0
- package/lib/commonjs/extension/IAgoraMediaEngineExtension.js +6 -0
- package/lib/commonjs/extension/IAgoraMediaEngineExtension.js.map +1 -0
- package/lib/commonjs/extension/IAgoraMediaPlayerExtension.js +6 -0
- package/lib/commonjs/extension/IAgoraMediaPlayerExtension.js.map +1 -0
- package/lib/commonjs/extension/IAgoraMediaPlayerSourceExtension.js +6 -0
- package/lib/commonjs/extension/IAgoraMediaPlayerSourceExtension.js.map +1 -0
- package/lib/commonjs/extension/IAgoraMediaRecorderExtension.js +6 -0
- package/lib/commonjs/extension/IAgoraMediaRecorderExtension.js.map +1 -0
- package/lib/commonjs/extension/IAgoraMusicContentCenterExtension.js +6 -0
- package/lib/commonjs/extension/IAgoraMusicContentCenterExtension.js.map +1 -0
- package/lib/commonjs/extension/IAgoraPipExtension.js +6 -0
- package/lib/commonjs/extension/IAgoraPipExtension.js.map +1 -0
- package/lib/commonjs/extension/IAgoraRhythmPlayerExtension.js +6 -0
- package/lib/commonjs/extension/IAgoraRhythmPlayerExtension.js.map +1 -0
- package/lib/commonjs/extension/IAgoraRtcEngineExExtension.js +6 -0
- package/lib/commonjs/extension/IAgoraRtcEngineExExtension.js.map +1 -0
- package/lib/commonjs/extension/IAgoraRtcEngineExtension.js +6 -0
- package/lib/commonjs/extension/IAgoraRtcEngineExtension.js.map +1 -0
- package/lib/commonjs/extension/IAgoraSpatialAudioExtension.js +6 -0
- package/lib/commonjs/extension/IAgoraSpatialAudioExtension.js.map +1 -0
- package/lib/commonjs/extension/IAudioDeviceManagerExtension.js +6 -0
- package/lib/commonjs/extension/IAudioDeviceManagerExtension.js.map +1 -0
- package/lib/commonjs/impl/AgoraBaseImpl.js +26 -0
- package/lib/commonjs/impl/AgoraBaseImpl.js.map +1 -0
- package/lib/commonjs/impl/AgoraMediaBaseImpl.js +153 -0
- package/lib/commonjs/impl/AgoraMediaBaseImpl.js.map +1 -0
- package/lib/commonjs/impl/IAgoraH265TranscoderImpl.js +121 -0
- package/lib/commonjs/impl/IAgoraH265TranscoderImpl.js.map +1 -0
- package/lib/commonjs/impl/IAgoraMediaEngineImpl.js +341 -0
- package/lib/commonjs/impl/IAgoraMediaEngineImpl.js.map +1 -0
- package/lib/commonjs/impl/IAgoraMediaPlayerImpl.js +965 -0
- package/lib/commonjs/impl/IAgoraMediaPlayerImpl.js.map +1 -0
- package/lib/commonjs/impl/IAgoraMediaPlayerSourceImpl.js +76 -0
- package/lib/commonjs/impl/IAgoraMediaPlayerSourceImpl.js.map +1 -0
- package/lib/commonjs/impl/IAgoraMediaRecorderImpl.js +51 -0
- package/lib/commonjs/impl/IAgoraMediaRecorderImpl.js.map +1 -0
- package/lib/commonjs/impl/IAgoraMusicContentCenterImpl.js +429 -0
- package/lib/commonjs/impl/IAgoraMusicContentCenterImpl.js.map +1 -0
- package/lib/commonjs/impl/IAgoraRtcEngineExImpl.js +1182 -0
- package/lib/commonjs/impl/IAgoraRtcEngineExImpl.js.map +1 -0
- package/lib/commonjs/impl/IAgoraRtcEngineImpl.js +5435 -0
- package/lib/commonjs/impl/IAgoraRtcEngineImpl.js.map +1 -0
- package/lib/commonjs/impl/IAgoraSpatialAudioImpl.js +362 -0
- package/lib/commonjs/impl/IAgoraSpatialAudioImpl.js.map +1 -0
- package/lib/commonjs/impl/IAudioDeviceManagerImpl.js +379 -0
- package/lib/commonjs/impl/IAudioDeviceManagerImpl.js.map +1 -0
- package/lib/commonjs/index.js +255 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/internal/AgoraH265TranscoderInternal.js +66 -0
- package/lib/commonjs/internal/AgoraH265TranscoderInternal.js.map +1 -0
- package/lib/commonjs/internal/AgoraMediaBaseInternal.js +20 -0
- package/lib/commonjs/internal/AgoraMediaBaseInternal.js.map +1 -0
- package/lib/commonjs/internal/AgoraPipInternal.js +101 -0
- package/lib/commonjs/internal/AgoraPipInternal.js.map +1 -0
- package/lib/commonjs/internal/IAgoraRtcRenderView.js +72 -0
- package/lib/commonjs/internal/IAgoraRtcRenderView.js.map +1 -0
- package/lib/commonjs/internal/IrisApiEngine.js +259 -0
- package/lib/commonjs/internal/IrisApiEngine.js.map +1 -0
- package/lib/commonjs/internal/LocalSpatialAudioEngineInternal.js +10 -0
- package/lib/commonjs/internal/LocalSpatialAudioEngineInternal.js.map +1 -0
- package/lib/commonjs/internal/MediaEngineInternal.js +124 -0
- package/lib/commonjs/internal/MediaEngineInternal.js.map +1 -0
- package/lib/commonjs/internal/MediaPlayerInternal.js +170 -0
- package/lib/commonjs/internal/MediaPlayerInternal.js.map +1 -0
- package/lib/commonjs/internal/MediaRecorderInternal.js +75 -0
- package/lib/commonjs/internal/MediaRecorderInternal.js.map +1 -0
- package/lib/commonjs/internal/MusicContentCenterInternal.js +144 -0
- package/lib/commonjs/internal/MusicContentCenterInternal.js.map +1 -0
- package/lib/commonjs/internal/RtcEngineExInternal.js +258 -0
- package/lib/commonjs/internal/RtcEngineExInternal.js.map +1 -0
- package/lib/commonjs/internal/call.js +133 -0
- package/lib/commonjs/internal/call.js.map +1 -0
- package/lib/commonjs/internal/event.js +32 -0
- package/lib/commonjs/internal/event.js.map +1 -0
- package/lib/commonjs/specs/AgoraRtcSurfaceViewNativeComponent.js +10 -0
- package/lib/commonjs/specs/AgoraRtcSurfaceViewNativeComponent.js.map +1 -0
- package/lib/commonjs/specs/AgoraRtcTextureViewNativeComponent.js +10 -0
- package/lib/commonjs/specs/AgoraRtcTextureViewNativeComponent.js.map +1 -0
- package/lib/commonjs/specs/NativeAgoraRtcNg.js +9 -0
- package/lib/commonjs/specs/NativeAgoraRtcNg.js.map +1 -0
- package/lib/commonjs/specs/index.js +22 -0
- package/lib/commonjs/specs/index.js.map +1 -0
- package/lib/commonjs/ti/AgoraBase-ti.js +24 -0
- package/lib/commonjs/ti/AgoraBase-ti.js.map +1 -0
- package/lib/commonjs/ti/AgoraMediaBase-ti.js +59 -0
- package/lib/commonjs/ti/AgoraMediaBase-ti.js.map +1 -0
- package/lib/commonjs/ti/AgoraMediaPlayerTypes-ti.js +15 -0
- package/lib/commonjs/ti/AgoraMediaPlayerTypes-ti.js.map +1 -0
- package/lib/commonjs/ti/AgoraPip-ti.js +22 -0
- package/lib/commonjs/ti/AgoraPip-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraH265Transcoder-ti.js +24 -0
- package/lib/commonjs/ti/IAgoraH265Transcoder-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraLog-ti.js +15 -0
- package/lib/commonjs/ti/IAgoraLog-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraMediaEngine-ti.js +15 -0
- package/lib/commonjs/ti/IAgoraMediaEngine-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraMediaPlayer-ti.js +22 -0
- package/lib/commonjs/ti/IAgoraMediaPlayer-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraMediaPlayerSource-ti.js +34 -0
- package/lib/commonjs/ti/IAgoraMediaPlayerSource-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraMediaRecorder-ti.js +15 -0
- package/lib/commonjs/ti/IAgoraMediaRecorder-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraMediaStreamingSource-ti.js +15 -0
- package/lib/commonjs/ti/IAgoraMediaStreamingSource-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraMusicContentCenter-ti.js +26 -0
- package/lib/commonjs/ti/IAgoraMusicContentCenter-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraPip-ti.js +22 -0
- package/lib/commonjs/ti/IAgoraPip-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraRhythmPlayer-ti.js +15 -0
- package/lib/commonjs/ti/IAgoraRhythmPlayer-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraRtcEngine-ti.js +128 -0
- package/lib/commonjs/ti/IAgoraRtcEngine-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraRtcEngineEx-ti.js +15 -0
- package/lib/commonjs/ti/IAgoraRtcEngineEx-ti.js.map +1 -0
- package/lib/commonjs/ti/IAgoraSpatialAudio-ti.js +15 -0
- package/lib/commonjs/ti/IAgoraSpatialAudio-ti.js.map +1 -0
- package/lib/commonjs/ti/IAudioDeviceManager-ti.js +15 -0
- package/lib/commonjs/ti/IAudioDeviceManager-ti.js.map +1 -0
- package/lib/commonjs/ti/Utils-ti.js +15 -0
- package/lib/commonjs/ti/Utils-ti.js.map +1 -0
- package/lib/commonjs/ti/index-ti.js +15 -0
- package/lib/commonjs/ti/index-ti.js.map +1 -0
- package/lib/module/AgoraBase.js +4333 -0
- package/lib/module/AgoraBase.js.map +1 -0
- package/lib/module/AgoraMediaBase.js +1067 -0
- package/lib/module/AgoraMediaBase.js.map +1 -0
- package/lib/module/AgoraMediaPlayerTypes.js +318 -0
- package/lib/module/AgoraMediaPlayerTypes.js.map +1 -0
- package/lib/module/AgoraRtcRenderView.js +47 -0
- package/lib/module/AgoraRtcRenderView.js.map +1 -0
- package/lib/module/IAgoraH265Transcoder.js +36 -0
- package/lib/module/IAgoraH265Transcoder.js.map +1 -0
- package/lib/module/IAgoraLog.js +77 -0
- package/lib/module/IAgoraLog.js.map +1 -0
- package/lib/module/IAgoraMediaEngine.js +29 -0
- package/lib/module/IAgoraMediaEngine.js.map +1 -0
- package/lib/module/IAgoraMediaPlayer.js +17 -0
- package/lib/module/IAgoraMediaPlayer.js.map +1 -0
- package/lib/module/IAgoraMediaPlayerSource.js +6 -0
- package/lib/module/IAgoraMediaPlayerSource.js.map +1 -0
- package/lib/module/IAgoraMediaRecorder.js +6 -0
- package/lib/module/IAgoraMediaRecorder.js.map +1 -0
- package/lib/module/IAgoraMediaStreamingSource.js +73 -0
- package/lib/module/IAgoraMediaStreamingSource.js.map +1 -0
- package/lib/module/IAgoraMusicContentCenter.js +156 -0
- package/lib/module/IAgoraMusicContentCenter.js.map +1 -0
- package/lib/module/IAgoraPip.js +48 -0
- package/lib/module/IAgoraPip.js.map +1 -0
- package/lib/module/IAgoraRhythmPlayer.js +61 -0
- package/lib/module/IAgoraRhythmPlayer.js.map +1 -0
- package/lib/module/IAgoraRtcEngine.js +1049 -0
- package/lib/module/IAgoraRtcEngine.js.map +1 -0
- package/lib/module/IAgoraRtcEngineEx.js +15 -0
- package/lib/module/IAgoraRtcEngineEx.js.map +1 -0
- package/lib/module/IAgoraSpatialAudio.js +18 -0
- package/lib/module/IAgoraSpatialAudio.js.map +1 -0
- package/lib/module/IAudioDeviceManager.js +17 -0
- package/lib/module/IAudioDeviceManager.js.map +1 -0
- package/lib/module/Utils.js +35 -0
- package/lib/module/Utils.js.map +1 -0
- package/lib/module/extension/AgoraBaseExtension.js +2 -0
- package/lib/module/extension/AgoraBaseExtension.js.map +1 -0
- package/lib/module/extension/AgoraMediaBaseExtension.js +2 -0
- package/lib/module/extension/AgoraMediaBaseExtension.js.map +1 -0
- package/lib/module/extension/AgoraMediaPlayerTypesExtension.js +2 -0
- package/lib/module/extension/AgoraMediaPlayerTypesExtension.js.map +1 -0
- package/lib/module/extension/IAgoraH265TranscoderExtension.js +2 -0
- package/lib/module/extension/IAgoraH265TranscoderExtension.js.map +1 -0
- package/lib/module/extension/IAgoraLogExtension.js +2 -0
- package/lib/module/extension/IAgoraLogExtension.js.map +1 -0
- package/lib/module/extension/IAgoraMediaEngineExtension.js +2 -0
- package/lib/module/extension/IAgoraMediaEngineExtension.js.map +1 -0
- package/lib/module/extension/IAgoraMediaPlayerExtension.js +2 -0
- package/lib/module/extension/IAgoraMediaPlayerExtension.js.map +1 -0
- package/lib/module/extension/IAgoraMediaPlayerSourceExtension.js +2 -0
- package/lib/module/extension/IAgoraMediaPlayerSourceExtension.js.map +1 -0
- package/lib/module/extension/IAgoraMediaRecorderExtension.js +2 -0
- package/lib/module/extension/IAgoraMediaRecorderExtension.js.map +1 -0
- package/lib/module/extension/IAgoraMusicContentCenterExtension.js +2 -0
- package/lib/module/extension/IAgoraMusicContentCenterExtension.js.map +1 -0
- package/lib/module/extension/IAgoraPipExtension.js +2 -0
- package/lib/module/extension/IAgoraPipExtension.js.map +1 -0
- package/lib/module/extension/IAgoraRhythmPlayerExtension.js +2 -0
- package/lib/module/extension/IAgoraRhythmPlayerExtension.js.map +1 -0
- package/lib/module/extension/IAgoraRtcEngineExExtension.js +2 -0
- package/lib/module/extension/IAgoraRtcEngineExExtension.js.map +1 -0
- package/lib/module/extension/IAgoraRtcEngineExtension.js +2 -0
- package/lib/module/extension/IAgoraRtcEngineExtension.js.map +1 -0
- package/lib/module/extension/IAgoraSpatialAudioExtension.js +2 -0
- package/lib/module/extension/IAgoraSpatialAudioExtension.js.map +1 -0
- package/lib/module/extension/IAudioDeviceManagerExtension.js +2 -0
- package/lib/module/extension/IAudioDeviceManagerExtension.js.map +1 -0
- package/lib/module/impl/AgoraBaseImpl.js +20 -0
- package/lib/module/impl/AgoraBaseImpl.js.map +1 -0
- package/lib/module/impl/AgoraMediaBaseImpl.js +139 -0
- package/lib/module/impl/AgoraMediaBaseImpl.js.map +1 -0
- package/lib/module/impl/IAgoraH265TranscoderImpl.js +113 -0
- package/lib/module/impl/IAgoraH265TranscoderImpl.js.map +1 -0
- package/lib/module/impl/IAgoraMediaEngineImpl.js +335 -0
- package/lib/module/impl/IAgoraMediaEngineImpl.js.map +1 -0
- package/lib/module/impl/IAgoraMediaPlayerImpl.js +957 -0
- package/lib/module/impl/IAgoraMediaPlayerImpl.js.map +1 -0
- package/lib/module/impl/IAgoraMediaPlayerSourceImpl.js +70 -0
- package/lib/module/impl/IAgoraMediaPlayerSourceImpl.js.map +1 -0
- package/lib/module/impl/IAgoraMediaRecorderImpl.js +45 -0
- package/lib/module/impl/IAgoraMediaRecorderImpl.js.map +1 -0
- package/lib/module/impl/IAgoraMusicContentCenterImpl.js +419 -0
- package/lib/module/impl/IAgoraMusicContentCenterImpl.js.map +1 -0
- package/lib/module/impl/IAgoraRtcEngineExImpl.js +1176 -0
- package/lib/module/impl/IAgoraRtcEngineExImpl.js.map +1 -0
- package/lib/module/impl/IAgoraRtcEngineImpl.js +5423 -0
- package/lib/module/impl/IAgoraRtcEngineImpl.js.map +1 -0
- package/lib/module/impl/IAgoraSpatialAudioImpl.js +356 -0
- package/lib/module/impl/IAgoraSpatialAudioImpl.js.map +1 -0
- package/lib/module/impl/IAudioDeviceManagerImpl.js +373 -0
- package/lib/module/impl/IAudioDeviceManagerImpl.js.map +1 -0
- package/lib/module/index.js +43 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/internal/AgoraH265TranscoderInternal.js +58 -0
- package/lib/module/internal/AgoraH265TranscoderInternal.js.map +1 -0
- package/lib/module/internal/AgoraMediaBaseInternal.js +13 -0
- package/lib/module/internal/AgoraMediaBaseInternal.js.map +1 -0
- package/lib/module/internal/AgoraPipInternal.js +92 -0
- package/lib/module/internal/AgoraPipInternal.js.map +1 -0
- package/lib/module/internal/IAgoraRtcRenderView.js +62 -0
- package/lib/module/internal/IAgoraRtcRenderView.js.map +1 -0
- package/lib/module/internal/IrisApiEngine.js +251 -0
- package/lib/module/internal/IrisApiEngine.js.map +1 -0
- package/lib/module/internal/LocalSpatialAudioEngineInternal.js +3 -0
- package/lib/module/internal/LocalSpatialAudioEngineInternal.js.map +1 -0
- package/lib/module/internal/MediaEngineInternal.js +116 -0
- package/lib/module/internal/MediaEngineInternal.js.map +1 -0
- package/lib/module/internal/MediaPlayerInternal.js +162 -0
- package/lib/module/internal/MediaPlayerInternal.js.map +1 -0
- package/lib/module/internal/MediaRecorderInternal.js +67 -0
- package/lib/module/internal/MediaRecorderInternal.js.map +1 -0
- package/lib/module/internal/MusicContentCenterInternal.js +134 -0
- package/lib/module/internal/MusicContentCenterInternal.js.map +1 -0
- package/lib/module/internal/RtcEngineExInternal.js +250 -0
- package/lib/module/internal/RtcEngineExInternal.js.map +1 -0
- package/lib/module/internal/call.js +126 -0
- package/lib/module/internal/call.js.map +1 -0
- package/lib/module/internal/event.js +25 -0
- package/lib/module/internal/event.js.map +1 -0
- package/lib/module/specs/AgoraRtcSurfaceViewNativeComponent.js +3 -0
- package/lib/module/specs/AgoraRtcSurfaceViewNativeComponent.js.map +1 -0
- package/lib/module/specs/AgoraRtcTextureViewNativeComponent.js +3 -0
- package/lib/module/specs/AgoraRtcTextureViewNativeComponent.js.map +1 -0
- package/lib/module/specs/NativeAgoraRtcNg.js +3 -0
- package/lib/module/specs/NativeAgoraRtcNg.js.map +1 -0
- package/lib/module/specs/index.js +16 -0
- package/lib/module/specs/index.js.map +1 -0
- package/lib/module/ti/AgoraBase-ti.js +16 -0
- package/lib/module/ti/AgoraBase-ti.js.map +1 -0
- package/lib/module/ti/AgoraMediaBase-ti.js +51 -0
- package/lib/module/ti/AgoraMediaBase-ti.js.map +1 -0
- package/lib/module/ti/AgoraMediaPlayerTypes-ti.js +9 -0
- package/lib/module/ti/AgoraMediaPlayerTypes-ti.js.map +1 -0
- package/lib/module/ti/AgoraPip-ti.js +14 -0
- package/lib/module/ti/AgoraPip-ti.js.map +1 -0
- package/lib/module/ti/IAgoraH265Transcoder-ti.js +16 -0
- package/lib/module/ti/IAgoraH265Transcoder-ti.js.map +1 -0
- package/lib/module/ti/IAgoraLog-ti.js +9 -0
- package/lib/module/ti/IAgoraLog-ti.js.map +1 -0
- package/lib/module/ti/IAgoraMediaEngine-ti.js +9 -0
- package/lib/module/ti/IAgoraMediaEngine-ti.js.map +1 -0
- package/lib/module/ti/IAgoraMediaPlayer-ti.js +14 -0
- package/lib/module/ti/IAgoraMediaPlayer-ti.js.map +1 -0
- package/lib/module/ti/IAgoraMediaPlayerSource-ti.js +26 -0
- package/lib/module/ti/IAgoraMediaPlayerSource-ti.js.map +1 -0
- package/lib/module/ti/IAgoraMediaRecorder-ti.js +9 -0
- package/lib/module/ti/IAgoraMediaRecorder-ti.js.map +1 -0
- package/lib/module/ti/IAgoraMediaStreamingSource-ti.js +9 -0
- package/lib/module/ti/IAgoraMediaStreamingSource-ti.js.map +1 -0
- package/lib/module/ti/IAgoraMusicContentCenter-ti.js +18 -0
- package/lib/module/ti/IAgoraMusicContentCenter-ti.js.map +1 -0
- package/lib/module/ti/IAgoraPip-ti.js +14 -0
- package/lib/module/ti/IAgoraPip-ti.js.map +1 -0
- package/lib/module/ti/IAgoraRhythmPlayer-ti.js +9 -0
- package/lib/module/ti/IAgoraRhythmPlayer-ti.js.map +1 -0
- package/lib/module/ti/IAgoraRtcEngine-ti.js +120 -0
- package/lib/module/ti/IAgoraRtcEngine-ti.js.map +1 -0
- package/lib/module/ti/IAgoraRtcEngineEx-ti.js +9 -0
- package/lib/module/ti/IAgoraRtcEngineEx-ti.js.map +1 -0
- package/lib/module/ti/IAgoraSpatialAudio-ti.js +9 -0
- package/lib/module/ti/IAgoraSpatialAudio-ti.js.map +1 -0
- package/lib/module/ti/IAudioDeviceManager-ti.js +9 -0
- package/lib/module/ti/IAudioDeviceManager-ti.js.map +1 -0
- package/lib/module/ti/Utils-ti.js +9 -0
- package/lib/module/ti/Utils-ti.js.map +1 -0
- package/lib/module/ti/index-ti.js +9 -0
- package/lib/module/ti/index-ti.js.map +1 -0
- package/lib/typescript/src/AgoraBase.d.ts +5728 -0
- package/lib/typescript/src/AgoraBase.d.ts.map +1 -0
- package/lib/typescript/src/AgoraMediaBase.d.ts +1717 -0
- package/lib/typescript/src/AgoraMediaBase.d.ts.map +1 -0
- package/lib/typescript/src/AgoraMediaPlayerTypes.d.ts +456 -0
- package/lib/typescript/src/AgoraMediaPlayerTypes.d.ts.map +1 -0
- package/lib/typescript/src/AgoraRtcRenderView.d.ts +60 -0
- package/lib/typescript/src/AgoraRtcRenderView.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraH265Transcoder.d.ts +28 -0
- package/lib/typescript/src/IAgoraH265Transcoder.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraLog.d.ts +89 -0
- package/lib/typescript/src/IAgoraLog.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraMediaEngine.d.ts +255 -0
- package/lib/typescript/src/IAgoraMediaEngine.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraMediaPlayer.d.ts +656 -0
- package/lib/typescript/src/IAgoraMediaPlayer.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraMediaPlayerSource.d.ts +109 -0
- package/lib/typescript/src/IAgoraMediaPlayerSource.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraMediaRecorder.d.ts +60 -0
- package/lib/typescript/src/IAgoraMediaRecorder.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraMediaStreamingSource.d.ts +42 -0
- package/lib/typescript/src/IAgoraMediaStreamingSource.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraMusicContentCenter.d.ts +604 -0
- package/lib/typescript/src/IAgoraMusicContentCenter.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraPip.d.ts +257 -0
- package/lib/typescript/src/IAgoraPip.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraRhythmPlayer.d.ts +65 -0
- package/lib/typescript/src/IAgoraRhythmPlayer.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraRtcEngine.d.ts +6831 -0
- package/lib/typescript/src/IAgoraRtcEngine.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraRtcEngineEx.d.ts +817 -0
- package/lib/typescript/src/IAgoraRtcEngineEx.d.ts.map +1 -0
- package/lib/typescript/src/IAgoraSpatialAudio.d.ts +194 -0
- package/lib/typescript/src/IAgoraSpatialAudio.d.ts.map +1 -0
- package/lib/typescript/src/IAudioDeviceManager.d.ts +155 -0
- package/lib/typescript/src/IAudioDeviceManager.d.ts.map +1 -0
- package/lib/typescript/src/Utils.d.ts +19 -0
- package/lib/typescript/src/Utils.d.ts.map +1 -0
- package/lib/typescript/src/extension/AgoraBaseExtension.d.ts +2 -0
- package/lib/typescript/src/extension/AgoraBaseExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/AgoraMediaBaseExtension.d.ts +2 -0
- package/lib/typescript/src/extension/AgoraMediaBaseExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/AgoraMediaPlayerTypesExtension.d.ts +2 -0
- package/lib/typescript/src/extension/AgoraMediaPlayerTypesExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAgoraH265TranscoderExtension.d.ts +24 -0
- package/lib/typescript/src/extension/IAgoraH265TranscoderExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAgoraLogExtension.d.ts +2 -0
- package/lib/typescript/src/extension/IAgoraLogExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAgoraMediaEngineExtension.d.ts +40 -0
- package/lib/typescript/src/extension/IAgoraMediaEngineExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAgoraMediaPlayerExtension.d.ts +46 -0
- package/lib/typescript/src/extension/IAgoraMediaPlayerExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAgoraMediaPlayerSourceExtension.d.ts +2 -0
- package/lib/typescript/src/extension/IAgoraMediaPlayerSourceExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAgoraMediaRecorderExtension.d.ts +44 -0
- package/lib/typescript/src/extension/IAgoraMediaRecorderExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAgoraMusicContentCenterExtension.d.ts +20 -0
- package/lib/typescript/src/extension/IAgoraMusicContentCenterExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAgoraPipExtension.d.ts +23 -0
- package/lib/typescript/src/extension/IAgoraPipExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAgoraRhythmPlayerExtension.d.ts +2 -0
- package/lib/typescript/src/extension/IAgoraRhythmPlayerExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAgoraRtcEngineExExtension.d.ts +2 -0
- package/lib/typescript/src/extension/IAgoraRtcEngineExExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAgoraRtcEngineExtension.d.ts +49 -0
- package/lib/typescript/src/extension/IAgoraRtcEngineExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAgoraSpatialAudioExtension.d.ts +2 -0
- package/lib/typescript/src/extension/IAgoraSpatialAudioExtension.d.ts.map +1 -0
- package/lib/typescript/src/extension/IAudioDeviceManagerExtension.d.ts +2 -0
- package/lib/typescript/src/extension/IAudioDeviceManagerExtension.d.ts.map +1 -0
- package/lib/typescript/src/impl/AgoraBaseImpl.d.ts +3 -0
- package/lib/typescript/src/impl/AgoraBaseImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/AgoraMediaBaseImpl.d.ts +14 -0
- package/lib/typescript/src/impl/AgoraMediaBaseImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/IAgoraH265TranscoderImpl.d.ts +15 -0
- package/lib/typescript/src/impl/IAgoraH265TranscoderImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/IAgoraMediaEngineImpl.d.ts +46 -0
- package/lib/typescript/src/impl/IAgoraMediaEngineImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/IAgoraMediaPlayerImpl.d.ts +145 -0
- package/lib/typescript/src/impl/IAgoraMediaPlayerImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/IAgoraMediaPlayerSourceImpl.d.ts +3 -0
- package/lib/typescript/src/impl/IAgoraMediaPlayerSourceImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/IAgoraMediaRecorderImpl.d.ts +11 -0
- package/lib/typescript/src/impl/IAgoraMediaRecorderImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/IAgoraMusicContentCenterImpl.d.ts +67 -0
- package/lib/typescript/src/impl/IAgoraMusicContentCenterImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/IAgoraRtcEngineExImpl.d.ts +128 -0
- package/lib/typescript/src/impl/IAgoraRtcEngineExImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/IAgoraRtcEngineImpl.d.ts +656 -0
- package/lib/typescript/src/impl/IAgoraRtcEngineImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/IAgoraSpatialAudioImpl.d.ts +47 -0
- package/lib/typescript/src/impl/IAgoraSpatialAudioImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/IAudioDeviceManagerImpl.d.ts +65 -0
- package/lib/typescript/src/impl/IAudioDeviceManagerImpl.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +31 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/internal/AgoraH265TranscoderInternal.d.ts +14 -0
- package/lib/typescript/src/internal/AgoraH265TranscoderInternal.d.ts.map +1 -0
- package/lib/typescript/src/internal/AgoraMediaBaseInternal.d.ts +8 -0
- package/lib/typescript/src/internal/AgoraMediaBaseInternal.d.ts.map +1 -0
- package/lib/typescript/src/internal/AgoraPipInternal.d.ts +21 -0
- package/lib/typescript/src/internal/AgoraPipInternal.d.ts.map +1 -0
- package/lib/typescript/src/internal/IAgoraRtcRenderView.d.ts +13 -0
- package/lib/typescript/src/internal/IAgoraRtcRenderView.d.ts.map +1 -0
- package/lib/typescript/src/internal/IrisApiEngine.d.ts +12 -0
- package/lib/typescript/src/internal/IrisApiEngine.d.ts.map +1 -0
- package/lib/typescript/src/internal/LocalSpatialAudioEngineInternal.d.ts +4 -0
- package/lib/typescript/src/internal/LocalSpatialAudioEngineInternal.d.ts.map +1 -0
- package/lib/typescript/src/internal/MediaEngineInternal.d.ts +23 -0
- package/lib/typescript/src/internal/MediaEngineInternal.d.ts.map +1 -0
- package/lib/typescript/src/internal/MediaPlayerInternal.d.ts +28 -0
- package/lib/typescript/src/internal/MediaPlayerInternal.d.ts.map +1 -0
- package/lib/typescript/src/internal/MediaRecorderInternal.d.ts +16 -0
- package/lib/typescript/src/internal/MediaRecorderInternal.d.ts.map +1 -0
- package/lib/typescript/src/internal/MusicContentCenterInternal.d.ts +31 -0
- package/lib/typescript/src/internal/MusicContentCenterInternal.d.ts.map +1 -0
- package/lib/typescript/src/internal/RtcEngineExInternal.d.ts +62 -0
- package/lib/typescript/src/internal/RtcEngineExInternal.d.ts.map +1 -0
- package/lib/typescript/src/internal/call.d.ts +5 -0
- package/lib/typescript/src/internal/call.d.ts.map +1 -0
- package/lib/typescript/src/internal/event.d.ts +58 -0
- package/lib/typescript/src/internal/event.d.ts.map +1 -0
- package/lib/typescript/src/specs/AgoraRtcSurfaceViewNativeComponent.d.ts +13 -0
- package/lib/typescript/src/specs/AgoraRtcSurfaceViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/specs/AgoraRtcTextureViewNativeComponent.d.ts +11 -0
- package/lib/typescript/src/specs/AgoraRtcTextureViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/specs/NativeAgoraRtcNg.d.ts +23 -0
- package/lib/typescript/src/specs/NativeAgoraRtcNg.d.ts.map +1 -0
- package/lib/typescript/src/specs/index.d.ts +3 -0
- package/lib/typescript/src/specs/index.d.ts.map +1 -0
- package/lib/typescript/src/ti/AgoraBase-ti.d.ts +8 -0
- package/lib/typescript/src/ti/AgoraBase-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/AgoraMediaBase-ti.d.ts +15 -0
- package/lib/typescript/src/ti/AgoraMediaBase-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/AgoraMediaPlayerTypes-ti.d.ts +7 -0
- package/lib/typescript/src/ti/AgoraMediaPlayerTypes-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/AgoraPip-ti.d.ts +8 -0
- package/lib/typescript/src/ti/AgoraPip-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraH265Transcoder-ti.d.ts +8 -0
- package/lib/typescript/src/ti/IAgoraH265Transcoder-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraLog-ti.d.ts +7 -0
- package/lib/typescript/src/ti/IAgoraLog-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraMediaEngine-ti.d.ts +7 -0
- package/lib/typescript/src/ti/IAgoraMediaEngine-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraMediaPlayer-ti.d.ts +8 -0
- package/lib/typescript/src/ti/IAgoraMediaPlayer-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraMediaPlayerSource-ti.d.ts +8 -0
- package/lib/typescript/src/ti/IAgoraMediaPlayerSource-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraMediaRecorder-ti.d.ts +7 -0
- package/lib/typescript/src/ti/IAgoraMediaRecorder-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraMediaStreamingSource-ti.d.ts +7 -0
- package/lib/typescript/src/ti/IAgoraMediaStreamingSource-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraMusicContentCenter-ti.d.ts +8 -0
- package/lib/typescript/src/ti/IAgoraMusicContentCenter-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraPip-ti.d.ts +8 -0
- package/lib/typescript/src/ti/IAgoraPip-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraRhythmPlayer-ti.d.ts +7 -0
- package/lib/typescript/src/ti/IAgoraRhythmPlayer-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraRtcEngine-ti.d.ts +10 -0
- package/lib/typescript/src/ti/IAgoraRtcEngine-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraRtcEngineEx-ti.d.ts +7 -0
- package/lib/typescript/src/ti/IAgoraRtcEngineEx-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAgoraSpatialAudio-ti.d.ts +7 -0
- package/lib/typescript/src/ti/IAgoraSpatialAudio-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/IAudioDeviceManager-ti.d.ts +7 -0
- package/lib/typescript/src/ti/IAudioDeviceManager-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/Utils-ti.d.ts +7 -0
- package/lib/typescript/src/ti/Utils-ti.d.ts.map +1 -0
- package/lib/typescript/src/ti/index-ti.d.ts +7 -0
- package/lib/typescript/src/ti/index-ti.d.ts.map +1 -0
- package/package.json +175 -0
- package/react-native-agora.podspec +50 -0
- package/src/AgoraBase.ts +5941 -0
- package/src/AgoraMediaBase.ts +1814 -0
- package/src/AgoraMediaPlayerTypes.ts +467 -0
- package/src/AgoraRtcRenderView.tsx +72 -0
- package/src/IAgoraH265Transcoder.ts +73 -0
- package/src/IAgoraLog.ts +91 -0
- package/src/IAgoraMediaEngine.ts +321 -0
- package/src/IAgoraMediaPlayer.ts +753 -0
- package/src/IAgoraMediaPlayerSource.ts +137 -0
- package/src/IAgoraMediaRecorder.ts +65 -0
- package/src/IAgoraMediaStreamingSource.ts +81 -0
- package/src/IAgoraMusicContentCenter.ts +678 -0
- package/src/IAgoraPip.ts +295 -0
- package/src/IAgoraRhythmPlayer.ts +67 -0
- package/src/IAgoraRtcEngine.ts +8100 -0
- package/src/IAgoraRtcEngineEx.ts +1108 -0
- package/src/IAgoraSpatialAudio.ts +248 -0
- package/src/IAudioDeviceManager.ts +185 -0
- package/src/Utils.ts +35 -0
- package/src/extension/AgoraBaseExtension.ts +1 -0
- package/src/extension/AgoraMediaBaseExtension.ts +1 -0
- package/src/extension/AgoraMediaPlayerTypesExtension.ts +1 -0
- package/src/extension/IAgoraH265TranscoderExtension.ts +39 -0
- package/src/extension/IAgoraLogExtension.ts +1 -0
- package/src/extension/IAgoraMediaEngineExtension.ts +62 -0
- package/src/extension/IAgoraMediaPlayerExtension.ts +64 -0
- package/src/extension/IAgoraMediaPlayerSourceExtension.ts +1 -0
- package/src/extension/IAgoraMediaRecorderExtension.ts +59 -0
- package/src/extension/IAgoraMusicContentCenterExtension.ts +34 -0
- package/src/extension/IAgoraPipExtension.ts +37 -0
- package/src/extension/IAgoraRhythmPlayerExtension.ts +1 -0
- package/src/extension/IAgoraRtcEngineExExtension.ts +1 -0
- package/src/extension/IAgoraRtcEngineExtension.ts +72 -0
- package/src/extension/IAgoraSpatialAudioExtension.ts +1 -0
- package/src/extension/IAudioDeviceManagerExtension.ts +1 -0
- package/src/impl/AgoraBaseImpl.ts +39 -0
- package/src/impl/AgoraMediaBaseImpl.ts +238 -0
- package/src/impl/IAgoraH265TranscoderImpl.ts +152 -0
- package/src/impl/IAgoraMediaEngineImpl.ts +490 -0
- package/src/impl/IAgoraMediaPlayerImpl.ts +1180 -0
- package/src/impl/IAgoraMediaPlayerSourceImpl.ts +94 -0
- package/src/impl/IAgoraMediaRecorderImpl.ts +58 -0
- package/src/impl/IAgoraMusicContentCenterImpl.ts +561 -0
- package/src/impl/IAgoraRtcEngineExImpl.ts +1911 -0
- package/src/impl/IAgoraRtcEngineImpl.ts +7737 -0
- package/src/impl/IAgoraSpatialAudioImpl.ts +494 -0
- package/src/impl/IAudioDeviceManagerImpl.ts +442 -0
- package/src/index.ts +53 -0
- package/src/internal/AgoraH265TranscoderInternal.ts +93 -0
- package/src/internal/AgoraMediaBaseInternal.ts +15 -0
- package/src/internal/AgoraPipInternal.ts +136 -0
- package/src/internal/IAgoraRtcRenderView.tsx +79 -0
- package/src/internal/IrisApiEngine.ts +337 -0
- package/src/internal/LocalSpatialAudioEngineInternal.ts +3 -0
- package/src/internal/MediaEngineInternal.ts +187 -0
- package/src/internal/MediaPlayerInternal.ts +282 -0
- package/src/internal/MediaRecorderInternal.ts +96 -0
- package/src/internal/MusicContentCenterInternal.ts +204 -0
- package/src/internal/RtcEngineExInternal.ts +443 -0
- package/src/internal/call.ts +140 -0
- package/src/internal/event.ts +100 -0
- package/src/specs/AgoraRtcSurfaceViewNativeComponent.ts +16 -0
- package/src/specs/AgoraRtcTextureViewNativeComponent.ts +14 -0
- package/src/specs/NativeAgoraRtcNg.ts +40 -0
- package/src/specs/index.ts +26 -0
- package/src/ti/AgoraBase-ti.ts +16 -0
- package/src/ti/AgoraMediaBase-ti.ts +58 -0
- package/src/ti/AgoraMediaPlayerTypes-ti.ts +11 -0
- package/src/ti/AgoraPip-ti.ts +14 -0
- package/src/ti/IAgoraH265Transcoder-ti.ts +16 -0
- package/src/ti/IAgoraLog-ti.ts +11 -0
- package/src/ti/IAgoraMediaEngine-ti.ts +11 -0
- package/src/ti/IAgoraMediaPlayer-ti.ts +14 -0
- package/src/ti/IAgoraMediaPlayerSource-ti.ts +26 -0
- package/src/ti/IAgoraMediaRecorder-ti.ts +11 -0
- package/src/ti/IAgoraMediaStreamingSource-ti.ts +11 -0
- package/src/ti/IAgoraMusicContentCenter-ti.ts +18 -0
- package/src/ti/IAgoraPip-ti.ts +14 -0
- package/src/ti/IAgoraRhythmPlayer-ti.ts +11 -0
- package/src/ti/IAgoraRtcEngine-ti.ts +122 -0
- package/src/ti/IAgoraRtcEngineEx-ti.ts +11 -0
- package/src/ti/IAgoraSpatialAudio-ti.ts +11 -0
- package/src/ti/IAudioDeviceManager-ti.ts +11 -0
- package/src/ti/Utils-ti.ts +11 -0
- package/src/ti/index-ti.ts +11 -0
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import './extension/IAgoraSpatialAudioExtension';
|
|
2
|
+
import { RtcConnection } from './IAgoraRtcEngineEx';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 远端用户或媒体播放器的空间位置信息。
|
|
6
|
+
*/
|
|
7
|
+
export class RemoteVoicePositionInfo {
|
|
8
|
+
/**
|
|
9
|
+
* 在世界坐标系中的坐标。该参数是长度为 3 的数组,三个值依次表示前、右、上的坐标值。
|
|
10
|
+
*/
|
|
11
|
+
position?: number[];
|
|
12
|
+
/**
|
|
13
|
+
* 在世界坐标系前轴的单位向量。该参数是长度为 3 的数组,三个值依次表示前、右、上的坐标值。
|
|
14
|
+
*/
|
|
15
|
+
forward?: number[];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* 隔声区域的设置。
|
|
20
|
+
*/
|
|
21
|
+
export class SpatialAudioZone {
|
|
22
|
+
/**
|
|
23
|
+
* 隔声区域的 ID。
|
|
24
|
+
*/
|
|
25
|
+
zoneSetId?: number;
|
|
26
|
+
/**
|
|
27
|
+
* 隔声区域的空间中心点。该参数是长度为 3 的数组,三个值依次表示前、右、上的坐标值。
|
|
28
|
+
*/
|
|
29
|
+
position?: number[];
|
|
30
|
+
/**
|
|
31
|
+
* 以 position 为起点,向前的单位向量。该参数是长度为 3 的数组,三个值依次表示前、右、上的坐标值。
|
|
32
|
+
*/
|
|
33
|
+
forward?: number[];
|
|
34
|
+
/**
|
|
35
|
+
* 以 position 为起点,向右的单位向量。该参数是长度为 3 的数组,三个值依次表示前、右、上的坐标值。
|
|
36
|
+
*/
|
|
37
|
+
right?: number[];
|
|
38
|
+
/**
|
|
39
|
+
* 以 position 为起点,向上的单位向量。该参数是长度为 3 的数组,三个值依次表示前、右、上的坐标值。
|
|
40
|
+
*/
|
|
41
|
+
up?: number[];
|
|
42
|
+
/**
|
|
43
|
+
* 将整个隔声区域看做一个立方体,表示向前的边长,单位为游戏引擎的单位长度。
|
|
44
|
+
*/
|
|
45
|
+
forwardLength?: number;
|
|
46
|
+
/**
|
|
47
|
+
* 将整个隔声区域看做一个立方体,表示向右的边长,单位为游戏引擎的单位长度。
|
|
48
|
+
*/
|
|
49
|
+
rightLength?: number;
|
|
50
|
+
/**
|
|
51
|
+
* 将整个隔声区域看做一个立方体,表示向上的边长,单位为游戏引擎的单位长度。
|
|
52
|
+
*/
|
|
53
|
+
upLength?: number;
|
|
54
|
+
/**
|
|
55
|
+
* 隔声区域以内的用户和外部用户互通时的声音衰减系数,取值范围为 [0,1]。其中:
|
|
56
|
+
* 0:广播模式,即音量和音色均不随距离衰减,无论距离远近,本地用户听到的音量和音色都无变化。
|
|
57
|
+
* (0,0.5):弱衰减模式,即音量和音色在传播过程中仅发生微弱衰减,跟真实环境相比,声音可以传播得更远。
|
|
58
|
+
* 0.5:模拟音量在真实环境下的衰减,效果等同于不设置 audioAttenuation 参数。
|
|
59
|
+
* (0.5,1]:强衰减模式 (默认值为 1) ,即音量和音色在传播过程中发生迅速衰减。
|
|
60
|
+
*/
|
|
61
|
+
audioAttenuation?: number;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* 该类通过 SDK 计算用户坐标,实现空间音频。
|
|
66
|
+
*
|
|
67
|
+
* 该类继承自 IBaseSpatialAudioEngine 。调用该类下其他 API 前,你需要调用 initialize 方法初始化该类。
|
|
68
|
+
*/
|
|
69
|
+
export abstract class ILocalSpatialAudioEngine {
|
|
70
|
+
/**
|
|
71
|
+
* @ignore
|
|
72
|
+
*/
|
|
73
|
+
abstract release(): void;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* 初始化 ILocalSpatialAudioEngine 。
|
|
77
|
+
*
|
|
78
|
+
* 在调用 ILocalSpatialAudioEngine 类的其他方法前,你需要先调用该方法初始化 ILocalSpatialAudioEngine 。
|
|
79
|
+
* SDK 只支持每个 App 创建一个 ILocalSpatialAudioEngine 实例。
|
|
80
|
+
*
|
|
81
|
+
* @returns
|
|
82
|
+
* 0: 方法调用成功。
|
|
83
|
+
* < 0: 方法调用失败。详见[错误码](https://doc.shengwang.cn/api-ref/rtc/rn/error-code)了解详情和解决建议。
|
|
84
|
+
*/
|
|
85
|
+
abstract initialize(): number;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* 更新远端用户的空间位置信息。
|
|
89
|
+
*
|
|
90
|
+
* 成功调用该方法后,SDK 会根据本地和远端用户的相对位置计算空间音频参数。 该方法需要在 joinChannel 后调用。
|
|
91
|
+
*
|
|
92
|
+
* @param uid 用户 ID。需与用户加入频道时填写的用户 ID 一致。
|
|
93
|
+
* @param posInfo 远端用户的空间位置信息。详见 RemoteVoicePositionInfo 。
|
|
94
|
+
*
|
|
95
|
+
* @returns
|
|
96
|
+
* 0: 方法调用成功。
|
|
97
|
+
* < 0: 方法调用失败。详见[错误码](https://doc.shengwang.cn/api-ref/rtc/rn/error-code)了解详情和解决建议。
|
|
98
|
+
*/
|
|
99
|
+
abstract updateRemotePosition(
|
|
100
|
+
uid: number,
|
|
101
|
+
posInfo: RemoteVoicePositionInfo
|
|
102
|
+
): number;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @ignore
|
|
106
|
+
*/
|
|
107
|
+
abstract updateRemotePositionEx(
|
|
108
|
+
uid: number,
|
|
109
|
+
posInfo: RemoteVoicePositionInfo,
|
|
110
|
+
connection: RtcConnection
|
|
111
|
+
): number;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* 删除指定远端用户的空间位置信息。
|
|
115
|
+
*
|
|
116
|
+
* 成功调用该方法后,本地用户将听不到指定的远端用户。
|
|
117
|
+
* 离开频道后,为避免计算资源的浪费,你需要调用该方法删除指定远端用户的空间位置信息。否则,该用户的空间位置信息会一直被保存。当远端用户人数大于 setMaxAudioRecvCount 中设定的可接收音频流数时,会按照相对距离依次自动取消订阅距离最远的用户的音频流。
|
|
118
|
+
*
|
|
119
|
+
* @param uid 用户 ID。需与用户加入频道时填写的用户 ID 一致。
|
|
120
|
+
*
|
|
121
|
+
* @returns
|
|
122
|
+
* 0: 方法调用成功。
|
|
123
|
+
* < 0: 方法调用失败。详见[错误码](https://doc.shengwang.cn/api-ref/rtc/rn/error-code)了解详情和解决建议。
|
|
124
|
+
*/
|
|
125
|
+
abstract removeRemotePosition(uid: number): number;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @ignore
|
|
129
|
+
*/
|
|
130
|
+
abstract removeRemotePositionEx(
|
|
131
|
+
uid: number,
|
|
132
|
+
connection: RtcConnection
|
|
133
|
+
): number;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @ignore
|
|
137
|
+
*/
|
|
138
|
+
abstract clearRemotePositionsEx(connection: RtcConnection): number;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @ignore
|
|
142
|
+
*/
|
|
143
|
+
abstract updateSelfPositionEx(
|
|
144
|
+
position: number[],
|
|
145
|
+
axisForward: number[],
|
|
146
|
+
axisRight: number[],
|
|
147
|
+
axisUp: number[],
|
|
148
|
+
connection: RtcConnection
|
|
149
|
+
): number;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @ignore
|
|
153
|
+
*/
|
|
154
|
+
abstract setMaxAudioRecvCount(maxCount: number): number;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @ignore
|
|
158
|
+
*/
|
|
159
|
+
abstract setAudioRecvRange(range: number): number;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @ignore
|
|
163
|
+
*/
|
|
164
|
+
abstract setDistanceUnit(unit: number): number;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @ignore
|
|
168
|
+
*/
|
|
169
|
+
abstract updateSelfPosition(
|
|
170
|
+
position: number[],
|
|
171
|
+
axisForward: number[],
|
|
172
|
+
axisRight: number[],
|
|
173
|
+
axisUp: number[]
|
|
174
|
+
): number;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* @ignore
|
|
178
|
+
*/
|
|
179
|
+
abstract updatePlayerPositionInfo(
|
|
180
|
+
playerId: number,
|
|
181
|
+
positionInfo: RemoteVoicePositionInfo
|
|
182
|
+
): number;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @ignore
|
|
186
|
+
*/
|
|
187
|
+
abstract setParameters(params: string): number;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* @ignore
|
|
191
|
+
*/
|
|
192
|
+
abstract muteLocalAudioStream(mute: boolean): number;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @ignore
|
|
196
|
+
*/
|
|
197
|
+
abstract muteAllRemoteAudioStreams(mute: boolean): number;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* @ignore
|
|
201
|
+
*/
|
|
202
|
+
abstract muteRemoteAudioStream(uid: number, mute: boolean): number;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* 设置指定用户的声音衰减效果。
|
|
206
|
+
*
|
|
207
|
+
* @param uid 用户 ID。需与用户加入频道时填写的用户 ID 一致。
|
|
208
|
+
* @param attenuation 针对该用户的声音衰减系数,取值范围为[0,1]。其中:
|
|
209
|
+
* @param forceSet 是否强制设定该用户的声音衰减效果: true :强制使用 attenuation 设置该用户的声音衰减效果,此时 SpatialAudioZone 中的 audioAttenuation 中设置的隔声区域衰减系数对该用户不生效。 false :不强制使用 attenuation 设置用户的声音衰减效果,分为以下两种情况。
|
|
210
|
+
* 如果音源和听声者分属于隔声区域内部和外部,则声音衰减效果由 SpatialAudioZone 中的 audioAttenuation 决定。
|
|
211
|
+
* 如果音源和听声者在同一个隔声区域内或同在隔声区域外,则声音衰减效果由该方法中的 attenuation 决定。
|
|
212
|
+
*
|
|
213
|
+
* @returns
|
|
214
|
+
* 0: 方法调用成功。
|
|
215
|
+
* < 0: 方法调用失败。详见[错误码](https://doc.shengwang.cn/api-ref/rtc/rn/error-code)了解详情和解决建议。
|
|
216
|
+
*/
|
|
217
|
+
abstract setRemoteAudioAttenuation(
|
|
218
|
+
uid: number,
|
|
219
|
+
attenuation: number,
|
|
220
|
+
forceSet: boolean
|
|
221
|
+
): number;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* @ignore
|
|
225
|
+
*/
|
|
226
|
+
abstract setZones(zones: SpatialAudioZone[], zoneCount: number): number;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* @ignore
|
|
230
|
+
*/
|
|
231
|
+
abstract setPlayerAttenuation(
|
|
232
|
+
playerId: number,
|
|
233
|
+
attenuation: number,
|
|
234
|
+
forceSet: boolean
|
|
235
|
+
): number;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* 删除所有远端用户的空间位置信息。
|
|
239
|
+
*
|
|
240
|
+
* 成功调用该方法后,本地用户将听不到所有远端用户。
|
|
241
|
+
* 离开频道后,为避免计算资源的浪费,你也可以调用该方法删除所有远端用户的空间位置信息。
|
|
242
|
+
*
|
|
243
|
+
* @returns
|
|
244
|
+
* 0: 方法调用成功。
|
|
245
|
+
* < 0: 方法调用失败。详见[错误码](https://doc.shengwang.cn/api-ref/rtc/rn/error-code)了解详情和解决建议。
|
|
246
|
+
*/
|
|
247
|
+
abstract clearRemotePositions(): number;
|
|
248
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import './extension/IAudioDeviceManagerExtension';
|
|
2
|
+
import { AudioDeviceInfo } from './IAgoraRtcEngine';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 设备 ID 的最大长度。
|
|
6
|
+
*/
|
|
7
|
+
export enum MaxDeviceIdLengthType {
|
|
8
|
+
/**
|
|
9
|
+
* 设备 ID 的最大长度为 512 个字符。
|
|
10
|
+
*/
|
|
11
|
+
MaxDeviceIdLength = 512,
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* 音频设备管理方法。
|
|
16
|
+
*/
|
|
17
|
+
export abstract class IAudioDeviceManager {
|
|
18
|
+
/**
|
|
19
|
+
* @ignore
|
|
20
|
+
*/
|
|
21
|
+
abstract enumeratePlaybackDevices(): AudioDeviceInfo[];
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @ignore
|
|
25
|
+
*/
|
|
26
|
+
abstract enumerateRecordingDevices(): AudioDeviceInfo[];
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @ignore
|
|
30
|
+
*/
|
|
31
|
+
abstract setPlaybackDevice(deviceId: string): number;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @ignore
|
|
35
|
+
*/
|
|
36
|
+
abstract getPlaybackDevice(): string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @ignore
|
|
40
|
+
*/
|
|
41
|
+
abstract getPlaybackDeviceInfo(): AudioDeviceInfo;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @ignore
|
|
45
|
+
*/
|
|
46
|
+
abstract setPlaybackDeviceVolume(volume: number): number;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @ignore
|
|
50
|
+
*/
|
|
51
|
+
abstract getPlaybackDeviceVolume(): number;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @ignore
|
|
55
|
+
*/
|
|
56
|
+
abstract setRecordingDevice(deviceId: string): number;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @ignore
|
|
60
|
+
*/
|
|
61
|
+
abstract getRecordingDevice(): string;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @ignore
|
|
65
|
+
*/
|
|
66
|
+
abstract getRecordingDeviceInfo(): AudioDeviceInfo;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @ignore
|
|
70
|
+
*/
|
|
71
|
+
abstract setRecordingDeviceVolume(volume: number): number;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @ignore
|
|
75
|
+
*/
|
|
76
|
+
abstract getRecordingDeviceVolume(): number;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @ignore
|
|
80
|
+
*/
|
|
81
|
+
abstract setLoopbackDevice(deviceId: string): number;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @ignore
|
|
85
|
+
*/
|
|
86
|
+
abstract getLoopbackDevice(): string;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @ignore
|
|
90
|
+
*/
|
|
91
|
+
abstract setPlaybackDeviceMute(mute: boolean): number;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @ignore
|
|
95
|
+
*/
|
|
96
|
+
abstract getPlaybackDeviceMute(): boolean;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @ignore
|
|
100
|
+
*/
|
|
101
|
+
abstract setRecordingDeviceMute(mute: boolean): number;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @ignore
|
|
105
|
+
*/
|
|
106
|
+
abstract getRecordingDeviceMute(): boolean;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* 启动音频播放设备测试。
|
|
110
|
+
*
|
|
111
|
+
* 该方法用于测试本地音频播放设备是否能正常工作。启动测试后,SDK 播放指定的音频文件,测试者如果能听到声音,说明播放设备能正常工作。
|
|
112
|
+
* 调用该方法后,SDK 会每隔 100 毫秒触发一次 onAudioVolumeIndication 回调,报告 uid = 1 及播放设备的音量信息。
|
|
113
|
+
* 该方法和 startEchoTest 的区别在于该方法检测本地的音频播放设备能否正常工作,后者可以检测音视频设备及网络是否正常。 该方法需要在加入频道前调用。测试完成后,如需加入频道,请确保先调用 stopPlaybackDeviceTest 停止设备测试。
|
|
114
|
+
*
|
|
115
|
+
* @param testAudioFilePath 音频文件的绝对路径,路径字符串使用 UTF-8 编码格式。
|
|
116
|
+
* 支持文件格式: wav、mp3、m4a、aac。
|
|
117
|
+
* 支持文件采样率: 8000、16000、32000、44100、48000。
|
|
118
|
+
*
|
|
119
|
+
* @returns
|
|
120
|
+
* 0: 方法调用成功。
|
|
121
|
+
* < 0: 方法调用失败。详见[错误码](https://doc.shengwang.cn/api-ref/rtc/rn/error-code)了解详情和解决建议。
|
|
122
|
+
*/
|
|
123
|
+
abstract startPlaybackDeviceTest(testAudioFilePath: string): number;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* 停止音频播放设备测试。
|
|
127
|
+
*
|
|
128
|
+
* 该方法用于停止音频播放设备测试。调用 startPlaybackDeviceTest 后,必须调用该方法停止测试。 该方法需要在加入频道前调用。
|
|
129
|
+
*
|
|
130
|
+
* @returns
|
|
131
|
+
* 0: 方法调用成功。
|
|
132
|
+
* < 0: 方法调用失败。详见[错误码](https://doc.shengwang.cn/api-ref/rtc/rn/error-code)了解详情和解决建议。
|
|
133
|
+
*/
|
|
134
|
+
abstract stopPlaybackDeviceTest(): number;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @ignore
|
|
138
|
+
*/
|
|
139
|
+
abstract startRecordingDeviceTest(indicationInterval: number): number;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @ignore
|
|
143
|
+
*/
|
|
144
|
+
abstract stopRecordingDeviceTest(): number;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @ignore
|
|
148
|
+
*/
|
|
149
|
+
abstract startAudioDeviceLoopbackTest(indicationInterval: number): number;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @ignore
|
|
153
|
+
*/
|
|
154
|
+
abstract stopAudioDeviceLoopbackTest(): number;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @ignore
|
|
158
|
+
*/
|
|
159
|
+
abstract followSystemPlaybackDevice(enable: boolean): number;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @ignore
|
|
163
|
+
*/
|
|
164
|
+
abstract followSystemRecordingDevice(enable: boolean): number;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @ignore
|
|
168
|
+
*/
|
|
169
|
+
abstract followSystemLoopbackDevice(enable: boolean): number;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* @ignore
|
|
173
|
+
*/
|
|
174
|
+
abstract release(): void;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* @ignore
|
|
178
|
+
*/
|
|
179
|
+
abstract getPlaybackDefaultDevice(): AudioDeviceInfo;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* @ignore
|
|
183
|
+
*/
|
|
184
|
+
abstract getRecordingDefaultDevice(): AudioDeviceInfo;
|
|
185
|
+
}
|
package/src/Utils.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* In certain systems or contexts, the maximum value of an unsigned integer can be used to represent a specific value in signed integers.
|
|
3
|
+
* This is due to the two's complement representation of signed integers in binary.
|
|
4
|
+
* When interpreted as an unsigned integer, the binary representation of this specific signed integer corresponds to the maximum value of the unsigned integer.
|
|
5
|
+
* Therefore, when dealing with values from such systems or contexts, we need to convert this maximum value to the corresponding signed integer value for correct interpretation.
|
|
6
|
+
* for example, 18446744073709551615 can be -1.
|
|
7
|
+
* @ignore
|
|
8
|
+
*/
|
|
9
|
+
export function parseIntPtr2Number(value: number | string): number {
|
|
10
|
+
try {
|
|
11
|
+
let bigIntVal = BigInt(value);
|
|
12
|
+
if (bigIntVal > 2n ** 63n - 1n) {
|
|
13
|
+
bigIntVal -= 2n ** 64n;
|
|
14
|
+
}
|
|
15
|
+
return Number(bigIntVal);
|
|
16
|
+
} catch (e) {
|
|
17
|
+
return value as number;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export let debuggable = false;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
export function setDebuggable(flag: boolean) {
|
|
27
|
+
debuggable = flag;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
export function isDebuggable() {
|
|
34
|
+
return debuggable && __DEV__;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { IH265TranscoderObserver } from '../IAgoraH265Transcoder';
|
|
2
|
+
|
|
3
|
+
export type IH265TranscoderEvent = IH265TranscoderObserver;
|
|
4
|
+
|
|
5
|
+
declare module '../IAgoraH265Transcoder' {
|
|
6
|
+
interface IH265Transcoder {
|
|
7
|
+
_addListenerPreCheck<EventType extends keyof IH265TranscoderEvent>(
|
|
8
|
+
eventType: EventType
|
|
9
|
+
): boolean;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @ignore
|
|
13
|
+
*/
|
|
14
|
+
addListener<EventType extends keyof IH265TranscoderEvent>(
|
|
15
|
+
eventType: EventType,
|
|
16
|
+
listener: IH265TranscoderEvent[EventType]
|
|
17
|
+
): void;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @ignore
|
|
21
|
+
*/
|
|
22
|
+
removeListener<EventType extends keyof IH265TranscoderEvent>(
|
|
23
|
+
eventType: EventType,
|
|
24
|
+
listener?: IH265TranscoderEvent[EventType]
|
|
25
|
+
): void;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @ignore
|
|
29
|
+
*/
|
|
30
|
+
removeAllListeners<EventType extends keyof IH265TranscoderEvent>(
|
|
31
|
+
eventType?: EventType
|
|
32
|
+
): void;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @ignore
|
|
36
|
+
*/
|
|
37
|
+
release(): void;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IAudioFrameObserver,
|
|
3
|
+
IFaceInfoObserver,
|
|
4
|
+
IVideoEncodedFrameObserver,
|
|
5
|
+
IVideoFrameObserver,
|
|
6
|
+
} from '../AgoraMediaBase';
|
|
7
|
+
|
|
8
|
+
export type IMediaEngineEvent = IAudioFrameObserver &
|
|
9
|
+
IVideoFrameObserver &
|
|
10
|
+
IVideoEncodedFrameObserver &
|
|
11
|
+
IFaceInfoObserver;
|
|
12
|
+
|
|
13
|
+
declare module '../IAgoraMediaEngine' {
|
|
14
|
+
interface IMediaEngine {
|
|
15
|
+
_addListenerPreCheck<EventType extends keyof IMediaEngineEvent>(
|
|
16
|
+
eventType: EventType
|
|
17
|
+
): boolean;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Adds one IMediaEngineEvent listener.
|
|
21
|
+
* After calling this method, you can listen for the corresponding events in the IMediaEngine object and obtain data through IMediaEngineEvent. Depending on your project needs, you can add multiple listeners for the same event.
|
|
22
|
+
*
|
|
23
|
+
* @param eventType The name of the target event to listen for. See IMediaEngineEvent.
|
|
24
|
+
*
|
|
25
|
+
* @param listener The callback function for eventType. Take adding a listener for onPlaybackAudioFrameBeforeMixing as an example: // Create an onPlaybackAudioFrameBeforeMixing object
|
|
26
|
+
* const onPlaybackAudioFrameBeforeMixing = (channelId: string, uid: number, audioFrame: AudioFrame) => {};
|
|
27
|
+
* // Add one onPlaybackAudioFrameBeforeMixing listener
|
|
28
|
+
* engine.addListener('onPlaybackAudioFrameBeforeMixing', onPlaybackAudioFrameBeforeMixing);
|
|
29
|
+
*/
|
|
30
|
+
addListener<EventType extends keyof IMediaEngineEvent>(
|
|
31
|
+
eventType: EventType,
|
|
32
|
+
listener: IMediaEngineEvent[EventType]
|
|
33
|
+
): void;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Removes the specified IMediaEngineEvent listener.
|
|
37
|
+
* For listened events, if you no longer need to receive the callback message, you can call this method to remove the corresponding listener.
|
|
38
|
+
*
|
|
39
|
+
* @param eventType The name of the target event to listen for. See IMediaEngineEvent.
|
|
40
|
+
*
|
|
41
|
+
* @param listener The callback function for eventType. Must pass in the same function object in addListener . Take removing the listener for onJoinChannelSuccess as an example: // Create an onPlaybackAudioFrameBeforeMixing object
|
|
42
|
+
* const onPlaybackAudioFrameBeforeMixing = (channelId: string, uid: number, audioFrame: AudioFrame) => {};
|
|
43
|
+
* // Add one onPlaybackAudioFrameBeforeMixing listener
|
|
44
|
+
* engine.addListener('onPlaybackAudioFrameBeforeMixing', onPlaybackAudioFrameBeforeMixing);
|
|
45
|
+
* // Remove the onPlaybackAudioFrameBeforeMixing listener
|
|
46
|
+
* engine.removeListener('onPlaybackAudioFrameBeforeMixing', onPlaybackAudioFrameBeforeMixing);
|
|
47
|
+
*/
|
|
48
|
+
removeListener<EventType extends keyof IMediaEngineEvent>(
|
|
49
|
+
eventType: EventType,
|
|
50
|
+
listener?: IMediaEngineEvent[EventType]
|
|
51
|
+
): void;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Removes all listeners for the specified event.
|
|
55
|
+
*
|
|
56
|
+
* @param eventType The name of the target event to listen for. See IMediaEngineEvent.
|
|
57
|
+
*/
|
|
58
|
+
removeAllListeners<EventType extends keyof IMediaEngineEvent>(
|
|
59
|
+
eventType?: EventType
|
|
60
|
+
): void;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { IAudioPcmFrameSink, IAudioSpectrumObserver } from '../AgoraMediaBase';
|
|
2
|
+
import { IMediaPlayerVideoFrameObserver } from '../IAgoraMediaPlayer';
|
|
3
|
+
import { IMediaPlayerSourceObserver } from '../IAgoraMediaPlayerSource';
|
|
4
|
+
|
|
5
|
+
export type IMediaPlayerEvent = IMediaPlayerSourceObserver &
|
|
6
|
+
IAudioPcmFrameSink &
|
|
7
|
+
IMediaPlayerVideoFrameObserver &
|
|
8
|
+
IAudioSpectrumObserver;
|
|
9
|
+
|
|
10
|
+
declare module '../IAgoraMediaPlayer' {
|
|
11
|
+
interface IMediaPlayer {
|
|
12
|
+
_addListenerPreCheck<EventType extends keyof IMediaPlayerEvent>(
|
|
13
|
+
eventType: EventType
|
|
14
|
+
): boolean;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Adds one IMediaPlayerEvent listener.
|
|
18
|
+
* After calling this method, you can listen for the corresponding events in the IMediaPlayer object and obtain data through IMediaPlayerEvent. Depending on your project needs, you can add multiple listeners for the same event.
|
|
19
|
+
*
|
|
20
|
+
* @param eventType The name of the target event to listen for. See IMediaPlayerEvent.
|
|
21
|
+
*
|
|
22
|
+
* @param listener The callback function for eventType. Take adding a listener for onPlayerSourceStateChanged as an example: // Create an onPlayerSourceStateChanged object
|
|
23
|
+
* const onPlayerSourceStateChanged = (connection: RtcConnection, elapsed: number) => {};
|
|
24
|
+
* // Add one onPlayerSourceStateChanged listener
|
|
25
|
+
* engine.addListener('onPlayerSourceStateChanged', onPlayerSourceStateChanged);
|
|
26
|
+
*/
|
|
27
|
+
addListener<EventType extends keyof IMediaPlayerEvent>(
|
|
28
|
+
eventType: EventType,
|
|
29
|
+
listener: IMediaPlayerEvent[EventType]
|
|
30
|
+
): void;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Removes the specified IMediaPlayerEvent listener.
|
|
34
|
+
* For listened events, if you no longer need to receive the callback message, you can call this method to remove the corresponding listener.
|
|
35
|
+
*
|
|
36
|
+
* @param eventType The name of the target event to listen for. See IMediaPlayerEvent.
|
|
37
|
+
*
|
|
38
|
+
* @param listener The callback function for eventType. Must pass in the same function object in addListener . Take removing the listener for onPlayerSourceStateChanged as an example: // Create an onPlayerSourceStateChanged object
|
|
39
|
+
* const onPlayerSourceStateChanged = (state: MediaPlayerState, ec: MediaPlayerError) => {};
|
|
40
|
+
* // Add one onPlayerSourceStateChanged listener
|
|
41
|
+
* engine.addListener('onPlayerSourceStateChanged', onPlayerSourceStateChanged);
|
|
42
|
+
* // Remove the onPlayerSourceStateChanged listener
|
|
43
|
+
* engine.removeListener('onPlayerSourceStateChanged', onPlayerSourceStateChanged);
|
|
44
|
+
*/
|
|
45
|
+
removeListener<EventType extends keyof IMediaPlayerEvent>(
|
|
46
|
+
eventType: EventType,
|
|
47
|
+
listener?: IMediaPlayerEvent[EventType]
|
|
48
|
+
): void;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Removes all listeners for the specified event.
|
|
52
|
+
*
|
|
53
|
+
* @param eventType The name of the target event to listen for. See IMediaPlayerEvent.
|
|
54
|
+
*/
|
|
55
|
+
removeAllListeners<EventType extends keyof IMediaPlayerEvent>(
|
|
56
|
+
eventType?: EventType
|
|
57
|
+
): void;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @ignore
|
|
61
|
+
*/
|
|
62
|
+
release(): void;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|