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