webrtc-android
webrtc-android copied to clipboard
ScreenCapturerAndroid.changeCaptureFormat sometimes causes cast to stop working.
Hello, we are currently using this lib to peer with a web client using ScreenCapturerAndroid to stream the user screen.
Every time the user rotates the phone we are calling changeCaptureFormat with new screen dimensions but sometimes (we are not able to find a pattern) this causes casting to stop working.
I attach some of the logs we see when this error occurs.
[SurfaceTexture-1-15488-0](id:3c8000000003,api:1,p:361,c:15488) connect: already connected (cur=1 req=1)
[SurfaceTexture-1-15488-0](id:3c8000000003,api:0,p:-1,c:15488) dequeueBuffer: BufferQueue has no connected producer
[SurfaceTexture-1-15488-0](id:3c8000000003,api:0,p:-1,c:15488) disconnect: not connected (req=1)
Any clue of what can be the issue or if this is an already known bug?
Thanks in advance.
Have you solved this problem?
Refer to the https://webrtc-review.googlesource.com/c/src/+/305560 to submit, repair the problem on my side.