Describe the bug
Remote preview lost and surfaceview turn to black when app goes to background and turns to foreground
Lib version
2.1
Smartphone (please complete the following information):
Device: Android
OS: 13
Additional context
I have tried with surfaceview callbacks and tried to start preview again but no luck.
below is my code
remotePreviewHolder.addCallback(object : SurfaceHolder.Callback {
override fun surfaceCreated(holder: SurfaceHolder) {
// The surface is created. This is a good place to start your video preview or perform any drawing operations.
}
maybe it's related to latest foreground service requirements? try giving it the proper ones and also check if your app is eligible to access camera in the background
Describe the bug Remote preview lost and surfaceview turn to black when app goes to background and turns to foreground
Lib version 2.1
Smartphone (please complete the following information):
Additional context I have tried with surfaceview callbacks and tried to start preview again but no luck.
below is my code
remotePreviewHolder.addCallback(object : SurfaceHolder.Callback { override fun surfaceCreated(holder: SurfaceHolder) { // The surface is created. This is a good place to start your video preview or perform any drawing operations. }