webrtc-android icon indicating copy to clipboard operation
webrtc-android copied to clipboard

ScreenCapturerAndroid.changeCaptureFormat sometimes causes cast to stop working.

Open imablanco opened this issue 2 years ago • 2 comments

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.

imablanco avatar Oct 25 '23 20:10 imablanco

Have you solved this problem?

gongluck avatar Nov 05 '24 04:11 gongluck

Refer to the https://webrtc-review.googlesource.com/c/src/+/305560 to submit, repair the problem on my side.

gongluck avatar Nov 07 '24 09:11 gongluck