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,965 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.IMediaPlayerImpl = exports.IMediaPlayerCacheManagerImpl = void 0;
|
|
7
|
+
exports.processIMediaPlayerVideoFrameObserver = processIMediaPlayerVideoFrameObserver;
|
|
8
|
+
var _AgoraMediaBase = require("../AgoraMediaBase");
|
|
9
|
+
var _call = require("../internal/call");
|
|
10
|
+
// @ts-ignore
|
|
11
|
+
class IMediaPlayerImpl {
|
|
12
|
+
getMediaPlayerId() {
|
|
13
|
+
const apiType = this.getApiTypeFromGetMediaPlayerId();
|
|
14
|
+
const jsonParams = {};
|
|
15
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
16
|
+
return jsonResults.result;
|
|
17
|
+
}
|
|
18
|
+
getApiTypeFromGetMediaPlayerId() {
|
|
19
|
+
return 'MediaPlayer_getMediaPlayerId';
|
|
20
|
+
}
|
|
21
|
+
open(url, startPos) {
|
|
22
|
+
const apiType = this.getApiTypeFromOpen(url, startPos);
|
|
23
|
+
const jsonParams = {
|
|
24
|
+
url: url,
|
|
25
|
+
startPos: startPos,
|
|
26
|
+
toJSON: () => {
|
|
27
|
+
return {
|
|
28
|
+
url: url,
|
|
29
|
+
startPos: startPos
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
34
|
+
return jsonResults.result;
|
|
35
|
+
}
|
|
36
|
+
getApiTypeFromOpen(url, startPos) {
|
|
37
|
+
return 'MediaPlayer_open_e43f201';
|
|
38
|
+
}
|
|
39
|
+
openWithMediaSource(source) {
|
|
40
|
+
const apiType = this.getApiTypeFromOpenWithMediaSource(source);
|
|
41
|
+
const jsonParams = {
|
|
42
|
+
source: source,
|
|
43
|
+
toJSON: () => {
|
|
44
|
+
return {
|
|
45
|
+
source: source
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
50
|
+
return jsonResults.result;
|
|
51
|
+
}
|
|
52
|
+
getApiTypeFromOpenWithMediaSource(source) {
|
|
53
|
+
return 'MediaPlayer_openWithMediaSource_3c11499';
|
|
54
|
+
}
|
|
55
|
+
play() {
|
|
56
|
+
const apiType = this.getApiTypeFromPlay();
|
|
57
|
+
const jsonParams = {};
|
|
58
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
59
|
+
return jsonResults.result;
|
|
60
|
+
}
|
|
61
|
+
getApiTypeFromPlay() {
|
|
62
|
+
return 'MediaPlayer_play';
|
|
63
|
+
}
|
|
64
|
+
pause() {
|
|
65
|
+
const apiType = this.getApiTypeFromPause();
|
|
66
|
+
const jsonParams = {};
|
|
67
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
68
|
+
return jsonResults.result;
|
|
69
|
+
}
|
|
70
|
+
getApiTypeFromPause() {
|
|
71
|
+
return 'MediaPlayer_pause';
|
|
72
|
+
}
|
|
73
|
+
stop() {
|
|
74
|
+
const apiType = this.getApiTypeFromStop();
|
|
75
|
+
const jsonParams = {};
|
|
76
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
77
|
+
return jsonResults.result;
|
|
78
|
+
}
|
|
79
|
+
getApiTypeFromStop() {
|
|
80
|
+
return 'MediaPlayer_stop';
|
|
81
|
+
}
|
|
82
|
+
resume() {
|
|
83
|
+
const apiType = this.getApiTypeFromResume();
|
|
84
|
+
const jsonParams = {};
|
|
85
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
86
|
+
return jsonResults.result;
|
|
87
|
+
}
|
|
88
|
+
getApiTypeFromResume() {
|
|
89
|
+
return 'MediaPlayer_resume';
|
|
90
|
+
}
|
|
91
|
+
seek(newPos) {
|
|
92
|
+
const apiType = this.getApiTypeFromSeek(newPos);
|
|
93
|
+
const jsonParams = {
|
|
94
|
+
newPos: newPos,
|
|
95
|
+
toJSON: () => {
|
|
96
|
+
return {
|
|
97
|
+
newPos: newPos
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
102
|
+
return jsonResults.result;
|
|
103
|
+
}
|
|
104
|
+
getApiTypeFromSeek(newPos) {
|
|
105
|
+
return 'MediaPlayer_seek_f631116';
|
|
106
|
+
}
|
|
107
|
+
setAudioPitch(pitch) {
|
|
108
|
+
const apiType = this.getApiTypeFromSetAudioPitch(pitch);
|
|
109
|
+
const jsonParams = {
|
|
110
|
+
pitch: pitch,
|
|
111
|
+
toJSON: () => {
|
|
112
|
+
return {
|
|
113
|
+
pitch: pitch
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
118
|
+
return jsonResults.result;
|
|
119
|
+
}
|
|
120
|
+
getApiTypeFromSetAudioPitch(pitch) {
|
|
121
|
+
return 'MediaPlayer_setAudioPitch_46f8ab7';
|
|
122
|
+
}
|
|
123
|
+
getDuration() {
|
|
124
|
+
const apiType = this.getApiTypeFromGetDuration();
|
|
125
|
+
const jsonParams = {};
|
|
126
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
127
|
+
const duration = jsonResults.duration;
|
|
128
|
+
return duration;
|
|
129
|
+
}
|
|
130
|
+
getApiTypeFromGetDuration() {
|
|
131
|
+
return 'MediaPlayer_getDuration_b12f121';
|
|
132
|
+
}
|
|
133
|
+
getPlayPosition() {
|
|
134
|
+
const apiType = this.getApiTypeFromGetPlayPosition();
|
|
135
|
+
const jsonParams = {};
|
|
136
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
137
|
+
const pos = jsonResults.pos;
|
|
138
|
+
return pos;
|
|
139
|
+
}
|
|
140
|
+
getApiTypeFromGetPlayPosition() {
|
|
141
|
+
return 'MediaPlayer_getPlayPosition_b12f121';
|
|
142
|
+
}
|
|
143
|
+
getStreamCount() {
|
|
144
|
+
const apiType = this.getApiTypeFromGetStreamCount();
|
|
145
|
+
const jsonParams = {};
|
|
146
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
147
|
+
const count = jsonResults.count;
|
|
148
|
+
return count;
|
|
149
|
+
}
|
|
150
|
+
getApiTypeFromGetStreamCount() {
|
|
151
|
+
return 'MediaPlayer_getStreamCount_b12f121';
|
|
152
|
+
}
|
|
153
|
+
getStreamInfo(index) {
|
|
154
|
+
const apiType = this.getApiTypeFromGetStreamInfo(index);
|
|
155
|
+
const jsonParams = {
|
|
156
|
+
index: index,
|
|
157
|
+
toJSON: () => {
|
|
158
|
+
return {
|
|
159
|
+
index: index
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
164
|
+
const info = jsonResults.info;
|
|
165
|
+
return info;
|
|
166
|
+
}
|
|
167
|
+
getApiTypeFromGetStreamInfo(index) {
|
|
168
|
+
return 'MediaPlayer_getStreamInfo_0fa63fa';
|
|
169
|
+
}
|
|
170
|
+
setLoopCount(loopCount) {
|
|
171
|
+
const apiType = this.getApiTypeFromSetLoopCount(loopCount);
|
|
172
|
+
const jsonParams = {
|
|
173
|
+
loopCount: loopCount,
|
|
174
|
+
toJSON: () => {
|
|
175
|
+
return {
|
|
176
|
+
loopCount: loopCount
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
181
|
+
return jsonResults.result;
|
|
182
|
+
}
|
|
183
|
+
getApiTypeFromSetLoopCount(loopCount) {
|
|
184
|
+
return 'MediaPlayer_setLoopCount_46f8ab7';
|
|
185
|
+
}
|
|
186
|
+
setPlaybackSpeed(speed) {
|
|
187
|
+
const apiType = this.getApiTypeFromSetPlaybackSpeed(speed);
|
|
188
|
+
const jsonParams = {
|
|
189
|
+
speed: speed,
|
|
190
|
+
toJSON: () => {
|
|
191
|
+
return {
|
|
192
|
+
speed: speed
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
197
|
+
return jsonResults.result;
|
|
198
|
+
}
|
|
199
|
+
getApiTypeFromSetPlaybackSpeed(speed) {
|
|
200
|
+
return 'MediaPlayer_setPlaybackSpeed_46f8ab7';
|
|
201
|
+
}
|
|
202
|
+
selectAudioTrack(index) {
|
|
203
|
+
const apiType = this.getApiTypeFromSelectAudioTrack(index);
|
|
204
|
+
const jsonParams = {
|
|
205
|
+
index: index,
|
|
206
|
+
toJSON: () => {
|
|
207
|
+
return {
|
|
208
|
+
index: index
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
213
|
+
return jsonResults.result;
|
|
214
|
+
}
|
|
215
|
+
getApiTypeFromSelectAudioTrack(index) {
|
|
216
|
+
return 'MediaPlayer_selectAudioTrack_46f8ab7';
|
|
217
|
+
}
|
|
218
|
+
selectMultiAudioTrack(playoutTrackIndex, publishTrackIndex) {
|
|
219
|
+
const apiType = this.getApiTypeFromSelectMultiAudioTrack(playoutTrackIndex, publishTrackIndex);
|
|
220
|
+
const jsonParams = {
|
|
221
|
+
playoutTrackIndex: playoutTrackIndex,
|
|
222
|
+
publishTrackIndex: publishTrackIndex,
|
|
223
|
+
toJSON: () => {
|
|
224
|
+
return {
|
|
225
|
+
playoutTrackIndex: playoutTrackIndex,
|
|
226
|
+
publishTrackIndex: publishTrackIndex
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
231
|
+
return jsonResults.result;
|
|
232
|
+
}
|
|
233
|
+
getApiTypeFromSelectMultiAudioTrack(playoutTrackIndex, publishTrackIndex) {
|
|
234
|
+
return 'MediaPlayer_selectMultiAudioTrack_4e92b3c';
|
|
235
|
+
}
|
|
236
|
+
takeScreenshot(filename) {
|
|
237
|
+
const apiType = this.getApiTypeFromTakeScreenshot(filename);
|
|
238
|
+
const jsonParams = {
|
|
239
|
+
filename: filename,
|
|
240
|
+
toJSON: () => {
|
|
241
|
+
return {
|
|
242
|
+
filename: filename
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
247
|
+
return jsonResults.result;
|
|
248
|
+
}
|
|
249
|
+
getApiTypeFromTakeScreenshot(filename) {
|
|
250
|
+
return 'MediaPlayer_takeScreenshot_3a2037f';
|
|
251
|
+
}
|
|
252
|
+
selectInternalSubtitle(index) {
|
|
253
|
+
const apiType = this.getApiTypeFromSelectInternalSubtitle(index);
|
|
254
|
+
const jsonParams = {
|
|
255
|
+
index: index,
|
|
256
|
+
toJSON: () => {
|
|
257
|
+
return {
|
|
258
|
+
index: index
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
263
|
+
return jsonResults.result;
|
|
264
|
+
}
|
|
265
|
+
getApiTypeFromSelectInternalSubtitle(index) {
|
|
266
|
+
return 'MediaPlayer_selectInternalSubtitle_46f8ab7';
|
|
267
|
+
}
|
|
268
|
+
setExternalSubtitle(url) {
|
|
269
|
+
const apiType = this.getApiTypeFromSetExternalSubtitle(url);
|
|
270
|
+
const jsonParams = {
|
|
271
|
+
url: url,
|
|
272
|
+
toJSON: () => {
|
|
273
|
+
return {
|
|
274
|
+
url: url
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
279
|
+
return jsonResults.result;
|
|
280
|
+
}
|
|
281
|
+
getApiTypeFromSetExternalSubtitle(url) {
|
|
282
|
+
return 'MediaPlayer_setExternalSubtitle_3a2037f';
|
|
283
|
+
}
|
|
284
|
+
getState() {
|
|
285
|
+
const apiType = this.getApiTypeFromGetState();
|
|
286
|
+
const jsonParams = {};
|
|
287
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
288
|
+
return jsonResults.result;
|
|
289
|
+
}
|
|
290
|
+
getApiTypeFromGetState() {
|
|
291
|
+
return 'MediaPlayer_getState';
|
|
292
|
+
}
|
|
293
|
+
mute(muted) {
|
|
294
|
+
const apiType = this.getApiTypeFromMute(muted);
|
|
295
|
+
const jsonParams = {
|
|
296
|
+
muted: muted,
|
|
297
|
+
toJSON: () => {
|
|
298
|
+
return {
|
|
299
|
+
muted: muted
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
304
|
+
return jsonResults.result;
|
|
305
|
+
}
|
|
306
|
+
getApiTypeFromMute(muted) {
|
|
307
|
+
return 'MediaPlayer_mute_5039d15';
|
|
308
|
+
}
|
|
309
|
+
getMute() {
|
|
310
|
+
const apiType = this.getApiTypeFromGetMute();
|
|
311
|
+
const jsonParams = {};
|
|
312
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
313
|
+
const muted = jsonResults.muted;
|
|
314
|
+
return muted;
|
|
315
|
+
}
|
|
316
|
+
getApiTypeFromGetMute() {
|
|
317
|
+
return 'MediaPlayer_getMute_c93e9d4';
|
|
318
|
+
}
|
|
319
|
+
adjustPlayoutVolume(volume) {
|
|
320
|
+
const apiType = this.getApiTypeFromAdjustPlayoutVolume(volume);
|
|
321
|
+
const jsonParams = {
|
|
322
|
+
volume: volume,
|
|
323
|
+
toJSON: () => {
|
|
324
|
+
return {
|
|
325
|
+
volume: volume
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
330
|
+
return jsonResults.result;
|
|
331
|
+
}
|
|
332
|
+
getApiTypeFromAdjustPlayoutVolume(volume) {
|
|
333
|
+
return 'MediaPlayer_adjustPlayoutVolume_46f8ab7';
|
|
334
|
+
}
|
|
335
|
+
getPlayoutVolume() {
|
|
336
|
+
const apiType = this.getApiTypeFromGetPlayoutVolume();
|
|
337
|
+
const jsonParams = {};
|
|
338
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
339
|
+
const volume = jsonResults.volume;
|
|
340
|
+
return volume;
|
|
341
|
+
}
|
|
342
|
+
getApiTypeFromGetPlayoutVolume() {
|
|
343
|
+
return 'MediaPlayer_getPlayoutVolume_9cfaa7e';
|
|
344
|
+
}
|
|
345
|
+
adjustPublishSignalVolume(volume) {
|
|
346
|
+
const apiType = this.getApiTypeFromAdjustPublishSignalVolume(volume);
|
|
347
|
+
const jsonParams = {
|
|
348
|
+
volume: volume,
|
|
349
|
+
toJSON: () => {
|
|
350
|
+
return {
|
|
351
|
+
volume: volume
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
};
|
|
355
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
356
|
+
return jsonResults.result;
|
|
357
|
+
}
|
|
358
|
+
getApiTypeFromAdjustPublishSignalVolume(volume) {
|
|
359
|
+
return 'MediaPlayer_adjustPublishSignalVolume_46f8ab7';
|
|
360
|
+
}
|
|
361
|
+
getPublishSignalVolume() {
|
|
362
|
+
const apiType = this.getApiTypeFromGetPublishSignalVolume();
|
|
363
|
+
const jsonParams = {};
|
|
364
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
365
|
+
const volume = jsonResults.volume;
|
|
366
|
+
return volume;
|
|
367
|
+
}
|
|
368
|
+
getApiTypeFromGetPublishSignalVolume() {
|
|
369
|
+
return 'MediaPlayer_getPublishSignalVolume_9cfaa7e';
|
|
370
|
+
}
|
|
371
|
+
setView(view) {
|
|
372
|
+
const apiType = this.getApiTypeFromSetView(view);
|
|
373
|
+
const jsonParams = {
|
|
374
|
+
view: view,
|
|
375
|
+
toJSON: () => {
|
|
376
|
+
return {
|
|
377
|
+
view: view
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
};
|
|
381
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
382
|
+
return jsonResults.result;
|
|
383
|
+
}
|
|
384
|
+
getApiTypeFromSetView(view) {
|
|
385
|
+
return 'MediaPlayer_setView_cb1a81f';
|
|
386
|
+
}
|
|
387
|
+
setRenderMode(renderMode) {
|
|
388
|
+
const apiType = this.getApiTypeFromSetRenderMode(renderMode);
|
|
389
|
+
const jsonParams = {
|
|
390
|
+
renderMode: renderMode,
|
|
391
|
+
toJSON: () => {
|
|
392
|
+
return {
|
|
393
|
+
renderMode: renderMode
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
398
|
+
return jsonResults.result;
|
|
399
|
+
}
|
|
400
|
+
getApiTypeFromSetRenderMode(renderMode) {
|
|
401
|
+
return 'MediaPlayer_setRenderMode_bedb5ae';
|
|
402
|
+
}
|
|
403
|
+
registerPlayerSourceObserver(observer) {
|
|
404
|
+
const apiType = this.getApiTypeFromRegisterPlayerSourceObserver(observer);
|
|
405
|
+
const jsonParams = {
|
|
406
|
+
observer: observer,
|
|
407
|
+
toJSON: () => {
|
|
408
|
+
return {};
|
|
409
|
+
}
|
|
410
|
+
};
|
|
411
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
412
|
+
return jsonResults.result;
|
|
413
|
+
}
|
|
414
|
+
getApiTypeFromRegisterPlayerSourceObserver(observer) {
|
|
415
|
+
return 'MediaPlayer_registerPlayerSourceObserver_15621d7';
|
|
416
|
+
}
|
|
417
|
+
unregisterPlayerSourceObserver(observer) {
|
|
418
|
+
const apiType = this.getApiTypeFromUnregisterPlayerSourceObserver(observer);
|
|
419
|
+
const jsonParams = {
|
|
420
|
+
observer: observer,
|
|
421
|
+
toJSON: () => {
|
|
422
|
+
return {};
|
|
423
|
+
}
|
|
424
|
+
};
|
|
425
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
426
|
+
return jsonResults.result;
|
|
427
|
+
}
|
|
428
|
+
getApiTypeFromUnregisterPlayerSourceObserver(observer) {
|
|
429
|
+
return 'MediaPlayer_unregisterPlayerSourceObserver_15621d7';
|
|
430
|
+
}
|
|
431
|
+
registerAudioFrameObserver(observer, mode = _AgoraMediaBase.RawAudioFrameOpModeType.RawAudioFrameOpModeReadOnly) {
|
|
432
|
+
const apiType = this.getApiTypeFromRegisterAudioFrameObserver(observer, mode);
|
|
433
|
+
const jsonParams = {
|
|
434
|
+
observer: observer,
|
|
435
|
+
mode: mode,
|
|
436
|
+
toJSON: () => {
|
|
437
|
+
return {
|
|
438
|
+
mode: mode
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
};
|
|
442
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
443
|
+
return jsonResults.result;
|
|
444
|
+
}
|
|
445
|
+
getApiTypeFromRegisterAudioFrameObserver(observer, mode = _AgoraMediaBase.RawAudioFrameOpModeType.RawAudioFrameOpModeReadOnly) {
|
|
446
|
+
return 'MediaPlayer_registerAudioFrameObserver_a5b510b';
|
|
447
|
+
}
|
|
448
|
+
unregisterAudioFrameObserver(observer) {
|
|
449
|
+
const apiType = this.getApiTypeFromUnregisterAudioFrameObserver(observer);
|
|
450
|
+
const jsonParams = {
|
|
451
|
+
observer: observer,
|
|
452
|
+
toJSON: () => {
|
|
453
|
+
return {};
|
|
454
|
+
}
|
|
455
|
+
};
|
|
456
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
457
|
+
return jsonResults.result;
|
|
458
|
+
}
|
|
459
|
+
getApiTypeFromUnregisterAudioFrameObserver(observer) {
|
|
460
|
+
return 'MediaPlayer_unregisterAudioFrameObserver_89ab9b5';
|
|
461
|
+
}
|
|
462
|
+
registerVideoFrameObserver(observer) {
|
|
463
|
+
const apiType = this.getApiTypeFromRegisterVideoFrameObserver(observer);
|
|
464
|
+
const jsonParams = {
|
|
465
|
+
observer: observer,
|
|
466
|
+
toJSON: () => {
|
|
467
|
+
return {};
|
|
468
|
+
}
|
|
469
|
+
};
|
|
470
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
471
|
+
return jsonResults.result;
|
|
472
|
+
}
|
|
473
|
+
getApiTypeFromRegisterVideoFrameObserver(observer) {
|
|
474
|
+
return 'MediaPlayer_registerVideoFrameObserver_833bd8d';
|
|
475
|
+
}
|
|
476
|
+
unregisterVideoFrameObserver(observer) {
|
|
477
|
+
const apiType = this.getApiTypeFromUnregisterVideoFrameObserver(observer);
|
|
478
|
+
const jsonParams = {
|
|
479
|
+
observer: observer,
|
|
480
|
+
toJSON: () => {
|
|
481
|
+
return {};
|
|
482
|
+
}
|
|
483
|
+
};
|
|
484
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
485
|
+
return jsonResults.result;
|
|
486
|
+
}
|
|
487
|
+
getApiTypeFromUnregisterVideoFrameObserver(observer) {
|
|
488
|
+
return 'MediaPlayer_unregisterVideoFrameObserver_5165d4c';
|
|
489
|
+
}
|
|
490
|
+
registerMediaPlayerAudioSpectrumObserver(observer, intervalInMS) {
|
|
491
|
+
const apiType = this.getApiTypeFromRegisterMediaPlayerAudioSpectrumObserver(observer, intervalInMS);
|
|
492
|
+
const jsonParams = {
|
|
493
|
+
observer: observer,
|
|
494
|
+
intervalInMS: intervalInMS,
|
|
495
|
+
toJSON: () => {
|
|
496
|
+
return {
|
|
497
|
+
intervalInMS: intervalInMS
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
};
|
|
501
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
502
|
+
return jsonResults.result;
|
|
503
|
+
}
|
|
504
|
+
getApiTypeFromRegisterMediaPlayerAudioSpectrumObserver(observer, intervalInMS) {
|
|
505
|
+
return 'MediaPlayer_registerMediaPlayerAudioSpectrumObserver_226bb48';
|
|
506
|
+
}
|
|
507
|
+
unregisterMediaPlayerAudioSpectrumObserver(observer) {
|
|
508
|
+
const apiType = this.getApiTypeFromUnregisterMediaPlayerAudioSpectrumObserver(observer);
|
|
509
|
+
const jsonParams = {
|
|
510
|
+
observer: observer,
|
|
511
|
+
toJSON: () => {
|
|
512
|
+
return {};
|
|
513
|
+
}
|
|
514
|
+
};
|
|
515
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
516
|
+
return jsonResults.result;
|
|
517
|
+
}
|
|
518
|
+
getApiTypeFromUnregisterMediaPlayerAudioSpectrumObserver(observer) {
|
|
519
|
+
return 'MediaPlayer_unregisterMediaPlayerAudioSpectrumObserver_09064ce';
|
|
520
|
+
}
|
|
521
|
+
setAudioDualMonoMode(mode) {
|
|
522
|
+
const apiType = this.getApiTypeFromSetAudioDualMonoMode(mode);
|
|
523
|
+
const jsonParams = {
|
|
524
|
+
mode: mode,
|
|
525
|
+
toJSON: () => {
|
|
526
|
+
return {
|
|
527
|
+
mode: mode
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
};
|
|
531
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
532
|
+
return jsonResults.result;
|
|
533
|
+
}
|
|
534
|
+
getApiTypeFromSetAudioDualMonoMode(mode) {
|
|
535
|
+
return 'MediaPlayer_setAudioDualMonoMode_30c9672';
|
|
536
|
+
}
|
|
537
|
+
getPlayerSdkVersion() {
|
|
538
|
+
const apiType = this.getApiTypeFromGetPlayerSdkVersion();
|
|
539
|
+
const jsonParams = {};
|
|
540
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
541
|
+
return jsonResults.result;
|
|
542
|
+
}
|
|
543
|
+
getApiTypeFromGetPlayerSdkVersion() {
|
|
544
|
+
return 'MediaPlayer_getPlayerSdkVersion';
|
|
545
|
+
}
|
|
546
|
+
getPlaySrc() {
|
|
547
|
+
const apiType = this.getApiTypeFromGetPlaySrc();
|
|
548
|
+
const jsonParams = {};
|
|
549
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
550
|
+
return jsonResults.result;
|
|
551
|
+
}
|
|
552
|
+
getApiTypeFromGetPlaySrc() {
|
|
553
|
+
return 'MediaPlayer_getPlaySrc';
|
|
554
|
+
}
|
|
555
|
+
openWithAgoraCDNSrc(src, startPos) {
|
|
556
|
+
const apiType = this.getApiTypeFromOpenWithAgoraCDNSrc(src, startPos);
|
|
557
|
+
const jsonParams = {
|
|
558
|
+
src: src,
|
|
559
|
+
startPos: startPos,
|
|
560
|
+
toJSON: () => {
|
|
561
|
+
return {
|
|
562
|
+
src: src,
|
|
563
|
+
startPos: startPos
|
|
564
|
+
};
|
|
565
|
+
}
|
|
566
|
+
};
|
|
567
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
568
|
+
return jsonResults.result;
|
|
569
|
+
}
|
|
570
|
+
getApiTypeFromOpenWithAgoraCDNSrc(src, startPos) {
|
|
571
|
+
return 'MediaPlayer_openWithAgoraCDNSrc_e43f201';
|
|
572
|
+
}
|
|
573
|
+
getAgoraCDNLineCount() {
|
|
574
|
+
const apiType = this.getApiTypeFromGetAgoraCDNLineCount();
|
|
575
|
+
const jsonParams = {};
|
|
576
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
577
|
+
return jsonResults.result;
|
|
578
|
+
}
|
|
579
|
+
getApiTypeFromGetAgoraCDNLineCount() {
|
|
580
|
+
return 'MediaPlayer_getAgoraCDNLineCount';
|
|
581
|
+
}
|
|
582
|
+
switchAgoraCDNLineByIndex(index) {
|
|
583
|
+
const apiType = this.getApiTypeFromSwitchAgoraCDNLineByIndex(index);
|
|
584
|
+
const jsonParams = {
|
|
585
|
+
index: index,
|
|
586
|
+
toJSON: () => {
|
|
587
|
+
return {
|
|
588
|
+
index: index
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
};
|
|
592
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
593
|
+
return jsonResults.result;
|
|
594
|
+
}
|
|
595
|
+
getApiTypeFromSwitchAgoraCDNLineByIndex(index) {
|
|
596
|
+
return 'MediaPlayer_switchAgoraCDNLineByIndex_46f8ab7';
|
|
597
|
+
}
|
|
598
|
+
getCurrentAgoraCDNIndex() {
|
|
599
|
+
const apiType = this.getApiTypeFromGetCurrentAgoraCDNIndex();
|
|
600
|
+
const jsonParams = {};
|
|
601
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
602
|
+
return jsonResults.result;
|
|
603
|
+
}
|
|
604
|
+
getApiTypeFromGetCurrentAgoraCDNIndex() {
|
|
605
|
+
return 'MediaPlayer_getCurrentAgoraCDNIndex';
|
|
606
|
+
}
|
|
607
|
+
enableAutoSwitchAgoraCDN(enable) {
|
|
608
|
+
const apiType = this.getApiTypeFromEnableAutoSwitchAgoraCDN(enable);
|
|
609
|
+
const jsonParams = {
|
|
610
|
+
enable: enable,
|
|
611
|
+
toJSON: () => {
|
|
612
|
+
return {
|
|
613
|
+
enable: enable
|
|
614
|
+
};
|
|
615
|
+
}
|
|
616
|
+
};
|
|
617
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
618
|
+
return jsonResults.result;
|
|
619
|
+
}
|
|
620
|
+
getApiTypeFromEnableAutoSwitchAgoraCDN(enable) {
|
|
621
|
+
return 'MediaPlayer_enableAutoSwitchAgoraCDN_5039d15';
|
|
622
|
+
}
|
|
623
|
+
renewAgoraCDNSrcToken(token, ts) {
|
|
624
|
+
const apiType = this.getApiTypeFromRenewAgoraCDNSrcToken(token, ts);
|
|
625
|
+
const jsonParams = {
|
|
626
|
+
token: token,
|
|
627
|
+
ts: ts,
|
|
628
|
+
toJSON: () => {
|
|
629
|
+
return {
|
|
630
|
+
token: token,
|
|
631
|
+
ts: ts
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
};
|
|
635
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
636
|
+
return jsonResults.result;
|
|
637
|
+
}
|
|
638
|
+
getApiTypeFromRenewAgoraCDNSrcToken(token, ts) {
|
|
639
|
+
return 'MediaPlayer_renewAgoraCDNSrcToken_e43f201';
|
|
640
|
+
}
|
|
641
|
+
switchAgoraCDNSrc(src, syncPts = false) {
|
|
642
|
+
const apiType = this.getApiTypeFromSwitchAgoraCDNSrc(src, syncPts);
|
|
643
|
+
const jsonParams = {
|
|
644
|
+
src: src,
|
|
645
|
+
syncPts: syncPts,
|
|
646
|
+
toJSON: () => {
|
|
647
|
+
return {
|
|
648
|
+
src: src,
|
|
649
|
+
syncPts: syncPts
|
|
650
|
+
};
|
|
651
|
+
}
|
|
652
|
+
};
|
|
653
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
654
|
+
return jsonResults.result;
|
|
655
|
+
}
|
|
656
|
+
getApiTypeFromSwitchAgoraCDNSrc(src, syncPts = false) {
|
|
657
|
+
return 'MediaPlayer_switchAgoraCDNSrc_7a174df';
|
|
658
|
+
}
|
|
659
|
+
switchSrc(src, syncPts = true) {
|
|
660
|
+
const apiType = this.getApiTypeFromSwitchSrc(src, syncPts);
|
|
661
|
+
const jsonParams = {
|
|
662
|
+
src: src,
|
|
663
|
+
syncPts: syncPts,
|
|
664
|
+
toJSON: () => {
|
|
665
|
+
return {
|
|
666
|
+
src: src,
|
|
667
|
+
syncPts: syncPts
|
|
668
|
+
};
|
|
669
|
+
}
|
|
670
|
+
};
|
|
671
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
672
|
+
return jsonResults.result;
|
|
673
|
+
}
|
|
674
|
+
getApiTypeFromSwitchSrc(src, syncPts = true) {
|
|
675
|
+
return 'MediaPlayer_switchSrc_7a174df';
|
|
676
|
+
}
|
|
677
|
+
preloadSrc(src, startPos) {
|
|
678
|
+
const apiType = this.getApiTypeFromPreloadSrc(src, startPos);
|
|
679
|
+
const jsonParams = {
|
|
680
|
+
src: src,
|
|
681
|
+
startPos: startPos,
|
|
682
|
+
toJSON: () => {
|
|
683
|
+
return {
|
|
684
|
+
src: src,
|
|
685
|
+
startPos: startPos
|
|
686
|
+
};
|
|
687
|
+
}
|
|
688
|
+
};
|
|
689
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
690
|
+
return jsonResults.result;
|
|
691
|
+
}
|
|
692
|
+
getApiTypeFromPreloadSrc(src, startPos) {
|
|
693
|
+
return 'MediaPlayer_preloadSrc_e43f201';
|
|
694
|
+
}
|
|
695
|
+
playPreloadedSrc(src) {
|
|
696
|
+
const apiType = this.getApiTypeFromPlayPreloadedSrc(src);
|
|
697
|
+
const jsonParams = {
|
|
698
|
+
src: src,
|
|
699
|
+
toJSON: () => {
|
|
700
|
+
return {
|
|
701
|
+
src: src
|
|
702
|
+
};
|
|
703
|
+
}
|
|
704
|
+
};
|
|
705
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
706
|
+
return jsonResults.result;
|
|
707
|
+
}
|
|
708
|
+
getApiTypeFromPlayPreloadedSrc(src) {
|
|
709
|
+
return 'MediaPlayer_playPreloadedSrc_3a2037f';
|
|
710
|
+
}
|
|
711
|
+
unloadSrc(src) {
|
|
712
|
+
const apiType = this.getApiTypeFromUnloadSrc(src);
|
|
713
|
+
const jsonParams = {
|
|
714
|
+
src: src,
|
|
715
|
+
toJSON: () => {
|
|
716
|
+
return {
|
|
717
|
+
src: src
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
};
|
|
721
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
722
|
+
return jsonResults.result;
|
|
723
|
+
}
|
|
724
|
+
getApiTypeFromUnloadSrc(src) {
|
|
725
|
+
return 'MediaPlayer_unloadSrc_3a2037f';
|
|
726
|
+
}
|
|
727
|
+
setSpatialAudioParams(params) {
|
|
728
|
+
const apiType = this.getApiTypeFromSetSpatialAudioParams(params);
|
|
729
|
+
const jsonParams = {
|
|
730
|
+
params: params,
|
|
731
|
+
toJSON: () => {
|
|
732
|
+
return {
|
|
733
|
+
params: params
|
|
734
|
+
};
|
|
735
|
+
}
|
|
736
|
+
};
|
|
737
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
738
|
+
return jsonResults.result;
|
|
739
|
+
}
|
|
740
|
+
getApiTypeFromSetSpatialAudioParams(params) {
|
|
741
|
+
return 'MediaPlayer_setSpatialAudioParams_5035667';
|
|
742
|
+
}
|
|
743
|
+
setSoundPositionParams(pan, gain) {
|
|
744
|
+
const apiType = this.getApiTypeFromSetSoundPositionParams(pan, gain);
|
|
745
|
+
const jsonParams = {
|
|
746
|
+
pan: pan,
|
|
747
|
+
gain: gain,
|
|
748
|
+
toJSON: () => {
|
|
749
|
+
return {
|
|
750
|
+
pan: pan,
|
|
751
|
+
gain: gain
|
|
752
|
+
};
|
|
753
|
+
}
|
|
754
|
+
};
|
|
755
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
756
|
+
return jsonResults.result;
|
|
757
|
+
}
|
|
758
|
+
getApiTypeFromSetSoundPositionParams(pan, gain) {
|
|
759
|
+
return 'MediaPlayer_setSoundPositionParams_f282d50';
|
|
760
|
+
}
|
|
761
|
+
getAudioBufferDelay() {
|
|
762
|
+
const apiType = this.getApiTypeFromGetAudioBufferDelay();
|
|
763
|
+
const jsonParams = {};
|
|
764
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
765
|
+
const delayMs = jsonResults.delayMs;
|
|
766
|
+
return delayMs;
|
|
767
|
+
}
|
|
768
|
+
getApiTypeFromGetAudioBufferDelay() {
|
|
769
|
+
return 'MediaPlayer_getAudioBufferDelay_c30e349';
|
|
770
|
+
}
|
|
771
|
+
setPlayerOptionInInt(key, value) {
|
|
772
|
+
const apiType = this.getApiTypeFromSetPlayerOptionInInt(key, value);
|
|
773
|
+
const jsonParams = {
|
|
774
|
+
key: key,
|
|
775
|
+
value: value,
|
|
776
|
+
toJSON: () => {
|
|
777
|
+
return {
|
|
778
|
+
key: key,
|
|
779
|
+
value: value
|
|
780
|
+
};
|
|
781
|
+
}
|
|
782
|
+
};
|
|
783
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
784
|
+
return jsonResults.result;
|
|
785
|
+
}
|
|
786
|
+
getApiTypeFromSetPlayerOptionInInt(key, value) {
|
|
787
|
+
return 'MediaPlayer_setPlayerOption_4d05d29';
|
|
788
|
+
}
|
|
789
|
+
setPlayerOptionInString(key, value) {
|
|
790
|
+
const apiType = this.getApiTypeFromSetPlayerOptionInString(key, value);
|
|
791
|
+
const jsonParams = {
|
|
792
|
+
key: key,
|
|
793
|
+
value: value,
|
|
794
|
+
toJSON: () => {
|
|
795
|
+
return {
|
|
796
|
+
key: key,
|
|
797
|
+
value: value
|
|
798
|
+
};
|
|
799
|
+
}
|
|
800
|
+
};
|
|
801
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
802
|
+
return jsonResults.result;
|
|
803
|
+
}
|
|
804
|
+
getApiTypeFromSetPlayerOptionInString(key, value) {
|
|
805
|
+
return 'MediaPlayer_setPlayerOption_ccad422';
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
// @ts-ignore
|
|
810
|
+
exports.IMediaPlayerImpl = IMediaPlayerImpl;
|
|
811
|
+
class IMediaPlayerCacheManagerImpl {
|
|
812
|
+
removeAllCaches() {
|
|
813
|
+
const apiType = this.getApiTypeFromRemoveAllCaches();
|
|
814
|
+
const jsonParams = {};
|
|
815
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
816
|
+
return jsonResults.result;
|
|
817
|
+
}
|
|
818
|
+
getApiTypeFromRemoveAllCaches() {
|
|
819
|
+
return 'MediaPlayerCacheManager_removeAllCaches';
|
|
820
|
+
}
|
|
821
|
+
removeOldCache() {
|
|
822
|
+
const apiType = this.getApiTypeFromRemoveOldCache();
|
|
823
|
+
const jsonParams = {};
|
|
824
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
825
|
+
return jsonResults.result;
|
|
826
|
+
}
|
|
827
|
+
getApiTypeFromRemoveOldCache() {
|
|
828
|
+
return 'MediaPlayerCacheManager_removeOldCache';
|
|
829
|
+
}
|
|
830
|
+
removeCacheByUri(uri) {
|
|
831
|
+
const apiType = this.getApiTypeFromRemoveCacheByUri(uri);
|
|
832
|
+
const jsonParams = {
|
|
833
|
+
uri: uri,
|
|
834
|
+
toJSON: () => {
|
|
835
|
+
return {
|
|
836
|
+
uri: uri
|
|
837
|
+
};
|
|
838
|
+
}
|
|
839
|
+
};
|
|
840
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
841
|
+
return jsonResults.result;
|
|
842
|
+
}
|
|
843
|
+
getApiTypeFromRemoveCacheByUri(uri) {
|
|
844
|
+
return 'MediaPlayerCacheManager_removeCacheByUri_3a2037f';
|
|
845
|
+
}
|
|
846
|
+
setCacheDir(path) {
|
|
847
|
+
const apiType = this.getApiTypeFromSetCacheDir(path);
|
|
848
|
+
const jsonParams = {
|
|
849
|
+
path: path,
|
|
850
|
+
toJSON: () => {
|
|
851
|
+
return {
|
|
852
|
+
path: path
|
|
853
|
+
};
|
|
854
|
+
}
|
|
855
|
+
};
|
|
856
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
857
|
+
return jsonResults.result;
|
|
858
|
+
}
|
|
859
|
+
getApiTypeFromSetCacheDir(path) {
|
|
860
|
+
return 'MediaPlayerCacheManager_setCacheDir_3a2037f';
|
|
861
|
+
}
|
|
862
|
+
setMaxCacheFileCount(count) {
|
|
863
|
+
const apiType = this.getApiTypeFromSetMaxCacheFileCount(count);
|
|
864
|
+
const jsonParams = {
|
|
865
|
+
count: count,
|
|
866
|
+
toJSON: () => {
|
|
867
|
+
return {
|
|
868
|
+
count: count
|
|
869
|
+
};
|
|
870
|
+
}
|
|
871
|
+
};
|
|
872
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
873
|
+
return jsonResults.result;
|
|
874
|
+
}
|
|
875
|
+
getApiTypeFromSetMaxCacheFileCount(count) {
|
|
876
|
+
return 'MediaPlayerCacheManager_setMaxCacheFileCount_46f8ab7';
|
|
877
|
+
}
|
|
878
|
+
setMaxCacheFileSize(cacheSize) {
|
|
879
|
+
const apiType = this.getApiTypeFromSetMaxCacheFileSize(cacheSize);
|
|
880
|
+
const jsonParams = {
|
|
881
|
+
cacheSize: cacheSize,
|
|
882
|
+
toJSON: () => {
|
|
883
|
+
return {
|
|
884
|
+
cacheSize: cacheSize
|
|
885
|
+
};
|
|
886
|
+
}
|
|
887
|
+
};
|
|
888
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
889
|
+
return jsonResults.result;
|
|
890
|
+
}
|
|
891
|
+
getApiTypeFromSetMaxCacheFileSize(cacheSize) {
|
|
892
|
+
return 'MediaPlayerCacheManager_setMaxCacheFileSize_f631116';
|
|
893
|
+
}
|
|
894
|
+
enableAutoRemoveCache(enable) {
|
|
895
|
+
const apiType = this.getApiTypeFromEnableAutoRemoveCache(enable);
|
|
896
|
+
const jsonParams = {
|
|
897
|
+
enable: enable,
|
|
898
|
+
toJSON: () => {
|
|
899
|
+
return {
|
|
900
|
+
enable: enable
|
|
901
|
+
};
|
|
902
|
+
}
|
|
903
|
+
};
|
|
904
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
905
|
+
return jsonResults.result;
|
|
906
|
+
}
|
|
907
|
+
getApiTypeFromEnableAutoRemoveCache(enable) {
|
|
908
|
+
return 'MediaPlayerCacheManager_enableAutoRemoveCache_5039d15';
|
|
909
|
+
}
|
|
910
|
+
getCacheDir(length) {
|
|
911
|
+
const apiType = this.getApiTypeFromGetCacheDir(length);
|
|
912
|
+
const jsonParams = {
|
|
913
|
+
length: length,
|
|
914
|
+
toJSON: () => {
|
|
915
|
+
return {
|
|
916
|
+
length: length
|
|
917
|
+
};
|
|
918
|
+
}
|
|
919
|
+
};
|
|
920
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
921
|
+
const path = jsonResults.path;
|
|
922
|
+
return path;
|
|
923
|
+
}
|
|
924
|
+
getApiTypeFromGetCacheDir(length) {
|
|
925
|
+
return 'MediaPlayerCacheManager_getCacheDir_c9551e8';
|
|
926
|
+
}
|
|
927
|
+
getMaxCacheFileCount() {
|
|
928
|
+
const apiType = this.getApiTypeFromGetMaxCacheFileCount();
|
|
929
|
+
const jsonParams = {};
|
|
930
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
931
|
+
return jsonResults.result;
|
|
932
|
+
}
|
|
933
|
+
getApiTypeFromGetMaxCacheFileCount() {
|
|
934
|
+
return 'MediaPlayerCacheManager_getMaxCacheFileCount';
|
|
935
|
+
}
|
|
936
|
+
getMaxCacheFileSize() {
|
|
937
|
+
const apiType = this.getApiTypeFromGetMaxCacheFileSize();
|
|
938
|
+
const jsonParams = {};
|
|
939
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
940
|
+
return jsonResults.result;
|
|
941
|
+
}
|
|
942
|
+
getApiTypeFromGetMaxCacheFileSize() {
|
|
943
|
+
return 'MediaPlayerCacheManager_getMaxCacheFileSize';
|
|
944
|
+
}
|
|
945
|
+
getCacheFileCount() {
|
|
946
|
+
const apiType = this.getApiTypeFromGetCacheFileCount();
|
|
947
|
+
const jsonParams = {};
|
|
948
|
+
const jsonResults = _call.callIrisApi.call(this, apiType, jsonParams);
|
|
949
|
+
return jsonResults.result;
|
|
950
|
+
}
|
|
951
|
+
getApiTypeFromGetCacheFileCount() {
|
|
952
|
+
return 'MediaPlayerCacheManager_getCacheFileCount';
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
exports.IMediaPlayerCacheManagerImpl = IMediaPlayerCacheManagerImpl;
|
|
956
|
+
function processIMediaPlayerVideoFrameObserver(handler, event, jsonParams) {
|
|
957
|
+
switch (event) {
|
|
958
|
+
case 'onFrame':
|
|
959
|
+
if (handler.onFrame !== undefined) {
|
|
960
|
+
handler.onFrame(jsonParams.frame);
|
|
961
|
+
}
|
|
962
|
+
break;
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
//# sourceMappingURL=IAgoraMediaPlayerImpl.js.map
|