Answers for "WebCam Access warning"

0

WebCam Access warning

<webcam (initError)="handleInitError($event)"></webcam>
  public handleInitError(error: WebcamInitError): void {
    if (error.mediaStreamError && error.mediaStreamError.name === "NotAllowedError") {
      console.warn("Camera access was not allowed by user!");
    }
  }
Posted by: Guest on June-29-2021

Browse Popular Code Answers by Language