如何访问相机并拍摄照片或上传应该支持Ipad / Android的网络画廊 [英] How to access the camera and take pictures or upload from gallery on web that should support Ipad/Android

查看:72
本文介绍了如何访问相机并拍摄照片或上传应该支持Ipad / Android的网络画廊的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Experts,



正如问题所说,我想创建一个Web应用程序,它可以访问相机并拍照或从库中上传到网页。

这应该由Ipad / Iphone / Android支持。

我用Google搜索但我没有得到具体的想法/解决方案。我得到它的包装。我其实想看一个演示,然后开始工作。因为这是极其敏感和重要的项目,应尽快完成。

非常感谢任何教程/链接或想法。

我希望你明白我的意思。



非常感谢你的帮助

解决方案

请参阅:

http://en.wikipedia.org/wiki/WebRTC [ ^ ],

< a href =http://www.w3.org/TR/webrtc> http://www.w3.org/TR/webrtc [ ^ ],

http ://www.webrtc.org [ ^ ]。



以下是问题:出于安全原因,Web技术的设计方式是网页无法访问本地系统及其硬件。但是如何访问鼠标和键盘?它们是标准输入设备。浏览器代码本身可以使用任何本地系统资源;我们必须相信它,但重要的是没有人可以在未经用户同意的情况下对网页进行编程。随着时间的推移,新的输入设备被广泛使用,但不被W3标准所接受。将它们添加到标准是持续的活动;它包括生物识别设备,加速度计,指南针和陀螺仪,麦克风和相机。如果浏览器不支持此类设备是标准方式,则可以使用其他一些技术,有些技术会非常不安全,例如在某些浏览器中使用ActiveX。



WebCRT工作草案是非常新的(2015年),部分在许多主流浏览器中实现。看看: http://en.wikipedia.org/wiki/WebRTC [ ^ ]。



- SA

Hello Experts,

As the question says, I want to create a web application where it can access the camera and take pictures or upload from the gallery on to web page.
This should be supported by Ipad/Iphone/Android.
I googled but I don't get a concrete idea/solution for this. All I get it wrappers. I actually want to see a demo and then start working. Because this is extreamely sensitive and important project that should be completed soon.
Any tutorials/ links or ideas are much appreciated.
I hope you got what I mean.

Your help is much appreciated

解决方案

Please see:
http://en.wikipedia.org/wiki/WebRTC[^],
http://www.w3.org/TR/webrtc[^],
http://www.webrtc.org[^].

Here is the problem: Web technologies are designed the way a Web page cannot access local system and its hardware, for safety reasons. But how mouse and keyboard are accessed? They are standard input devices. A browser code itself can use any local system resources; we have to trust it, but it is important that no one can program a Web page doing something without the user's consent. With time, new input devices are put to wide use but are not embraced by W3 standards. Adding them to standard is ongoing activity; it includes biometric devices, accelerometers, compasses and gyroscopes, microphones and cameras. If such devices are not supported by a browser is a standard way, some other technology can be used, and some would be prohibitively unsafe, such as the use of ActiveX in some browsers.

WebCRT working draft is very new (2015) and is partially implemented in a number of major browsers. Check it out: http://en.wikipedia.org/wiki/WebRTC[^].

—SA


这篇关于如何访问相机并拍摄照片或上传应该支持Ipad / Android的网络画廊的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆