HI, All
Who tried this ?
If to use Erel's code
the full screen camera preview is not shot
Maybe any solution to see the camera by the screenshot ?
Or any other variant to make pseudo live-video from remote smartphone with open camera ?
Now auto-refresh HTML-page shows OK:
But no camera's picture.
Who tried this ?
If to use Erel's code
B4X:
Sub Take_Screenshot As Bitmap
Dim jo As JavaObject
jo.InitializeContext
Dim decor As JavaObject = jo.RunMethodJO("getWindow", Null).RunMethod("getDecorView", Null)
Dim decorChild As JavaObject = decor.RunMethod("getChildAt", Array(0))
decorChild.RunMethod("setDrawingCacheEnabled", Array(True))
decorChild.RunMethod("buildDrawingCache", Null)
Dim bmp As Bitmap = decorChild.RunMethod("getDrawingCache", Array(True))
bmp.Initialize3(bmp)
decorChild.RunMethod("setDrawingCacheEnabled", Array(False))
Return bmp
End Sub
the full screen camera preview is not shot
Maybe any solution to see the camera by the screenshot ?
Or any other variant to make pseudo live-video from remote smartphone with open camera ?
Now auto-refresh HTML-page shows OK:
B4X:
<html>
<head>
<meta http-equiv="Refresh" content="10" />
<meta http-equiv="Cache-Control" content="no-cache" />
</head>
<body>
<img src="http://ftp.kjhwdckj/screenshots/erwwrg9021b0.png" alt="РScreenshot">
</body>
</html>
But no camera's picture.