Action Item #541
closedAdd Webcam app
100%
Description
Turns out this is easy to run. Just start the wecam (as is done with the web-based player) and then run:
omxplayer 'http://localhost:9090/?action=stream
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....
Updated by Hammel about 8 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.
Updated by Hammel about 8 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.
Closing issue.