I'm trying to set the camera display to image and then to sprite but it doesn't seem to do much as the sprite is white when running.
I had to install the latest version of AppGameKit because AppGameKit player auto updated so I don't know if it's a new version bug or it's my device. The device has 2 cameras and GetNumDeviceCameras returns 2. I did see that GetDeviceCameraType(0), GetDeviceCameraType(1) and GetDeviceCameraType(2) all return 0. Not sure if that's the problem.
Can anyone see a problem with the code and if you have a few seconds are you able to test it to see if it works fine on your device please? I know there's no way of stopping the stream in the code below.
SetPrintColor(0, 0, 0)
imgCamQR = 0
sprCamQR = CreateSprite(imgCamQR)
SetSpriteSize(sprCamQR, GetVirtualWidth(), GetVirtualHeight())
SetSpritePosition(sprCamQR, 0, 0)
do
print(GetNumDeviceCameras())
SetDeviceCameraToImage(0, imgCamQR)
SetSpriteImage(sprCamQR, imgCamQR)
Sync()
loop