mirror of https://github.com/OpenVidu/openvidu.git
openvidu-components: Hidden recording code in docs
parent
1766ae15c8
commit
cccf0474d1
|
@ -2,6 +2,9 @@ import { Component, OnInit } from '@angular/core';
|
||||||
import { PanelType } from '../../../models/panel.model';
|
import { PanelType } from '../../../models/panel.model';
|
||||||
import { PanelService } from '../../../services/panel/panel.service';
|
import { PanelService } from '../../../services/panel/panel.service';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ov-activities-panel',
|
selector: 'ov-activities-panel',
|
||||||
templateUrl: './activities-panel.component.html',
|
templateUrl: './activities-panel.component.html',
|
||||||
|
|
|
@ -3,6 +3,9 @@ import { Subscription } from 'rxjs';
|
||||||
import { RecordingStatus } from '../../../../models/recording.model';
|
import { RecordingStatus } from '../../../../models/recording.model';
|
||||||
import { RecordingService, RecordingInfo } from '../../../../services/recording/recording.service';
|
import { RecordingService, RecordingInfo } 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',
|
||||||
|
|
|
@ -523,7 +523,7 @@ export class ToolbarComponent implements OnInit, OnDestroy {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
subscribeToRecordingStatus() {
|
private subscribeToRecordingStatus() {
|
||||||
//TODO: WIP
|
//TODO: WIP
|
||||||
// this.recordingSubscription = this.recordingService.recordingStatusObs.pipe(skip(1)).subscribe((info: RecordingInfo) => {
|
// this.recordingSubscription = this.recordingService.recordingStatusObs.pipe(skip(1)).subscribe((info: RecordingInfo) => {
|
||||||
// this.isRecording = info.status === RecordingStatus.STARTED;
|
// this.isRecording = info.status === RecordingStatus.STARTED;
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
export enum RecordingStatus {
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
|
export enum RecordingStatus {
|
||||||
STARTED = 'STARTED',
|
STARTED = 'STARTED',
|
||||||
STOPPED = 'STOPPED'
|
STOPPED = 'STOPPED'
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,9 @@ import { RecordingEvent } from 'openvidu-browser';
|
||||||
import { BehaviorSubject, Observable } from 'rxjs';
|
import { BehaviorSubject, Observable } from 'rxjs';
|
||||||
import { RecordingStatus } from '../../models/recording.model';
|
import { RecordingStatus } from '../../models/recording.model';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
export interface RecordingInfo {
|
export interface RecordingInfo {
|
||||||
status: RecordingStatus;
|
status: RecordingStatus;
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -10,6 +13,9 @@ export interface RecordingInfo {
|
||||||
reason?: string;
|
reason?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue