You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried simple bitmap creation but its seem to not working due to surface view show how can i implement this method its used to take screen shot of single surface view but its show erro mGridVideoViewContainer beacuse its a recycler view can any one help me here to take screen shot when multiple user joined in call.
` final Bitmap bitmap = Bitmap.createBitmap(mGridVideoViewContainer.getWidth(), mGridVideoViewContainer.getHeight(), Bitmap.Config.ARGB_8888);
// Create a handler thread to offload the processing of the image.
final HandlerThread handlerThread = new HandlerThread("PixelCopier");
handlerThread.start();
// Make the request to copy.
PixelCopy.request((SurfaceView) mGridVideoViewContainer.getRootView(), bitmap, (copyResult) -> {
if (copyResult == PixelCopy.SUCCESS){
try {
AppUtils.INSTANCE.saveImage(this, bitmap, new SimpleDateFormat(FILENAME_FORMAT, Locale.US).format(System.currentTimeMillis()) + ".png");
} catch (IOException e) {
e.printStackTrace();
}
}
handlerThread.quitSafely();
}, new Handler(handlerThread.getLooper()));
}`
The text was updated successfully, but these errors were encountered:
How can i take screen shot of group video call .
I have tried simple bitmap creation but its seem to not working due to surface view show how can i implement this method its used to take screen shot of single surface view but its show erro mGridVideoViewContainer beacuse its a recycler view can any one help me here to take screen shot when multiple user joined in call.
` final Bitmap bitmap = Bitmap.createBitmap(mGridVideoViewContainer.getWidth(), mGridVideoViewContainer.getHeight(), Bitmap.Config.ARGB_8888);
The text was updated successfully, but these errors were encountered: