How to use my camera to take photo?

Hi , 

How am i able to use the TMS Webcode and make use of its component to take photo in my PWA ?
Is there any one has make a sample of it which it can do the following ?

1. take photo from the phone or pc camera

2. set the picture to my html img src tag 


We do at this point not have a built-in component to handle it but it should be feasible to hook to the JavaScript code to do this: