So playing around a little bit with streaming my phone's camera as the background. Works fine on my older devices (Android 5) but crashes whenever I try it on my Android 7 devices. GetCameraExists() and GetNumDeviceCameras() work correctly but as soon as I add SetDeviceCameraToImage it crashes on Android 7. Any suggestions?
Demo Code from Help Files
#option_explicit
rem AGK 2017.9.25
rem MR 14.11.2017
rem Test for Windows PC
local img as Integer
local cam as integer
local spr as integer
img=1
cam=0
SetDeviceCameraToImage(cam,img) //cam input goto image, image for id will created
spr=CreateSprite(img) //image output into a sprite
setspritesize(spr,GetVirtualWidth(),GetVirtualHeight()) //full size
do
print("click to exit")
if GetPointerPressed() then exit
sync()
loop
end