mirror of https://github.com/OpenVidu/openvidu.git
openvidu-components: Updated docs
parent
600c3d778d
commit
b489485c42
|
@ -1,4 +1,4 @@
|
|||
import { Component, OnInit, Output, EventEmitter, Input, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
|
||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
||||
import { Subscription } from 'rxjs';
|
||||
import { OpenViduRole } from '../../../../models/participant.model';
|
||||
import { RecordingInfo, RecordingStatus } from '../../../../models/recording.model';
|
||||
|
@ -7,9 +7,6 @@ import { OpenViduAngularConfigService } from '../../../../services/config/openvi
|
|||
import { ParticipantService } from '../../../../services/participant/participant.service';
|
||||
import { RecordingService } from '../../../../services/recording/recording.service';
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
@Component({
|
||||
selector: 'ov-recording-activity',
|
||||
templateUrl: './recording-activity.component.html',
|
||||
|
@ -40,11 +37,13 @@ export class RecordingActivityComponent implements OnInit {
|
|||
*/
|
||||
@Output() onDeleteRecordingClicked: EventEmitter<string> = new EventEmitter<string>();
|
||||
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
recordingStatus: RecordingStatus = RecordingStatus.STOPPED;
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
oldRecordingStatus: RecordingStatus;
|
||||
/**
|
||||
* @internal
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { trigger, state, style, transition, animate } from '@angular/animations';
|
||||
import { animate, style, transition, trigger } from '@angular/animations';
|
||||
import {
|
||||
AfterViewInit,
|
||||
Component,
|
||||
|
@ -14,9 +14,10 @@ import {
|
|||
import { OpenViduErrorName, Session } from 'openvidu-browser';
|
||||
import { Subscription } from 'rxjs';
|
||||
import {
|
||||
ActivitiesPanelDirective,
|
||||
AdditionalPanelsDirective,
|
||||
ChatPanelDirective,
|
||||
LayoutDirective,
|
||||
AdditionalPanelsDirective,
|
||||
PanelDirective,
|
||||
ParticipantPanelItemDirective,
|
||||
ParticipantPanelItemElementsDirective,
|
||||
|
@ -24,12 +25,11 @@ import {
|
|||
StreamDirective,
|
||||
ToolbarAdditionalButtonsDirective,
|
||||
ToolbarAdditionalPanelButtonsDirective,
|
||||
ToolbarDirective,
|
||||
ActivitiesPanelDirective
|
||||
ToolbarDirective
|
||||
} from '../../directives/template/openvidu-angular.directive';
|
||||
import { ILogger } from '../../models/logger.model';
|
||||
import { OpenViduEdition } from '../../models/openvidu.model';
|
||||
import { ParticipantAbstractModel, ParticipantProperties } from '../../models/participant.model';
|
||||
import { ParticipantAbstractModel } from '../../models/participant.model';
|
||||
import { TokenModel } from '../../models/token.model';
|
||||
import { ActionService } from '../../services/action/action.service';
|
||||
import { OpenViduAngularConfigService } from '../../services/config/openvidu-angular.config.service';
|
||||
|
@ -72,7 +72,8 @@ import { TranslateService } from '../../services/translate/translate.service';
|
|||
* | **streamDisplayAudioDetection** | `boolean` | {@link StreamDisplayAudioDetectionDirective} |
|
||||
* | **streamSettingsButton** | `boolean` | {@link StreamSettingsButtonDirective} |
|
||||
* | **participantPanelItemMuteButton** | `boolean` | {@link ParticipantPanelItemMuteButtonDirective} |
|
||||
* | **recordingActivityRecordingList** | `{@link RecordingInfo}[]` | {@link RecordingActivityRecordingListDirective} |
|
||||
* | **recordingActivityRecordingList** | `{@link RecordingInfo}[]` | {@link RecordingActivityRecordingsListDirective} |
|
||||
* | **recordingActivityRecordingError** | `any` | {@link RecordingActivityRecordingErrorDirective} |
|
||||
*
|
||||
* <p class="component-link-text">
|
||||
* <span class="italic">See all {@link ApiDirectiveModule API Directives}</span>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Directive, AfterViewInit, OnDestroy, Input, ElementRef } from '@angular/core';
|
||||
import { AfterViewInit, Directive, ElementRef, Input, OnDestroy } from '@angular/core';
|
||||
import { RecordingInfo } from '../../models/recording.model';
|
||||
import { OpenViduAngularConfigService } from '../../services/config/openvidu-angular.config.service';
|
||||
|
||||
|
@ -30,7 +30,7 @@ export class RecordingActivityRecordingsListDirective implements AfterViewInit,
|
|||
this.update(this.recordingsValue);
|
||||
}
|
||||
|
||||
recordingsValue: RecordingInfo [] = [];
|
||||
recordingsValue: RecordingInfo[] = [];
|
||||
|
||||
constructor(public elementRef: ElementRef, private libService: OpenViduAngularConfigService) {}
|
||||
|
||||
|
@ -41,8 +41,8 @@ export class RecordingActivityRecordingsListDirective implements AfterViewInit,
|
|||
this.clear();
|
||||
}
|
||||
clear() {
|
||||
this.recordingsValue = null;
|
||||
this.update(null);
|
||||
this.recordingsValue = [];
|
||||
this.update([]);
|
||||
}
|
||||
|
||||
update(value: RecordingInfo[]) {
|
||||
|
@ -67,7 +67,7 @@ export class RecordingActivityRecordingsListDirective implements AfterViewInit,
|
|||
* @example
|
||||
* <ov-recording-activity [recordingError]="error"></ov-recording-activity>
|
||||
*/
|
||||
@Directive({
|
||||
@Directive({
|
||||
selector: 'ov-videoconference[recordingActivityRecordingError], ov-recording-activity[recordingError]'
|
||||
})
|
||||
export class RecordingActivityRecordingErrorDirective implements AfterViewInit, OnDestroy {
|
||||
|
@ -80,7 +80,7 @@ export class RecordingActivityRecordingErrorDirective implements AfterViewInit,
|
|||
this.update(this.recordingErrorValue);
|
||||
}
|
||||
|
||||
recordingErrorValue: RecordingInfo [] = [];
|
||||
recordingErrorValue: any = null;
|
||||
|
||||
constructor(public elementRef: ElementRef, private libService: OpenViduAngularConfigService) {}
|
||||
|
||||
|
|
|
@ -1,16 +1,13 @@
|
|||
export enum RecordingStatus {
|
||||
export enum RecordingStatus {
|
||||
STARTING = 'starting',
|
||||
STARTED = 'started',
|
||||
STOPPING = 'stopping',
|
||||
STOPPED = 'stopped',
|
||||
FAILED = 'failed',
|
||||
READY = 'ready'
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export interface RecordingInfo {
|
||||
export interface RecordingInfo {
|
||||
status: RecordingStatus;
|
||||
id?: string;
|
||||
name?: string;
|
||||
|
@ -18,5 +15,5 @@ export enum RecordingStatus {
|
|||
createdAt?: number;
|
||||
duration?: number;
|
||||
size?: string;
|
||||
url?: string
|
||||
url?: string;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue