On Friday, January 29, 2016 at 10:02:58 AM UTC-8, Encompass solutions wrote:
>
> Actually you can record video and take picture by using the right kind of 
> html tags. It will involve the camera app and have it ready to upload. Do 
> it in one of my apps all the time.
>

Ooooh, I was assuming "camera on server" (like the Raspberry Pi people do). 
 Having the camera on the client, and having the webpage snap a picture 
sounds interesting (with appropriate privacy considerations, asking 
permission first).  The CoS situation isn't that different, except the file 
can be considered to already be uploaded, and you'd be invoking the 
external app with python tools instead of javascript.

/dps

 

>
> On Fri, Jan 22, 2016, 11:51 Dave S <[email protected] <javascript:>> 
> wrote:
>
>> On Sunday, January 17, 2016 at 9:05:50 AM UTC-8, [email protected] 
>> wrote:
>>>
>>> How do I make my web2py app able to use the device hardwares like 
>>>
>>>  camera?  also how to make it able to use some other apps on the device?
>>>
>>  
>> For the camera, you probably want to run an external command by launching 
>> a process.  If the external command is likely to take a long time, you will 
>> want to use the scheduler for this.  Running other applications is done the 
>> same way.  Interactive applications will not work well this way, but 
>> anything that can be invoked from bash with no input besides command line 
>> args should work.  I've done the external commands, but I haven't done 
>> hardware control.
>>
>> The answer changes a little if you want to use the camera as a source of 
>> live streaming video.  You will probably be using cStreamIO calls, perhaps 
>> to read a file the camera is dumping data to.  I haven't done this at all, 
>> but there are some posts in the archives that I've noticed and are about 
>> streaming audio.
>>
>> /dps
>>
>>
>>
>>
>>  

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to