2022-01-19 17:24:11 +01:00
|
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
|
|
import { MatBadgeModule } from '@angular/material/badge';
|
|
|
|
import { MatButtonModule } from '@angular/material/button';
|
|
|
|
import { MatCardModule } from '@angular/material/card';
|
|
|
|
import { MatOptionModule } from '@angular/material/core';
|
|
|
|
import { MatDialogModule } from '@angular/material/dialog';
|
|
|
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
|
|
import { MatGridListModule } from '@angular/material/grid-list';
|
|
|
|
import { MatIconModule } from '@angular/material/icon';
|
|
|
|
import { MatInputModule } from '@angular/material/input';
|
|
|
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
|
|
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
|
|
|
import { MatSelectModule } from '@angular/material/select';
|
|
|
|
import { MatSidenavModule } from '@angular/material/sidenav';
|
|
|
|
import { MatSliderModule } from '@angular/material/slider';
|
|
|
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
|
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
|
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
|
|
import { OverlayContainer } from '@angular/cdk/overlay';
|
|
|
|
import { MatMenuModule } from '@angular/material/menu';
|
|
|
|
import { MatListModule } from '@angular/material/list';
|
|
|
|
import { MatDividerModule } from '@angular/material/divider';
|
2022-04-25 16:17:32 +02:00
|
|
|
import {MatExpansionModule} from '@angular/material/expansion';
|
2022-01-19 17:24:11 +01:00
|
|
|
|
|
|
|
import { RouterModule } from '@angular/router';
|
|
|
|
import { CommonModule } from '@angular/common';
|
|
|
|
import { ModuleWithProviders, NgModule } from '@angular/core';
|
|
|
|
import { HttpClientModule } from '@angular/common/http';
|
|
|
|
|
|
|
|
import { ToolbarComponent } from './components/toolbar/toolbar.component';
|
|
|
|
import { VideoComponent } from './components/video/video.component';
|
2022-02-02 13:44:49 +01:00
|
|
|
import { ChatPanelComponent } from './components/panel/chat-panel/chat-panel.component';
|
2022-01-26 11:30:30 +01:00
|
|
|
import { SessionComponent } from './components/session/session.component';
|
2022-01-19 17:24:11 +01:00
|
|
|
import { LayoutComponent } from './components/layout/layout.component';
|
2022-01-26 11:30:30 +01:00
|
|
|
import { StreamComponent } from './components/stream/stream.component';
|
2022-01-19 17:24:11 +01:00
|
|
|
import { DialogTemplateComponent } from './components/material/dialog.component';
|
|
|
|
|
|
|
|
import { LinkifyPipe } from './pipes/linkify.pipe';
|
2022-03-02 17:35:14 +01:00
|
|
|
import { StreamTypesEnabledPipe, ParticipantStreamsPipe } from './pipes/participant.pipe';
|
2022-01-19 17:24:11 +01:00
|
|
|
|
2022-02-15 16:24:01 +01:00
|
|
|
import { OpenViduAngularConfig } from './config/openvidu-angular.config';
|
2022-01-19 17:24:11 +01:00
|
|
|
import { CdkOverlayContainer } from './config/custom-cdk-overlay';
|
|
|
|
import { DeviceService } from './services/device/device.service';
|
|
|
|
import { LoggerService } from './services/logger/logger.service';
|
|
|
|
import { PlatformService } from './services/platform/platform.service';
|
|
|
|
import { StorageService } from './services/storage/storage.service';
|
|
|
|
import { TokenService } from './services/token/token.service';
|
2022-02-15 16:24:01 +01:00
|
|
|
import { OpenViduAngularConfigService } from './services/config/openvidu-angular.config.service';
|
2022-02-15 15:52:59 +01:00
|
|
|
import { OpenViduService } from './services/openvidu/openvidu.service';
|
2022-01-19 17:24:11 +01:00
|
|
|
import { ActionService } from './services/action/action.service';
|
|
|
|
import { ChatService } from './services/chat/chat.service';
|
|
|
|
import { DocumentService } from './services/document/document.service';
|
|
|
|
import { LayoutService } from './services/layout/layout.service';
|
2022-04-05 15:40:43 +02:00
|
|
|
import { PanelService } from './services/panel/panel.service';
|
2022-01-19 17:24:11 +01:00
|
|
|
import { ParticipantService } from './services/participant/participant.service';
|
2022-02-15 16:30:06 +01:00
|
|
|
import { ParticipantPanelItemComponent } from './components/panel/participants-panel/participant-panel-item/participant-panel-item.component';
|
2022-02-02 13:44:49 +01:00
|
|
|
import { ParticipantsPanelComponent } from './components/panel/participants-panel/participants-panel/participants-panel.component';
|
2022-01-20 11:53:56 +01:00
|
|
|
import { VideoconferenceComponent } from './components/videoconference/videoconference.component';
|
2022-02-02 13:42:33 +01:00
|
|
|
import { PanelComponent } from './components/panel/panel.component';
|
2022-02-11 16:26:46 +01:00
|
|
|
import { AudioWaveComponent } from './components/audio-wave/audio-wave.component';
|
2022-03-02 11:00:58 +01:00
|
|
|
import { PreJoinComponent } from './components/pre-join/pre-join.component';
|
2022-01-19 17:24:11 +01:00
|
|
|
|
2022-03-02 11:00:58 +01:00
|
|
|
import { AvatarProfileComponent } from './components/avatar-profile/avatar-profile.component';
|
2022-03-07 15:50:27 +01:00
|
|
|
import { OpenViduAngularDirectiveModule } from './directives/template/openvidu-angular.directive.module';
|
|
|
|
import { ApiDirectiveModule } from './directives/api/api.directive.module';
|
2022-04-25 16:17:32 +02:00
|
|
|
import { BackgroundEffectsPanelComponent } from './components/panel/background-effects-panel/background-effects-panel.component';
|
|
|
|
import { ActivitiesPanelComponent } from './components/panel/activities-panel/activities-panel.component';
|
|
|
|
import { RecordingActivityComponent } from './components/panel/activities-panel/recording-activity-panel/recording-activity.component';
|
2022-02-17 17:26:30 +01:00
|
|
|
|
2022-01-19 17:24:11 +01:00
|
|
|
@NgModule({
|
2022-01-20 11:53:56 +01:00
|
|
|
declarations: [
|
|
|
|
VideoComponent,
|
|
|
|
ToolbarComponent,
|
2022-01-26 11:30:30 +01:00
|
|
|
ChatPanelComponent,
|
|
|
|
SessionComponent,
|
2022-01-20 11:53:56 +01:00
|
|
|
LayoutComponent,
|
2022-01-26 11:30:30 +01:00
|
|
|
StreamComponent,
|
2022-01-20 11:53:56 +01:00
|
|
|
DialogTemplateComponent,
|
|
|
|
LinkifyPipe,
|
2022-02-15 13:24:08 +01:00
|
|
|
ParticipantStreamsPipe,
|
2022-03-02 17:35:14 +01:00
|
|
|
StreamTypesEnabledPipe,
|
2022-02-15 16:30:06 +01:00
|
|
|
ParticipantPanelItemComponent,
|
2022-01-26 11:30:30 +01:00
|
|
|
ParticipantsPanelComponent,
|
2022-02-02 13:42:33 +01:00
|
|
|
VideoconferenceComponent,
|
2022-03-02 11:00:58 +01:00
|
|
|
AudioWaveComponent,
|
2022-02-11 13:18:50 +01:00
|
|
|
PanelComponent,
|
2022-03-07 15:50:27 +01:00
|
|
|
AvatarProfileComponent,
|
2022-03-02 11:00:58 +01:00
|
|
|
PreJoinComponent,
|
2022-04-25 16:17:32 +02:00
|
|
|
BackgroundEffectsPanelComponent,
|
|
|
|
ActivitiesPanelComponent,
|
|
|
|
RecordingActivityComponent,
|
2022-01-20 11:53:56 +01:00
|
|
|
],
|
|
|
|
imports: [
|
|
|
|
CommonModule,
|
|
|
|
HttpClientModule,
|
|
|
|
FormsModule,
|
2022-01-19 17:24:11 +01:00
|
|
|
ReactiveFormsModule,
|
2022-01-20 11:53:56 +01:00
|
|
|
RouterModule.forRoot([]),
|
2022-01-19 17:24:11 +01:00
|
|
|
MatButtonModule,
|
|
|
|
MatCardModule,
|
|
|
|
MatToolbarModule,
|
|
|
|
MatIconModule,
|
|
|
|
MatInputModule,
|
|
|
|
MatFormFieldModule,
|
|
|
|
MatDialogModule,
|
|
|
|
MatTooltipModule,
|
|
|
|
MatBadgeModule,
|
|
|
|
MatGridListModule,
|
|
|
|
MatSelectModule,
|
|
|
|
MatOptionModule,
|
|
|
|
MatProgressSpinnerModule,
|
|
|
|
MatSliderModule,
|
|
|
|
MatSidenavModule,
|
|
|
|
MatSnackBarModule,
|
|
|
|
FlexLayoutModule,
|
|
|
|
MatMenuModule,
|
2022-01-20 11:53:56 +01:00
|
|
|
MatDividerModule,
|
2022-03-07 15:50:27 +01:00
|
|
|
MatListModule,
|
2022-04-25 16:17:32 +02:00
|
|
|
MatExpansionModule,
|
2022-03-07 15:50:27 +01:00
|
|
|
OpenViduAngularDirectiveModule,
|
|
|
|
ApiDirectiveModule
|
2022-01-20 11:53:56 +01:00
|
|
|
],
|
|
|
|
providers: [
|
|
|
|
ActionService,
|
|
|
|
CdkOverlayContainer,
|
2022-01-19 17:24:11 +01:00
|
|
|
{ provide: OverlayContainer, useClass: CdkOverlayContainer },
|
2022-01-20 11:53:56 +01:00
|
|
|
ChatService,
|
2022-04-05 15:40:43 +02:00
|
|
|
PanelService,
|
2022-01-20 11:53:56 +01:00
|
|
|
DeviceService,
|
|
|
|
DocumentService,
|
|
|
|
LayoutService,
|
|
|
|
LoggerService,
|
|
|
|
PlatformService,
|
|
|
|
ParticipantService,
|
|
|
|
StorageService,
|
|
|
|
TokenService,
|
2022-02-15 15:52:59 +01:00
|
|
|
OpenViduService
|
2022-01-20 11:53:56 +01:00
|
|
|
],
|
|
|
|
exports: [
|
|
|
|
VideoconferenceComponent,
|
|
|
|
ToolbarComponent,
|
2022-02-17 17:26:30 +01:00
|
|
|
PanelComponent,
|
|
|
|
ParticipantsPanelComponent,
|
|
|
|
ParticipantPanelItemComponent,
|
2022-04-25 16:17:32 +02:00
|
|
|
BackgroundEffectsPanelComponent,
|
|
|
|
ActivitiesPanelComponent,
|
2022-01-26 11:30:30 +01:00
|
|
|
ChatPanelComponent,
|
|
|
|
SessionComponent,
|
2022-01-20 11:53:56 +01:00
|
|
|
LayoutComponent,
|
2022-01-26 11:30:30 +01:00
|
|
|
StreamComponent,
|
2022-01-20 11:53:56 +01:00
|
|
|
VideoComponent,
|
2022-02-11 16:26:46 +01:00
|
|
|
AudioWaveComponent,
|
2022-03-02 11:00:58 +01:00
|
|
|
PreJoinComponent,
|
2022-02-15 13:24:08 +01:00
|
|
|
ParticipantStreamsPipe,
|
2022-03-02 17:35:14 +01:00
|
|
|
StreamTypesEnabledPipe,
|
2022-02-11 13:18:50 +01:00
|
|
|
CommonModule,
|
2022-03-07 15:50:27 +01:00
|
|
|
OpenViduAngularDirectiveModule,
|
|
|
|
ApiDirectiveModule
|
2022-01-20 11:53:56 +01:00
|
|
|
],
|
|
|
|
entryComponents: [DialogTemplateComponent]
|
2022-01-19 17:24:11 +01:00
|
|
|
})
|
2022-02-15 16:24:01 +01:00
|
|
|
export class OpenViduAngularModule {
|
|
|
|
static forRoot(config): ModuleWithProviders<OpenViduAngularModule> {
|
2022-01-20 11:53:56 +01:00
|
|
|
// console.log(`${library.name} config: ${environment}`);
|
2022-02-15 16:24:01 +01:00
|
|
|
const libConfig: OpenViduAngularConfig = config;
|
2022-01-20 11:53:56 +01:00
|
|
|
return {
|
2022-02-15 16:24:01 +01:00
|
|
|
ngModule: OpenViduAngularModule,
|
|
|
|
providers: [OpenViduAngularConfigService, { provide: 'OPENVIDU_ANGULAR_CONFIG', useValue: libConfig }]
|
2022-01-20 11:53:56 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|