openvidu/openvidu-components-angular/projects/openvidu-angular
pabloFuente 8bb96d6912 Minor updates in README 2022-05-30 12:10:28 +02:00
..
doc openvidu-components: Removed docs directive samples images 2022-04-13 14:03:34 +02:00
src openvidu-components: Added translations 2022-05-20 13:53:12 +02:00
.browserslistrc openvidu-components: Added webcomponent E2E tests 2022-03-16 12:15:22 +01:00
.prettierrc openvidu-components: Renamed library to openvidu-angular 2022-01-20 09:58:12 +01:00
README.md Minor updates in README 2022-05-30 12:10:28 +02:00
karma.conf.js openvidu-components: Renamed library to openvidu-angular 2022-01-20 09:58:12 +01:00
ng-package.json openvidu-components: Renamed library to openvidu-angular 2022-01-20 09:58:12 +01:00
package.json Update openvidu-components-angular to 2.22.0 2022-05-13 14:41:39 +02:00
tsconfig.lib.json openvidu-components: Added translations 2022-05-20 13:53:12 +02:00
tsconfig.lib.prod.json openvidu-components: Renamed library to openvidu-angular 2022-01-20 09:58:12 +01:00
tsconfig.spec.json openvidu-components: Renamed library to openvidu-angular 2022-01-20 09:58:12 +01:00

README.md

openvidu-angular

License badge Npm version Npm downloads

The easier way to build powerful OpenVidu videoconference frontend applications.

Requirements:

You will need NPM and Angular CLI to serve the Angular app. Check your installation with the following command:

npm -v
ng v

How to install it

  1. You need to install the openvidu-angular library in your Angular application:
npm install openvidu-angular
  1. Also you need Angular Material:
ng add @angular/material

Configure it

You need to import the openvidu-angular module in your app.module.ts:

import { OpenViduAngularConfig, OpenViduAngularModule } from 'openvidu-angular';
import { environment } from 'src/environments/environment';

const config: OpenViduAngularConfig = {
    production: environment.production
};

@NgModule({
    imports: [
        ...
        OpenViduAngularModule.forRoot(config)
    ]
})

You can also add the default styles in your styles.scss file:

:root {
  --ov-primary-color: #303030;
  --ov-secondary-color: #3e3f3f;
  --ov-tertiary-color: #598eff;
  --ov-warn-color: #EB5144;
  --ov-accent-color: #ffae35;
  --ov-light-color: #e6e6e6;

  --ov-logo-background-color: #3a3d3d;

  --ov-text-color: #ffffff;

  --ov-panel-text-color: #1d1d1d;
  --ov-panel-background: #ffffff;

  --ov-buttons-radius: 50%;
  --ov-leave-button-radius: 10px;
  --ov-video-radius: 5px;
  --ov-panel-radius: 5px;
}