This is a block which can be used to capture the user's IP address and photo of the user. This block requires browser permission for camera and location. When the project opens in the browser, provide the required permissions.
The block also requires jQuery as a requires script in the screen in which you are using the block.
Steps to use the block.
Step 1: Add dependency in your project.
Step 2: Drag the IPCameraBlock in your screen / block.
Step 3: Implement the handler for the block. The block fires a event when the user clicks on the camera button and passes the captured IP address and Image to the parent Screen / block. Users have to define the handler for this event.
Step 4: Download and save jQuery in the Scripts folder in interface tab. You can download it from here.
Step 5: Add the script as required script for the screen in which you are using the block.
Step 6: Publish and open in browser.
Step 7: Accept the browser permission request.
Step 8: Click on the Get IP button , when the captured IP is visible, the play button gets enabled.
Step 9: Click on the play button, the video will be visible.
Step 10: Click on the camera button to capture your image.
Note:- This block requires browser permission for camera and location. When the project opens in the browser, provide the required permissions.