Action Item #541
Add Webcam app
|Status:||Closed||Start date:||07 Aug 2016|
|Category:||04 - Applications|
|Severity:||01 - Critical|
Turns out this is easy to run. Just start the wecam (as is done with the web-based player) and then run:
Playback smoother than on the web interface but there is a bit of jumpiness. And it eventually locks up.
Might play better with the raspicam that's on order....
RM #541: Switch from -r to -b for omxplayer arg because the latter seems to muck up the HDMI display when the app exits.
RM #541: Allow setting URL to connect to in the config file. Makes it easier to test.
#1 Updated by Hammel almost 2 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 30
Wrote the front end, but it's missing the startup of mjpeg-streamer. I need to add the call to piboxd (like in the web interface) to have mjpeg-streamer started before I try to connect to the stream. Probably needs a short pause or some mechanism to sync/validate the mjpeg-streamer server is running.
The web interface sends the command from this code: piboxwww/src/piboxwww/php/webcam.php:webcam(). The protocol is specified here: http://www.graphics-muse.org/wiki/pmwiki.php/RaspberryPi/MessageFlow.
I need to send an MT_STREAM, MA_START to initialize the process. Then send MT_STREAM, MA_END to stop it.
#2 Updated by Hammel almost 2 years ago
- Status changed from In Progress to Closed
- % Done changed from 30 to 100
Done. The webcam can now play on the console. There is an app icon for it in the launcher. The code also carries a generic messaging function to piboxd. This function should eventually be migrated to libpibox.
Tested on hardware via package installation. Code committed and pushed.