简体   繁体   English

如何使用PhoneGap for Android在同一屏幕上访问相机

[英]How to access camera in same screen using phonegap for android

I want to know that if it is possible to access camera in same webpage rather than opening native camera app.If yes then how can we do this ? 我想知道是否可以在同一网页中访问摄像头而不是打开本机摄像头应用程序。如果可以,我们该怎么做?

Thanx in advance... 提前感谢...

You can either create a plugin as suggested by Drew, or you can rely on HTML5, but in that case I do not think it will work very well for old versions of android (let's say older than 4.0). 您可以按照Drew的建议创建一个插件,也可以依赖HTML5,但是在那种情况下,我认为它不适用于旧版本的android(比如4.0之前的版本)。

You can have a look at Raymond Camden's blog for more information : http://www.raymondcamden.com/index.cfm/2013/5/20/Capturing-camerapicture-data-without-PhoneGap (should work also in a phonegap app) 您可以查看雷蒙德·卡姆登(Raymond Camden)的博客以获取更多信息: http ://www.raymondcamden.com/index.cfm/2013/5/20/Capturing-camerapicture-data-without-PhoneGap(也应在phonegap应用程序中工作) )

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM