9.0.3 • Published 2 years ago

ng-fad-videoagreement v9.0.3

Weekly downloads
146
License
-
Repository
-
Last release
2 years ago

Getting started

Installation

npm install ng-fad-videoagreement

Dependencies

Add the folder provided by the technical team within the project assets (images and js)

Import

In the file necessary example.module.ts import the module.

In this case app.module.ts

import { NgFadVideoagreementModule } from 'ng-fad-videoagreement';
.
.
.
... imports: [
       ...,
       BrowserAnimationsModule 
       NgFadVideoagreementModule
    ]...

Note: BrowserAnimationsModule is required.

Usage

HTML

Add the selector inside some component and configure the input parameters:

<ng-fad-videoagreement
  [legend]="legend"
  [configuration]="configuration"
  (onerror)="onerror($event)"
  (onclose)="onclose()"
  (oncomplete)="oncomplete($event)">
</ng-fad-videoagreement>

Typescript

Listen to the events:

  public legend = 'Lorem Ipsum es simplemente el texto de relleno de las imprentas y archivos de texto. Lorem Ipsum ha sido el texto  de relleno estándar de las industrias desde el año 1500';

  const configuration = {
    faceDetection: {
      faceRequired: true
    },
    selfie: {
      captureSelfie: false,
      imageType: 'image/png',
      imageQuality: 1
    },
    timer: {
      recording: { min: 5 , max: 10 },
      faceUndected: 3
    },
  };

 oncomplete(video: Blob) {
   // video result
 }

  onclose() {
    // user close screen 
  }

  onerror($event) {
    // some error
    alert(JSON.stringify(error));
  }

Inputs

NameTypeRequiredDefaultDescription
legendstringtruenullLegend to repeat in the recording
configurationobjectfalseDefault colors, legends and behaviourObject that allows changing the default behavior, colors and legends of the module

Outputs

NameReturnDescription
oncompleteBlobFires when recording ends successfully
onclosevoidIs called when press close icon (x)
onerrorobjectIs called when an error happens
9.0.3

2 years ago

9.0.1

2 years ago

9.0.0

2 years ago

8.3.2

2 years ago

8.2.2

2 years ago

8.4.3

2 years ago

8.4.2

2 years ago

8.2.1

2 years ago

8.2.0

2 years ago

7.0.9

2 years ago

8.1.0

2 years ago

8.0.0

2 years ago

7.0.8

2 years ago

7.0.4

3 years ago

7.0.7

3 years ago

7.0.6

3 years ago

7.0.5

3 years ago

7.0.3

3 years ago

7.0.0

3 years ago

7.0.2

3 years ago

7.0.1

3 years ago

6.1.12

3 years ago

6.0.12

3 years ago

6.0.11

3 years ago

6.0.10

3 years ago

6.0.9

3 years ago

6.0.8

3 years ago

6.0.7

3 years ago

6.0.6

3 years ago

6.0.5

3 years ago

6.0.4

3 years ago

6.0.3

3 years ago

6.0.2

3 years ago

6.0.1

3 years ago

6.0.0

3 years ago

5.0.0

3 years ago

4.0.3

3 years ago

4.0.2

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.0.0

3 years ago

2.0.0

3 years ago

1.0.6

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago