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,59 @@
|
|
|
1
|
+
import { IMediaRecorderObserver } from '../AgoraMediaBase';
|
|
2
|
+
|
|
3
|
+
export type IMediaRecorderEvent = IMediaRecorderObserver;
|
|
4
|
+
|
|
5
|
+
declare module '../IAgoraMediaRecorder' {
|
|
6
|
+
interface IMediaRecorder {
|
|
7
|
+
_addListenerPreCheck<EventType extends keyof IMediaRecorderEvent>(
|
|
8
|
+
eventType: EventType
|
|
9
|
+
): boolean;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Adds one IMediaRecorderEvent listener.
|
|
13
|
+
* After calling this method, you can listen for the corresponding events in the IMediaRecorder object and obtain data through IMediaRecorderEvent. Depending on your project needs, you can add multiple listeners for the same event.
|
|
14
|
+
*
|
|
15
|
+
* @param eventType The name of the target event to listen for. See IMediaRecorderEvent.
|
|
16
|
+
*
|
|
17
|
+
* @param listener The callback function for eventType. Take adding a listener for onRecorderStateChanged as an example: // Create an onRecorderStateChanged object
|
|
18
|
+
* const onRecorderStateChanged = (state: RecorderState, error: RecorderErrorCode) => {};
|
|
19
|
+
* // Add one onRecorderStateChanged listener
|
|
20
|
+
* engine.addListener('onRecorderStateChanged', onRecorderStateChanged);
|
|
21
|
+
*/
|
|
22
|
+
addListener<EventType extends keyof IMediaRecorderEvent>(
|
|
23
|
+
eventType: EventType,
|
|
24
|
+
listener: IMediaRecorderEvent[EventType]
|
|
25
|
+
): void;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Removes the specified IMediaRecorderEvent listener.
|
|
29
|
+
* For listened events, if you no longer need to receive the callback message, you can call this method to remove the corresponding listener.
|
|
30
|
+
*
|
|
31
|
+
* @param eventType The name of the target event to listen for. See IMediaRecorderEvent.
|
|
32
|
+
*
|
|
33
|
+
* @param listener The callback function for eventType. Must pass in the same function object in addListener . Take removing the listener for onRecorderStateChanged as an example: // Create an onRecorderStateChanged object
|
|
34
|
+
* const onRecorderStateChanged = (state: RecorderState, error: RecorderErrorCode) => {};
|
|
35
|
+
* // Add one onRecorderStateChanged listener
|
|
36
|
+
* engine.addListener('onRecorderStateChanged', onRecorderStateChanged);
|
|
37
|
+
* // Remove the onRecorderStateChanged listener
|
|
38
|
+
* engine.removeListener('onRecorderStateChanged', onRecorderStateChanged);
|
|
39
|
+
*/
|
|
40
|
+
removeListener<EventType extends keyof IMediaRecorderEvent>(
|
|
41
|
+
eventType: EventType,
|
|
42
|
+
listener?: IMediaRecorderEvent[EventType]
|
|
43
|
+
): void;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Removes all listeners for the specified event.
|
|
47
|
+
*
|
|
48
|
+
* @param eventType The name of the target event to listen for. See IMediaRecorderEvent.
|
|
49
|
+
*/
|
|
50
|
+
removeAllListeners<EventType extends keyof IMediaRecorderEvent>(
|
|
51
|
+
eventType?: EventType
|
|
52
|
+
): void;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @ignore
|
|
56
|
+
*/
|
|
57
|
+
release(): void;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IMusicContentCenterEventHandler } from '../IAgoraMusicContentCenter';
|
|
2
|
+
|
|
3
|
+
export type IMusicContentCenterEvent = IMusicContentCenterEventHandler;
|
|
4
|
+
|
|
5
|
+
declare module '../IAgoraMusicContentCenter' {
|
|
6
|
+
interface IMusicContentCenter {
|
|
7
|
+
_addListenerPreCheck<EventType extends keyof IMusicContentCenterEvent>(
|
|
8
|
+
eventType: EventType
|
|
9
|
+
): boolean;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @ignore
|
|
13
|
+
*/
|
|
14
|
+
addListener<EventType extends keyof IMusicContentCenterEvent>(
|
|
15
|
+
eventType: EventType,
|
|
16
|
+
listener: IMusicContentCenterEvent[EventType]
|
|
17
|
+
): void;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @ignore
|
|
21
|
+
*/
|
|
22
|
+
removeListener<EventType extends keyof IMusicContentCenterEvent>(
|
|
23
|
+
eventType: EventType,
|
|
24
|
+
listener?: IMusicContentCenterEvent[EventType]
|
|
25
|
+
): void;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @ignore
|
|
29
|
+
*/
|
|
30
|
+
removeAllListeners<EventType extends keyof IMusicContentCenterEvent>(
|
|
31
|
+
eventType?: EventType
|
|
32
|
+
): void;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AgoraPipStateChangedObserver } from '../IAgoraPip';
|
|
2
|
+
|
|
3
|
+
export type IAgoraPipEvent = AgoraPipStateChangedObserver;
|
|
4
|
+
|
|
5
|
+
declare module '../IAgoraPip' {
|
|
6
|
+
interface AgoraPip {
|
|
7
|
+
/**
|
|
8
|
+
* @ignore
|
|
9
|
+
*/
|
|
10
|
+
_addListenerPreCheck<EventType extends keyof IAgoraPipEvent>(
|
|
11
|
+
eventType: EventType
|
|
12
|
+
): boolean;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @ignore
|
|
16
|
+
*/
|
|
17
|
+
addListener<EventType extends keyof IAgoraPipEvent>(
|
|
18
|
+
eventType: EventType,
|
|
19
|
+
listener: IAgoraPipEvent[EventType]
|
|
20
|
+
): void;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @ignore
|
|
24
|
+
*/
|
|
25
|
+
removeListener<EventType extends keyof IAgoraPipEvent>(
|
|
26
|
+
eventType: EventType,
|
|
27
|
+
listener?: IAgoraPipEvent[EventType]
|
|
28
|
+
): void;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @ignore
|
|
32
|
+
*/
|
|
33
|
+
removeAllListeners<EventType extends keyof IAgoraPipEvent>(
|
|
34
|
+
eventType?: EventType
|
|
35
|
+
): void;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { IAudioEncodedFrameObserver } from '../AgoraBase';
|
|
2
|
+
import { IAudioSpectrumObserver } from '../AgoraMediaBase';
|
|
3
|
+
import { AgoraPip } from '../IAgoraPip';
|
|
4
|
+
import {
|
|
5
|
+
IDirectCdnStreamingEventHandler,
|
|
6
|
+
IMetadataObserver,
|
|
7
|
+
IRtcEngineEventHandler,
|
|
8
|
+
} from '../IAgoraRtcEngine';
|
|
9
|
+
|
|
10
|
+
export type IRtcEngineEvent = IRtcEngineEventHandler &
|
|
11
|
+
IDirectCdnStreamingEventHandler &
|
|
12
|
+
IMetadataObserver &
|
|
13
|
+
IAudioEncodedFrameObserver &
|
|
14
|
+
IAudioSpectrumObserver;
|
|
15
|
+
|
|
16
|
+
declare module '../IAgoraRtcEngine' {
|
|
17
|
+
interface IRtcEngine {
|
|
18
|
+
_addListenerPreCheck<EventType extends keyof IRtcEngineEvent>(
|
|
19
|
+
eventType: EventType
|
|
20
|
+
): boolean;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Adds one IRtcEngineEvent listener.
|
|
24
|
+
* After calling this method, you can listen for the corresponding events in the IRtcEngine object and obtain data through IRtcEngineEvent. Depending on your project needs, you can add multiple listeners for the same event.
|
|
25
|
+
*
|
|
26
|
+
* @param eventType The name of the target event to listen for. See IRtcEngineEvent.
|
|
27
|
+
*
|
|
28
|
+
* @param listener The callback function for eventType. Take adding a listener for onJoinChannelSuccess as an example: // Create an onJoinChannelSuccess object
|
|
29
|
+
* const onJoinChannelSuccess = (connection: RtcConnection, elapsed: number) => {};
|
|
30
|
+
* // Add one onJoinChannelSuccess listener
|
|
31
|
+
* engine.addListener('onJoinChannelSuccess', onJoinChannelSuccess);
|
|
32
|
+
*/
|
|
33
|
+
addListener<EventType extends keyof IRtcEngineEvent>(
|
|
34
|
+
eventType: EventType,
|
|
35
|
+
listener: IRtcEngineEvent[EventType]
|
|
36
|
+
): void;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Removes the specified IRtcEngineEvent listener.
|
|
40
|
+
* For listened events, if you no longer need to receive the callback message, you can call this method to remove the corresponding listener.
|
|
41
|
+
*
|
|
42
|
+
* @param eventType The name of the target event to listen for. See IRtcEngineEvent.
|
|
43
|
+
*
|
|
44
|
+
* @param listener The callback function for eventType. Must pass in the same function object in addListener . Take removing the listener for onJoinChannelSuccess as an example: // Create an onJoinChannelSuccess object
|
|
45
|
+
* const onJoinChannelSuccess = (connection: RtcConnection, elapsed: number) => {};
|
|
46
|
+
* // Add one onJoinChannelSuccess listener
|
|
47
|
+
* engine.addListener('onJoinChannelSuccess', onJoinChannelSuccess);
|
|
48
|
+
* // Remove the onJoinChannelSuccess listener
|
|
49
|
+
* engine.removeListener('onJoinChannelSuccess', onJoinChannelSuccess);
|
|
50
|
+
*/
|
|
51
|
+
removeListener<EventType extends keyof IRtcEngineEvent>(
|
|
52
|
+
eventType: EventType,
|
|
53
|
+
listener?: IRtcEngineEvent[EventType]
|
|
54
|
+
): void;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Removes all listeners for the specified event.
|
|
58
|
+
*
|
|
59
|
+
* @param eventType The name of the target event to listen for. See IRtcEngineEvent.
|
|
60
|
+
*/
|
|
61
|
+
removeAllListeners<EventType extends keyof IRtcEngineEvent>(
|
|
62
|
+
eventType?: EventType
|
|
63
|
+
): void;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Gets the AgoraPip instance.
|
|
67
|
+
*
|
|
68
|
+
* @returns The AgoraPip instance.
|
|
69
|
+
*/
|
|
70
|
+
getAgoraPip(): AgoraPip;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { IAudioEncodedFrameObserver } from '../AgoraBase';
|
|
2
|
+
|
|
3
|
+
export function processIAudioEncodedFrameObserver(
|
|
4
|
+
handler: IAudioEncodedFrameObserver,
|
|
5
|
+
event: string,
|
|
6
|
+
jsonParams: any
|
|
7
|
+
) {
|
|
8
|
+
switch (event) {
|
|
9
|
+
case 'onRecordAudioEncodedFrame':
|
|
10
|
+
if (handler.onRecordAudioEncodedFrame !== undefined) {
|
|
11
|
+
handler.onRecordAudioEncodedFrame(
|
|
12
|
+
jsonParams.frameBuffer,
|
|
13
|
+
jsonParams.length,
|
|
14
|
+
jsonParams.audioEncodedFrameInfo
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
break;
|
|
18
|
+
|
|
19
|
+
case 'onPlaybackAudioEncodedFrame':
|
|
20
|
+
if (handler.onPlaybackAudioEncodedFrame !== undefined) {
|
|
21
|
+
handler.onPlaybackAudioEncodedFrame(
|
|
22
|
+
jsonParams.frameBuffer,
|
|
23
|
+
jsonParams.length,
|
|
24
|
+
jsonParams.audioEncodedFrameInfo
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
break;
|
|
28
|
+
|
|
29
|
+
case 'onMixedAudioEncodedFrame':
|
|
30
|
+
if (handler.onMixedAudioEncodedFrame !== undefined) {
|
|
31
|
+
handler.onMixedAudioEncodedFrame(
|
|
32
|
+
jsonParams.frameBuffer,
|
|
33
|
+
jsonParams.length,
|
|
34
|
+
jsonParams.audioEncodedFrameInfo
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IAudioFrameObserver,
|
|
3
|
+
IAudioFrameObserverBase,
|
|
4
|
+
IAudioPcmFrameSink,
|
|
5
|
+
IAudioSpectrumObserver,
|
|
6
|
+
IFaceInfoObserver,
|
|
7
|
+
IMediaRecorderObserver,
|
|
8
|
+
IVideoEncodedFrameObserver,
|
|
9
|
+
IVideoFrameMetaInfo,
|
|
10
|
+
IVideoFrameObserver,
|
|
11
|
+
MetaInfoKey,
|
|
12
|
+
} from '../AgoraMediaBase';
|
|
13
|
+
import { callIrisApi } from '../internal/call';
|
|
14
|
+
|
|
15
|
+
// @ts-ignore
|
|
16
|
+
export class IVideoFrameMetaInfoImpl implements IVideoFrameMetaInfo {
|
|
17
|
+
getMetaInfoStr(key: MetaInfoKey): string {
|
|
18
|
+
const apiType = this.getApiTypeFromGetMetaInfoStr(key);
|
|
19
|
+
const jsonParams = {
|
|
20
|
+
key: key,
|
|
21
|
+
toJSON: () => {
|
|
22
|
+
return {
|
|
23
|
+
key: key,
|
|
24
|
+
};
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
28
|
+
return jsonResults.result;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
protected getApiTypeFromGetMetaInfoStr(key: MetaInfoKey): string {
|
|
32
|
+
return 'VideoFrameMetaInfo_getMetaInfoStr_c81192f';
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function processIAudioPcmFrameSink(
|
|
37
|
+
handler: IAudioPcmFrameSink,
|
|
38
|
+
event: string,
|
|
39
|
+
jsonParams: any
|
|
40
|
+
) {
|
|
41
|
+
switch (event) {
|
|
42
|
+
case 'onFrame':
|
|
43
|
+
if (handler.onFrame !== undefined) {
|
|
44
|
+
handler.onFrame(jsonParams.frame);
|
|
45
|
+
}
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function processIAudioFrameObserverBase(
|
|
51
|
+
handler: IAudioFrameObserverBase,
|
|
52
|
+
event: string,
|
|
53
|
+
jsonParams: any
|
|
54
|
+
) {
|
|
55
|
+
switch (event) {
|
|
56
|
+
case 'onRecordAudioFrame':
|
|
57
|
+
if (handler.onRecordAudioFrame !== undefined) {
|
|
58
|
+
handler.onRecordAudioFrame(jsonParams.channelId, jsonParams.audioFrame);
|
|
59
|
+
}
|
|
60
|
+
break;
|
|
61
|
+
|
|
62
|
+
case 'onPlaybackAudioFrame':
|
|
63
|
+
if (handler.onPlaybackAudioFrame !== undefined) {
|
|
64
|
+
handler.onPlaybackAudioFrame(
|
|
65
|
+
jsonParams.channelId,
|
|
66
|
+
jsonParams.audioFrame
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
break;
|
|
70
|
+
|
|
71
|
+
case 'onMixedAudioFrame':
|
|
72
|
+
if (handler.onMixedAudioFrame !== undefined) {
|
|
73
|
+
handler.onMixedAudioFrame(jsonParams.channelId, jsonParams.audioFrame);
|
|
74
|
+
}
|
|
75
|
+
break;
|
|
76
|
+
|
|
77
|
+
case 'onEarMonitoringAudioFrame':
|
|
78
|
+
if (handler.onEarMonitoringAudioFrame !== undefined) {
|
|
79
|
+
handler.onEarMonitoringAudioFrame(jsonParams.audioFrame);
|
|
80
|
+
}
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function processIAudioFrameObserver(
|
|
86
|
+
handler: IAudioFrameObserver,
|
|
87
|
+
event: string,
|
|
88
|
+
jsonParams: any
|
|
89
|
+
) {
|
|
90
|
+
switch (event) {
|
|
91
|
+
case 'onPlaybackAudioFrameBeforeMixing':
|
|
92
|
+
if (handler.onPlaybackAudioFrameBeforeMixing !== undefined) {
|
|
93
|
+
handler.onPlaybackAudioFrameBeforeMixing(
|
|
94
|
+
jsonParams.channelId,
|
|
95
|
+
jsonParams.uid,
|
|
96
|
+
jsonParams.audioFrame
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function processIAudioSpectrumObserver(
|
|
104
|
+
handler: IAudioSpectrumObserver,
|
|
105
|
+
event: string,
|
|
106
|
+
jsonParams: any
|
|
107
|
+
) {
|
|
108
|
+
switch (event) {
|
|
109
|
+
case 'onLocalAudioSpectrum':
|
|
110
|
+
if (handler.onLocalAudioSpectrum !== undefined) {
|
|
111
|
+
handler.onLocalAudioSpectrum(jsonParams.data);
|
|
112
|
+
}
|
|
113
|
+
break;
|
|
114
|
+
|
|
115
|
+
case 'onRemoteAudioSpectrum':
|
|
116
|
+
if (handler.onRemoteAudioSpectrum !== undefined) {
|
|
117
|
+
handler.onRemoteAudioSpectrum(
|
|
118
|
+
jsonParams.spectrums,
|
|
119
|
+
jsonParams.spectrumNumber
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function processIVideoEncodedFrameObserver(
|
|
127
|
+
handler: IVideoEncodedFrameObserver,
|
|
128
|
+
event: string,
|
|
129
|
+
jsonParams: any
|
|
130
|
+
) {
|
|
131
|
+
switch (event) {
|
|
132
|
+
case 'onEncodedVideoFrameReceived':
|
|
133
|
+
if (handler.onEncodedVideoFrameReceived !== undefined) {
|
|
134
|
+
handler.onEncodedVideoFrameReceived(
|
|
135
|
+
jsonParams.channelId,
|
|
136
|
+
jsonParams.uid,
|
|
137
|
+
jsonParams.imageBuffer,
|
|
138
|
+
jsonParams.length,
|
|
139
|
+
jsonParams.videoEncodedFrameInfo
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function processIVideoFrameObserver(
|
|
147
|
+
handler: IVideoFrameObserver,
|
|
148
|
+
event: string,
|
|
149
|
+
jsonParams: any
|
|
150
|
+
) {
|
|
151
|
+
switch (event) {
|
|
152
|
+
case 'onCaptureVideoFrame':
|
|
153
|
+
if (handler.onCaptureVideoFrame !== undefined) {
|
|
154
|
+
handler.onCaptureVideoFrame(
|
|
155
|
+
jsonParams.sourceType,
|
|
156
|
+
jsonParams.videoFrame
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
break;
|
|
160
|
+
|
|
161
|
+
case 'onPreEncodeVideoFrame':
|
|
162
|
+
if (handler.onPreEncodeVideoFrame !== undefined) {
|
|
163
|
+
handler.onPreEncodeVideoFrame(
|
|
164
|
+
jsonParams.sourceType,
|
|
165
|
+
jsonParams.videoFrame
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
break;
|
|
169
|
+
|
|
170
|
+
case 'onMediaPlayerVideoFrame':
|
|
171
|
+
if (handler.onMediaPlayerVideoFrame !== undefined) {
|
|
172
|
+
handler.onMediaPlayerVideoFrame(
|
|
173
|
+
jsonParams.videoFrame,
|
|
174
|
+
jsonParams.mediaPlayerId
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
break;
|
|
178
|
+
|
|
179
|
+
case 'onRenderVideoFrame':
|
|
180
|
+
if (handler.onRenderVideoFrame !== undefined) {
|
|
181
|
+
handler.onRenderVideoFrame(
|
|
182
|
+
jsonParams.channelId,
|
|
183
|
+
jsonParams.remoteUid,
|
|
184
|
+
jsonParams.videoFrame
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
break;
|
|
188
|
+
|
|
189
|
+
case 'onTranscodedVideoFrame':
|
|
190
|
+
if (handler.onTranscodedVideoFrame !== undefined) {
|
|
191
|
+
handler.onTranscodedVideoFrame(jsonParams.videoFrame);
|
|
192
|
+
}
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export function processIFaceInfoObserver(
|
|
198
|
+
handler: IFaceInfoObserver,
|
|
199
|
+
event: string,
|
|
200
|
+
jsonParams: any
|
|
201
|
+
) {
|
|
202
|
+
switch (event) {
|
|
203
|
+
case 'onFaceInfo':
|
|
204
|
+
if (handler.onFaceInfo !== undefined) {
|
|
205
|
+
handler.onFaceInfo(jsonParams.outFaceInfo);
|
|
206
|
+
}
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export function processIMediaRecorderObserver(
|
|
212
|
+
handler: IMediaRecorderObserver,
|
|
213
|
+
event: string,
|
|
214
|
+
jsonParams: any
|
|
215
|
+
) {
|
|
216
|
+
switch (event) {
|
|
217
|
+
case 'onRecorderStateChanged':
|
|
218
|
+
if (handler.onRecorderStateChanged !== undefined) {
|
|
219
|
+
handler.onRecorderStateChanged(
|
|
220
|
+
jsonParams.channelId,
|
|
221
|
+
jsonParams.uid,
|
|
222
|
+
jsonParams.state,
|
|
223
|
+
jsonParams.reason
|
|
224
|
+
);
|
|
225
|
+
}
|
|
226
|
+
break;
|
|
227
|
+
|
|
228
|
+
case 'onRecorderInfoUpdated':
|
|
229
|
+
if (handler.onRecorderInfoUpdated !== undefined) {
|
|
230
|
+
handler.onRecorderInfoUpdated(
|
|
231
|
+
jsonParams.channelId,
|
|
232
|
+
jsonParams.uid,
|
|
233
|
+
jsonParams.info
|
|
234
|
+
);
|
|
235
|
+
}
|
|
236
|
+
break;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IH265Transcoder,
|
|
3
|
+
IH265TranscoderObserver,
|
|
4
|
+
} from '../IAgoraH265Transcoder';
|
|
5
|
+
import { callIrisApi } from '../internal/call';
|
|
6
|
+
|
|
7
|
+
export function processIH265TranscoderObserver(
|
|
8
|
+
handler: IH265TranscoderObserver,
|
|
9
|
+
event: string,
|
|
10
|
+
jsonParams: any
|
|
11
|
+
) {
|
|
12
|
+
switch (event) {
|
|
13
|
+
case 'onEnableTranscode':
|
|
14
|
+
if (handler.onEnableTranscode !== undefined) {
|
|
15
|
+
handler.onEnableTranscode(jsonParams.result);
|
|
16
|
+
}
|
|
17
|
+
break;
|
|
18
|
+
|
|
19
|
+
case 'onQueryChannel':
|
|
20
|
+
if (handler.onQueryChannel !== undefined) {
|
|
21
|
+
handler.onQueryChannel(
|
|
22
|
+
jsonParams.result,
|
|
23
|
+
jsonParams.originChannel,
|
|
24
|
+
jsonParams.transcodeChannel
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
break;
|
|
28
|
+
|
|
29
|
+
case 'onTriggerTranscode':
|
|
30
|
+
if (handler.onTriggerTranscode !== undefined) {
|
|
31
|
+
handler.onTriggerTranscode(jsonParams.result);
|
|
32
|
+
}
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
export class IH265TranscoderImpl implements IH265Transcoder {
|
|
39
|
+
enableTranscode(token: string, channel: string, uid: number): number {
|
|
40
|
+
const apiType = this.getApiTypeFromEnableTranscode(token, channel, uid);
|
|
41
|
+
const jsonParams = {
|
|
42
|
+
token: token,
|
|
43
|
+
channel: channel,
|
|
44
|
+
uid: uid,
|
|
45
|
+
toJSON: () => {
|
|
46
|
+
return {
|
|
47
|
+
token: token,
|
|
48
|
+
channel: channel,
|
|
49
|
+
uid: uid,
|
|
50
|
+
};
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
54
|
+
return jsonResults.result;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
protected getApiTypeFromEnableTranscode(
|
|
58
|
+
token: string,
|
|
59
|
+
channel: string,
|
|
60
|
+
uid: number
|
|
61
|
+
): string {
|
|
62
|
+
return 'H265Transcoder_enableTranscode_a0779eb';
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
queryChannel(token: string, channel: string, uid: number): number {
|
|
66
|
+
const apiType = this.getApiTypeFromQueryChannel(token, channel, uid);
|
|
67
|
+
const jsonParams = {
|
|
68
|
+
token: token,
|
|
69
|
+
channel: channel,
|
|
70
|
+
uid: uid,
|
|
71
|
+
toJSON: () => {
|
|
72
|
+
return {
|
|
73
|
+
token: token,
|
|
74
|
+
channel: channel,
|
|
75
|
+
uid: uid,
|
|
76
|
+
};
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
80
|
+
return jsonResults.result;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
protected getApiTypeFromQueryChannel(
|
|
84
|
+
token: string,
|
|
85
|
+
channel: string,
|
|
86
|
+
uid: number
|
|
87
|
+
): string {
|
|
88
|
+
return 'H265Transcoder_queryChannel_a0779eb';
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
triggerTranscode(token: string, channel: string, uid: number): number {
|
|
92
|
+
const apiType = this.getApiTypeFromTriggerTranscode(token, channel, uid);
|
|
93
|
+
const jsonParams = {
|
|
94
|
+
token: token,
|
|
95
|
+
channel: channel,
|
|
96
|
+
uid: uid,
|
|
97
|
+
toJSON: () => {
|
|
98
|
+
return {
|
|
99
|
+
token: token,
|
|
100
|
+
channel: channel,
|
|
101
|
+
uid: uid,
|
|
102
|
+
};
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
106
|
+
return jsonResults.result;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
protected getApiTypeFromTriggerTranscode(
|
|
110
|
+
token: string,
|
|
111
|
+
channel: string,
|
|
112
|
+
uid: number
|
|
113
|
+
): string {
|
|
114
|
+
return 'H265Transcoder_triggerTranscode_a0779eb';
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
registerTranscoderObserver(observer: IH265TranscoderObserver): number {
|
|
118
|
+
const apiType = this.getApiTypeFromRegisterTranscoderObserver(observer);
|
|
119
|
+
const jsonParams = {
|
|
120
|
+
observer: observer,
|
|
121
|
+
toJSON: () => {
|
|
122
|
+
return {};
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
126
|
+
return jsonResults.result;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
protected getApiTypeFromRegisterTranscoderObserver(
|
|
130
|
+
observer: IH265TranscoderObserver
|
|
131
|
+
): string {
|
|
132
|
+
return 'H265Transcoder_registerTranscoderObserver_e1ee996';
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
unregisterTranscoderObserver(observer: IH265TranscoderObserver): number {
|
|
136
|
+
const apiType = this.getApiTypeFromUnregisterTranscoderObserver(observer);
|
|
137
|
+
const jsonParams = {
|
|
138
|
+
observer: observer,
|
|
139
|
+
toJSON: () => {
|
|
140
|
+
return {};
|
|
141
|
+
},
|
|
142
|
+
};
|
|
143
|
+
const jsonResults = callIrisApi.call(this, apiType, jsonParams);
|
|
144
|
+
return jsonResults.result;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
protected getApiTypeFromUnregisterTranscoderObserver(
|
|
148
|
+
observer: IH265TranscoderObserver
|
|
149
|
+
): string {
|
|
150
|
+
return 'H265Transcoder_unregisterTranscoderObserver_e1ee996';
|
|
151
|
+
}
|
|
152
|
+
}
|