AgoraIO / API-Examples

Play with AgoraSDK and have fun! Everything you need to start learning Agora.
295 stars 217 forks source link

ScreenCapture: Draw frame failed, ignore #185

Closed arvinho closed 1 week ago

arvinho commented 3 years ago

E/ScreenCapture: Draw frame failed, ignore D/ScreenSharingService: onFrameAvailable ImgTexFrame{mFormat=ImgTexFormat{mColorFormat=3, mWidth=1080, mHeight=2259}, 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]} 38288815 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 at io.agora.rtc.ss.impl.ScreenSharingService$2.onFrameAvailable(ScreenSharingService.java:95) at io.agora.rtc.ss.impl.ScreenSharingService$2.onFrameAvailable(ScreenSharingService.java:81) at io.agora.rtc.ss.gles.SrcConnector.onFrameAvailable(SrcConnector.java:40) at io.agora.rtc.ss.impl.ScreenCapture$2.onDrawFrame(ScreenCapture.java:314) at io.agora.rtc.ss.gles.GLRender.drawFrame(GLRender.java:313) at io.agora.rtc.ss.gles.GLRender.access$300(GLRender.java:23) at io.agora.rtc.ss.gles.GLRender$5.handleMessage(GLRender.java:396) at android.os.Handler.dispatchMessage(Handler.java:106)

yoreland commented 3 years ago

Seems can reproduce it locally, btw, besides screen sharing, did you get other example working?

arvinho commented 3 years ago

sure,the example of playing local video does not work either

arvinho commented 3 years ago

The screen sharing operation is also available in the example of playing local video

yoreland commented 3 years ago

Local video demo need manually copy video resources. For ScreenShare demo.