簡體   English   中英

使用具有攝像頭功能的Polymer組件構建移動應用程序(Cordova)

[英]Build Mobile App (Cordova) using Polymer component with camera functionality

我正在使用Cordova制作移動應用程序。 它使用聚合物2.0組件在數據庫中創建主記錄/子記錄。

I have to add the file upload and camera feature to the same mobile application. 

in index.html I am using polymer component like this :
        <div style="border: 2px solid green;">
            <crud-expense-mobile employee-id='1234'></crud-expense-mobile>
        </div>
    enter code here

This is my first mobile project. Need guidance from experts 

首先,您可以看一下Apache Cordova的體系結構。 >> Apache Cordova架構

您應該添加要使用的平台。 >> 添加平台

您可以查看如何添加插件。 >> 添加插件

如何處理拍照? >> 拍照拍照示例

:)

I am trying to use polymer component : refer 
https://www.webcomponents.org/element/PolymerElements/app-media/elements/app-media-image-capture

Getting error 
vulcanized-needed-components.html:32222 Uncaught (in promise) Error: ImageCapture instance not ready.
    at HTMLElement.takePhoto (vulcanized-needed-components.html:32222)
    at HTMLElement._addExpenses (crud-expense-mobile.html:232)
    at HTMLElement.handler (vulcanized-needed-components.html:2096)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM