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,278 @@
|
|
|
1
|
+
package io.agora.rtc.ng.react;
|
|
2
|
+
|
|
3
|
+
import android.app.Activity;
|
|
4
|
+
import android.util.Base64;
|
|
5
|
+
import android.graphics.Rect;
|
|
6
|
+
import android.os.Build;
|
|
7
|
+
import android.util.Rational;
|
|
8
|
+
|
|
9
|
+
import androidx.annotation.NonNull;
|
|
10
|
+
|
|
11
|
+
import com.facebook.react.bridge.Arguments;
|
|
12
|
+
import com.facebook.react.bridge.Promise;
|
|
13
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
14
|
+
import com.facebook.react.bridge.ReactMethod;
|
|
15
|
+
import com.facebook.react.bridge.ReadableArray;
|
|
16
|
+
import com.facebook.react.bridge.ReadableMap;
|
|
17
|
+
import com.facebook.react.bridge.WritableArray;
|
|
18
|
+
import com.facebook.react.bridge.WritableMap;
|
|
19
|
+
import com.facebook.react.module.annotations.ReactModule;
|
|
20
|
+
import com.facebook.react.modules.core.DeviceEventManagerModule;
|
|
21
|
+
|
|
22
|
+
import org.json.JSONException;
|
|
23
|
+
import org.json.JSONObject;
|
|
24
|
+
|
|
25
|
+
import java.util.ArrayList;
|
|
26
|
+
import java.util.List;
|
|
27
|
+
import java.util.Map;
|
|
28
|
+
|
|
29
|
+
import io.agora.iris.IrisApiEngine;
|
|
30
|
+
import io.agora.iris.IrisEventHandler;
|
|
31
|
+
|
|
32
|
+
import io.agora.iris.pip.AgoraPIPActivityProxy;
|
|
33
|
+
import io.agora.iris.pip.AgoraPIPController;
|
|
34
|
+
|
|
35
|
+
@ReactModule(name = AgoraRtcNgModule.NAME)
|
|
36
|
+
public class AgoraRtcNgModule extends AgoraRtcNgSpec implements IrisEventHandler {
|
|
37
|
+
public static final String NAME = "AgoraRtcNg";
|
|
38
|
+
public final Object irisApiLock = new Object();
|
|
39
|
+
public IrisApiEngine irisApiEngine;
|
|
40
|
+
private AgoraPIPController pipController;
|
|
41
|
+
|
|
42
|
+
AgoraRtcNgModule(ReactApplicationContext context) {
|
|
43
|
+
super(context);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@Override
|
|
47
|
+
@NonNull
|
|
48
|
+
public String getName() {
|
|
49
|
+
return NAME;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@ReactMethod(isBlockingSynchronousMethod = true)
|
|
53
|
+
public boolean newIrisApiEngine() {
|
|
54
|
+
synchronized (irisApiLock) {
|
|
55
|
+
if (irisApiEngine == null) {
|
|
56
|
+
IrisApiEngine.enableUseJsonArray(true);
|
|
57
|
+
irisApiEngine = new IrisApiEngine(getReactApplicationContext());
|
|
58
|
+
irisApiEngine.setEventHandler(this);
|
|
59
|
+
Activity currentActivity = getReactApplicationContext().getCurrentActivity();
|
|
60
|
+
if (currentActivity != null) {
|
|
61
|
+
initPipController(currentActivity);
|
|
62
|
+
}
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@ReactMethod(isBlockingSynchronousMethod = true)
|
|
70
|
+
public boolean destroyIrisApiEngine() {
|
|
71
|
+
synchronized (irisApiLock) {
|
|
72
|
+
if (irisApiEngine != null) {
|
|
73
|
+
irisApiEngine.setEventHandler(null);
|
|
74
|
+
irisApiEngine.destroy();
|
|
75
|
+
irisApiEngine = null;
|
|
76
|
+
pipController = null;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@ReactMethod(isBlockingSynchronousMethod = true)
|
|
84
|
+
public String callApi(ReadableMap args) {
|
|
85
|
+
synchronized (irisApiLock) {
|
|
86
|
+
String funcName = args.getString("funcName");
|
|
87
|
+
String params = args.getString("params");
|
|
88
|
+
List<byte[]> buffers = null;
|
|
89
|
+
|
|
90
|
+
ReadableArray array = args.getArray("buffers");
|
|
91
|
+
if (array != null) {
|
|
92
|
+
buffers = new ArrayList<>();
|
|
93
|
+
for (int i = 0; i < array.size(); i++) {
|
|
94
|
+
buffers.add(Base64.decode(array.getString(i), Base64.DEFAULT));
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
try {
|
|
99
|
+
newIrisApiEngine();
|
|
100
|
+
return irisApiEngine.callIrisApi(funcName, params, buffers);
|
|
101
|
+
} catch (Exception e) {
|
|
102
|
+
e.printStackTrace();
|
|
103
|
+
try {
|
|
104
|
+
return new JSONObject().put("result", e.getMessage()).toString();
|
|
105
|
+
} catch (JSONException ex) {
|
|
106
|
+
throw new RuntimeException(ex);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
private void initPipController(@NonNull Activity activity) {
|
|
113
|
+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
|
114
|
+
|
|
115
|
+
if (!(activity instanceof AgoraPIPActivityProxy)) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (pipController != null) {
|
|
120
|
+
pipController.dispose();
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
pipController = new AgoraPIPController(
|
|
124
|
+
(AgoraPIPActivityProxy) activity,
|
|
125
|
+
new AgoraPIPController.PIPStateChangedListener() {
|
|
126
|
+
@Override
|
|
127
|
+
public void onPIPStateChangedListener(
|
|
128
|
+
AgoraPIPController.PIPState state, String error) {
|
|
129
|
+
try {
|
|
130
|
+
OnEvent("AgoraPip_onPipStateChanged",
|
|
131
|
+
new JSONObject().put("state", state.getValue()).put("error", error).toString(), null);
|
|
132
|
+
} catch (JSONException e) {
|
|
133
|
+
throw new RuntimeException(e);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@ReactMethod
|
|
141
|
+
public void showRPSystemBroadcastPickerView(boolean showsMicrophoneButton, Promise promise) {
|
|
142
|
+
promise.reject("", "not support");
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@ReactMethod
|
|
146
|
+
public void addListener(String eventName) {
|
|
147
|
+
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@ReactMethod
|
|
151
|
+
public void removeListeners(double count) {
|
|
152
|
+
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
private boolean checkPipIsReady() {
|
|
156
|
+
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
|
|
157
|
+
return false;
|
|
158
|
+
}
|
|
159
|
+
if (pipController == null) {
|
|
160
|
+
return false;
|
|
161
|
+
}
|
|
162
|
+
return true;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@ReactMethod(isBlockingSynchronousMethod = true)
|
|
166
|
+
public boolean pipIsSupported() {
|
|
167
|
+
synchronized (irisApiLock) {
|
|
168
|
+
return checkPipIsReady() && pipController.isSupported();
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
@ReactMethod(isBlockingSynchronousMethod = true)
|
|
173
|
+
public boolean pipIsAutoEnterSupported() {
|
|
174
|
+
synchronized (irisApiLock) {
|
|
175
|
+
return checkPipIsReady() && pipController.isAutoEnterSupported();
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
@ReactMethod(isBlockingSynchronousMethod = true)
|
|
180
|
+
public boolean isPipActivated() {
|
|
181
|
+
synchronized (irisApiLock) {
|
|
182
|
+
return checkPipIsReady() && pipController.isActivated();
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
@ReactMethod(isBlockingSynchronousMethod = true)
|
|
187
|
+
public boolean pipSetup(ReadableMap options) {
|
|
188
|
+
synchronized (irisApiLock) {
|
|
189
|
+
if (!checkPipIsReady()) {
|
|
190
|
+
return false;
|
|
191
|
+
}
|
|
192
|
+
Rational aspectRatio = null;
|
|
193
|
+
if (options.hasKey("aspectRatioX") && options.hasKey("aspectRatioY")) {
|
|
194
|
+
aspectRatio = new Rational(options.getInt("aspectRatioX"),
|
|
195
|
+
options.getInt("aspectRatioY"));
|
|
196
|
+
}
|
|
197
|
+
Boolean autoEnterEnabled = null;
|
|
198
|
+
if (options.hasKey("autoEnterEnabled")) {
|
|
199
|
+
autoEnterEnabled = options.getBoolean("autoEnterEnabled");
|
|
200
|
+
}
|
|
201
|
+
Rect sourceRectHint = null;
|
|
202
|
+
if (options.hasKey("sourceRectHintLeft") &&
|
|
203
|
+
options.hasKey("sourceRectHintTop") &&
|
|
204
|
+
options.hasKey("sourceRectHintRight") &&
|
|
205
|
+
options.hasKey("sourceRectHintBottom")) {
|
|
206
|
+
sourceRectHint = new Rect(
|
|
207
|
+
options.getInt("sourceRectHintLeft"),
|
|
208
|
+
options.getInt("sourceRectHintTop"),
|
|
209
|
+
options.getInt("sourceRectHintRight"),
|
|
210
|
+
options.getInt("sourceRectHintBottom"));
|
|
211
|
+
}
|
|
212
|
+
Boolean seamlessResizeEnabled = null;
|
|
213
|
+
if (options.hasKey("seamlessResizeEnabled")) {
|
|
214
|
+
seamlessResizeEnabled = options.getBoolean("seamlessResizeEnabled");
|
|
215
|
+
}
|
|
216
|
+
Boolean useExternalStateMonitor = null;
|
|
217
|
+
if (options.hasKey("useExternalStateMonitor")) {
|
|
218
|
+
useExternalStateMonitor = options.getBoolean("useExternalStateMonitor");
|
|
219
|
+
} else {
|
|
220
|
+
useExternalStateMonitor = true;
|
|
221
|
+
}
|
|
222
|
+
Integer externalStateMonitorInterval = null;
|
|
223
|
+
if (options.hasKey("externalStateMonitorInterval")) {
|
|
224
|
+
externalStateMonitorInterval = options.getInt("externalStateMonitorInterval");
|
|
225
|
+
} else {
|
|
226
|
+
externalStateMonitorInterval = 100;
|
|
227
|
+
}
|
|
228
|
+
boolean result = pipController.setup(
|
|
229
|
+
aspectRatio, autoEnterEnabled, sourceRectHint,
|
|
230
|
+
seamlessResizeEnabled, useExternalStateMonitor,
|
|
231
|
+
externalStateMonitorInterval);
|
|
232
|
+
return result;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
@ReactMethod(isBlockingSynchronousMethod = true)
|
|
237
|
+
public boolean pipStart() {
|
|
238
|
+
synchronized (irisApiLock) {
|
|
239
|
+
return checkPipIsReady() && pipController.start();
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
@ReactMethod(isBlockingSynchronousMethod = true)
|
|
244
|
+
public void pipStop() {
|
|
245
|
+
synchronized (irisApiLock) {
|
|
246
|
+
if (checkPipIsReady()) {
|
|
247
|
+
pipController.stop();
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
@ReactMethod(isBlockingSynchronousMethod = true)
|
|
253
|
+
public void pipDispose() {
|
|
254
|
+
synchronized (irisApiLock) {
|
|
255
|
+
if (checkPipIsReady()) {
|
|
256
|
+
pipController.dispose();
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
@Override
|
|
262
|
+
public void OnEvent(String event, String data, List<byte[]> buffers) {
|
|
263
|
+
final WritableMap map = Arguments.createMap();
|
|
264
|
+
map.putString("event", event);
|
|
265
|
+
map.putString("data", data);
|
|
266
|
+
if (buffers != null) {
|
|
267
|
+
WritableArray array = Arguments.createArray();
|
|
268
|
+
for (byte[] buffer : buffers) {
|
|
269
|
+
String base64 = Base64.encodeToString(buffer, Base64.DEFAULT);
|
|
270
|
+
array.pushString(base64);
|
|
271
|
+
}
|
|
272
|
+
map.putArray("buffers", array);
|
|
273
|
+
}
|
|
274
|
+
getReactApplicationContext()
|
|
275
|
+
.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
|
|
276
|
+
.emit("AgoraRtcNg:onEvent", map);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
package io.agora.rtc.ng.react;
|
|
2
|
+
|
|
3
|
+
import androidx.annotation.NonNull;
|
|
4
|
+
import androidx.annotation.Nullable;
|
|
5
|
+
|
|
6
|
+
import com.facebook.react.TurboReactPackage;
|
|
7
|
+
import com.facebook.react.bridge.ModuleHolder;
|
|
8
|
+
import com.facebook.react.bridge.ModuleSpec;
|
|
9
|
+
import com.facebook.react.bridge.NativeModule;
|
|
10
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
11
|
+
import com.facebook.react.module.model.ReactModuleInfo;
|
|
12
|
+
import com.facebook.react.module.model.ReactModuleInfoProvider;
|
|
13
|
+
import com.facebook.react.uimanager.ViewManager;
|
|
14
|
+
|
|
15
|
+
import java.util.ArrayList;
|
|
16
|
+
import java.util.Collections;
|
|
17
|
+
import java.util.HashMap;
|
|
18
|
+
import java.util.List;
|
|
19
|
+
import java.util.Map;
|
|
20
|
+
|
|
21
|
+
public class AgoraRtcNgPackage extends TurboReactPackage {
|
|
22
|
+
|
|
23
|
+
@Nullable
|
|
24
|
+
@Override
|
|
25
|
+
public NativeModule getModule(String name, ReactApplicationContext reactContext) {
|
|
26
|
+
if (name.equals(AgoraRtcNgModule.NAME)) {
|
|
27
|
+
return new AgoraRtcNgModule(reactContext);
|
|
28
|
+
} else {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@Override
|
|
34
|
+
public ReactModuleInfoProvider getReactModuleInfoProvider() {
|
|
35
|
+
return () -> {
|
|
36
|
+
final Map<String, ReactModuleInfo> moduleInfos = new HashMap<>();
|
|
37
|
+
boolean isTurboModule = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED;
|
|
38
|
+
moduleInfos.put(
|
|
39
|
+
AgoraRtcNgModule.NAME,
|
|
40
|
+
new ReactModuleInfo(
|
|
41
|
+
AgoraRtcNgModule.NAME,
|
|
42
|
+
AgoraRtcNgModule.NAME,
|
|
43
|
+
false, // canOverrideExistingModule
|
|
44
|
+
false, // needsEagerInit
|
|
45
|
+
true, // hasConstants
|
|
46
|
+
false, // isCxxModule
|
|
47
|
+
isTurboModule // isTurboModule
|
|
48
|
+
));
|
|
49
|
+
return moduleInfos;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@NonNull
|
|
54
|
+
@Override
|
|
55
|
+
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
|
|
56
|
+
List<ViewManager> viewManagers = new ArrayList<>();
|
|
57
|
+
viewManagers.add(new AgoraRtcSurfaceViewManager());
|
|
58
|
+
viewManagers.add(new AgoraRtcTextureViewManager());
|
|
59
|
+
return viewManagers;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
package io.agora.rtc.ng.react;
|
|
2
|
+
|
|
3
|
+
import android.view.SurfaceView;
|
|
4
|
+
import android.widget.FrameLayout;
|
|
5
|
+
|
|
6
|
+
import androidx.annotation.Nullable;
|
|
7
|
+
|
|
8
|
+
import com.facebook.react.bridge.ReadableMap;
|
|
9
|
+
import com.facebook.react.module.annotations.ReactModule;
|
|
10
|
+
import com.facebook.react.uimanager.ThemedReactContext;
|
|
11
|
+
import com.facebook.react.uimanager.annotations.ReactProp;
|
|
12
|
+
|
|
13
|
+
@ReactModule(name = AgoraRtcSurfaceViewManager.NAME)
|
|
14
|
+
public class AgoraRtcSurfaceViewManager extends AgoraRtcSurfaceViewManagerSpec<FrameLayout> {
|
|
15
|
+
|
|
16
|
+
public static final String NAME = "AgoraRtcSurfaceView";
|
|
17
|
+
private ThemedReactContext context;
|
|
18
|
+
|
|
19
|
+
@Override
|
|
20
|
+
public String getName() {
|
|
21
|
+
return NAME;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@Override
|
|
25
|
+
public FrameLayout createViewInstance(ThemedReactContext context) {
|
|
26
|
+
this.context = context;
|
|
27
|
+
FrameLayout layout = new FrameLayout(context.getReactApplicationContext());
|
|
28
|
+
layout.addView(new SurfaceView(context.getApplicationContext()));
|
|
29
|
+
return layout;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@Override
|
|
33
|
+
@ReactProp(name = "callApi")
|
|
34
|
+
public void setCallApi(FrameLayout view, @Nullable ReadableMap arguments) {
|
|
35
|
+
String funcName = arguments.getString("funcName");
|
|
36
|
+
String params = arguments.getString("params");
|
|
37
|
+
AgoraRtcNgModule module = context.getNativeModule(AgoraRtcNgModule.class);
|
|
38
|
+
synchronized (module.irisApiLock) {
|
|
39
|
+
if (module != null) {
|
|
40
|
+
try {
|
|
41
|
+
module.irisApiEngine.callIrisApi(funcName, params, view.getChildAt(0));
|
|
42
|
+
} catch (Exception e) {
|
|
43
|
+
e.printStackTrace();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@Override
|
|
50
|
+
@ReactProp(name = "zOrderOnTop")
|
|
51
|
+
public void setZOrderOnTop(FrameLayout view, boolean onTop) {
|
|
52
|
+
((SurfaceView) view.getChildAt(0)).setZOrderOnTop(onTop);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@Override
|
|
56
|
+
@ReactProp(name = "zOrderMediaOverlay")
|
|
57
|
+
public void setZOrderMediaOverlay(FrameLayout view, boolean isMediaOverlay) {
|
|
58
|
+
((SurfaceView) view.getChildAt(0)).setZOrderMediaOverlay(isMediaOverlay);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
package io.agora.rtc.ng.react;
|
|
2
|
+
|
|
3
|
+
import android.view.TextureView;
|
|
4
|
+
|
|
5
|
+
import com.facebook.react.bridge.ReadableMap;
|
|
6
|
+
import com.facebook.react.module.annotations.ReactModule;
|
|
7
|
+
import com.facebook.react.uimanager.ThemedReactContext;
|
|
8
|
+
import com.facebook.react.uimanager.annotations.ReactProp;
|
|
9
|
+
|
|
10
|
+
import javax.annotation.Nullable;
|
|
11
|
+
|
|
12
|
+
@ReactModule(name = AgoraRtcTextureViewManager.NAME)
|
|
13
|
+
public class AgoraRtcTextureViewManager extends AgoraRtcTextureViewManagerSpec<TextureView> {
|
|
14
|
+
|
|
15
|
+
public static final String NAME = "AgoraRtcTextureView";
|
|
16
|
+
private ThemedReactContext context;
|
|
17
|
+
|
|
18
|
+
@Override
|
|
19
|
+
public String getName() {
|
|
20
|
+
return NAME;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@Override
|
|
24
|
+
public TextureView createViewInstance(ThemedReactContext context) {
|
|
25
|
+
this.context = context;
|
|
26
|
+
return new TextureView(context.getApplicationContext());
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@Override
|
|
30
|
+
@ReactProp(name = "callApi")
|
|
31
|
+
public void setCallApi(TextureView view, @Nullable ReadableMap arguments) {
|
|
32
|
+
String funcName = arguments.getString("funcName");
|
|
33
|
+
String params = arguments.getString("params");
|
|
34
|
+
AgoraRtcNgModule module = context.getNativeModule(AgoraRtcNgModule.class);
|
|
35
|
+
synchronized (module.irisApiLock) {
|
|
36
|
+
if (module != null) {
|
|
37
|
+
try {
|
|
38
|
+
module.irisApiEngine.callIrisApi(funcName, params, view);
|
|
39
|
+
} catch (Exception e) {
|
|
40
|
+
e.printStackTrace();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
package io.agora.rtc.ng.react;
|
|
2
|
+
|
|
3
|
+
import android.view.View;
|
|
4
|
+
|
|
5
|
+
import com.facebook.react.uimanager.SimpleViewManager;
|
|
6
|
+
import com.facebook.react.uimanager.ViewManagerDelegate;
|
|
7
|
+
import com.facebook.react.viewmanagers.AgoraRtcSurfaceViewManagerDelegate;
|
|
8
|
+
import com.facebook.react.viewmanagers.AgoraRtcSurfaceViewManagerInterface;
|
|
9
|
+
|
|
10
|
+
import javax.annotation.Nullable;
|
|
11
|
+
|
|
12
|
+
public abstract class AgoraRtcSurfaceViewManagerSpec<T extends View> extends SimpleViewManager<T> implements AgoraRtcSurfaceViewManagerInterface<T> {
|
|
13
|
+
|
|
14
|
+
private final ViewManagerDelegate<T> mDelegate;
|
|
15
|
+
|
|
16
|
+
public AgoraRtcSurfaceViewManagerSpec() {
|
|
17
|
+
mDelegate = new AgoraRtcSurfaceViewManagerDelegate(this);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@Nullable
|
|
21
|
+
@Override
|
|
22
|
+
protected ViewManagerDelegate<T> getDelegate() {
|
|
23
|
+
return mDelegate;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
package io.agora.rtc.ng.react;
|
|
2
|
+
|
|
3
|
+
import android.view.View;
|
|
4
|
+
|
|
5
|
+
import com.facebook.react.uimanager.SimpleViewManager;
|
|
6
|
+
import com.facebook.react.uimanager.ViewManagerDelegate;
|
|
7
|
+
import com.facebook.react.viewmanagers.AgoraRtcTextureViewManagerDelegate;
|
|
8
|
+
import com.facebook.react.viewmanagers.AgoraRtcTextureViewManagerInterface;
|
|
9
|
+
|
|
10
|
+
import javax.annotation.Nullable;
|
|
11
|
+
|
|
12
|
+
public abstract class AgoraRtcTextureViewManagerSpec<T extends View> extends SimpleViewManager<T> implements AgoraRtcTextureViewManagerInterface<T> {
|
|
13
|
+
|
|
14
|
+
private final ViewManagerDelegate<T> mDelegate;
|
|
15
|
+
|
|
16
|
+
public AgoraRtcTextureViewManagerSpec() {
|
|
17
|
+
mDelegate = new AgoraRtcTextureViewManagerDelegate(this);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@Nullable
|
|
21
|
+
@Override
|
|
22
|
+
protected ViewManagerDelegate<T> getDelegate() {
|
|
23
|
+
return mDelegate;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
package io.agora.rtc.ng.react;
|
|
2
|
+
|
|
3
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
4
|
+
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
5
|
+
import com.facebook.react.bridge.Promise;
|
|
6
|
+
import com.facebook.react.bridge.ReactMethod;
|
|
7
|
+
import com.facebook.react.bridge.ReadableMap;
|
|
8
|
+
|
|
9
|
+
public abstract class AgoraRtcNgSpec extends ReactContextBaseJavaModule {
|
|
10
|
+
AgoraRtcNgSpec(ReactApplicationContext context) {
|
|
11
|
+
super(context);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
public abstract boolean newIrisApiEngine();
|
|
15
|
+
|
|
16
|
+
public abstract boolean destroyIrisApiEngine();
|
|
17
|
+
|
|
18
|
+
public abstract String callApi(ReadableMap arguments);
|
|
19
|
+
|
|
20
|
+
public abstract void showRPSystemBroadcastPickerView(boolean showsMicrophoneButton, Promise promise);
|
|
21
|
+
|
|
22
|
+
public abstract void addListener(String eventName);
|
|
23
|
+
|
|
24
|
+
public abstract void removeListeners(double count);
|
|
25
|
+
|
|
26
|
+
public abstract boolean pipIsSupported();
|
|
27
|
+
|
|
28
|
+
public abstract boolean pipIsAutoEnterSupported();
|
|
29
|
+
|
|
30
|
+
public abstract boolean isPipActivated();
|
|
31
|
+
|
|
32
|
+
public abstract boolean pipSetup(ReadableMap options);
|
|
33
|
+
|
|
34
|
+
public abstract boolean pipStart();
|
|
35
|
+
|
|
36
|
+
public abstract void pipStop();
|
|
37
|
+
|
|
38
|
+
public abstract void pipDispose();
|
|
39
|
+
|
|
40
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
package io.agora.rtc.ng.react;
|
|
2
|
+
|
|
3
|
+
import android.view.View;
|
|
4
|
+
|
|
5
|
+
import androidx.annotation.Nullable;
|
|
6
|
+
|
|
7
|
+
import com.facebook.react.bridge.ReadableMap;
|
|
8
|
+
import com.facebook.react.uimanager.SimpleViewManager;
|
|
9
|
+
|
|
10
|
+
public abstract class AgoraRtcSurfaceViewManagerSpec<T extends View> extends SimpleViewManager<T> {
|
|
11
|
+
public abstract void setCallApi(T view, @Nullable ReadableMap arguments);
|
|
12
|
+
|
|
13
|
+
public abstract void setZOrderOnTop(T view, boolean onTop);
|
|
14
|
+
|
|
15
|
+
public abstract void setZOrderMediaOverlay(T view, boolean isMediaOverlay);
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
package io.agora.rtc.ng.react;
|
|
2
|
+
|
|
3
|
+
import android.view.View;
|
|
4
|
+
|
|
5
|
+
import androidx.annotation.Nullable;
|
|
6
|
+
|
|
7
|
+
import com.facebook.react.bridge.ReadableMap;
|
|
8
|
+
import com.facebook.react.uimanager.SimpleViewManager;
|
|
9
|
+
|
|
10
|
+
public abstract class AgoraRtcTextureViewManagerSpec<T extends View> extends SimpleViewManager<T> {
|
|
11
|
+
public abstract void setCallApi(T view, @Nullable ReadableMap arguments);
|
|
12
|
+
}
|
package/ios/AgoraRtcNg.h
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#import <UIKit/UIKit.h>
|
|
2
|
+
#import <AgoraRtcWrapper/iris_engine_base.h>
|
|
3
|
+
#import <React/RCTEventEmitter.h>
|
|
4
|
+
|
|
5
|
+
#ifdef RCT_NEW_ARCH_ENABLED
|
|
6
|
+
#import "AgoraRtcNgSpec.h"
|
|
7
|
+
|
|
8
|
+
@interface AgoraRtcNg : RCTEventEmitter <NativeAgoraRtcNgSpec>
|
|
9
|
+
#else
|
|
10
|
+
#import <React/RCTBridgeModule.h>
|
|
11
|
+
|
|
12
|
+
@interface AgoraRtcNg : RCTEventEmitter <RCTBridgeModule, RCTInvalidating>
|
|
13
|
+
#endif
|
|
14
|
+
|
|
15
|
+
@property(nonatomic) IApiEngineBase *irisApiEngine;
|
|
16
|
+
// @property(nonatomic) AgoraPIPController *pipController;
|
|
17
|
+
|
|
18
|
+
+ (instancetype)shareInstance;
|
|
19
|
+
|
|
20
|
+
@end
|