← Back to team overview

ubuntu-phone team mailing list archive

Re: control of the cam app from remote



maybe your are interessted in this

It's just the Camera example from the documentation (like Micheal said),
but with a small plugin, which reads every x milliseconds a given
file. If not empty it executes the content as javascript, and then
truncates the file.

When the app is running you can do things like

echo "camera.videoRecorder.stop()" > camerascript.js
echo "camera.videoRecorder.record()" > camerascript.js
echo "camera.flash.mode=Camera.FlashOn;camera.imageCapture.capture();" > camerascript.js

After extracting the tar file, run this scipt in the new directoy
to "install" the app
sh create_desktop_file.sh > ~/.local/share/applications/RCam.desktop


Follow ups