Feature #222
closed
Write PHP that initiates webcam stream via piboxd, sends heartbeat and kills stream.
Added by Hammel about 11 years ago.
Updated about 11 years ago.
Category:
04 - Root File System
Description
Now that piboxd is ready I can write the PHP-based web pages (RESTful interface) that handles starting the webcam stream, providing heartbeats for the stream and kills the stream.
The PHP for starting the stream should include the Javascript that is required to call the heartbeat PHP and the kill PHP pages.
- Status changed from In Progress to Closed
- % Done changed from 0 to 80
This is working now. It's built around a php script that sends a start message to piboxd, then loads a page template that includes javascript to callback to the php script as either a heartbeat or when leaving the page to kill the webcam. Dealing with the Back button is a problem at the moment but I can return to that later. For now, this will suffice for the prototype.
What's left now is to test the complete setup - piboxd, crtmpserver and piboxwww under monkey - on the hardware serving to my phone or tablet. Actually the first test should be to the desktop, then test to Android.
- Status changed from Closed to In Progress
- % Done changed from 80 to 90
Multiple updates to get the complete system running:
- crtmpserver: Make crtmpserver configuration default to daemon mode. Add lock file to init script processing.
- piboxd: Add postinst script that fixes ownerhips/perms on installed files. Fix base dir for init script.
- monkey: Fixed lock file for init script, fixed target dependencies for packaging and require root user to create package in order to properly set ownership/privileges within the package itself,(instead of after installation), added custom plugins.load that will automatically enable php-cgi, removed default files from root dir in monkey installation.
- piboxwww: fixed target dependencies for packaging target and force root user requirement when using that target, don't perform permissions/ownership updates if no files were installed to monkey root dir, add server interface IP to page template returned to client, fix protocol type (rtmp->rtsp) so JWPlayer will properly load.
This should now work in the test bed. I can't test it over an ssh tunnel or I'd verify it works right now.
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
Verified on my laptop at home. The video streams correctly and stops correctly.
This issue can be closed.
Also available in: Atom
PDF