求救!!!android rtmp 推流自定义数据失败

我在使用rtmpstreaming的demo,尝试使用自定义录屏推流
调用了setVideoSource,setExternalVideoSource,但还是推流的摄像头数据
请求如何把数据源换成自定义数据源?

安卓屏幕共享吗?
https://docs.agora.io/cn/Interactive%20Broadcast/screensharing_android?platform=Android
可以参考这个代码实现,如果是屏幕共享是需要调安卓本身的共享插件,也就是示例代码里的方法

其实我只是要实现rtmpstreamt+屏幕共享,但现在使用rtmpstring+自定义IVideoSource测试时,发现不能修改数据源,哪怕我调用了setVideoSource,setExternalVideoSource,也不行。
屏幕采集已经开始,但IVideoSource.onInitialize没有被回调,就是sdk没有消费者回调上来


这个demo编译不过,libagorartc中的libagora-rtc-sdk-jni.so,libagora-crypto.so去哪儿下载?

agora的SDK压缩文件里有
https://download.agora.io/sdk/release/Agora_Native_SDK_for_Android_v3_1_3_FULL.zip
下载地址

谢谢,现在编译通过了,我再测试一下是否能够实现我的想法

agora-screen-sharing-android,这个工程中ScreenCaptureSource的onInitialize未被回调
11-12 18:46:37.916 23140-23416/io.agora.rtc.ss.app D/ScreenSharingService: onFrameAvailable ImgTexFrame{mFormat=ImgTexFormat{mColorFormat=3, mWidth=1080, mHeight=1920}, mTextureId=1, mTexMatrix=[1.0, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0]} 83310011
11-12 18:46:37.916 23140-23416/io.agora.rtc.ss.app W/System.err: java.lang.NullPointerException: Attempt to invoke interface method ‘void io.agora.rtc.mediaio.IVideoFrameConsumer.consumeTextureFrame(int, int, int, int, int, long, float[])’ on a null object reference
11-12 18:46:37.916 23140-23416/io.agora.rtc.ss.app W/System.err: at io.agora.rtc.ss.impl.ScreenSharingService$2.onFrameAvailable(ScreenSharingService.java:92)
11-12 18:46:37.916 23140-23416/io.agora.rtc.ss.app W/System.err: at io.agora.rtc.ss.impl.ScreenSharingService$2.onFrameAvailable(ScreenSharingService.java:78)
11-12 18:46:37.916 23140-23416/io.agora.rtc.ss.app W/System.err: at io.agora.rtc.ss.gles.SrcConnector.onFrameAvailable(SrcConnector.java:40)
11-12 18:46:37.916 23140-23416/io.agora.rtc.ss.app W/System.err: at io.agora.rtc.ss.impl.ScreenCapture$2.onDrawFrame(ScreenCapture.java:315)
11-12 18:46:37.916 23140-23416/io.agora.rtc.ss.app W/System.err: at io.agora.rtc.ss.gles.GLRender.drawFrame(GLRender.java:301)
11-12 18:46:37.916 23140-23416/io.agora.rtc.ss.app W/System.err: at io.agora.rtc.ss.gles.GLRender.access$300(GLRender.java:23)
11-12 18:46:37.916 23140-23416/io.agora.rtc.ss.app W/System.err: at io.agora.rtc.ss.gles.GLRender$5.handleMessage(GLRender.java:384)
11-12 18:46:37.916 23140-23416/io.agora.rtc.ss.app W/System.err: at android.os.Handler.dispatchMessage(Handler.java:107)
11-12 18:46:37.916 23140-23416/io.agora.rtc.ss.app W/System.err: at android.os.Looper.loop(Looper.java:207)
11-12 18:46:37.916 23140-23416/io.agora.rtc.ss.app W/System.err: at android.os.HandlerThread.run(HandlerThread.java:61)