Skip to content

uladkasach/clientside-view-photo-capture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clientside-view-photo-capture

This module implements a reusable view that enables capturing photos from the webcam. It utilizes the clientside-view-loader for loading and offers server side rendering support.

clientside-view-photo-capture_demo

Usage

Install

npm install clientside-view-photo-capture --save

Use

// building and appending the view
var view_loader = await load('clientside-view-loader'); // load the view loader
var photo_capture_view = await view_loader.load('clientside-view-button').build();
document.body.appendChild(photo_capture_module);

Functionality

.extract()

The photo_capture_module.extract() method enables the retrieval of all photos the user has kept in the queue. It returns the photos as an array of the base64 encodings of each photo.

Build Options

Remove Queue

The module automatically supplies a queue that one can use to take multiple photos and submit all at once. However, it is possible to hide this functionality if you only need one photo from the user.

  • coming soon *

About

a view module which enables taking and recording photos from a webcam

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published