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
package/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Agora.io
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
in the Software without restriction, including without limitation the rights
|
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
> ⚠️ **Note**: To provide you with better and higher quality technical support services, we will no longer provide technical support through GitHub issues. If you need help, please contact us directly through [Agora Support](https://www.agora.io/en/customer-support/).
|
|
2
|
+
|
|
3
|
+
> NOTE: These sdk and samples only for the Agora Video 4.x APIs. For examples using previous releases please see the following branches:
|
|
4
|
+
>
|
|
5
|
+
> - [3.x](https://github.com/AgoraIO-Extensions/react-native-agora/tree/3.x)
|
|
6
|
+
|
|
7
|
+
# react-native-agora
|
|
8
|
+
|
|
9
|
+
[](https://www.npmjs.com/package/react-native-agora)
|
|
10
|
+
[](https://www.npmjs.com/package/react-native-agora)
|
|
11
|
+
[](https://www.npmjs.com/package/react-native-agora)
|
|
12
|
+
[](LICENSE)
|
|
13
|
+
|
|
14
|
+
This SDK takes advantage of React Native and Agora RTC Video SDK on Android && iOS.
|
|
15
|
+
|
|
16
|
+
## Community Contributor
|
|
17
|
+
|
|
18
|
+
The community developer [Syanbo](https://github.com/syanbo) developed 1.0 version React Native SDK based on the Agora
|
|
19
|
+
Native SDK from 2016 to 2017. As the community's demand for React Native SDK keeps growing, Agora has achieved official
|
|
20
|
+
cooperation with Syanbo, this project now is officially maintained by Agora. Thanks to Syanbo for his long-term
|
|
21
|
+
contributions to React Native SDK.
|
|
22
|
+
|
|
23
|
+
## Release Note
|
|
24
|
+
|
|
25
|
+
[Changelog](CHANGELOG.md)
|
|
26
|
+
|
|
27
|
+
## Installation
|
|
28
|
+
|
|
29
|
+
### Installing (React Native >= 0.60.0)
|
|
30
|
+
|
|
31
|
+
Install `react-native-agora`(^4.0.0):
|
|
32
|
+
|
|
33
|
+
```shell script
|
|
34
|
+
yarn add react-native-agora
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
or
|
|
38
|
+
|
|
39
|
+
```shell script
|
|
40
|
+
npm i --save react-native-agora
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Go to your **ios** folder and run:
|
|
44
|
+
|
|
45
|
+
```shell script
|
|
46
|
+
pod install
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## General Usage
|
|
50
|
+
|
|
51
|
+
```typescript
|
|
52
|
+
import { createAgoraRtcEngine } from 'react-native-agora';
|
|
53
|
+
|
|
54
|
+
const engine = createAgoraRtcEngine();
|
|
55
|
+
engine.initialize({ appId: 'YOUR APP ID' });
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
or
|
|
59
|
+
|
|
60
|
+
```javascript
|
|
61
|
+
const createAgoraRtcEngine = require('react-native-agora');
|
|
62
|
+
const engine = createAgoraRtcEngine();
|
|
63
|
+
engine.initialize({ appId: 'YOUR APP ID' });
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Using TypeScript
|
|
67
|
+
|
|
68
|
+
We suggest you use TypeScript to develop, or use TypeScript eslint to lint your code.
|
|
69
|
+
|
|
70
|
+
- [Getting Started with TypeScript](https://reactnative.dev/docs/typescript#getting-started-with-typescript)
|
|
71
|
+
- [Adding TypeScript to an Existing Project](https://reactnative.dev/docs/typescript#adding-typescript-to-an-existing-project)
|
|
72
|
+
|
|
73
|
+
## Troubleshooting
|
|
74
|
+
|
|
75
|
+
### Pod install failed (React Native >= 0.62.0)
|
|
76
|
+
|
|
77
|
+
The error log:
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
[!] The 'xxx' target has libraries with conflicting names: libcrypto.a.
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
You should disable Flipper, you can found it in the Podfile, and comment the code about Flipper in AppDelegate.
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
# Enables Flipper.
|
|
87
|
+
#
|
|
88
|
+
# Note that if you have use_frameworks! enabled, Flipper will not work and
|
|
89
|
+
# you should disable these next few lines.
|
|
90
|
+
add_flipper_pods!
|
|
91
|
+
post_install do |installer|
|
|
92
|
+
flipper_post_install(installer)
|
|
93
|
+
end
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### RCT_EXTERN_MODULE Swift modules broken in Xcode 10.2
|
|
97
|
+
|
|
98
|
+
The error log:
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
Swift class extensions and categories on Swift classes are not allowed to have +load methods
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Fixed in React Native 0.59.3.
|
|
105
|
+
|
|
106
|
+
Source: https://github.com/facebook/react-native/issues/24139
|
|
107
|
+
|
|
108
|
+
### XCode 11 Beta App Launch Crash
|
|
109
|
+
|
|
110
|
+
The error log:
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
Exception '*** -[__NSArrayM objectAtIndexedSubscript:]: index 1 beyond bounds [0 .. 0]' was thrown while invoking getCurrentAppState on target AppState with params (
|
|
114
|
+
2,
|
|
115
|
+
3
|
|
116
|
+
)
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Fixed in React Native 0.59.9.
|
|
120
|
+
|
|
121
|
+
Source: https://github.com/facebook/react-native/issues/25154
|
|
122
|
+
|
|
123
|
+
### FOREGROUND_SERVICE_MEDIA_PROJECTION permission
|
|
124
|
+
|
|
125
|
+
If you are not using screen sharing feature in your app, you should exclude Screen Sharing extension as below:
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
// build.gradle (project-level)
|
|
129
|
+
signingConfigs{
|
|
130
|
+
....
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
configurations.configureEach {
|
|
134
|
+
exclude group: "io.agora.rtc", module: "full-screen-sharing"
|
|
135
|
+
}
|
|
136
|
+
compileOptions{
|
|
137
|
+
...
|
|
138
|
+
}
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
## API
|
|
142
|
+
|
|
143
|
+
- [React Native API](https://api-ref.agora.io/en/video-sdk/react-native/4.x/API/rtc_api_overview_ng.html)
|
|
144
|
+
- [Android API](https://api-ref.agora.io/en/video-sdk/android/4.x/API/rtc_api_overview_ng.html)
|
|
145
|
+
- [iOS API](https://api-ref.agora.io/en/video-sdk/ios/4.x/API/rtc_api_overview_ng.html)
|
|
146
|
+
|
|
147
|
+
## Resources
|
|
148
|
+
|
|
149
|
+
- Complete [API Doc](https://docs.agora.io/en/) at the Developer Center
|
|
150
|
+
- [Changelog](CHANGELOG.md)
|
|
151
|
+
- [Release Notes](https://docs.agora.io/en/video-calling/reference/release-notes?platform=react-native)
|
|
152
|
+
- [File bugs about this sample](https://github.com/AgoraIO-Extensions/react-native-agora/issues)
|
|
153
|
+
- [React Native Getting Started](https://facebook.github.io/react-native/docs/getting-started.html)
|
|
154
|
+
- [Picture in Picture](./example/src/examples/advanced/PictureInPicture/PictureInPicture.md)
|
|
155
|
+
|
|
156
|
+
## Contributing
|
|
157
|
+
|
|
158
|
+
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
|
|
159
|
+
|
|
160
|
+
## License
|
|
161
|
+
|
|
162
|
+
MIT
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
buildscript {
|
|
2
|
+
repositories {
|
|
3
|
+
google()
|
|
4
|
+
mavenCentral()
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
dependencies {
|
|
8
|
+
classpath "com.android.tools.build:gradle:7.2.1"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
def isNewArchitectureEnabled() {
|
|
13
|
+
return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
apply plugin: "com.android.library"
|
|
17
|
+
|
|
18
|
+
import groovy.json.JsonSlurper
|
|
19
|
+
|
|
20
|
+
// https://github.com/callstack/react-native-builder-bob/discussions/359
|
|
21
|
+
def registrationCompat = {
|
|
22
|
+
// The new distribution model uses Maven Central https://reactnative.dev/blog/2023/01/12/version-071
|
|
23
|
+
def reactAndroidProject = rootProject.allprojects.find { it.name == 'ReactAndroid' }
|
|
24
|
+
if (reactAndroidProject == null) return false
|
|
25
|
+
|
|
26
|
+
def reactNativeManifest = file("${reactAndroidProject.projectDir}/../package.json")
|
|
27
|
+
def reactNativeVersion = new JsonSlurper().parseText(reactNativeManifest.text).version as String
|
|
28
|
+
// Fabric was introduced at react-native@0.68, full CMake support were introduced at react-native@0.70
|
|
29
|
+
// Use Android.mk for compatibility with react-native@0.68/0.69
|
|
30
|
+
reactNativeVersion.matches('(0.68.*|0.69.*)')
|
|
31
|
+
}()
|
|
32
|
+
|
|
33
|
+
def codegenViewLibraryName = "AgoraRtcNg"
|
|
34
|
+
def codegenViewModuleName = {
|
|
35
|
+
// Autolink for Fabric uses codegenConfig.name in package.json since react-native@0.70
|
|
36
|
+
// Use codegenViewLibraryName for compatibility with react-native@0.68/0.69
|
|
37
|
+
def libraryManifestJson = new JsonSlurper().parseText(file("$projectDir/../package.json").text)
|
|
38
|
+
registrationCompat ? codegenViewLibraryName : libraryManifestJson.codegenConfig.name
|
|
39
|
+
}()
|
|
40
|
+
|
|
41
|
+
def appProject = rootProject.allprojects.find { it.plugins.hasPlugin('com.android.application') }
|
|
42
|
+
|
|
43
|
+
if (isNewArchitectureEnabled()) {
|
|
44
|
+
apply plugin: "com.facebook.react"
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def getExtOrDefault(name) {
|
|
48
|
+
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["AgoraRtcNg_" + name]
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def getExtOrIntegerDefault(name) {
|
|
52
|
+
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["AgoraRtcNg_" + name]).toInteger()
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def supportsNamespace() {
|
|
56
|
+
def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
|
|
57
|
+
def major = parsed[0].toInteger()
|
|
58
|
+
def minor = parsed[1].toInteger()
|
|
59
|
+
|
|
60
|
+
// Namespace support was added in 7.3.0
|
|
61
|
+
if (major == 7 && minor >= 3) {
|
|
62
|
+
return true
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return major >= 8
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
android {
|
|
69
|
+
if (supportsNamespace()) {
|
|
70
|
+
namespace "io.agora.rtc.ng.react"
|
|
71
|
+
buildFeatures {
|
|
72
|
+
buildConfig true
|
|
73
|
+
}
|
|
74
|
+
sourceSets {
|
|
75
|
+
main {
|
|
76
|
+
manifest.srcFile "src/main/AndroidManifestNew.xml"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
ndkVersion getExtOrDefault("ndkVersion")
|
|
82
|
+
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
|
|
83
|
+
|
|
84
|
+
defaultConfig {
|
|
85
|
+
minSdkVersion getExtOrIntegerDefault("minSdkVersion")
|
|
86
|
+
targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
|
|
87
|
+
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
|
|
88
|
+
buildConfigField "String", "CODEGEN_MODULE_REGISTRATION", (isNewArchitectureEnabled() && registrationCompat ? "\"${codegenViewModuleName}_registration\"" : "null")
|
|
89
|
+
|
|
90
|
+
consumerProguardFiles 'consumer-rules.pro'
|
|
91
|
+
|
|
92
|
+
if (isNewArchitectureEnabled() && registrationCompat) {
|
|
93
|
+
def reactAndroidProject = project(':ReactAndroid')
|
|
94
|
+
externalNativeBuild {
|
|
95
|
+
ndkBuild {
|
|
96
|
+
arguments "APP_PLATFORM=android-21",
|
|
97
|
+
"APP_STL=c++_shared",
|
|
98
|
+
"NDK_TOOLCHAIN_VERSION=clang",
|
|
99
|
+
"GENERATED_SRC_DIR=$buildDir/generated/source", // for react_codegen_* in this library's codegen/jni
|
|
100
|
+
"PROJECT_BUILD_DIR=${appProject.buildDir}", // for REACT_NDK_EXPORT_DIR in ReactAndroid's Android-prebuilt.mk
|
|
101
|
+
"REACT_ANDROID_DIR=${reactAndroidProject.projectDir}",
|
|
102
|
+
"REACT_ANDROID_BUILD_DIR=${reactAndroidProject.buildDir}",
|
|
103
|
+
"CODEGEN_MODULE_NAME=$codegenViewModuleName"
|
|
104
|
+
cFlags "-Wall", "-Werror", "-fexceptions", "-frtti", "-DWITH_INSPECTOR=1"
|
|
105
|
+
cppFlags "-std=c++17"
|
|
106
|
+
targets "${codegenViewModuleName}_registration"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
if (isNewArchitectureEnabled() && registrationCompat) {
|
|
113
|
+
// We configure the NDK build only if you decide to opt-in for the New Architecture.
|
|
114
|
+
externalNativeBuild {
|
|
115
|
+
ndkBuild {
|
|
116
|
+
path "Android.mk"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
buildFeatures {
|
|
122
|
+
buildConfig true
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
buildTypes {
|
|
126
|
+
release {
|
|
127
|
+
minifyEnabled false
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
lintOptions {
|
|
132
|
+
disable "GradleCompatible"
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
compileOptions {
|
|
136
|
+
sourceCompatibility JavaVersion.VERSION_1_8
|
|
137
|
+
targetCompatibility JavaVersion.VERSION_1_8
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
sourceSets {
|
|
141
|
+
main {
|
|
142
|
+
if (isNewArchitectureEnabled()) {
|
|
143
|
+
java.srcDirs += [
|
|
144
|
+
"src/newarch",
|
|
145
|
+
// This is needed to build Kotlin project with NewArch enabled
|
|
146
|
+
"${project.buildDir}/generated/source/codegen/java"
|
|
147
|
+
]
|
|
148
|
+
} else {
|
|
149
|
+
java.srcDirs += ["src/oldarch"]
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
repositories {
|
|
156
|
+
mavenCentral()
|
|
157
|
+
google()
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
dependencies {
|
|
162
|
+
// For < 0.71, this will be from the local maven repo
|
|
163
|
+
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
|
|
164
|
+
//noinspection GradleDynamicVersion
|
|
165
|
+
implementation "com.facebook.react:react-native:+"
|
|
166
|
+
implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
|
|
167
|
+
/// dependencies start
|
|
168
|
+
implementation 'cn.shengwang.rtc:full-screen-sharing:4.6.2.70'
|
|
169
|
+
api 'cn.shengwang.rtc:shengwang-special-full:4.6.2.70'
|
|
170
|
+
api 'io.agora.rtc:iris-rtc:4.6.2-build.1'
|
|
171
|
+
/// dependencies end
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
if (isNewArchitectureEnabled()) {
|
|
175
|
+
react {
|
|
176
|
+
jsRootDir = file("../src/")
|
|
177
|
+
libraryName = codegenViewLibraryName
|
|
178
|
+
codegenJavaPackageName = "io.agora.rtc.ng.react"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
+
package="io.agora.rtc.ng.react">
|
|
3
|
+
|
|
4
|
+
<uses-permission android:name="android.permission.INTERNET" />
|
|
5
|
+
<uses-permission android:name="android.permission.CAMERA" />
|
|
6
|
+
<uses-permission android:name="android.permission.RECORD_AUDIO" />
|
|
7
|
+
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
|
|
8
|
+
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
|
9
|
+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
10
|
+
<uses-permission android:name="android.permission.BLUETOOTH" />
|
|
11
|
+
</manifest>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
2
|
+
<uses-permission android:name="android.permission.INTERNET" />
|
|
3
|
+
<uses-permission android:name="android.permission.CAMERA" />
|
|
4
|
+
<uses-permission android:name="android.permission.RECORD_AUDIO" />
|
|
5
|
+
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
|
|
6
|
+
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
|
7
|
+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
8
|
+
<uses-permission android:name="android.permission.BLUETOOTH" />
|
|
9
|
+
</manifest>
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
package io.agora.rtc.ng.react;
|
|
2
|
+
|
|
3
|
+
import android.app.PictureInPictureParams;
|
|
4
|
+
import android.app.PictureInPictureUiState;
|
|
5
|
+
import android.content.Context;
|
|
6
|
+
import android.content.res.Configuration;
|
|
7
|
+
import android.os.Build;
|
|
8
|
+
|
|
9
|
+
import com.facebook.react.ReactActivity;
|
|
10
|
+
|
|
11
|
+
import java.lang.ref.WeakReference;
|
|
12
|
+
|
|
13
|
+
import io.agora.iris.pip.AgoraPIPActivityProxy;
|
|
14
|
+
import io.agora.iris.pip.AgoraPIPActivityListener;
|
|
15
|
+
|
|
16
|
+
public class AgoraPIPActivity extends ReactActivity implements AgoraPIPActivityProxy {
|
|
17
|
+
private WeakReference<AgoraPIPActivityListener> mListener;
|
|
18
|
+
|
|
19
|
+
@Override
|
|
20
|
+
public Context getApplicationContext() {
|
|
21
|
+
return super.getApplicationContext();
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@Override
|
|
25
|
+
public void setAgoraPIPActivityListener(AgoraPIPActivityListener listener) {
|
|
26
|
+
mListener = new WeakReference<>(listener);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@Override
|
|
30
|
+
public boolean isInPictureInPictureMode() {
|
|
31
|
+
return super.isInPictureInPictureMode();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@Override
|
|
35
|
+
public void setPictureInPictureParams(PictureInPictureParams params) {
|
|
36
|
+
super.setPictureInPictureParams(params);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@Override
|
|
40
|
+
public boolean enterPictureInPictureMode(PictureInPictureParams params) {
|
|
41
|
+
return super.enterPictureInPictureMode(params);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@Override
|
|
45
|
+
public void enterPictureInPictureMode() {
|
|
46
|
+
super.enterPictureInPictureMode();
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@Override
|
|
50
|
+
public boolean moveTaskToBack(boolean nonRoot) {
|
|
51
|
+
return super.moveTaskToBack(nonRoot);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@Override
|
|
55
|
+
public void onPictureInPictureModeChanged(boolean isInPictureInPictureMode, Configuration newConfig) {
|
|
56
|
+
super.onPictureInPictureModeChanged(isInPictureInPictureMode, newConfig);
|
|
57
|
+
if (mListener == null) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
AgoraPIPActivityListener listener = mListener.get();
|
|
62
|
+
if (listener != null) {
|
|
63
|
+
listener.onPictureInPictureModeChanged(isInPictureInPictureMode, newConfig);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@Override
|
|
68
|
+
public boolean onPictureInPictureRequested() {
|
|
69
|
+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
|
70
|
+
if (mListener != null) {
|
|
71
|
+
AgoraPIPActivityListener listener = mListener.get();
|
|
72
|
+
if (listener != null) {
|
|
73
|
+
return listener.onPictureInPictureRequested();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return super.onPictureInPictureRequested();
|
|
77
|
+
}
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@Override
|
|
82
|
+
public void onPictureInPictureUiStateChanged(PictureInPictureUiState state) {
|
|
83
|
+
super.onPictureInPictureUiStateChanged(state);
|
|
84
|
+
if (mListener == null) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
AgoraPIPActivityListener listener = mListener.get();
|
|
89
|
+
if (listener != null) {
|
|
90
|
+
listener.onPictureInPictureUiStateChanged(state);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@Override
|
|
95
|
+
public void onUserLeaveHint() {
|
|
96
|
+
super.onUserLeaveHint();
|
|
97
|
+
if (mListener == null) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
AgoraPIPActivityListener listener = mListener.get();
|
|
102
|
+
if (listener != null) {
|
|
103
|
+
listener.onUserLeaveHint();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
}
|