ok tested this code on my phone
#constant DeviceWidth GetDeviceWidth()
#constant DeviceHeight GetDeviceHeight()
SetWindowTitle( "Video" )
SetScreenResolution( DeviceWidth, DeviceHeight ) `Set the size of the application window
SetVirtualResolution( DeviceWidth, DeviceHeight ) `Set the "virtual" screen size
SetOrientationAllowed( 0, 0, 1, 1 ) // allow only landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
// Show camera on screen
SetDeviceCameraToImage(0,1)
CreateSprite(1,1)
SetSpriteSize(1,GetVirtualWidth(),GetVirtualHeight())
// Wait for user
While GetPointerPressed()=0
Print("Press to start recording")
Sync()
EndWhile
// Record screen
StartScreenRecording("testcapcamera.mp4", 1)
g=0
While g<100
g=g+1
Print(g)
Sync()
EndWhile
StopScreenRecording()
// All done
For g=1 to 90
Print("Done!")
Sync()
Next
SetDeviceCameraToImage(0,0)
With permissions set to record audio and camera
and it worked on my Samsung Galaxy with Android 4.4.4 installed.
Please note I also changed the rawpath as that dont exist on my phone see above
fubar