mirror of https://github.com/OpenVidu/openvidu.git
openvidu-components: Updated documentation
parent
370a426fa9
commit
bfb350d3df
|
@ -7,6 +7,9 @@ import { OpenViduAngularConfigService } from '../../../../services/config/openvi
|
||||||
import { ParticipantService } from '../../../../services/participant/participant.service';
|
import { ParticipantService } from '../../../../services/participant/participant.service';
|
||||||
import { RecordingService } from '../../../../services/recording/recording.service';
|
import { RecordingService } from '../../../../services/recording/recording.service';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ov-recording-activity',
|
selector: 'ov-recording-activity',
|
||||||
templateUrl: './recording-activity.component.html',
|
templateUrl: './recording-activity.component.html',
|
||||||
|
|
|
@ -5,6 +5,9 @@ import { PanelType } from '../../../models/panel.model';
|
||||||
import { PanelService } from '../../../services/panel/panel.service';
|
import { PanelService } from '../../../services/panel/panel.service';
|
||||||
import { VirtualBackgroundService } from '../../../services/virtual-background/virtual-background.service';
|
import { VirtualBackgroundService } from '../../../services/virtual-background/virtual-background.service';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ov-background-effects-panel',
|
selector: 'ov-background-effects-panel',
|
||||||
templateUrl: './background-effects-panel.component.html',
|
templateUrl: './background-effects-panel.component.html',
|
||||||
|
|
|
@ -92,15 +92,15 @@ export class PanelComponent implements OnInit {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ContentChild(BackgroundEffectsPanelDirective)
|
// TODO: backgroundEffectsPanel does not provides customization
|
||||||
set externalBackgroundEffectsPanel(externalBackgroundEffectsPanel: BackgroundEffectsPanelDirective) {
|
// @ContentChild(BackgroundEffectsPanelDirective)
|
||||||
|
// set externalBackgroundEffectsPanel(externalBackgroundEffectsPanel: BackgroundEffectsPanelDirective) {
|
||||||
// This directive will has value only when BACKGROUND EFFECTS PANEL component tagged with '*ovBackgroundEffectsPanel'
|
// This directive will has value only when BACKGROUND EFFECTS PANEL component tagged with '*ovBackgroundEffectsPanel'
|
||||||
// is inside of the PANEL component tagged with '*ovPanel'
|
// is inside of the PANEL component tagged with '*ovPanel'
|
||||||
// TODO: backgroundEffectsPanel does not provides customization
|
|
||||||
// if (externalBackgroundEffectsPanel) {
|
// if (externalBackgroundEffectsPanel) {
|
||||||
// this.backgroundEffectsPanelTemplate = externalBackgroundEffectsPanel.template;
|
// this.backgroundEffectsPanelTemplate = externalBackgroundEffectsPanel.template;
|
||||||
// }
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
// TODO: settingsPanel does not provides customization
|
// TODO: settingsPanel does not provides customization
|
||||||
// @ContentChild(SettingsPanelDirective)
|
// @ContentChild(SettingsPanelDirective)
|
||||||
|
|
|
@ -4,6 +4,9 @@ import { PanelSettingsOptions, PanelType } from '../../../models/panel.model';
|
||||||
import { OpenViduAngularConfigService } from '../../../services/config/openvidu-angular.config.service';
|
import { OpenViduAngularConfigService } from '../../../services/config/openvidu-angular.config.service';
|
||||||
import { PanelEvent, PanelService } from '../../../services/panel/panel.service';
|
import { PanelEvent, PanelService } from '../../../services/panel/panel.service';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ov-settings-panel',
|
selector: 'ov-settings-panel',
|
||||||
templateUrl: './settings-panel.component.html',
|
templateUrl: './settings-panel.component.html',
|
||||||
|
|
|
@ -4,6 +4,10 @@ import { ParticipantAbstractModel } from '../../../models/participant.model';
|
||||||
import { ParticipantService } from '../../../services/participant/participant.service';
|
import { ParticipantService } from '../../../services/participant/participant.service';
|
||||||
import { StorageService } from '../../../services/storage/storage.service';
|
import { StorageService } from '../../../services/storage/storage.service';
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ov-nickname-input',
|
selector: 'ov-nickname-input',
|
||||||
templateUrl: './nickname-input.component.html',
|
templateUrl: './nickname-input.component.html',
|
||||||
|
|
|
@ -2,6 +2,10 @@ import { Component, OnDestroy, OnInit } from '@angular/core';
|
||||||
import { Subscription } from 'rxjs';
|
import { Subscription } from 'rxjs';
|
||||||
import { LayoutService } from '../../../services/layout/layout.service';
|
import { LayoutService } from '../../../services/layout/layout.service';
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ov-subtitles-settings',
|
selector: 'ov-subtitles-settings',
|
||||||
templateUrl: './subtitles.component.html',
|
templateUrl: './subtitles.component.html',
|
||||||
|
|
|
@ -365,7 +365,7 @@ export class ChatPanelDirective {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO: WIP. backgroundEffectsPanel does not provides customization
|
* backgroundEffectsPanel does not provides customization
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
@Directive({
|
@Directive({
|
||||||
|
@ -377,8 +377,44 @@ export class BackgroundEffectsPanelDirective {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO: WIP
|
* The ***ovActivitiesPanel** directive allows to replace the default activities panel template injecting your own component.
|
||||||
* @internal
|
* Here we're going to redefine the activities template in a few code lines.
|
||||||
|
*
|
||||||
|
* You can run the sample [here](https://docs.openvidu.io/en/stable/components/openvidu-custom-activities-panel#run-this-tutorial).
|
||||||
|
*
|
||||||
|
* ```html
|
||||||
|
* <ov-videoconference [tokens]="tokens">
|
||||||
|
* <div *ovActivitiesPanel id="my-panel">
|
||||||
|
* <h3>ACTIVITIES</h3>
|
||||||
|
* <div>
|
||||||
|
* CUSTOM ACTIVITIES
|
||||||
|
* </div>
|
||||||
|
* </div>
|
||||||
|
* </ov-videoconference>
|
||||||
|
*```
|
||||||
|
* <br/>
|
||||||
|
*
|
||||||
|
* As we need to assign the tokens to the the {@link VideoconferenceComponent}, we can request the tokens on the ngOnInit Angular lifecycle.
|
||||||
|
*
|
||||||
|
* ```javascript
|
||||||
|
* export class AppComponent implements OnInit {
|
||||||
|
* tokens: TokenModel;
|
||||||
|
* sessionId = 'activities-panel-directive-example';
|
||||||
|
* OPENVIDU_URL = 'https://localhost:4443';
|
||||||
|
* OPENVIDU_SECRET = 'MY_SECRET';
|
||||||
|
|
||||||
|
* constructor(private httpClient: HttpClient) {}
|
||||||
|
*
|
||||||
|
* async ngOnInit() {
|
||||||
|
* this.tokens = {
|
||||||
|
* webcam: await this.getToken(),
|
||||||
|
* screen: await this.getToken(),
|
||||||
|
* };
|
||||||
|
* }
|
||||||
|
*
|
||||||
|
*}
|
||||||
|
* ```
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
@Directive({
|
@Directive({
|
||||||
selector: '[ovActivitiesPanel]'
|
selector: '[ovActivitiesPanel]'
|
||||||
|
|
|
@ -67,6 +67,7 @@ const publicComponents = [
|
||||||
VideoconferenceComponent,
|
VideoconferenceComponent,
|
||||||
ToolbarComponent,
|
ToolbarComponent,
|
||||||
PanelComponent,
|
PanelComponent,
|
||||||
|
ActivitiesPanelComponent,
|
||||||
ParticipantsPanelComponent,
|
ParticipantsPanelComponent,
|
||||||
ParticipantPanelItemComponent,
|
ParticipantPanelItemComponent,
|
||||||
ChatPanelComponent,
|
ChatPanelComponent,
|
||||||
|
@ -76,7 +77,6 @@ const publicComponents = [
|
||||||
const privateComponents = [
|
const privateComponents = [
|
||||||
PreJoinComponent,
|
PreJoinComponent,
|
||||||
SessionComponent,
|
SessionComponent,
|
||||||
ActivitiesPanelComponent,
|
|
||||||
BackgroundEffectsPanelComponent,
|
BackgroundEffectsPanelComponent,
|
||||||
SettingsPanelComponent,
|
SettingsPanelComponent,
|
||||||
AudioWaveComponent,
|
AudioWaveComponent,
|
||||||
|
|
|
@ -17,6 +17,7 @@ export * from './lib/services/recording/recording.service';
|
||||||
export * from './lib/components/videoconference/videoconference.component';
|
export * from './lib/components/videoconference/videoconference.component';
|
||||||
export * from './lib/components/toolbar/toolbar.component';
|
export * from './lib/components/toolbar/toolbar.component';
|
||||||
export * from './lib/components/panel/panel.component';
|
export * from './lib/components/panel/panel.component';
|
||||||
|
export * from './lib/components/panel/activities-panel/activities-panel.component';
|
||||||
export * from './lib/components/panel/chat-panel/chat-panel.component';
|
export * from './lib/components/panel/chat-panel/chat-panel.component';
|
||||||
export * from './lib/components/panel/participants-panel/participants-panel/participants-panel.component';
|
export * from './lib/components/panel/participants-panel/participants-panel/participants-panel.component';
|
||||||
export * from './lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component';
|
export * from './lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component';
|
||||||
|
@ -39,10 +40,11 @@ export * from './lib/pipes/participant.pipe';
|
||||||
export * from './lib/pipes/recording.pipe';
|
export * from './lib/pipes/recording.pipe';
|
||||||
|
|
||||||
// Directives
|
// Directives
|
||||||
export * from './lib/directives/api/api.directive.module';
|
|
||||||
export * from './lib/directives/template/openvidu-angular.directive.module';
|
export * from './lib/directives/template/openvidu-angular.directive.module';
|
||||||
export * from './lib/directives/api/internals.directive';
|
|
||||||
export * from './lib/directives/template/openvidu-angular.directive';
|
export * from './lib/directives/template/openvidu-angular.directive';
|
||||||
|
|
||||||
|
export * from './lib/directives/api/api.directive.module';
|
||||||
|
export * from './lib/directives/api/internals.directive';
|
||||||
export * from './lib/directives/api/toolbar.directive';
|
export * from './lib/directives/api/toolbar.directive';
|
||||||
export * from './lib/directives/api/stream.directive';
|
export * from './lib/directives/api/stream.directive';
|
||||||
export * from './lib/directives/api/videoconference.directive';
|
export * from './lib/directives/api/videoconference.directive';
|
||||||
|
|
Loading…
Reference in New Issue